diff --git a/Appwrite/Appwrite.csproj b/Appwrite/Appwrite.csproj index 4592ec5b..0ad637a8 100644 --- a/Appwrite/Appwrite.csproj +++ b/Appwrite/Appwrite.csproj @@ -2,7 +2,7 @@ netstandard2.0;net462 Appwrite - 8.3.1 + 8.4.0 Appwrite Team Appwrite Team diff --git a/Appwrite/Client.cs b/Appwrite/Client.cs index a2931416..2d6a1aba 100644 --- a/Appwrite/Client.cs +++ b/Appwrite/Client.cs @@ -77,11 +77,11 @@ public Client( _headers = new Dictionary() { { "content-type", "application/json" }, - { "user-agent", $"AppwriteDotNetSDK/8.3.1 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, + { "user-agent", $"AppwriteDotNetSDK/8.4.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, { "x-sdk-name", ".NET" }, { "x-sdk-platform", "server" }, { "x-sdk-language", "dotnet" }, - { "x-sdk-version", "8.3.1"}, + { "x-sdk-version", "8.4.0"}, { "X-Appwrite-Response-Format", "2.0.0" } }; @@ -484,7 +484,8 @@ public async Task ChunkedUpload( Func, T> converter, string paramName, string? idParamName = null, - Action? onProgress = null) where T : class + Action? onProgress = null, + string method = "POST") where T : class { if (string.IsNullOrEmpty(paramName)) throw new ArgumentException("Parameter name cannot be null or empty", nameof(paramName)); @@ -549,7 +550,7 @@ public async Task ChunkedUpload( parameters[paramName] = content; return await Call( - method: "POST", + method: method, path, headers, parameters, @@ -656,7 +657,7 @@ async Task ReadChunkAsync(long start, long end) }; var chunkResult = await Call>( - method: "POST", + method: method, path, chunkHeaders, chunkParameters diff --git a/Appwrite/Enums/BillingPlanGroup.cs b/Appwrite/Enums/BillingPlanGroup.cs index 9340d570..46437e99 100644 --- a/Appwrite/Enums/BillingPlanGroup.cs +++ b/Appwrite/Enums/BillingPlanGroup.cs @@ -12,6 +12,8 @@ public BillingPlanGroup(string value) } public static BillingPlanGroup Starter => new BillingPlanGroup("starter"); + public static BillingPlanGroup Free => new BillingPlanGroup("free"); + public static BillingPlanGroup Start => new BillingPlanGroup("start"); public static BillingPlanGroup Pro => new BillingPlanGroup("pro"); public static BillingPlanGroup Scale => new BillingPlanGroup("scale"); } diff --git a/Appwrite/Enums/BuildRuntime.cs b/Appwrite/Enums/BuildRuntime.cs index f2440976..8373bb02 100644 --- a/Appwrite/Enums/BuildRuntime.cs +++ b/Appwrite/Enums/BuildRuntime.cs @@ -62,6 +62,7 @@ public BuildRuntime(string value) public static BuildRuntime Dart310 => new BuildRuntime("dart-3.10"); public static BuildRuntime Dart311 => new BuildRuntime("dart-3.11"); public static BuildRuntime Dart312 => new BuildRuntime("dart-3.12"); + public static BuildRuntime Dart313 => new BuildRuntime("dart-3.13"); public static BuildRuntime Dotnet60 => new BuildRuntime("dotnet-6.0"); public static BuildRuntime Dotnet70 => new BuildRuntime("dotnet-7.0"); public static BuildRuntime Dotnet80 => new BuildRuntime("dotnet-8.0"); @@ -104,5 +105,6 @@ public BuildRuntime(string value) public static BuildRuntime Flutter338 => new BuildRuntime("flutter-3.38"); public static BuildRuntime Flutter341 => new BuildRuntime("flutter-3.41"); public static BuildRuntime Flutter344 => new BuildRuntime("flutter-3.44"); + public static BuildRuntime Flutter347 => new BuildRuntime("flutter-3.47"); } } diff --git a/Appwrite/Enums/DatabasesIndexType.cs b/Appwrite/Enums/DatabasesIndexType.cs index 71494c99..63ba9f89 100644 --- a/Appwrite/Enums/DatabasesIndexType.cs +++ b/Appwrite/Enums/DatabasesIndexType.cs @@ -15,5 +15,6 @@ public DatabasesIndexType(string value) public static DatabasesIndexType Fulltext => new DatabasesIndexType("fulltext"); public static DatabasesIndexType Unique => new DatabasesIndexType("unique"); public static DatabasesIndexType Spatial => new DatabasesIndexType("spatial"); + public static DatabasesIndexType Trigram => new DatabasesIndexType("trigram"); } } diff --git a/Appwrite/Enums/DomainRegistrationType.cs b/Appwrite/Enums/DomainRegistrationType.cs new file mode 100644 index 00000000..32e1973a --- /dev/null +++ b/Appwrite/Enums/DomainRegistrationType.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class DomainRegistrationType : IEnum + { + public string Value { get; private set; } + + public DomainRegistrationType(string value) + { + Value = value; + } + + public static DomainRegistrationType New => new DomainRegistrationType("new"); + public static DomainRegistrationType Transfer => new DomainRegistrationType("transfer"); + public static DomainRegistrationType Renewal => new DomainRegistrationType("renewal"); + public static DomainRegistrationType Trade => new DomainRegistrationType("trade"); + } +} diff --git a/Appwrite/Enums/DomainTransferStatusEnum.cs b/Appwrite/Enums/DomainTransferStatusEnum.cs new file mode 100644 index 00000000..2666a008 --- /dev/null +++ b/Appwrite/Enums/DomainTransferStatusEnum.cs @@ -0,0 +1,23 @@ +using System; + +namespace Appwrite.Enums +{ + public class DomainTransferStatusEnum : IEnum + { + public string Value { get; private set; } + + public DomainTransferStatusEnum(string value) + { + Value = value; + } + + public static DomainTransferStatusEnum Transferrable => new DomainTransferStatusEnum("transferrable"); + public static DomainTransferStatusEnum NotTransferrable => new DomainTransferStatusEnum("not_transferrable"); + public static DomainTransferStatusEnum PendingOwner => new DomainTransferStatusEnum("pending_owner"); + public static DomainTransferStatusEnum PendingAdmin => new DomainTransferStatusEnum("pending_admin"); + public static DomainTransferStatusEnum PendingRegistry => new DomainTransferStatusEnum("pending_registry"); + public static DomainTransferStatusEnum Completed => new DomainTransferStatusEnum("completed"); + public static DomainTransferStatusEnum Cancelled => new DomainTransferStatusEnum("cancelled"); + public static DomainTransferStatusEnum ServiceUnavailable => new DomainTransferStatusEnum("service_unavailable"); + } +} diff --git a/Appwrite/Enums/Framework.cs b/Appwrite/Enums/Framework.cs index 72864656..3f52930f 100644 --- a/Appwrite/Enums/Framework.cs +++ b/Appwrite/Enums/Framework.cs @@ -23,6 +23,7 @@ public Framework(string value) public static Framework Remix => new Framework("remix"); public static Framework Lynx => new Framework("lynx"); public static Framework Flutter => new Framework("flutter"); + public static Framework Jaspr => new Framework("jaspr"); public static Framework ReactNative => new Framework("react-native"); public static Framework Vite => new Framework("vite"); public static Framework Other => new Framework("other"); diff --git a/Appwrite/Enums/IdTokenProvider.cs b/Appwrite/Enums/IdTokenProvider.cs new file mode 100644 index 00000000..d7108823 --- /dev/null +++ b/Appwrite/Enums/IdTokenProvider.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class IdTokenProvider : IEnum + { + public string Value { get; private set; } + + public IdTokenProvider(string value) + { + Value = value; + } + + public static IdTokenProvider Apple => new IdTokenProvider("apple"); + public static IdTokenProvider Google => new IdTokenProvider("google"); + } +} diff --git a/Appwrite/Enums/ImageGravity.cs b/Appwrite/Enums/ImageGravity.cs index 70ffbb64..85847231 100644 --- a/Appwrite/Enums/ImageGravity.cs +++ b/Appwrite/Enums/ImageGravity.cs @@ -11,6 +11,7 @@ public ImageGravity(string value) Value = value; } + public static ImageGravity Auto => new ImageGravity("auto"); public static ImageGravity Center => new ImageGravity("center"); public static ImageGravity TopLeft => new ImageGravity("top-left"); public static ImageGravity Top => new ImageGravity("top"); diff --git a/Appwrite/Enums/OAuth2Auth0Prompt.cs b/Appwrite/Enums/OAuth2Auth0Prompt.cs new file mode 100644 index 00000000..bc76b613 --- /dev/null +++ b/Appwrite/Enums/OAuth2Auth0Prompt.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2Auth0Prompt : IEnum + { + public string Value { get; private set; } + + public OAuth2Auth0Prompt(string value) + { + Value = value; + } + + public static OAuth2Auth0Prompt None => new OAuth2Auth0Prompt("none"); + public static OAuth2Auth0Prompt Login => new OAuth2Auth0Prompt("login"); + public static OAuth2Auth0Prompt Consent => new OAuth2Auth0Prompt("consent"); + } +} diff --git a/Appwrite/Enums/OAuth2DiscordPrompt.cs b/Appwrite/Enums/OAuth2DiscordPrompt.cs new file mode 100644 index 00000000..2ed48dd6 --- /dev/null +++ b/Appwrite/Enums/OAuth2DiscordPrompt.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2DiscordPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2DiscordPrompt(string value) + { + Value = value; + } + + public static OAuth2DiscordPrompt None => new OAuth2DiscordPrompt("none"); + public static OAuth2DiscordPrompt Consent => new OAuth2DiscordPrompt("consent"); + } +} diff --git a/Appwrite/Enums/OAuth2GithubPrompt.cs b/Appwrite/Enums/OAuth2GithubPrompt.cs new file mode 100644 index 00000000..02eca196 --- /dev/null +++ b/Appwrite/Enums/OAuth2GithubPrompt.cs @@ -0,0 +1,16 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2GithubPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2GithubPrompt(string value) + { + Value = value; + } + + public static OAuth2GithubPrompt SelectAccount => new OAuth2GithubPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/OAuth2KakaoPrompt.cs b/Appwrite/Enums/OAuth2KakaoPrompt.cs new file mode 100644 index 00000000..5ef7899d --- /dev/null +++ b/Appwrite/Enums/OAuth2KakaoPrompt.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2KakaoPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2KakaoPrompt(string value) + { + Value = value; + } + + public static OAuth2KakaoPrompt None => new OAuth2KakaoPrompt("none"); + public static OAuth2KakaoPrompt Login => new OAuth2KakaoPrompt("login"); + public static OAuth2KakaoPrompt Create => new OAuth2KakaoPrompt("create"); + public static OAuth2KakaoPrompt SelectAccount => new OAuth2KakaoPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/OAuth2MicrosoftPrompt.cs b/Appwrite/Enums/OAuth2MicrosoftPrompt.cs new file mode 100644 index 00000000..8f095643 --- /dev/null +++ b/Appwrite/Enums/OAuth2MicrosoftPrompt.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2MicrosoftPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2MicrosoftPrompt(string value) + { + Value = value; + } + + public static OAuth2MicrosoftPrompt None => new OAuth2MicrosoftPrompt("none"); + public static OAuth2MicrosoftPrompt Login => new OAuth2MicrosoftPrompt("login"); + public static OAuth2MicrosoftPrompt Consent => new OAuth2MicrosoftPrompt("consent"); + public static OAuth2MicrosoftPrompt SelectAccount => new OAuth2MicrosoftPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/OAuth2OktaPrompt.cs b/Appwrite/Enums/OAuth2OktaPrompt.cs new file mode 100644 index 00000000..414a8a6e --- /dev/null +++ b/Appwrite/Enums/OAuth2OktaPrompt.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2OktaPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2OktaPrompt(string value) + { + Value = value; + } + + public static OAuth2OktaPrompt None => new OAuth2OktaPrompt("none"); + public static OAuth2OktaPrompt Login => new OAuth2OktaPrompt("login"); + public static OAuth2OktaPrompt Consent => new OAuth2OktaPrompt("consent"); + } +} diff --git a/Appwrite/Enums/OAuth2SalesforcePrompt.cs b/Appwrite/Enums/OAuth2SalesforcePrompt.cs new file mode 100644 index 00000000..0f11a302 --- /dev/null +++ b/Appwrite/Enums/OAuth2SalesforcePrompt.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2SalesforcePrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2SalesforcePrompt(string value) + { + Value = value; + } + + public static OAuth2SalesforcePrompt Login => new OAuth2SalesforcePrompt("login"); + public static OAuth2SalesforcePrompt Consent => new OAuth2SalesforcePrompt("consent"); + } +} diff --git a/Appwrite/Enums/OAuth2ZohoPrompt.cs b/Appwrite/Enums/OAuth2ZohoPrompt.cs new file mode 100644 index 00000000..3a36ace4 --- /dev/null +++ b/Appwrite/Enums/OAuth2ZohoPrompt.cs @@ -0,0 +1,16 @@ +using System; + +namespace Appwrite.Enums +{ + public class OAuth2ZohoPrompt : IEnum + { + public string Value { get; private set; } + + public OAuth2ZohoPrompt(string value) + { + Value = value; + } + + public static OAuth2ZohoPrompt Consent => new OAuth2ZohoPrompt("consent"); + } +} diff --git a/Appwrite/Enums/OAuthProvider.cs b/Appwrite/Enums/OAuthProvider.cs index b3d03b43..005e7bff 100644 --- a/Appwrite/Enums/OAuthProvider.cs +++ b/Appwrite/Enums/OAuthProvider.cs @@ -33,6 +33,7 @@ public OAuthProvider(string value) public static OAuthProvider Gitlab => new OAuthProvider("gitlab"); public static OAuthProvider Google => new OAuthProvider("google"); public static OAuthProvider Huggingface => new OAuthProvider("huggingface"); + public static OAuthProvider Kakao => new OAuthProvider("kakao"); public static OAuthProvider Keycloak => new OAuthProvider("keycloak"); public static OAuthProvider Kick => new OAuthProvider("kick"); public static OAuthProvider Linkedin => new OAuthProvider("linkedin"); @@ -48,9 +49,11 @@ public OAuthProvider(string value) public static OAuthProvider Slack => new OAuthProvider("slack"); public static OAuthProvider Spotify => new OAuthProvider("spotify"); public static OAuthProvider Stripe => new OAuthProvider("stripe"); + public static OAuthProvider Tiktok => new OAuthProvider("tiktok"); public static OAuthProvider Tradeshift => new OAuthProvider("tradeshift"); public static OAuthProvider TradeshiftBox => new OAuthProvider("tradeshiftBox"); public static OAuthProvider Twitch => new OAuthProvider("twitch"); + public static OAuthProvider Webflow => new OAuthProvider("webflow"); public static OAuthProvider Wordpress => new OAuthProvider("wordpress"); public static OAuthProvider X => new OAuthProvider("x"); public static OAuthProvider Yahoo => new OAuthProvider("yahoo"); diff --git a/Appwrite/Enums/ProjectEmailTemplateId.cs b/Appwrite/Enums/ProjectEmailTemplateId.cs index 1c47a42f..c05d8329 100644 --- a/Appwrite/Enums/ProjectEmailTemplateId.cs +++ b/Appwrite/Enums/ProjectEmailTemplateId.cs @@ -18,5 +18,7 @@ public ProjectEmailTemplateId(string value) public static ProjectEmailTemplateId MfaChallenge => new ProjectEmailTemplateId("mfaChallenge"); public static ProjectEmailTemplateId SessionAlert => new ProjectEmailTemplateId("sessionAlert"); public static ProjectEmailTemplateId OtpSession => new ProjectEmailTemplateId("otpSession"); + public static ProjectEmailTemplateId OtpVerification => new ProjectEmailTemplateId("otpVerification"); + public static ProjectEmailTemplateId OtpRecovery => new ProjectEmailTemplateId("otpRecovery"); } } diff --git a/Appwrite/Enums/ProjectKeyScopes.cs b/Appwrite/Enums/ProjectKeyScopes.cs index 2ecb5b92..6b6461bd 100644 --- a/Appwrite/Enums/ProjectKeyScopes.cs +++ b/Appwrite/Enums/ProjectKeyScopes.cs @@ -101,6 +101,7 @@ public ProjectKeyScopes(string value) public static ProjectKeyScopes WebhooksWrite => new ProjectKeyScopes("webhooks.write"); public static ProjectKeyScopes LocaleRead => new ProjectKeyScopes("locale.read"); public static ProjectKeyScopes AvatarsRead => new ProjectKeyScopes("avatars.read"); + public static ProjectKeyScopes AvatarsWrite => new ProjectKeyScopes("avatars.write"); public static ProjectKeyScopes HealthRead => new ProjectKeyScopes("health.read"); public static ProjectKeyScopes AssistantRead => new ProjectKeyScopes("assistant.read"); public static ProjectKeyScopes MigrationsRead => new ProjectKeyScopes("migrations.read"); @@ -115,6 +116,7 @@ public ProjectKeyScopes(string value) public static ProjectKeyScopes ReportsWrite => new ProjectKeyScopes("reports.write"); public static ProjectKeyScopes PresencesRead => new ProjectKeyScopes("presences.read"); public static ProjectKeyScopes PresencesWrite => new ProjectKeyScopes("presences.write"); + public static ProjectKeyScopes DedicatedDatabasesExecute => new ProjectKeyScopes("dedicatedDatabases.execute"); public static ProjectKeyScopes BackupsPoliciesRead => new ProjectKeyScopes("backups.policies.read"); public static ProjectKeyScopes BackupsPoliciesWrite => new ProjectKeyScopes("backups.policies.write"); public static ProjectKeyScopes ArchivesRead => new ProjectKeyScopes("archives.read"); @@ -132,5 +134,7 @@ public ProjectKeyScopes(string value) public static ProjectKeyScopes Oauth2Read => new ProjectKeyScopes("oauth2.read"); public static ProjectKeyScopes Oauth2Write => new ProjectKeyScopes("oauth2.write"); public static ProjectKeyScopes Oauth2Introspect => new ProjectKeyScopes("oauth2.introspect"); + public static ProjectKeyScopes AnalyticsRead => new ProjectKeyScopes("analytics.read"); + public static ProjectKeyScopes AnalyticsWrite => new ProjectKeyScopes("analytics.write"); } } diff --git a/Appwrite/Enums/ProjectOAuth2Auth0Prompt.cs b/Appwrite/Enums/ProjectOAuth2Auth0Prompt.cs new file mode 100644 index 00000000..2e62b0b2 --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2Auth0Prompt.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2Auth0Prompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2Auth0Prompt(string value) + { + Value = value; + } + + public static ProjectOAuth2Auth0Prompt None => new ProjectOAuth2Auth0Prompt("none"); + public static ProjectOAuth2Auth0Prompt Login => new ProjectOAuth2Auth0Prompt("login"); + public static ProjectOAuth2Auth0Prompt Consent => new ProjectOAuth2Auth0Prompt("consent"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2DiscordPrompt.cs b/Appwrite/Enums/ProjectOAuth2DiscordPrompt.cs new file mode 100644 index 00000000..5d7de4d0 --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2DiscordPrompt.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2DiscordPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2DiscordPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2DiscordPrompt None => new ProjectOAuth2DiscordPrompt("none"); + public static ProjectOAuth2DiscordPrompt Consent => new ProjectOAuth2DiscordPrompt("consent"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2GitHubPrompt.cs b/Appwrite/Enums/ProjectOAuth2GitHubPrompt.cs new file mode 100644 index 00000000..c7fc21ed --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2GitHubPrompt.cs @@ -0,0 +1,16 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2GitHubPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2GitHubPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2GitHubPrompt SelectAccount => new ProjectOAuth2GitHubPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2KakaoPrompt.cs b/Appwrite/Enums/ProjectOAuth2KakaoPrompt.cs new file mode 100644 index 00000000..cc1bb0fc --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2KakaoPrompt.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2KakaoPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2KakaoPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2KakaoPrompt None => new ProjectOAuth2KakaoPrompt("none"); + public static ProjectOAuth2KakaoPrompt Login => new ProjectOAuth2KakaoPrompt("login"); + public static ProjectOAuth2KakaoPrompt Create => new ProjectOAuth2KakaoPrompt("create"); + public static ProjectOAuth2KakaoPrompt SelectAccount => new ProjectOAuth2KakaoPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2MicrosoftPrompt.cs b/Appwrite/Enums/ProjectOAuth2MicrosoftPrompt.cs new file mode 100644 index 00000000..0176b295 --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2MicrosoftPrompt.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2MicrosoftPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2MicrosoftPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2MicrosoftPrompt None => new ProjectOAuth2MicrosoftPrompt("none"); + public static ProjectOAuth2MicrosoftPrompt Login => new ProjectOAuth2MicrosoftPrompt("login"); + public static ProjectOAuth2MicrosoftPrompt Consent => new ProjectOAuth2MicrosoftPrompt("consent"); + public static ProjectOAuth2MicrosoftPrompt SelectAccount => new ProjectOAuth2MicrosoftPrompt("select_account"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2OktaPrompt.cs b/Appwrite/Enums/ProjectOAuth2OktaPrompt.cs new file mode 100644 index 00000000..7c106f05 --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2OktaPrompt.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2OktaPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2OktaPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2OktaPrompt None => new ProjectOAuth2OktaPrompt("none"); + public static ProjectOAuth2OktaPrompt Login => new ProjectOAuth2OktaPrompt("login"); + public static ProjectOAuth2OktaPrompt Consent => new ProjectOAuth2OktaPrompt("consent"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2SalesforcePrompt.cs b/Appwrite/Enums/ProjectOAuth2SalesforcePrompt.cs new file mode 100644 index 00000000..1ae024bc --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2SalesforcePrompt.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2SalesforcePrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2SalesforcePrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2SalesforcePrompt Login => new ProjectOAuth2SalesforcePrompt("login"); + public static ProjectOAuth2SalesforcePrompt Consent => new ProjectOAuth2SalesforcePrompt("consent"); + } +} diff --git a/Appwrite/Enums/ProjectOAuth2ZohoPrompt.cs b/Appwrite/Enums/ProjectOAuth2ZohoPrompt.cs new file mode 100644 index 00000000..dd4d32fa --- /dev/null +++ b/Appwrite/Enums/ProjectOAuth2ZohoPrompt.cs @@ -0,0 +1,16 @@ +using System; + +namespace Appwrite.Enums +{ + public class ProjectOAuth2ZohoPrompt : IEnum + { + public string Value { get; private set; } + + public ProjectOAuth2ZohoPrompt(string value) + { + Value = value; + } + + public static ProjectOAuth2ZohoPrompt Consent => new ProjectOAuth2ZohoPrompt("consent"); + } +} diff --git a/Appwrite/Enums/ProjectOAuthProviderId.cs b/Appwrite/Enums/ProjectOAuthProviderId.cs index c1fa023d..dd2b4b0f 100644 --- a/Appwrite/Enums/ProjectOAuthProviderId.cs +++ b/Appwrite/Enums/ProjectOAuthProviderId.cs @@ -33,6 +33,7 @@ public ProjectOAuthProviderId(string value) public static ProjectOAuthProviderId Gitlab => new ProjectOAuthProviderId("gitlab"); public static ProjectOAuthProviderId Google => new ProjectOAuthProviderId("google"); public static ProjectOAuthProviderId Huggingface => new ProjectOAuthProviderId("huggingface"); + public static ProjectOAuthProviderId Kakao => new ProjectOAuthProviderId("kakao"); public static ProjectOAuthProviderId Keycloak => new ProjectOAuthProviderId("keycloak"); public static ProjectOAuthProviderId Kick => new ProjectOAuthProviderId("kick"); public static ProjectOAuthProviderId Linkedin => new ProjectOAuthProviderId("linkedin"); @@ -48,9 +49,11 @@ public ProjectOAuthProviderId(string value) public static ProjectOAuthProviderId Slack => new ProjectOAuthProviderId("slack"); public static ProjectOAuthProviderId Spotify => new ProjectOAuthProviderId("spotify"); public static ProjectOAuthProviderId Stripe => new ProjectOAuthProviderId("stripe"); + public static ProjectOAuthProviderId Tiktok => new ProjectOAuthProviderId("tiktok"); public static ProjectOAuthProviderId Tradeshift => new ProjectOAuthProviderId("tradeshift"); public static ProjectOAuthProviderId TradeshiftBox => new ProjectOAuthProviderId("tradeshiftBox"); public static ProjectOAuthProviderId Twitch => new ProjectOAuthProviderId("twitch"); + public static ProjectOAuthProviderId Webflow => new ProjectOAuthProviderId("webflow"); public static ProjectOAuthProviderId Wordpress => new ProjectOAuthProviderId("wordpress"); public static ProjectOAuthProviderId X => new ProjectOAuthProviderId("x"); public static ProjectOAuthProviderId Yahoo => new ProjectOAuthProviderId("yahoo"); diff --git a/Appwrite/Enums/ProjectPolicyId.cs b/Appwrite/Enums/ProjectPolicyId.cs index a4e4a069..0eb70a38 100644 --- a/Appwrite/Enums/ProjectPolicyId.cs +++ b/Appwrite/Enums/ProjectPolicyId.cs @@ -15,6 +15,8 @@ public ProjectPolicyId(string value) public static ProjectPolicyId PasswordHistory => new ProjectPolicyId("password-history"); public static ProjectPolicyId PasswordStrength => new ProjectPolicyId("password-strength"); public static ProjectPolicyId PasswordPersonalData => new ProjectPolicyId("password-personal-data"); + public static ProjectPolicyId PasswordPwned => new ProjectPolicyId("password-pwned"); + public static ProjectPolicyId PasswordRotation => new ProjectPolicyId("password-rotation"); public static ProjectPolicyId SessionAlert => new ProjectPolicyId("session-alert"); public static ProjectPolicyId SessionDuration => new ProjectPolicyId("session-duration"); public static ProjectPolicyId SessionInvalidation => new ProjectPolicyId("session-invalidation"); diff --git a/Appwrite/Enums/ProxyRuleDeploymentResourceType.cs b/Appwrite/Enums/ProxyRuleDeploymentResourceType.cs index bc93425b..9e5bc523 100644 --- a/Appwrite/Enums/ProxyRuleDeploymentResourceType.cs +++ b/Appwrite/Enums/ProxyRuleDeploymentResourceType.cs @@ -13,5 +13,6 @@ public ProxyRuleDeploymentResourceType(string value) public static ProxyRuleDeploymentResourceType Function => new ProxyRuleDeploymentResourceType("function"); public static ProxyRuleDeploymentResourceType Site => new ProxyRuleDeploymentResourceType("site"); + public static ProxyRuleDeploymentResourceType DedicatedDatabase => new ProxyRuleDeploymentResourceType("dedicatedDatabase"); } } diff --git a/Appwrite/Enums/Runtime.cs b/Appwrite/Enums/Runtime.cs index 6b3ddc0e..ac4513a9 100644 --- a/Appwrite/Enums/Runtime.cs +++ b/Appwrite/Enums/Runtime.cs @@ -62,6 +62,7 @@ public Runtime(string value) public static Runtime Dart310 => new Runtime("dart-3.10"); public static Runtime Dart311 => new Runtime("dart-3.11"); public static Runtime Dart312 => new Runtime("dart-3.12"); + public static Runtime Dart313 => new Runtime("dart-3.13"); public static Runtime Dotnet60 => new Runtime("dotnet-6.0"); public static Runtime Dotnet70 => new Runtime("dotnet-7.0"); public static Runtime Dotnet80 => new Runtime("dotnet-8.0"); @@ -104,5 +105,6 @@ public Runtime(string value) public static Runtime Flutter338 => new Runtime("flutter-3.38"); public static Runtime Flutter341 => new Runtime("flutter-3.41"); public static Runtime Flutter344 => new Runtime("flutter-3.44"); + public static Runtime Flutter347 => new Runtime("flutter-3.47"); } } diff --git a/Appwrite/Enums/TablesDBIndexType.cs b/Appwrite/Enums/TablesDBIndexType.cs index 859d5fdd..db089efd 100644 --- a/Appwrite/Enums/TablesDBIndexType.cs +++ b/Appwrite/Enums/TablesDBIndexType.cs @@ -15,5 +15,6 @@ public TablesDBIndexType(string value) public static TablesDBIndexType Fulltext => new TablesDBIndexType("fulltext"); public static TablesDBIndexType Unique => new TablesDBIndexType("unique"); public static TablesDBIndexType Spatial => new TablesDBIndexType("spatial"); + public static TablesDBIndexType Trigram => new TablesDBIndexType("trigram"); } } diff --git a/Appwrite/Enums/WafRuleAction.cs b/Appwrite/Enums/WafRuleAction.cs new file mode 100644 index 00000000..44a14d8d --- /dev/null +++ b/Appwrite/Enums/WafRuleAction.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class WafRuleAction : IEnum + { + public string Value { get; private set; } + + public WafRuleAction(string value) + { + Value = value; + } + + public static WafRuleAction Bypass => new WafRuleAction("bypass"); + public static WafRuleAction Deny => new WafRuleAction("deny"); + public static WafRuleAction Challenge => new WafRuleAction("challenge"); + public static WafRuleAction RateLimit => new WafRuleAction("rateLimit"); + public static WafRuleAction Redirect => new WafRuleAction("redirect"); + } +} diff --git a/Appwrite/Extensions/Extensions.cs b/Appwrite/Extensions/Extensions.cs index 798cd932..a2dc3e92 100644 --- a/Appwrite/Extensions/Extensions.cs +++ b/Appwrite/Extensions/Extensions.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json; +using Appwrite.Enums; namespace Appwrite.Extensions { @@ -57,6 +58,7 @@ public static List ConvertToList(this object value) null => default!, T typedItem => typedItem, JsonElement jsonItem => jsonItem.Deserialize(Client.DeserializerOptions)!, + string text when typeof(IEnum).IsAssignableFrom(typeof(T)) => (T)Activator.CreateInstance(typeof(T), text)!, _ => (T)Convert.ChangeType(item, typeof(T)) }) .ToList(); diff --git a/Appwrite/Models/Account.cs b/Appwrite/Models/Account.cs new file mode 100644 index 00000000..77f90ae8 --- /dev/null +++ b/Appwrite/Models/Account.cs @@ -0,0 +1,206 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class Account + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("registration")] + public string Registration { get; private set; } + + [JsonPropertyName("status")] + public bool Status { get; private set; } + + [JsonPropertyName("labels")] + public List Labels { get; private set; } + + [JsonPropertyName("passwordUpdate")] + public string PasswordUpdate { get; private set; } + + [JsonPropertyName("email")] + public string Email { get; private set; } + + [JsonPropertyName("phone")] + public string Phone { get; private set; } + + [JsonPropertyName("emailVerification")] + public bool EmailVerification { get; private set; } + + [JsonPropertyName("emailCanonical")] + public string? EmailCanonical { get; private set; } + + [JsonPropertyName("emailIsFree")] + public bool? EmailIsFree { get; private set; } + + [JsonPropertyName("emailIsDisposable")] + public bool? EmailIsDisposable { get; private set; } + + [JsonPropertyName("emailIsCorporate")] + public bool? EmailIsCorporate { get; private set; } + + [JsonPropertyName("emailIsCanonical")] + public bool? EmailIsCanonical { get; private set; } + + [JsonPropertyName("passwordPwned")] + public bool? PasswordPwned { get; private set; } + + [JsonPropertyName("phoneVerification")] + public bool PhoneVerification { get; private set; } + + [JsonPropertyName("mfa")] + public bool Mfa { get; private set; } + + [JsonPropertyName("prefs")] + public Preferences Prefs { get; private set; } + + [JsonPropertyName("targets")] + public List Targets { get; private set; } + + [JsonPropertyName("accessedAt")] + public string AccessedAt { get; private set; } + + [JsonPropertyName("impersonator")] + public bool? Impersonator { get; private set; } + + [JsonPropertyName("impersonatorUserId")] + public string? ImpersonatorUserId { get; private set; } + + public Account( + string id, + string createdAt, + string updatedAt, + string name, + string registration, + bool status, + List labels, + string passwordUpdate, + string email, + string phone, + bool emailVerification, + string? emailCanonical, + bool? emailIsFree, + bool? emailIsDisposable, + bool? emailIsCorporate, + bool? emailIsCanonical, + bool? passwordPwned, + bool phoneVerification, + bool mfa, + Preferences prefs, + List targets, + string accessedAt, + bool? impersonator, + string? impersonatorUserId + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Registration = registration; + Status = status; + Labels = labels; + PasswordUpdate = passwordUpdate; + Email = email; + Phone = phone; + EmailVerification = emailVerification; + EmailCanonical = emailCanonical; + EmailIsFree = emailIsFree; + EmailIsDisposable = emailIsDisposable; + EmailIsCorporate = emailIsCorporate; + EmailIsCanonical = emailIsCanonical; + PasswordPwned = passwordPwned; + PhoneVerification = phoneVerification; + Mfa = mfa; + Prefs = prefs; + Targets = targets; + AccessedAt = accessedAt; + Impersonator = impersonator; + ImpersonatorUserId = impersonatorUserId; + } + + public static Account From(Dictionary map) => new Account( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + registration: map["registration"].ToString(), + status: (bool)map["status"], + labels: map["labels"].ConvertToList(), + passwordUpdate: map["passwordUpdate"].ToString(), + email: map["email"].ToString(), + phone: map["phone"].ToString(), + emailVerification: (bool)map["emailVerification"], + emailCanonical: map.TryGetValue("emailCanonical", out var emailCanonical) ? emailCanonical?.ToString() : null, + emailIsFree: map.TryGetValue("emailIsFree", out var boolRaw13) && boolRaw13 != null + ? (bool?)boolRaw13 + : null, + emailIsDisposable: map.TryGetValue("emailIsDisposable", out var boolRaw14) && boolRaw14 != null + ? (bool?)boolRaw14 + : null, + emailIsCorporate: map.TryGetValue("emailIsCorporate", out var boolRaw15) && boolRaw15 != null + ? (bool?)boolRaw15 + : null, + emailIsCanonical: map.TryGetValue("emailIsCanonical", out var boolRaw16) && boolRaw16 != null + ? (bool?)boolRaw16 + : null, + passwordPwned: map.TryGetValue("passwordPwned", out var boolRaw17) && boolRaw17 != null + ? (bool?)boolRaw17 + : null, + phoneVerification: (bool)map["phoneVerification"], + mfa: (bool)map["mfa"], + prefs: Appwrite.Models.Preferences.From(map: map["prefs"] is JsonElement jsonObj20 ? jsonObj20.Deserialize>()! : (Dictionary)map["prefs"]), + targets: map["targets"].ConvertToList>().Select(it => Appwrite.Models.Target.From(map: it)).ToList(), + accessedAt: map["accessedAt"].ToString(), + impersonator: map.TryGetValue("impersonator", out var boolRaw23) && boolRaw23 != null + ? (bool?)boolRaw23 + : null, + impersonatorUserId: map.TryGetValue("impersonatorUserId", out var impersonatorUserId) ? impersonatorUserId?.ToString() : null + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "registration", Registration }, + { "status", Status }, + { "labels", Labels }, + { "passwordUpdate", PasswordUpdate }, + { "email", Email }, + { "phone", Phone }, + { "emailVerification", EmailVerification }, + { "emailCanonical", EmailCanonical }, + { "emailIsFree", EmailIsFree }, + { "emailIsDisposable", EmailIsDisposable }, + { "emailIsCorporate", EmailIsCorporate }, + { "emailIsCanonical", EmailIsCanonical }, + { "passwordPwned", PasswordPwned }, + { "phoneVerification", PhoneVerification }, + { "mfa", Mfa }, + { "prefs", Prefs?.ToMap() }, + { "targets", Targets?.Select(it => it.ToMap()).ToList() }, + { "accessedAt", AccessedAt }, + { "impersonator", Impersonator }, + { "impersonatorUserId", ImpersonatorUserId } + }; + } +} diff --git a/Appwrite/Models/BillingPlan.cs b/Appwrite/Models/BillingPlan.cs index 5733c6a5..13fe6157 100644 --- a/Appwrite/Models/BillingPlan.cs +++ b/Appwrite/Models/BillingPlan.cs @@ -50,6 +50,9 @@ public class BillingPlan [JsonPropertyName("wafRules")] public long WafRules { get; private set; } + [JsonPropertyName("environments")] + public long? Environments { get; private set; } + [JsonPropertyName("projects")] public long Projects { get; private set; } @@ -152,6 +155,9 @@ public class BillingPlan [JsonPropertyName("requiresBillingAddress")] public bool RequiresBillingAddress { get; private set; } + [JsonPropertyName("eligibleCountries")] + public List? EligibleCountries { get; private set; } + [JsonPropertyName("isAvailable")] public bool IsAvailable { get; private set; } @@ -303,7 +309,9 @@ public BillingPlan( Appwrite.Enums.BillingPlanGroup @group, Program? program, double databaseComputeCredit, - BillingPlanDedicatedDatabaseLimits? dedicatedDatabases + BillingPlanDedicatedDatabaseLimits? dedicatedDatabases, + long? environments = null, + List? eligibleCountries = null ) { Id = id; @@ -319,6 +327,7 @@ public BillingPlan( Members = members; Webhooks = webhooks; WafRules = wafRules; + Environments = environments; Projects = projects; Platforms = platforms; Users = users; @@ -353,6 +362,7 @@ public BillingPlan( EmailBranding = emailBranding; RequiresPaymentMethod = requiresPaymentMethod; RequiresBillingAddress = requiresBillingAddress; + EligibleCountries = eligibleCountries; IsAvailable = isAvailable; SelfService = selfService; PremiumSupport = premiumSupport; @@ -472,7 +482,13 @@ public BillingPlan( databaseComputeCredit: Convert.ToDouble(map["databaseComputeCredit"]), dedicatedDatabases: map.TryGetValue("dedicatedDatabases", out var objectRaw73) && objectRaw73 != null ? Appwrite.Models.BillingPlanDedicatedDatabaseLimits.From(map: objectRaw73 is JsonElement jsonObj73 ? jsonObj73.Deserialize>()! : (Dictionary)objectRaw73) - : null + : null, + environments: map.TryGetValue("environments", out var numberRaw14Added) && numberRaw14Added != null + ? Convert.ToInt64(numberRaw14Added) + : null, + eligibleCountries: map.TryGetValue("eligibleCountries", out var arrayRaw49Added) && arrayRaw49Added != null + ? arrayRaw49Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -490,6 +506,7 @@ public BillingPlan( { "members", Members }, { "webhooks", Webhooks }, { "wafRules", WafRules }, + { "environments", Environments }, { "projects", Projects }, { "platforms", Platforms }, { "users", Users }, @@ -524,6 +541,7 @@ public BillingPlan( { "emailBranding", EmailBranding }, { "requiresPaymentMethod", RequiresPaymentMethod }, { "requiresBillingAddress", RequiresBillingAddress }, + { "eligibleCountries", EligibleCountries }, { "isAvailable", IsAvailable }, { "selfService", SelfService }, { "premiumSupport", PremiumSupport }, diff --git a/Appwrite/Models/DedicatedDatabase.cs b/Appwrite/Models/DedicatedDatabase.cs index 132340b4..2962bc59 100644 --- a/Appwrite/Models/DedicatedDatabase.cs +++ b/Appwrite/Models/DedicatedDatabase.cs @@ -89,6 +89,15 @@ public class DedicatedDatabase [JsonPropertyName("storage")] public long Storage { get; private set; } + [JsonPropertyName("storageStatus")] + public string? StorageStatus { get; private set; } + + [JsonPropertyName("storageTargetGb")] + public long? StorageTargetGb { get; private set; } + + [JsonPropertyName("storageResizeStartedAt")] + public string? StorageResizeStartedAt { get; private set; } + [JsonPropertyName("storageClass")] public string StorageClass { get; private set; } @@ -207,7 +216,10 @@ public DedicatedDatabase( long sqlApiMaxRows, long sqlApiMaxBytes, long sqlApiTimeoutSeconds, - string error + string error, + string? storageStatus = null, + long? storageTargetGb = null, + string? storageResizeStartedAt = null ) { Id = id; @@ -236,6 +248,9 @@ string error Cpu = cpu; Memory = memory; Storage = storage; + StorageStatus = storageStatus; + StorageTargetGb = storageTargetGb; + StorageResizeStartedAt = storageResizeStartedAt; StorageClass = storageClass; StorageMaxGb = storageMaxGb; NodePool = nodePool; @@ -310,7 +325,12 @@ string error sqlApiMaxRows: Convert.ToInt64(map["sqlApiMaxRows"]), sqlApiMaxBytes: Convert.ToInt64(map["sqlApiMaxBytes"]), sqlApiTimeoutSeconds: Convert.ToInt64(map["sqlApiTimeoutSeconds"]), - error: map["error"].ToString() + error: map["error"].ToString(), + storageStatus: map.TryGetValue("storageStatus", out var storageStatus) ? storageStatus?.ToString() : null, + storageTargetGb: map.TryGetValue("storageTargetGb", out var numberRaw28Added) && numberRaw28Added != null + ? Convert.ToInt64(numberRaw28Added) + : null, + storageResizeStartedAt: map.TryGetValue("storageResizeStartedAt", out var storageResizeStartedAt) ? storageResizeStartedAt?.ToString() : null ); public Dictionary ToMap() => new Dictionary() @@ -341,6 +361,9 @@ string error { "cpu", Cpu }, { "memory", Memory }, { "storage", Storage }, + { "storageStatus", StorageStatus }, + { "storageTargetGb", StorageTargetGb }, + { "storageResizeStartedAt", StorageResizeStartedAt }, { "storageClass", StorageClass }, { "storageMaxGb", StorageMaxGb }, { "nodePool", NodePool }, diff --git a/Appwrite/Models/DedicatedDatabaseSpecification.cs b/Appwrite/Models/DedicatedDatabaseSpecification.cs index 0b815194..1f435483 100644 --- a/Appwrite/Models/DedicatedDatabaseSpecification.cs +++ b/Appwrite/Models/DedicatedDatabaseSpecification.cs @@ -20,6 +20,18 @@ public class DedicatedDatabaseSpecification [JsonPropertyName("price")] public double Price { get; private set; } + [JsonPropertyName("storageOverageRate")] + public double? StorageOverageRate { get; private set; } + + [JsonPropertyName("bandwidthOverageRate")] + public double? BandwidthOverageRate { get; private set; } + + [JsonPropertyName("replicaRate")] + public double? ReplicaRate { get; private set; } + + [JsonPropertyName("pitrRate")] + public double? PitrRate { get; private set; } + [JsonPropertyName("cpu")] public long Cpu { get; private set; } @@ -47,12 +59,20 @@ public DedicatedDatabaseSpecification( long maxConnections, long includedStorage, long includedBandwidth, - bool enabled + bool enabled, + double? storageOverageRate = null, + double? bandwidthOverageRate = null, + double? replicaRate = null, + double? pitrRate = null ) { Slug = slug; Name = name; Price = price; + StorageOverageRate = storageOverageRate; + BandwidthOverageRate = bandwidthOverageRate; + ReplicaRate = replicaRate; + PitrRate = pitrRate; Cpu = cpu; Memory = memory; MaxConnections = maxConnections; @@ -70,7 +90,19 @@ bool enabled maxConnections: Convert.ToInt64(map["maxConnections"]), includedStorage: Convert.ToInt64(map["includedStorage"]), includedBandwidth: Convert.ToInt64(map["includedBandwidth"]), - enabled: (bool)map["enabled"] + enabled: (bool)map["enabled"], + storageOverageRate: map.TryGetValue("storageOverageRate", out var numberRaw4Added) && numberRaw4Added != null + ? Convert.ToDouble(numberRaw4Added) + : null, + bandwidthOverageRate: map.TryGetValue("bandwidthOverageRate", out var numberRaw5Added) && numberRaw5Added != null + ? Convert.ToDouble(numberRaw5Added) + : null, + replicaRate: map.TryGetValue("replicaRate", out var numberRaw6Added) && numberRaw6Added != null + ? Convert.ToDouble(numberRaw6Added) + : null, + pitrRate: map.TryGetValue("pitrRate", out var numberRaw7Added) && numberRaw7Added != null + ? Convert.ToDouble(numberRaw7Added) + : null ); public Dictionary ToMap() => new Dictionary() @@ -78,6 +110,10 @@ bool enabled { "slug", Slug }, { "name", Name }, { "price", Price }, + { "storageOverageRate", StorageOverageRate }, + { "bandwidthOverageRate", BandwidthOverageRate }, + { "replicaRate", ReplicaRate }, + { "pitrRate", PitrRate }, { "cpu", Cpu }, { "memory", Memory }, { "maxConnections", MaxConnections }, diff --git a/Appwrite/Models/DnsRecord.cs b/Appwrite/Models/DnsRecord.cs new file mode 100644 index 00000000..a4be0520 --- /dev/null +++ b/Appwrite/Models/DnsRecord.cs @@ -0,0 +1,110 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DnsRecord + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("type")] + public string Type { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("value")] + public string Value { get; private set; } + + [JsonPropertyName("ttl")] + public long Ttl { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("lock")] + public bool Lock { get; private set; } + + [JsonPropertyName("weight")] + public long Weight { get; private set; } + + [JsonPropertyName("port")] + public long Port { get; private set; } + + [JsonPropertyName("comment")] + public string Comment { get; private set; } + + public DnsRecord( + string id, + string createdAt, + string updatedAt, + string type, + string name, + string @value, + long ttl, + long priority, + bool @lock, + long weight, + long port, + string comment + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Type = type; + Name = name; + Value = @value; + Ttl = ttl; + Priority = priority; + Lock = @lock; + Weight = weight; + Port = port; + Comment = comment; + } + + public static DnsRecord From(Dictionary map) => new DnsRecord( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + type: map["type"].ToString(), + name: map["name"].ToString(), + @value: map["value"].ToString(), + ttl: Convert.ToInt64(map["ttl"]), + priority: Convert.ToInt64(map["priority"]), + @lock: (bool)map["lock"], + weight: Convert.ToInt64(map["weight"]), + port: Convert.ToInt64(map["port"]), + comment: map["comment"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "type", Type }, + { "name", Name }, + { "value", Value }, + { "ttl", Ttl }, + { "priority", Priority }, + { "lock", Lock }, + { "weight", Weight }, + { "port", Port }, + { "comment", Comment } + }; + } +} diff --git a/Appwrite/Models/DnsRecordsList.cs b/Appwrite/Models/DnsRecordsList.cs new file mode 100644 index 00000000..6924560d --- /dev/null +++ b/Appwrite/Models/DnsRecordsList.cs @@ -0,0 +1,40 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DnsRecordsList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("dnsRecords")] + public List DnsRecords { get; private set; } + + public DnsRecordsList( + long total, + List dnsRecords + ) + { + Total = total; + DnsRecords = dnsRecords; + } + + public static DnsRecordsList From(Dictionary map) => new DnsRecordsList( + total: Convert.ToInt64(map["total"]), + dnsRecords: map["dnsRecords"].ConvertToList>().Select(it => Appwrite.Models.DnsRecord.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "dnsRecords", DnsRecords?.Select(it => it.ToMap()).ToList() } + }; + } +} diff --git a/Appwrite/Models/DomainPrice.cs b/Appwrite/Models/DomainPrice.cs new file mode 100644 index 00000000..13243448 --- /dev/null +++ b/Appwrite/Models/DomainPrice.cs @@ -0,0 +1,86 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DomainPrice + { + [JsonPropertyName("domain")] + public string Domain { get; private set; } + + [JsonPropertyName("tld")] + public string Tld { get; private set; } + + [JsonPropertyName("available")] + public bool Available { get; private set; } + + [JsonPropertyName("price")] + public double? Price { get; private set; } + + [JsonPropertyName("periodYears")] + public long PeriodYears { get; private set; } + + [JsonPropertyName("premium")] + public bool Premium { get; private set; } + + [JsonPropertyName("renewalPrice")] + public double? RenewalPrice { get; private set; } + + [JsonPropertyName("renewalPeriodYears")] + public long RenewalPeriodYears { get; private set; } + + public DomainPrice( + string domain, + string tld, + bool available, + double? price, + long periodYears, + bool premium, + double? renewalPrice, + long renewalPeriodYears + ) + { + Domain = domain; + Tld = tld; + Available = available; + Price = price; + PeriodYears = periodYears; + Premium = premium; + RenewalPrice = renewalPrice; + RenewalPeriodYears = renewalPeriodYears; + } + + public static DomainPrice From(Dictionary map) => new DomainPrice( + domain: map["domain"].ToString(), + tld: map["tld"].ToString(), + available: (bool)map["available"], + price: map.TryGetValue("price", out var numberRaw4) && numberRaw4 != null + ? Convert.ToDouble(numberRaw4) + : null, + periodYears: Convert.ToInt64(map["periodYears"]), + premium: (bool)map["premium"], + renewalPrice: map.TryGetValue("renewalPrice", out var numberRaw7) && numberRaw7 != null + ? Convert.ToDouble(numberRaw7) + : null, + renewalPeriodYears: Convert.ToInt64(map["renewalPeriodYears"]) + ); + + public Dictionary ToMap() => new Dictionary() + { + { "domain", Domain }, + { "tld", Tld }, + { "available", Available }, + { "price", Price }, + { "periodYears", PeriodYears }, + { "premium", Premium }, + { "renewalPrice", RenewalPrice }, + { "renewalPeriodYears", RenewalPeriodYears } + }; + } +} diff --git a/Appwrite/Models/DomainPricesList.cs b/Appwrite/Models/DomainPricesList.cs new file mode 100644 index 00000000..49ec9fff --- /dev/null +++ b/Appwrite/Models/DomainPricesList.cs @@ -0,0 +1,40 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DomainPricesList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("prices")] + public List Prices { get; private set; } + + public DomainPricesList( + long total, + List prices + ) + { + Total = total; + Prices = prices; + } + + public static DomainPricesList From(Dictionary map) => new DomainPricesList( + total: Convert.ToInt64(map["total"]), + prices: map["prices"].ConvertToList>().Select(it => Appwrite.Models.DomainPrice.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "prices", Prices?.Select(it => it.ToMap()).ToList() } + }; + } +} diff --git a/Appwrite/Models/DomainTransferStatus.cs b/Appwrite/Models/DomainTransferStatus.cs new file mode 100644 index 00000000..ff6f4b26 --- /dev/null +++ b/Appwrite/Models/DomainTransferStatus.cs @@ -0,0 +1,47 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DomainTransferStatus + { + [JsonPropertyName("status")] + public Appwrite.Enums.DomainTransferStatusEnum Status { get; private set; } + + [JsonPropertyName("reason")] + public string Reason { get; private set; } + + [JsonPropertyName("timestamp")] + public string Timestamp { get; private set; } + + public DomainTransferStatus( + Appwrite.Enums.DomainTransferStatusEnum status, + string reason, + string timestamp + ) + { + Status = status; + Reason = reason; + Timestamp = timestamp; + } + + public static DomainTransferStatus From(Dictionary map) => new DomainTransferStatus( + status: new Appwrite.Enums.DomainTransferStatusEnum(map["status"].ToString()!), + reason: map.TryGetValue("reason", out var reason) ? reason?.ToString() ?? "" : "", + timestamp: map["timestamp"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "status", Status.Value }, + { "reason", Reason }, + { "timestamp", Timestamp } + }; + } +} diff --git a/Appwrite/Models/DomainsList.cs b/Appwrite/Models/DomainsList.cs new file mode 100644 index 00000000..e4b127c3 --- /dev/null +++ b/Appwrite/Models/DomainsList.cs @@ -0,0 +1,40 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class DomainsList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("domains")] + public List Domains { get; private set; } + + public DomainsList( + long total, + List domains + ) + { + Total = total; + Domains = domains; + } + + public static DomainsList From(Dictionary map) => new DomainsList( + total: Convert.ToInt64(map["total"]), + domains: map["domains"].ConvertToList>().Select(it => Appwrite.Models.XDomain.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "domains", Domains?.Select(it => it.ToMap()).ToList() } + }; + } +} diff --git a/Appwrite/Models/Identity.cs b/Appwrite/Models/Identity.cs index 60851107..eb37f58b 100644 --- a/Appwrite/Models/Identity.cs +++ b/Appwrite/Models/Identity.cs @@ -41,6 +41,9 @@ public class Identity [JsonPropertyName("providerRefreshToken")] public string ProviderRefreshToken { get; private set; } + [JsonPropertyName("providerIdToken")] + public string? ProviderIdToken { get; private set; } + public Identity( string id, string createdAt, @@ -51,7 +54,8 @@ public Identity( string providerEmail, string providerAccessToken, string providerAccessTokenExpiry, - string providerRefreshToken + string providerRefreshToken, + string? providerIdToken = null ) { Id = id; @@ -64,6 +68,7 @@ string providerRefreshToken ProviderAccessToken = providerAccessToken; ProviderAccessTokenExpiry = providerAccessTokenExpiry; ProviderRefreshToken = providerRefreshToken; + ProviderIdToken = providerIdToken; } public static Identity From(Dictionary map) => new Identity( @@ -76,7 +81,8 @@ string providerRefreshToken providerEmail: map["providerEmail"].ToString(), providerAccessToken: map["providerAccessToken"].ToString(), providerAccessTokenExpiry: map["providerAccessTokenExpiry"].ToString(), - providerRefreshToken: map["providerRefreshToken"].ToString() + providerRefreshToken: map["providerRefreshToken"].ToString(), + providerIdToken: map.TryGetValue("providerIdToken", out var providerIdToken) ? providerIdToken?.ToString() : null ); public Dictionary ToMap() => new Dictionary() @@ -90,7 +96,8 @@ string providerRefreshToken { "providerEmail", ProviderEmail }, { "providerAccessToken", ProviderAccessToken }, { "providerAccessTokenExpiry", ProviderAccessTokenExpiry }, - { "providerRefreshToken", ProviderRefreshToken } + { "providerRefreshToken", ProviderRefreshToken }, + { "providerIdToken", ProviderIdToken } }; } } diff --git a/Appwrite/Models/OAuth2Apple.cs b/Appwrite/Models/OAuth2Apple.cs index 45e51372..dc0a5486 100644 --- a/Appwrite/Models/OAuth2Apple.cs +++ b/Appwrite/Models/OAuth2Apple.cs @@ -29,13 +29,21 @@ public class OAuth2Apple [JsonPropertyName("p8File")] public string P8File { get; private set; } + [JsonPropertyName("nativeEnabled")] + public bool? NativeEnabled { get; private set; } + + [JsonPropertyName("nativeClientIds")] + public List? NativeClientIds { get; private set; } + public OAuth2Apple( string id, bool enabled, string serviceId, string keyId, string teamId, - string p8File + string p8File, + bool? nativeEnabled = null, + List? nativeClientIds = null ) { Id = id; @@ -44,6 +52,8 @@ string p8File KeyId = keyId; TeamId = teamId; P8File = p8File; + NativeEnabled = nativeEnabled; + NativeClientIds = nativeClientIds; } public static OAuth2Apple From(Dictionary map) => new OAuth2Apple( @@ -52,7 +62,13 @@ string p8File serviceId: map["serviceId"].ToString(), keyId: map["keyId"].ToString(), teamId: map["teamId"].ToString(), - p8File: map["p8File"].ToString() + p8File: map["p8File"].ToString(), + nativeEnabled: map.TryGetValue("nativeEnabled", out var boolRaw7Added) && boolRaw7Added != null + ? (bool?)boolRaw7Added + : null, + nativeClientIds: map.TryGetValue("nativeClientIds", out var arrayRaw8Added) && arrayRaw8Added != null + ? arrayRaw8Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -62,7 +78,9 @@ string p8File { "serviceId", ServiceId }, { "keyId", KeyId }, { "teamId", TeamId }, - { "p8File", P8File } + { "p8File", P8File }, + { "nativeEnabled", NativeEnabled }, + { "nativeClientIds", NativeClientIds } }; } } diff --git a/Appwrite/Models/OAuth2Auth0.cs b/Appwrite/Models/OAuth2Auth0.cs index 47a28a1a..add8ac5b 100644 --- a/Appwrite/Models/OAuth2Auth0.cs +++ b/Appwrite/Models/OAuth2Auth0.cs @@ -23,6 +23,9 @@ public class OAuth2Auth0 [JsonPropertyName("clientSecret")] public string ClientSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + [JsonPropertyName("endpoint")] public string Endpoint { get; private set; } @@ -31,13 +34,15 @@ public OAuth2Auth0( bool enabled, string clientId, string clientSecret, - string endpoint + string endpoint, + List? prompt = null ) { Id = id; Enabled = enabled; ClientId = clientId; ClientSecret = clientSecret; + Prompt = prompt; Endpoint = endpoint; } @@ -46,7 +51,10 @@ string endpoint enabled: (bool)map["enabled"], clientId: map["clientId"].ToString(), clientSecret: map["clientSecret"].ToString(), - endpoint: map["endpoint"].ToString() + endpoint: map["endpoint"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -55,6 +63,7 @@ string endpoint { "enabled", Enabled }, { "clientId", ClientId }, { "clientSecret", ClientSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() }, { "endpoint", Endpoint } }; } diff --git a/Appwrite/Models/OAuth2Discord.cs b/Appwrite/Models/OAuth2Discord.cs index d0794d96..eb35fdb2 100644 --- a/Appwrite/Models/OAuth2Discord.cs +++ b/Appwrite/Models/OAuth2Discord.cs @@ -23,24 +23,32 @@ public class OAuth2Discord [JsonPropertyName("clientSecret")] public string ClientSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + public OAuth2Discord( string id, bool enabled, string clientId, - string clientSecret + string clientSecret, + List? prompt = null ) { Id = id; Enabled = enabled; ClientId = clientId; ClientSecret = clientSecret; + Prompt = prompt; } public static OAuth2Discord From(Dictionary map) => new OAuth2Discord( id: map["$id"].ToString(), enabled: (bool)map["enabled"], clientId: map["clientId"].ToString(), - clientSecret: map["clientSecret"].ToString() + clientSecret: map["clientSecret"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -48,7 +56,8 @@ string clientSecret { "$id", Id }, { "enabled", Enabled }, { "clientId", ClientId }, - { "clientSecret", ClientSecret } + { "clientSecret", ClientSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() } }; } } diff --git a/Appwrite/Models/OAuth2Github.cs b/Appwrite/Models/OAuth2Github.cs index 0b050e1e..4b556616 100644 --- a/Appwrite/Models/OAuth2Github.cs +++ b/Appwrite/Models/OAuth2Github.cs @@ -23,24 +23,32 @@ public class OAuth2Github [JsonPropertyName("clientSecret")] public string ClientSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + public OAuth2Github( string id, bool enabled, string clientId, - string clientSecret + string clientSecret, + List? prompt = null ) { Id = id; Enabled = enabled; ClientId = clientId; ClientSecret = clientSecret; + Prompt = prompt; } public static OAuth2Github From(Dictionary map) => new OAuth2Github( id: map["$id"].ToString(), enabled: (bool)map["enabled"], clientId: map["clientId"].ToString(), - clientSecret: map["clientSecret"].ToString() + clientSecret: map["clientSecret"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -48,7 +56,8 @@ string clientSecret { "$id", Id }, { "enabled", Enabled }, { "clientId", ClientId }, - { "clientSecret", ClientSecret } + { "clientSecret", ClientSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() } }; } } diff --git a/Appwrite/Models/OAuth2Google.cs b/Appwrite/Models/OAuth2Google.cs index cb8118da..dd07b454 100644 --- a/Appwrite/Models/OAuth2Google.cs +++ b/Appwrite/Models/OAuth2Google.cs @@ -26,12 +26,20 @@ public class OAuth2Google [JsonPropertyName("prompt")] public List Prompt { get; private set; } + [JsonPropertyName("nativeEnabled")] + public bool? NativeEnabled { get; private set; } + + [JsonPropertyName("nativeClientIds")] + public List? NativeClientIds { get; private set; } + public OAuth2Google( string id, bool enabled, string clientId, string clientSecret, - List prompt + List prompt, + bool? nativeEnabled = null, + List? nativeClientIds = null ) { Id = id; @@ -39,6 +47,8 @@ public OAuth2Google( ClientId = clientId; ClientSecret = clientSecret; Prompt = prompt; + NativeEnabled = nativeEnabled; + NativeClientIds = nativeClientIds; } public static OAuth2Google From(Dictionary map) => new OAuth2Google( @@ -46,7 +56,13 @@ public OAuth2Google( enabled: (bool)map["enabled"], clientId: map["clientId"].ToString(), clientSecret: map["clientSecret"].ToString(), - prompt: map["prompt"].ConvertToList() + prompt: map["prompt"].ConvertToList(), + nativeEnabled: map.TryGetValue("nativeEnabled", out var boolRaw6Added) && boolRaw6Added != null + ? (bool?)boolRaw6Added + : null, + nativeClientIds: map.TryGetValue("nativeClientIds", out var arrayRaw7Added) && arrayRaw7Added != null + ? arrayRaw7Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -55,7 +71,9 @@ public OAuth2Google( { "enabled", Enabled }, { "clientId", ClientId }, { "clientSecret", ClientSecret }, - { "prompt", Prompt.Select(it => it.Value).ToList() } + { "prompt", Prompt.Select(it => it.Value).ToList() }, + { "nativeEnabled", NativeEnabled }, + { "nativeClientIds", NativeClientIds } }; } } diff --git a/Appwrite/Models/OAuth2Kakao.cs b/Appwrite/Models/OAuth2Kakao.cs new file mode 100644 index 00000000..81e970ab --- /dev/null +++ b/Appwrite/Models/OAuth2Kakao.cs @@ -0,0 +1,61 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class OAuth2Kakao + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("clientId")] + public string ClientId { get; private set; } + + [JsonPropertyName("clientSecret")] + public string ClientSecret { get; private set; } + + [JsonPropertyName("prompt")] + public List Prompt { get; private set; } + + public OAuth2Kakao( + string id, + bool enabled, + string clientId, + string clientSecret, + List prompt + ) + { + Id = id; + Enabled = enabled; + ClientId = clientId; + ClientSecret = clientSecret; + Prompt = prompt; + } + + public static OAuth2Kakao From(Dictionary map) => new OAuth2Kakao( + id: map["$id"].ToString(), + enabled: (bool)map["enabled"], + clientId: map["clientId"].ToString(), + clientSecret: map["clientSecret"].ToString(), + prompt: map["prompt"].ConvertToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "enabled", Enabled }, + { "clientId", ClientId }, + { "clientSecret", ClientSecret }, + { "prompt", Prompt.Select(it => it.Value).ToList() } + }; + } +} diff --git a/Appwrite/Models/OAuth2Microsoft.cs b/Appwrite/Models/OAuth2Microsoft.cs index e550e046..dd93becb 100644 --- a/Appwrite/Models/OAuth2Microsoft.cs +++ b/Appwrite/Models/OAuth2Microsoft.cs @@ -23,6 +23,9 @@ public class OAuth2Microsoft [JsonPropertyName("applicationSecret")] public string ApplicationSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + [JsonPropertyName("tenant")] public string Tenant { get; private set; } @@ -31,13 +34,15 @@ public OAuth2Microsoft( bool enabled, string applicationId, string applicationSecret, - string tenant + string tenant, + List? prompt = null ) { Id = id; Enabled = enabled; ApplicationId = applicationId; ApplicationSecret = applicationSecret; + Prompt = prompt; Tenant = tenant; } @@ -46,7 +51,10 @@ string tenant enabled: (bool)map["enabled"], applicationId: map["applicationId"].ToString(), applicationSecret: map["applicationSecret"].ToString(), - tenant: map["tenant"].ToString() + tenant: map["tenant"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -55,6 +63,7 @@ string tenant { "enabled", Enabled }, { "applicationId", ApplicationId }, { "applicationSecret", ApplicationSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() }, { "tenant", Tenant } }; } diff --git a/Appwrite/Models/OAuth2Okta.cs b/Appwrite/Models/OAuth2Okta.cs index 97f4b3b1..833be4c3 100644 --- a/Appwrite/Models/OAuth2Okta.cs +++ b/Appwrite/Models/OAuth2Okta.cs @@ -23,6 +23,9 @@ public class OAuth2Okta [JsonPropertyName("clientSecret")] public string ClientSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + [JsonPropertyName("domain")] public string Domain { get; private set; } @@ -35,13 +38,15 @@ public OAuth2Okta( string clientId, string clientSecret, string domain, - string authorizationServerId + string authorizationServerId, + List? prompt = null ) { Id = id; Enabled = enabled; ClientId = clientId; ClientSecret = clientSecret; + Prompt = prompt; Domain = domain; AuthorizationServerId = authorizationServerId; } @@ -52,7 +57,10 @@ string authorizationServerId clientId: map["clientId"].ToString(), clientSecret: map["clientSecret"].ToString(), domain: map["domain"].ToString(), - authorizationServerId: map["authorizationServerId"].ToString() + authorizationServerId: map["authorizationServerId"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -61,6 +69,7 @@ string authorizationServerId { "enabled", Enabled }, { "clientId", ClientId }, { "clientSecret", ClientSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() }, { "domain", Domain }, { "authorizationServerId", AuthorizationServerId } }; diff --git a/Appwrite/Models/OAuth2Salesforce.cs b/Appwrite/Models/OAuth2Salesforce.cs index f7e87976..d58bfe3e 100644 --- a/Appwrite/Models/OAuth2Salesforce.cs +++ b/Appwrite/Models/OAuth2Salesforce.cs @@ -23,24 +23,32 @@ public class OAuth2Salesforce [JsonPropertyName("customerSecret")] public string CustomerSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + public OAuth2Salesforce( string id, bool enabled, string customerKey, - string customerSecret + string customerSecret, + List? prompt = null ) { Id = id; Enabled = enabled; CustomerKey = customerKey; CustomerSecret = customerSecret; + Prompt = prompt; } public static OAuth2Salesforce From(Dictionary map) => new OAuth2Salesforce( id: map["$id"].ToString(), enabled: (bool)map["enabled"], customerKey: map["customerKey"].ToString(), - customerSecret: map["customerSecret"].ToString() + customerSecret: map["customerSecret"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -48,7 +56,8 @@ string customerSecret { "$id", Id }, { "enabled", Enabled }, { "customerKey", CustomerKey }, - { "customerSecret", CustomerSecret } + { "customerSecret", CustomerSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() } }; } } diff --git a/Appwrite/Models/OAuth2TikTok.cs b/Appwrite/Models/OAuth2TikTok.cs new file mode 100644 index 00000000..4da150ed --- /dev/null +++ b/Appwrite/Models/OAuth2TikTok.cs @@ -0,0 +1,54 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class OAuth2TikTok + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("clientId")] + public string ClientId { get; private set; } + + [JsonPropertyName("clientSecret")] + public string ClientSecret { get; private set; } + + public OAuth2TikTok( + string id, + bool enabled, + string clientId, + string clientSecret + ) + { + Id = id; + Enabled = enabled; + ClientId = clientId; + ClientSecret = clientSecret; + } + + public static OAuth2TikTok From(Dictionary map) => new OAuth2TikTok( + id: map["$id"].ToString(), + enabled: (bool)map["enabled"], + clientId: map["clientId"].ToString(), + clientSecret: map["clientSecret"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "enabled", Enabled }, + { "clientId", ClientId }, + { "clientSecret", ClientSecret } + }; + } +} diff --git a/Appwrite/Models/OAuth2Webflow.cs b/Appwrite/Models/OAuth2Webflow.cs new file mode 100644 index 00000000..578e7104 --- /dev/null +++ b/Appwrite/Models/OAuth2Webflow.cs @@ -0,0 +1,54 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class OAuth2Webflow + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("clientId")] + public string ClientId { get; private set; } + + [JsonPropertyName("clientSecret")] + public string ClientSecret { get; private set; } + + public OAuth2Webflow( + string id, + bool enabled, + string clientId, + string clientSecret + ) + { + Id = id; + Enabled = enabled; + ClientId = clientId; + ClientSecret = clientSecret; + } + + public static OAuth2Webflow From(Dictionary map) => new OAuth2Webflow( + id: map["$id"].ToString(), + enabled: (bool)map["enabled"], + clientId: map["clientId"].ToString(), + clientSecret: map["clientSecret"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "enabled", Enabled }, + { "clientId", ClientId }, + { "clientSecret", ClientSecret } + }; + } +} diff --git a/Appwrite/Models/OAuth2Zoho.cs b/Appwrite/Models/OAuth2Zoho.cs index 97f981ba..e5f03cb5 100644 --- a/Appwrite/Models/OAuth2Zoho.cs +++ b/Appwrite/Models/OAuth2Zoho.cs @@ -23,24 +23,32 @@ public class OAuth2Zoho [JsonPropertyName("clientSecret")] public string ClientSecret { get; private set; } + [JsonPropertyName("prompt")] + public List? Prompt { get; private set; } + public OAuth2Zoho( string id, bool enabled, string clientId, - string clientSecret + string clientSecret, + List? prompt = null ) { Id = id; Enabled = enabled; ClientId = clientId; ClientSecret = clientSecret; + Prompt = prompt; } public static OAuth2Zoho From(Dictionary map) => new OAuth2Zoho( id: map["$id"].ToString(), enabled: (bool)map["enabled"], clientId: map["clientId"].ToString(), - clientSecret: map["clientSecret"].ToString() + clientSecret: map["clientSecret"].ToString(), + prompt: map.TryGetValue("prompt", out var arrayRaw5Added) && arrayRaw5Added != null + ? arrayRaw5Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -48,7 +56,8 @@ string clientSecret { "$id", Id }, { "enabled", Enabled }, { "clientId", ClientId }, - { "clientSecret", ClientSecret } + { "clientSecret", ClientSecret }, + { "prompt", Prompt?.Select(it => it.Value).ToList() } }; } } diff --git a/Appwrite/Models/Oauth2Introspection.cs b/Appwrite/Models/Oauth2Introspection.cs new file mode 100644 index 00000000..72c3976b --- /dev/null +++ b/Appwrite/Models/Oauth2Introspection.cs @@ -0,0 +1,118 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class Oauth2Introspection + { + [JsonPropertyName("active")] + public bool Active { get; private set; } + + [JsonPropertyName("token_use")] + public string? TokenUse { get; private set; } + + [JsonPropertyName("token_type")] + public string? TokenType { get; private set; } + + [JsonPropertyName("scope")] + public string? Scope { get; private set; } + + [JsonPropertyName("client_id")] + public string? ClientId { get; private set; } + + [JsonPropertyName("sub")] + public string? Sub { get; private set; } + + [JsonPropertyName("aud")] + public List? Aud { get; private set; } + + [JsonPropertyName("iss")] + public string? Iss { get; private set; } + + [JsonPropertyName("exp")] + public long? Exp { get; private set; } + + [JsonPropertyName("iat")] + public long? Iat { get; private set; } + + [JsonPropertyName("jti")] + public string? Jti { get; private set; } + + [JsonPropertyName("authorization_details")] + public List? AuthorizationDetails { get; private set; } + + public Oauth2Introspection( + bool active, + string? tokenUse, + string? tokenType, + string? scope, + string? clientId, + string? sub, + List? aud, + string? iss, + long? exp, + long? iat, + string? jti, + List? authorizationDetails + ) + { + Active = active; + TokenUse = tokenUse; + TokenType = tokenType; + Scope = scope; + ClientId = clientId; + Sub = sub; + Aud = aud; + Iss = iss; + Exp = exp; + Iat = iat; + Jti = jti; + AuthorizationDetails = authorizationDetails; + } + + public static Oauth2Introspection From(Dictionary map) => new Oauth2Introspection( + active: (bool)map["active"], + tokenUse: map.TryGetValue("token_use", out var tokenUse) ? tokenUse?.ToString() : null, + tokenType: map.TryGetValue("token_type", out var tokenType) ? tokenType?.ToString() : null, + scope: map.TryGetValue("scope", out var scope) ? scope?.ToString() : null, + clientId: map.TryGetValue("client_id", out var clientId) ? clientId?.ToString() : null, + sub: map.TryGetValue("sub", out var sub) ? sub?.ToString() : null, + aud: map.TryGetValue("aud", out var arrayRaw7) && arrayRaw7 != null + ? arrayRaw7.ConvertToList() + : null, + iss: map.TryGetValue("iss", out var iss) ? iss?.ToString() : null, + exp: map.TryGetValue("exp", out var numberRaw9) && numberRaw9 != null + ? Convert.ToInt64(numberRaw9) + : null, + iat: map.TryGetValue("iat", out var numberRaw10) && numberRaw10 != null + ? Convert.ToInt64(numberRaw10) + : null, + jti: map.TryGetValue("jti", out var jti) ? jti?.ToString() : null, + authorizationDetails: map.TryGetValue("authorization_details", out var arrayRaw12) && arrayRaw12 != null + ? arrayRaw12.ConvertToList() + : null + ); + + public Dictionary ToMap() => new Dictionary() + { + { "active", Active }, + { "token_use", TokenUse }, + { "token_type", TokenType }, + { "scope", Scope }, + { "client_id", ClientId }, + { "sub", Sub }, + { "aud", Aud }, + { "iss", Iss }, + { "exp", Exp }, + { "iat", Iat }, + { "jti", Jti }, + { "authorization_details", AuthorizationDetails } + }; + } +} diff --git a/Appwrite/Models/PlatformAndroid.cs b/Appwrite/Models/PlatformAndroid.cs index e671a8c7..ab6c1896 100644 --- a/Appwrite/Models/PlatformAndroid.cs +++ b/Appwrite/Models/PlatformAndroid.cs @@ -29,13 +29,17 @@ public class PlatformAndroid [JsonPropertyName("applicationId")] public string ApplicationId { get; private set; } + [JsonPropertyName("fingerprints")] + public List? Fingerprints { get; private set; } + public PlatformAndroid( string id, string createdAt, string updatedAt, string name, Appwrite.Enums.PlatformType type, - string applicationId + string applicationId, + List? fingerprints = null ) { Id = id; @@ -44,6 +48,7 @@ string applicationId Name = name; Type = type; ApplicationId = applicationId; + Fingerprints = fingerprints; } public static PlatformAndroid From(Dictionary map) => new PlatformAndroid( @@ -52,7 +57,10 @@ string applicationId updatedAt: map["$updatedAt"].ToString(), name: map["name"].ToString(), type: new Appwrite.Enums.PlatformType(map["type"].ToString()!), - applicationId: map["applicationId"].ToString() + applicationId: map["applicationId"].ToString(), + fingerprints: map.TryGetValue("fingerprints", out var arrayRaw7Added) && arrayRaw7Added != null + ? arrayRaw7Added.ConvertToList() + : null ); public Dictionary ToMap() => new Dictionary() @@ -62,7 +70,8 @@ string applicationId { "$updatedAt", UpdatedAt }, { "name", Name }, { "type", Type.Value }, - { "applicationId", ApplicationId } + { "applicationId", ApplicationId }, + { "fingerprints", Fingerprints } }; } } diff --git a/Appwrite/Models/PolicyPasswordPwned.cs b/Appwrite/Models/PolicyPasswordPwned.cs new file mode 100644 index 00000000..9ffdc41f --- /dev/null +++ b/Appwrite/Models/PolicyPasswordPwned.cs @@ -0,0 +1,54 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class PolicyPasswordPwned + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("sessions")] + public bool Sessions { get; private set; } + + [JsonPropertyName("users")] + public bool Users { get; private set; } + + public PolicyPasswordPwned( + string id, + bool enabled, + bool sessions, + bool users + ) + { + Id = id; + Enabled = enabled; + Sessions = sessions; + Users = users; + } + + public static PolicyPasswordPwned From(Dictionary map) => new PolicyPasswordPwned( + id: map["$id"].ToString(), + enabled: (bool)map["enabled"], + sessions: (bool)map["sessions"], + users: (bool)map["users"] + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "enabled", Enabled }, + { "sessions", Sessions }, + { "users", Users } + }; + } +} diff --git a/Appwrite/Models/PolicyPasswordRotation.cs b/Appwrite/Models/PolicyPasswordRotation.cs new file mode 100644 index 00000000..de63c254 --- /dev/null +++ b/Appwrite/Models/PolicyPasswordRotation.cs @@ -0,0 +1,47 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class PolicyPasswordRotation + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("maxAge")] + public long MaxAge { get; private set; } + + public PolicyPasswordRotation( + string id, + bool enabled, + long maxAge + ) + { + Id = id; + Enabled = enabled; + MaxAge = maxAge; + } + + public static PolicyPasswordRotation From(Dictionary map) => new PolicyPasswordRotation( + id: map["$id"].ToString(), + enabled: (bool)map["enabled"], + maxAge: Convert.ToInt64(map["maxAge"]) + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "enabled", Enabled }, + { "maxAge", MaxAge } + }; + } +} diff --git a/Appwrite/Models/Project.cs b/Appwrite/Models/Project.cs index 302fde8f..6cd28a0d 100644 --- a/Appwrite/Models/Project.cs +++ b/Appwrite/Models/Project.cs @@ -95,9 +95,18 @@ public class Project [JsonPropertyName("wafEnabled")] public bool? WafEnabled { get; private set; } + [JsonPropertyName("parentId")] + public string? ParentId { get; private set; } + [JsonPropertyName("billingLimits")] public BillingLimits? BillingLimits { get; private set; } + [JsonPropertyName("firstAccessedAt")] + public string? FirstAccessedAt { get; private set; } + + [JsonPropertyName("mcpAccessedAt")] + public string? McpAccessedAt { get; private set; } + [JsonPropertyName("oAuth2ServerEnabled")] public bool? OAuth2ServerEnabled { get; private set; } @@ -195,7 +204,10 @@ public Project( long? oAuth2ServerUserCodeLength, string? oAuth2ServerUserCodeFormat, long? oAuth2ServerDeviceCodeDuration, - string? oAuth2ServerDiscoveryUrl + string? oAuth2ServerDiscoveryUrl, + string? parentId = null, + string? firstAccessedAt = null, + string? mcpAccessedAt = null ) { Id = id; @@ -226,7 +238,10 @@ public Project( Blocks = blocks; ConsoleAccessedAt = consoleAccessedAt; WafEnabled = wafEnabled; + ParentId = parentId; BillingLimits = billingLimits; + FirstAccessedAt = firstAccessedAt; + McpAccessedAt = mcpAccessedAt; OAuth2ServerEnabled = oAuth2ServerEnabled; OAuth2ServerAuthorizationUrl = oAuth2ServerAuthorizationUrl; OAuth2ServerScopes = oAuth2ServerScopes; @@ -322,7 +337,10 @@ public Project( oAuth2ServerDeviceCodeDuration: map.TryGetValue("oAuth2ServerDeviceCodeDuration", out var numberRaw45) && numberRaw45 != null ? Convert.ToInt64(numberRaw45) : null, - oAuth2ServerDiscoveryUrl: map.TryGetValue("oAuth2ServerDiscoveryUrl", out var oAuth2ServerDiscoveryUrl) ? oAuth2ServerDiscoveryUrl?.ToString() : null + oAuth2ServerDiscoveryUrl: map.TryGetValue("oAuth2ServerDiscoveryUrl", out var oAuth2ServerDiscoveryUrl) ? oAuth2ServerDiscoveryUrl?.ToString() : null, + parentId: map.TryGetValue("parentId", out var parentId) ? parentId?.ToString() : null, + firstAccessedAt: map.TryGetValue("firstAccessedAt", out var firstAccessedAt) ? firstAccessedAt?.ToString() : null, + mcpAccessedAt: map.TryGetValue("mcpAccessedAt", out var mcpAccessedAt) ? mcpAccessedAt?.ToString() : null ); public Dictionary ToMap() => new Dictionary() @@ -355,7 +373,10 @@ public Project( { "blocks", Blocks?.Select(it => it.ToMap()).ToList() }, { "consoleAccessedAt", ConsoleAccessedAt }, { "wafEnabled", WafEnabled }, + { "parentId", ParentId }, { "billingLimits", BillingLimits?.ToMap() }, + { "firstAccessedAt", FirstAccessedAt }, + { "mcpAccessedAt", McpAccessedAt }, { "oAuth2ServerEnabled", OAuth2ServerEnabled }, { "oAuth2ServerAuthorizationUrl", OAuth2ServerAuthorizationUrl }, { "oAuth2ServerScopes", OAuth2ServerScopes }, diff --git a/Appwrite/Models/Topic.cs b/Appwrite/Models/Topic.cs index 11d39499..821048f5 100644 --- a/Appwrite/Models/Topic.cs +++ b/Appwrite/Models/Topic.cs @@ -35,6 +35,12 @@ public class Topic [JsonPropertyName("subscribe")] public List Subscribe { get; private set; } + [JsonPropertyName("qos")] + public long? Qos { get; private set; } + + [JsonPropertyName("expiry")] + public long? Expiry { get; private set; } + public Topic( string id, string createdAt, @@ -43,7 +49,9 @@ public Topic( long emailTotal, long smsTotal, long pushTotal, - List subscribe + List subscribe, + long? qos = null, + long? expiry = null ) { Id = id; @@ -54,6 +62,8 @@ List subscribe SmsTotal = smsTotal; PushTotal = pushTotal; Subscribe = subscribe; + Qos = qos; + Expiry = expiry; } public static Topic From(Dictionary map) => new Topic( @@ -64,7 +74,13 @@ List subscribe emailTotal: Convert.ToInt64(map["emailTotal"]), smsTotal: Convert.ToInt64(map["smsTotal"]), pushTotal: Convert.ToInt64(map["pushTotal"]), - subscribe: map["subscribe"].ConvertToList() + subscribe: map["subscribe"].ConvertToList(), + qos: map.TryGetValue("qos", out var numberRaw9Added) && numberRaw9Added != null + ? Convert.ToInt64(numberRaw9Added) + : null, + expiry: map.TryGetValue("expiry", out var numberRaw10Added) && numberRaw10Added != null + ? Convert.ToInt64(numberRaw10Added) + : null ); public Dictionary ToMap() => new Dictionary() @@ -76,7 +92,9 @@ List subscribe { "emailTotal", EmailTotal }, { "smsTotal", SmsTotal }, { "pushTotal", PushTotal }, - { "subscribe", Subscribe } + { "subscribe", Subscribe }, + { "qos", Qos }, + { "expiry", Expiry } }; } } diff --git a/Appwrite/Models/User.cs b/Appwrite/Models/User.cs index 0d52e34e..865abe1d 100644 --- a/Appwrite/Models/User.cs +++ b/Appwrite/Models/User.cs @@ -68,6 +68,9 @@ public class User [JsonPropertyName("emailIsCanonical")] public bool? EmailIsCanonical { get; private set; } + [JsonPropertyName("passwordPwned")] + public bool? PasswordPwned { get; private set; } + [JsonPropertyName("phoneVerification")] public bool PhoneVerification { get; private set; } @@ -115,7 +118,8 @@ public User( List targets, string accessedAt, bool? impersonator, - string? impersonatorUserId + string? impersonatorUserId, + bool? passwordPwned = null ) { Id = id; @@ -137,6 +141,7 @@ public User( EmailIsDisposable = emailIsDisposable; EmailIsCorporate = emailIsCorporate; EmailIsCanonical = emailIsCanonical; + PasswordPwned = passwordPwned; PhoneVerification = phoneVerification; Mfa = mfa; Prefs = prefs; @@ -182,7 +187,10 @@ public User( impersonator: map.TryGetValue("impersonator", out var boolRaw25) && boolRaw25 != null ? (bool?)boolRaw25 : null, - impersonatorUserId: map.TryGetValue("impersonatorUserId", out var impersonatorUserId) ? impersonatorUserId?.ToString() : null + impersonatorUserId: map.TryGetValue("impersonatorUserId", out var impersonatorUserId) ? impersonatorUserId?.ToString() : null, + passwordPwned: map.TryGetValue("passwordPwned", out var boolRaw20Added) && boolRaw20Added != null + ? (bool?)boolRaw20Added + : null ); public Dictionary ToMap() => new Dictionary() @@ -206,6 +214,7 @@ public User( { "emailIsDisposable", EmailIsDisposable }, { "emailIsCorporate", EmailIsCorporate }, { "emailIsCanonical", EmailIsCanonical }, + { "passwordPwned", PasswordPwned }, { "phoneVerification", PhoneVerification }, { "mfa", Mfa }, { "prefs", Prefs?.ToMap() }, diff --git a/Appwrite/Models/WafRuleBypass.cs b/Appwrite/Models/WafRuleBypass.cs new file mode 100644 index 00000000..1e5ef506 --- /dev/null +++ b/Appwrite/Models/WafRuleBypass.cs @@ -0,0 +1,124 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleBypass + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("description")] + public string Description { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("projectId")] + public string ProjectId { get; private set; } + + [JsonPropertyName("resourceType")] + public string ResourceType { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + [JsonPropertyName("action")] + public Appwrite.Enums.WafRuleAction Action { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("conditions")] + public List Conditions { get; private set; } + + [JsonPropertyName("config")] + public object Config { get; private set; } + + public WafRuleBypass( + string id, + string createdAt, + string updatedAt, + string name, + string description, + string teamId, + string projectId, + string resourceType, + string resourceId, + Appwrite.Enums.WafRuleAction action, + long priority, + bool enabled, + List conditions, + object config + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Description = description; + TeamId = teamId; + ProjectId = projectId; + ResourceType = resourceType; + ResourceId = resourceId; + Action = action; + Priority = priority; + Enabled = enabled; + Conditions = conditions; + Config = config; + } + + public static WafRuleBypass From(Dictionary map) => new WafRuleBypass( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + description: map["description"].ToString(), + teamId: map["teamId"].ToString(), + projectId: map["projectId"].ToString(), + resourceType: map["resourceType"].ToString(), + resourceId: map["resourceId"].ToString(), + action: new Appwrite.Enums.WafRuleAction(map["action"].ToString()!), + priority: Convert.ToInt64(map["priority"]), + enabled: (bool)map["enabled"], + conditions: map["conditions"].ConvertToList(), + config: map["config"] + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "description", Description }, + { "teamId", TeamId }, + { "projectId", ProjectId }, + { "resourceType", ResourceType }, + { "resourceId", ResourceId }, + { "action", Action.Value }, + { "priority", Priority }, + { "enabled", Enabled }, + { "conditions", Conditions }, + { "config", Config } + }; + } +} diff --git a/Appwrite/Models/WafRuleChallenge.cs b/Appwrite/Models/WafRuleChallenge.cs new file mode 100644 index 00000000..441d5616 --- /dev/null +++ b/Appwrite/Models/WafRuleChallenge.cs @@ -0,0 +1,145 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleChallenge + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("description")] + public string Description { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("projectId")] + public string ProjectId { get; private set; } + + [JsonPropertyName("resourceType")] + public string ResourceType { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + [JsonPropertyName("action")] + public Appwrite.Enums.WafRuleAction Action { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("conditions")] + public List Conditions { get; private set; } + + [JsonPropertyName("config")] + public object Config { get; private set; } + + [JsonPropertyName("challengeType")] + public string ChallengeType { get; private set; } + + [JsonPropertyName("difficulty")] + public long Difficulty { get; private set; } + + [JsonPropertyName("ttl")] + public long Ttl { get; private set; } + + public WafRuleChallenge( + string id, + string createdAt, + string updatedAt, + string name, + string description, + string teamId, + string projectId, + string resourceType, + string resourceId, + Appwrite.Enums.WafRuleAction action, + long priority, + bool enabled, + List conditions, + object config, + string challengeType, + long difficulty, + long ttl + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Description = description; + TeamId = teamId; + ProjectId = projectId; + ResourceType = resourceType; + ResourceId = resourceId; + Action = action; + Priority = priority; + Enabled = enabled; + Conditions = conditions; + Config = config; + ChallengeType = challengeType; + Difficulty = difficulty; + Ttl = ttl; + } + + public static WafRuleChallenge From(Dictionary map) => new WafRuleChallenge( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + description: map["description"].ToString(), + teamId: map["teamId"].ToString(), + projectId: map["projectId"].ToString(), + resourceType: map["resourceType"].ToString(), + resourceId: map["resourceId"].ToString(), + action: new Appwrite.Enums.WafRuleAction(map["action"].ToString()!), + priority: Convert.ToInt64(map["priority"]), + enabled: (bool)map["enabled"], + conditions: map["conditions"].ConvertToList(), + config: map["config"], + challengeType: map["challengeType"].ToString(), + difficulty: Convert.ToInt64(map["difficulty"]), + ttl: Convert.ToInt64(map["ttl"]) + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "description", Description }, + { "teamId", TeamId }, + { "projectId", ProjectId }, + { "resourceType", ResourceType }, + { "resourceId", ResourceId }, + { "action", Action.Value }, + { "priority", Priority }, + { "enabled", Enabled }, + { "conditions", Conditions }, + { "config", Config }, + { "challengeType", ChallengeType }, + { "difficulty", Difficulty }, + { "ttl", Ttl } + }; + } +} diff --git a/Appwrite/Models/WafRuleDeny.cs b/Appwrite/Models/WafRuleDeny.cs new file mode 100644 index 00000000..c809d203 --- /dev/null +++ b/Appwrite/Models/WafRuleDeny.cs @@ -0,0 +1,124 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleDeny + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("description")] + public string Description { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("projectId")] + public string ProjectId { get; private set; } + + [JsonPropertyName("resourceType")] + public string ResourceType { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + [JsonPropertyName("action")] + public Appwrite.Enums.WafRuleAction Action { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("conditions")] + public List Conditions { get; private set; } + + [JsonPropertyName("config")] + public object Config { get; private set; } + + public WafRuleDeny( + string id, + string createdAt, + string updatedAt, + string name, + string description, + string teamId, + string projectId, + string resourceType, + string resourceId, + Appwrite.Enums.WafRuleAction action, + long priority, + bool enabled, + List conditions, + object config + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Description = description; + TeamId = teamId; + ProjectId = projectId; + ResourceType = resourceType; + ResourceId = resourceId; + Action = action; + Priority = priority; + Enabled = enabled; + Conditions = conditions; + Config = config; + } + + public static WafRuleDeny From(Dictionary map) => new WafRuleDeny( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + description: map["description"].ToString(), + teamId: map["teamId"].ToString(), + projectId: map["projectId"].ToString(), + resourceType: map["resourceType"].ToString(), + resourceId: map["resourceId"].ToString(), + action: new Appwrite.Enums.WafRuleAction(map["action"].ToString()!), + priority: Convert.ToInt64(map["priority"]), + enabled: (bool)map["enabled"], + conditions: map["conditions"].ConvertToList(), + config: map["config"] + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "description", Description }, + { "teamId", TeamId }, + { "projectId", ProjectId }, + { "resourceType", ResourceType }, + { "resourceId", ResourceId }, + { "action", Action.Value }, + { "priority", Priority }, + { "enabled", Enabled }, + { "conditions", Conditions }, + { "config", Config } + }; + } +} diff --git a/Appwrite/Models/WafRuleList.cs b/Appwrite/Models/WafRuleList.cs new file mode 100644 index 00000000..9bb14b88 --- /dev/null +++ b/Appwrite/Models/WafRuleList.cs @@ -0,0 +1,40 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("rules")] + public List Rules { get; private set; } + + public WafRuleList( + long total, + List rules + ) + { + Total = total; + Rules = rules; + } + + public static WafRuleList From(Dictionary map) => new WafRuleList( + total: Convert.ToInt64(map["total"]), + rules: map["rules"].ConvertToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "rules", Rules } + }; + } +} diff --git a/Appwrite/Models/WafRuleRateLimit.cs b/Appwrite/Models/WafRuleRateLimit.cs new file mode 100644 index 00000000..52d59d68 --- /dev/null +++ b/Appwrite/Models/WafRuleRateLimit.cs @@ -0,0 +1,159 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleRateLimit + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("description")] + public string Description { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("projectId")] + public string ProjectId { get; private set; } + + [JsonPropertyName("resourceType")] + public string ResourceType { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + [JsonPropertyName("action")] + public Appwrite.Enums.WafRuleAction Action { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("conditions")] + public List Conditions { get; private set; } + + [JsonPropertyName("config")] + public object Config { get; private set; } + + [JsonPropertyName("limit")] + public long Limit { get; private set; } + + [JsonPropertyName("interval")] + public long Interval { get; private set; } + + [JsonPropertyName("key")] + public string Key { get; private set; } + + [JsonPropertyName("strategy")] + public string Strategy { get; private set; } + + [JsonPropertyName("maxBucketSize")] + public long MaxBucketSize { get; private set; } + + public WafRuleRateLimit( + string id, + string createdAt, + string updatedAt, + string name, + string description, + string teamId, + string projectId, + string resourceType, + string resourceId, + Appwrite.Enums.WafRuleAction action, + long priority, + bool enabled, + List conditions, + object config, + long limit, + long interval, + string key, + string strategy, + long maxBucketSize + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Description = description; + TeamId = teamId; + ProjectId = projectId; + ResourceType = resourceType; + ResourceId = resourceId; + Action = action; + Priority = priority; + Enabled = enabled; + Conditions = conditions; + Config = config; + Limit = limit; + Interval = interval; + Key = key; + Strategy = strategy; + MaxBucketSize = maxBucketSize; + } + + public static WafRuleRateLimit From(Dictionary map) => new WafRuleRateLimit( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + description: map["description"].ToString(), + teamId: map["teamId"].ToString(), + projectId: map["projectId"].ToString(), + resourceType: map["resourceType"].ToString(), + resourceId: map["resourceId"].ToString(), + action: new Appwrite.Enums.WafRuleAction(map["action"].ToString()!), + priority: Convert.ToInt64(map["priority"]), + enabled: (bool)map["enabled"], + conditions: map["conditions"].ConvertToList(), + config: map["config"], + limit: Convert.ToInt64(map["limit"]), + interval: Convert.ToInt64(map["interval"]), + key: map["key"].ToString(), + strategy: map["strategy"].ToString(), + maxBucketSize: Convert.ToInt64(map["maxBucketSize"]) + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "description", Description }, + { "teamId", TeamId }, + { "projectId", ProjectId }, + { "resourceType", ResourceType }, + { "resourceId", ResourceId }, + { "action", Action.Value }, + { "priority", Priority }, + { "enabled", Enabled }, + { "conditions", Conditions }, + { "config", Config }, + { "limit", Limit }, + { "interval", Interval }, + { "key", Key }, + { "strategy", Strategy }, + { "maxBucketSize", MaxBucketSize } + }; + } +} diff --git a/Appwrite/Models/WafRuleRedirect.cs b/Appwrite/Models/WafRuleRedirect.cs new file mode 100644 index 00000000..c61f20b5 --- /dev/null +++ b/Appwrite/Models/WafRuleRedirect.cs @@ -0,0 +1,138 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class WafRuleRedirect + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("description")] + public string Description { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("projectId")] + public string ProjectId { get; private set; } + + [JsonPropertyName("resourceType")] + public string ResourceType { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + [JsonPropertyName("action")] + public Appwrite.Enums.WafRuleAction Action { get; private set; } + + [JsonPropertyName("priority")] + public long Priority { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + [JsonPropertyName("conditions")] + public List Conditions { get; private set; } + + [JsonPropertyName("config")] + public object Config { get; private set; } + + [JsonPropertyName("location")] + public string Location { get; private set; } + + [JsonPropertyName("statusCode")] + public long StatusCode { get; private set; } + + public WafRuleRedirect( + string id, + string createdAt, + string updatedAt, + string name, + string description, + string teamId, + string projectId, + string resourceType, + string resourceId, + Appwrite.Enums.WafRuleAction action, + long priority, + bool enabled, + List conditions, + object config, + string location, + long statusCode + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Description = description; + TeamId = teamId; + ProjectId = projectId; + ResourceType = resourceType; + ResourceId = resourceId; + Action = action; + Priority = priority; + Enabled = enabled; + Conditions = conditions; + Config = config; + Location = location; + StatusCode = statusCode; + } + + public static WafRuleRedirect From(Dictionary map) => new WafRuleRedirect( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + description: map["description"].ToString(), + teamId: map["teamId"].ToString(), + projectId: map["projectId"].ToString(), + resourceType: map["resourceType"].ToString(), + resourceId: map["resourceId"].ToString(), + action: new Appwrite.Enums.WafRuleAction(map["action"].ToString()!), + priority: Convert.ToInt64(map["priority"]), + enabled: (bool)map["enabled"], + conditions: map["conditions"].ConvertToList(), + config: map["config"], + location: map["location"].ToString(), + statusCode: Convert.ToInt64(map["statusCode"]) + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "description", Description }, + { "teamId", TeamId }, + { "projectId", ProjectId }, + { "resourceType", ResourceType }, + { "resourceId", ResourceId }, + { "action", Action.Value }, + { "priority", Priority }, + { "enabled", Enabled }, + { "conditions", Conditions }, + { "config", Config }, + { "location", Location }, + { "statusCode", StatusCode } + }; + } +} diff --git a/Appwrite/Models/XDomain.cs b/Appwrite/Models/XDomain.cs new file mode 100644 index 00000000..079eceff --- /dev/null +++ b/Appwrite/Models/XDomain.cs @@ -0,0 +1,121 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class XDomain + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("domain")] + public string Domain { get; private set; } + + [JsonPropertyName("registrar")] + public string Registrar { get; private set; } + + [JsonPropertyName("nameservers")] + public string Nameservers { get; private set; } + + [JsonPropertyName("expire")] + public string Expire { get; private set; } + + [JsonPropertyName("renewal")] + public string Renewal { get; private set; } + + [JsonPropertyName("autoRenewal")] + public bool AutoRenewal { get; private set; } + + [JsonPropertyName("renewalPrice")] + public long RenewalPrice { get; private set; } + + [JsonPropertyName("transferStatus")] + public Appwrite.Enums.DomainTransferStatusEnum? TransferStatus { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("dnsRecords")] + public List DnsRecords { get; private set; } + + public XDomain( + string id, + string createdAt, + string updatedAt, + string domain, + string registrar, + string nameservers, + string expire, + string renewal, + bool autoRenewal, + long renewalPrice, + Appwrite.Enums.DomainTransferStatusEnum? transferStatus, + string teamId, + List dnsRecords + ) + { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Domain = domain; + Registrar = registrar; + Nameservers = nameservers; + Expire = expire; + Renewal = renewal; + AutoRenewal = autoRenewal; + RenewalPrice = renewalPrice; + TransferStatus = transferStatus; + TeamId = teamId; + DnsRecords = dnsRecords; + } + + public static XDomain From(Dictionary map) => new XDomain( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + domain: map["domain"].ToString(), + registrar: map["registrar"].ToString(), + nameservers: map["nameservers"].ToString(), + expire: map["expire"].ToString(), + renewal: map["renewal"].ToString(), + autoRenewal: (bool)map["autoRenewal"], + renewalPrice: Convert.ToInt64(map["renewalPrice"]), + transferStatus: map.TryGetValue("transferStatus", out var enumRaw11) + ? enumRaw11 == null + ? null + : new Appwrite.Enums.DomainTransferStatusEnum(enumRaw11.ToString()!) + : null, + teamId: map["teamId"].ToString(), + dnsRecords: map["dnsRecords"].ConvertToList>().Select(it => Appwrite.Models.DnsRecord.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "domain", Domain }, + { "registrar", Registrar }, + { "nameservers", Nameservers }, + { "expire", Expire }, + { "renewal", Renewal }, + { "autoRenewal", AutoRenewal }, + { "renewalPrice", RenewalPrice }, + { "transferStatus", TransferStatus?.Value }, + { "teamId", TeamId }, + { "dnsRecords", DnsRecords?.Select(it => it.ToMap()).ToList() } + }; + } +} diff --git a/Appwrite/Services/Account.cs b/Appwrite/Services/Account.cs index 79d1de1d..22d6557b 100644 --- a/Appwrite/Services/Account.cs +++ b/Appwrite/Services/Account.cs @@ -1653,17 +1653,110 @@ static Models.Token Convert(Dictionary it) } + /// + /// Use this endpoint to send a 6-digit password recovery code to the user's + /// email address. Unlike + /// [createRecovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery), + /// this method requires no redirect URL, which makes it suitable for mobile + /// and desktop apps that cannot host a recovery page. Learn more about how to + /// [complete the recovery + /// process](https://appwrite.io/docs/references/cloud/client-web/account#updateRecoveryOTP). + /// The code sent to the user's email address is valid for 15 minutes. + /// + /// Enable the **phrase** parameter to include a randomly generated security + /// phrase in both the email and the response. Showing that phrase in your app + /// lets the user confirm the email genuinely came from your request, which + /// helps protect against phishing. + /// + /// + /// + public Task CreateRecoveryOTP(string email, bool? phrase = null) + { + var apiPath = "/account/recovery/otp"; + + var apiParameters = new Dictionary() + { + { "email", email }, + { "phrase", phrase } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Token Convert(Dictionary it) + { + return Models.Token.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Use this endpoint to complete the user password recovery process using the + /// 6-digit code that was emailed by + /// [createRecoveryOTP](https://appwrite.io/docs/references/cloud/client-web/account#createRecoveryOTP). + /// Pass the **userId** of the user along with the **secret** code from the + /// email and the new **password** to set. If confirmed, this route will return + /// a 200 status code, the code is consumed and the user's password is updated. + /// + /// + /// + public Task UpdateRecoveryOTP(string userId, string secret, string password) + { + var apiPath = "/account/recovery/otp"; + + var apiParameters = new Dictionary() + { + { "userId", userId }, + { "secret", secret }, + { "password", password } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Token Convert(Dictionary it) + { + return Models.Token.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Get the list of active sessions across different devices for the currently /// logged in user. /// /// - public Task ListSessions() + public Task ListSessions(bool? total = null) { var apiPath = "/account/sessions"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -1692,12 +1785,13 @@ static Models.SessionList Convert(Dictionary it) /// from the end client. /// /// - public Task DeleteSessions() + public Task DeleteSessions(bool? current = null) { var apiPath = "/account/sessions"; var apiParameters = new Dictionary() { + { "current", current } }; var apiHeaders = new Dictionary() @@ -1765,14 +1859,96 @@ static Models.Session Convert(Dictionary it) /// limits](https://appwrite.io/docs/authentication-security#limits). /// /// - public Task CreateEmailPasswordSession(string email, string password) + public Task CreateEmailPasswordSession(string email, string password, long? duration = null) { var apiPath = "/account/sessions/email"; var apiParameters = new Dictionary() { { "email", email }, - { "password", password } + { "password", password }, + { "duration", duration } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Session Convert(Dictionary it) + { + return Models.Session.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Allow the user to login to their account using an OpenID Connect ID token + /// obtained natively from the OAuth2 provider, for example via Google + /// Credential Manager on Android or Sign in with Apple on iOS. No browser or + /// redirect is involved: the ID token is verified against the provider's + /// published signing keys and a session is created in a single request. + /// + /// Native sign-in is switched on per provider with its nativeEnabled setting. + /// It is independent of the browser-based flow's enabled setting, which has no + /// effect on this endpoint. The token's audience must match the provider's + /// configured client ID or one of its native client IDs; tokens issued for any + /// other client ID are rejected. For Sign in with Apple, register your app's + /// bundle ID as a native client ID. For Google, the web client ID used by + /// Credential Manager is usually the configured client ID; add your Android + /// and iOS client IDs as native client IDs if your app requests tokens for + /// them. + /// + /// Pass the raw nonce used when requesting the ID token so it can be validated + /// against the token's nonce claim. When signing in with Apple, the nonce is + /// required: hash it with SHA-256 before passing it to the Apple SDK, and send + /// the raw value here - Apple tokens requested without a nonce are rejected. + /// For Google the nonce is optional: it is validated whenever the token + /// carries one, and ignored when the provider issued the token without one. + /// Apple only returns the user's name on the first authorization, and never + /// inside the ID token - capture it on the client and pass it via the name + /// parameter. + /// + /// If there is already an active session, the new session will be attached to + /// the logged-in account. If there are no active sessions, the server will + /// attempt to look for a user with the same email address as the verified + /// email received from the provider and attach the new session to the existing + /// user. If no matching user is found - the server will create a new user. + /// + /// This flow does not return provider refresh tokens. You may pass an access + /// token the provider handed your client, along with its lifetime, to store it + /// on the session - but Appwrite cannot renew it once it expires. If your app + /// needs long-lived access to provider APIs, use the browser-based OAuth2 flow + /// instead. + /// + /// A user is limited to 10 active sessions at a time by default. [Learn more + /// about session + /// limits](https://appwrite.io/docs/authentication-security#limits). + /// + /// + /// + public Task CreateIdTokenSession(Appwrite.Enums.IdTokenProvider provider, string idToken, string? nonce = null, string? accessToken = null, long? accessTokenExpiry = null, string? name = null) + { + var apiPath = "/account/sessions/id-token"; + + var apiParameters = new Dictionary() + { + { "provider", provider?.Value }, + { "idToken", idToken }, + { "nonce", nonce }, + { "accessToken", accessToken }, + { "accessTokenExpiry", accessTokenExpiry }, + { "name", name } }; var apiHeaders = new Dictionary() @@ -2508,6 +2684,96 @@ static Models.Token Convert(Dictionary it) } + /// + /// Use this endpoint to send a 6-digit verification code to the currently + /// logged in user's email address. Unlike + /// [createEmailVerification](https://appwrite.io/docs/references/cloud/client-web/account#createEmailVerification), + /// this method requires no redirect URL, which makes it suitable for mobile + /// and desktop apps that cannot host a verification page. Learn more about how + /// to [complete the verification + /// process](https://appwrite.io/docs/references/cloud/client-web/account#updateEmailVerificationOTP). + /// The code sent to the user's email address is valid for 15 minutes. + /// + /// Enable the **phrase** parameter to include a randomly generated security + /// phrase in both the email and the response. Showing that phrase in your app + /// lets the user confirm the email genuinely came from your request, which + /// helps protect against phishing. + /// + /// + /// + public Task CreateEmailVerificationOTP(bool? phrase = null) + { + var apiPath = "/account/verifications/email/otp"; + + var apiParameters = new Dictionary() + { + { "phrase", phrase } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Token Convert(Dictionary it) + { + return Models.Token.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Use this endpoint to complete the user email verification process using the + /// 6-digit code that was emailed by + /// [createEmailVerificationOTP](https://appwrite.io/docs/references/cloud/client-web/account#createEmailVerificationOTP). + /// Pass the **userId** of the user being verified along with the **secret** + /// code from the email. If confirmed, this route will return a 200 status code + /// and the code is consumed. + /// + /// + /// + public Task UpdateEmailVerificationOTP(string userId, string secret) + { + var apiPath = "/account/verifications/email/otp"; + + var apiParameters = new Dictionary() + { + { "userId", userId }, + { "secret", secret } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Token Convert(Dictionary it) + { + return Models.Token.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Use this endpoint to send a verification SMS to the currently logged in /// user. This endpoint is meant for use after updating a user's phone number diff --git a/Appwrite/Services/Avatars.cs b/Appwrite/Services/Avatars.cs index 5786f608..db649f76 100644 --- a/Appwrite/Services/Avatars.cs +++ b/Appwrite/Services/Avatars.cs @@ -305,6 +305,84 @@ public Task GetPhoto(long? width = null, long? height = null, long? qual } + /// + /// Update the profile photo of the currently authenticated user. The uploaded + /// image takes priority over every other photo source, including OAuth2 + /// identity photos, Gravatar, and Libravatar. Updating an already customized + /// photo replaces it. The image must be at most 5MB and is sent in a single + /// request. + /// + /// + public Task UpdatePhoto(InputFile file, Action? onProgress = null) + { + var apiPath = "/avatars/photo"; + + var apiParameters = new Dictionary() + { + { "file", file } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "multipart/form-data" }, + { "accept", "application/json" } + }; + + + static Models.Account Convert(Dictionary it) + { + return Models.Account.From(map: it); + } + + string? idParamName = null; + + var paramName = "file"; + + return _client.ChunkedUpload( + apiPath, + apiHeaders, + apiParameters, + Convert, + paramName, + idParamName, + onProgress, + method: "PUT"); + } + + /// + /// Delete the profile photo of the currently authenticated user and store the + /// built-in static placeholder in its place. The placeholder is the user's + /// photo from then on, so it takes priority over every other photo source — + /// OAuth2 identity photos, Gravatar, Libravatar, and initials — until a new + /// photo is uploaded with avatars.updatePhoto. + /// + /// + public Task DeletePhoto() + { + var apiPath = "/avatars/photo"; + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + /// /// Converts a given plain text to a QR code image. You can use the query /// parameters to change the size and style of the resulting image. diff --git a/Appwrite/Services/Databases.cs b/Appwrite/Services/Databases.cs index d87d2727..32ab694c 100644 --- a/Appwrite/Services/Databases.cs +++ b/Appwrite/Services/Databases.cs @@ -95,13 +95,14 @@ static Models.Database Convert(Dictionary it) /// /// [Obsolete("This API has been deprecated since 1.8.0. Please use `TablesDB.listTransactions` instead.")] - public Task ListTransactions(List? queries = null) + public Task ListTransactions(List? queries = null, bool? total = null) { var apiPath = "/databases/transactions"; var apiParameters = new Dictionary() { - { "queries", queries } + { "queries", queries }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/DocumentsDB.cs b/Appwrite/Services/DocumentsDB.cs index 48a82efd..0e7ea344 100644 --- a/Appwrite/Services/DocumentsDB.cs +++ b/Appwrite/Services/DocumentsDB.cs @@ -129,13 +129,14 @@ static Models.DedicatedDatabaseSpecificationList Convert(Dictionary /// - public Task ListTransactions(List? queries = null) + public Task ListTransactions(List? queries = null, bool? total = null) { var apiPath = "/documentsdb/transactions"; var apiParameters = new Dictionary() { - { "queries", queries } + { "queries", queries }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Domains.cs b/Appwrite/Services/Domains.cs new file mode 100644 index 00000000..721975ff --- /dev/null +++ b/Appwrite/Services/Domains.cs @@ -0,0 +1,2155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Appwrite.Models; +using Appwrite.Enums; + +namespace Appwrite.Services +{ + public class Domains : Service + { + public Domains(Client client) : base(client) + { + } + + /// + /// List all domains registered for this project. This endpoint supports + /// pagination. + /// + /// + public Task List(List? queries = null, string? search = null) + { + var apiPath = "/domains"; + + var apiParameters = new Dictionary() + { + { "queries", queries }, + { "search", search } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DomainsList Convert(Dictionary it) + { + return Models.DomainsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new domain. Before creating a domain, you need to ensure that your + /// DNS provider is properly configured. After creating the domain, you can use + /// the verification endpoint to check if the domain is ready to be used. + /// + /// + public Task Create(string teamId, string domain) + { + var apiPath = "/domains"; + + var apiParameters = new Dictionary() + { + { "teamId", teamId }, + { "domain", domain } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get the registration price for a domain name. + /// + /// + [Obsolete("This API has been deprecated since 2.0.0. Please use `Domains.listPrices` instead.")] + public Task GetPrice(string domain, long? periodYears = null, Appwrite.Enums.DomainRegistrationType? registrationType = null) + { + var apiPath = "/domains/price"; + + var apiParameters = new Dictionary() + { + { "domain", domain }, + { "periodYears", periodYears }, + { "registrationType", registrationType?.Value } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DomainPrice Convert(Dictionary it) + { + return Models.DomainPrice.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Check availability and get the requested registration price for one or more + /// domain names. Availability is resolved for all domains in a single + /// registrar lookup. Unavailable domains have a null price for new + /// registrations, but can still be priced for renewal, transfer, or trade. + /// Every priced domain also carries its renewal price for the same period, so + /// a separate renewal lookup is not needed. A domain whose price could not be + /// resolved, for example because its TLD is not supported, is returned with a + /// null price. + /// + /// + public Task ListPrices(List domains, long? periodYears = null, Appwrite.Enums.DomainRegistrationType? registrationType = null) + { + var apiPath = "/domains/prices"; + + var apiParameters = new Dictionary() + { + { "domains", domains }, + { "periodYears", periodYears }, + { "registrationType", registrationType?.Value } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DomainPricesList Convert(Dictionary it) + { + return Models.DomainPricesList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a domain by its unique ID. + /// + /// + public Task Get(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a domain by its unique ID. This endpoint can be used to delete a + /// domain from your project. + /// Once deleted, the domain will no longer be available for use and all + /// associated resources will be removed. + /// + /// + public Task Delete(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Update the registrar nameservers for the given domain. When nameservers are + /// not provided, + /// the domain will be updated to use Appwrite nameservers. + /// + /// + public Task UpdateNameservers(string domainId, List? nameservers = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/nameservers" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "nameservers", nameservers } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Verify which NS records are used and update the domain accordingly. This + /// will check the domain's + /// nameservers and update the domain's status based on whether the nameservers + /// match the expected + /// Appwrite nameservers. + /// + /// + public Task VerifyNameservers(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/nameservers/verification" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List Google Workspace DNS records. + /// + /// + public Task GetPresetGoogleWorkspace(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/google-workspace" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add Google Workspace DNS records to the domain. This will create the + /// required MX records + /// for Google Workspace email hosting. + /// + /// + public Task CreatePresetGoogleWorkspace(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/google-workspace" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List iCloud DNS records. + /// + /// + public Task GetPresetICloud(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/icloud" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add iCloud DNS records to the domain. This will create the required MX and + /// SPF records + /// for using iCloud email services with your domain. + /// + /// + public Task CreatePresetICloud(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/icloud" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List Mailgun DNS records. + /// + /// + public Task GetPresetMailgun(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/mailgun" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add Mailgun DNS records to the domain. This endpoint will create the + /// required DNS records + /// for Mailgun in the specified domain. + /// + /// + public Task CreatePresetMailgun(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/mailgun" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List Outlook DNS records. + /// + /// + public Task GetPresetOutlook(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/outlook" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add Outlook DNS records to the domain. This will create the required MX + /// records + /// for setting up Outlook email hosting for your domain. + /// + /// + public Task CreatePresetOutlook(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/outlook" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List ProtonMail DNS records. + /// + /// + public Task GetPresetProtonMail(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/proton-mail" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add ProtonMail DNS records to the domain. This will create the required MX + /// records + /// for using ProtonMail with your custom domain. + /// + /// + public Task CreatePresetProtonMail(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/proton-mail" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List Zoho DNS records. + /// + /// + public Task GetPresetZoho(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/zoho" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Add Zoho Mail DNS records to the domain. This will create the required MX + /// records + /// for setting up Zoho Mail on your domain. + /// + /// + public Task CreatePresetZoho(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/presets/zoho" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List DNS records for a given domain. You can use this endpoint to list all + /// the DNS records + /// associated with your domain. + /// + /// + public Task ListRecords(string domainId, List? queries = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "queries", queries } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecordsList Convert(Dictionary it) + { + return Models.DnsRecordsList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new A record for the given domain. A records are used to point a + /// domain name + /// to an IPv4 address. The record value should be a valid IPv4 address. + /// + /// + public Task CreateRecordA(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/a" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing A record for the given domain. This endpoint allows you + /// to modify + /// the properties of an A record including its name (subdomain), IPv4 address, + /// TTL, + /// and optional comment. + /// + /// + public Task UpdateRecordA(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/a/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new AAAA record for the given domain. This endpoint allows you to + /// add a new IPv6 DNS record + /// to your domain. The record will be used to point a hostname to an IPv6 + /// address. + /// + /// + public Task CreateRecordAAAA(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/aaaa" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing AAAA record for the given domain. This endpoint allows + /// you to modify + /// the properties of an existing AAAA record, including its name (subdomain), + /// IPv6 address, + /// TTL, and optional comment. + /// + /// + public Task UpdateRecordAAAA(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/aaaa/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new ALIAS record for the given domain. This record type can be + /// used to point your domain + /// to another domain name that will serve as an alias. This is particularly + /// useful when you want to + /// map your domain to a target domain that may change its IP address. + /// + /// + public Task CreateRecordAlias(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/alias" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing ALIAS record for the specified domain. This endpoint + /// allows you to modify + /// the properties of an existing ALIAS record including its name, target + /// domain, TTL, and comment. + /// + /// The ALIAS record type is similar to a CNAME record but can be used at the + /// zone apex (root domain). + /// It provides a way to map one domain name to another. + /// + /// + public Task UpdateRecordAlias(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/alias/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new CAA record for the given domain. CAA records are used to + /// specify which + /// Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for + /// your domain. + /// + /// + public Task CreateRecordCAA(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/caa" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing CAA record for the given domain. A CAA (Certification + /// Authority Authorization) + /// record is used to specify which certificate authorities (CAs) are + /// authorized to issue certificates + /// for a domain. + /// + /// + public Task UpdateRecordCAA(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/caa/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new CNAME record for the given domain. + /// + /// A CNAME record maps a subdomain to another domain name, allowing you to + /// create aliases + /// for your domain. For example, you can create a CNAME record to point + /// 'blog.example.com' + /// to 'example.wordpress.com'. + /// + /// + public Task CreateRecordCNAME(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/cname" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing CNAME record for the given domain. + /// + /// + public Task UpdateRecordCNAME(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/cname/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new HTTPS record for the given domain. This record is used to + /// configure HTTPS + /// settings for your domain, enabling secure communication over SSL/TLS. + /// + /// + public Task CreateRecordHTTPS(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/https" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing HTTPS record for the given domain. This endpoint allows + /// you to modify + /// the properties of an HTTPS record associated with your domain, including + /// the name (subdomain), + /// target value, TTL, and optional comment. + /// + /// + public Task UpdateRecordHTTPS(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/https/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new MX record for the given domain. MX records are used to define + /// the mail servers responsible + /// for accepting email messages for the domain. Multiple MX records can be + /// created with different priorities. + /// The priority parameter determines the order in which mail servers are used, + /// with lower values indicating + /// higher priority. + /// + /// + public Task CreateRecordMX(string domainId, string name, string @value, long ttl, long priority, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/mx" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "priority", priority }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing MX record for the given domain. + /// + /// + public Task UpdateRecordMX(string domainId, string recordId, string name, string @value, long ttl, long priority, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/mx/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "priority", priority }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new NS record for the given domain. NS records specify the + /// nameservers that are used + /// to resolve the domain name to IP addresses. Each domain can have multiple + /// NS records. + /// + /// + public Task CreateRecordNS(string domainId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/ns" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing NS record for the given domain. This endpoint allows you + /// to modify + /// the properties of an NS (nameserver) record associated with your domain. + /// You can update + /// the record name (subdomain), target nameserver value, TTL, and add or + /// modify comments + /// for better record management. + /// + /// + public Task UpdateRecordNS(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/ns/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new SRV record for the given domain. SRV records are used to + /// define the location + /// of servers for specific services. For example, they can be used to specify + /// which server + /// handles a specific service like SIP or XMPP for the domain. + /// + /// + public Task CreateRecordSRV(string domainId, string name, string @value, long ttl, long priority, long weight, long port, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/srv" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "priority", priority }, + { "weight", weight }, + { "port", port }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing SRV record for the given domain. + /// + /// Required parameters: + /// - domainId: Domain unique ID + /// - recordId: DNS record unique ID + /// - name: Record name (service name) + /// - value: Target hostname for this SRV record + /// - ttl: Time to live, in seconds + /// - priority: Record priority + /// - weight: Record weight + /// - port: Port number for the service + /// + /// Optional parameters: + /// - comment: A comment for this record + /// + /// + public Task UpdateRecordSRV(string domainId, string recordId, string name, string @value, long ttl, long priority, long weight, long port, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/srv/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "priority", priority }, + { "weight", weight }, + { "port", port }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new TXT record for the given domain. TXT records can be used + /// to provide additional information about your domain, such as domain + /// verification records, SPF records, or DKIM records. + /// + /// + public Task CreateRecordTXT(string domainId, string name, long ttl, string? @value = null, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/records/txt" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing TXT record for the given domain. + /// + /// Update the TXT record details for a specific domain by providing the domain + /// ID, + /// record ID, and the new record configuration including name, value, TTL, and + /// an optional comment. + /// + /// + public Task UpdateRecordTXT(string domainId, string recordId, string name, string @value, long ttl, string? comment = null) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/txt/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "value", @value }, + { "ttl", ttl }, + { "comment", comment } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a single DNS record for a given domain by record ID. + /// + /// This endpoint allows you to retrieve a specific DNS record associated with + /// a domain + /// using its unique identifier. The record contains information about the DNS + /// configuration + /// such as type, value, and TTL settings. + /// + /// + public Task GetRecord(string domainId, string recordId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DnsRecord Convert(Dictionary it) + { + return Models.DnsRecord.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a DNS record for the given domain. This endpoint allows you to + /// delete an existing DNS record + /// from a specific domain. + /// + /// + public Task DeleteRecord(string domainId, string recordId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + if (recordId == "") + { + throw new AppwriteException("Missing required parameter: \"recordId\""); + } + + var apiPath = "/domains/{domainId}/records/{recordId}" + .Replace("{domainId}", domainId) + .Replace("{recordId}", recordId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Update the team ID for a specific domain. The caller must administer the + /// current + /// team and be an owner of the destination team. + /// + /// Updating the team ID will transfer ownership and access control of the + /// domain + /// and all its DNS records to the new team. + /// + /// + public Task UpdateTeam(string domainId, string teamId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/team" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "teamId", teamId } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Retrieve the current transfer status for a domain. Returns the status, an + /// optional reason, and a timestamp of the last status change. + /// + /// + public Task GetTransferStatus(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/transfers/status" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.DomainTransferStatus Convert(Dictionary it) + { + return Models.DomainTransferStatus.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Retrieve the DNS zone file for the given domain. This endpoint will return + /// the DNS + /// zone file in a standardized format that can be used to configure DNS + /// servers. + /// + /// + public Task GetZone(string domainId) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/zone" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "text/plain" } + }; + + + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Update the DNS zone for the given domain using the provided zone file + /// content. + /// All parsed records are imported and then the main domain document is + /// returned. + /// + /// + public Task UpdateZone(string domainId, string content) + { + if (domainId == "") + { + throw new AppwriteException("Missing required parameter: \"domainId\""); + } + + var apiPath = "/domains/{domainId}/zone" + .Replace("{domainId}", domainId); + + var apiParameters = new Dictionary() + { + { "content", content } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.XDomain Convert(Dictionary it) + { + return Models.XDomain.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + } +} diff --git a/Appwrite/Services/Functions.cs b/Appwrite/Services/Functions.cs index 740d6d1d..d02c2108 100644 --- a/Appwrite/Services/Functions.cs +++ b/Appwrite/Services/Functions.cs @@ -114,12 +114,13 @@ static Models.Function Convert(Dictionary it) /// Get a list of all runtimes that are currently active on your instance. /// /// - public Task ListRuntimes() + public Task ListRuntimes(bool? total = null) { var apiPath = "/functions/runtimes"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -147,13 +148,14 @@ static Models.RuntimeList Convert(Dictionary it) /// List allowed function specifications for this instance. /// /// - public Task ListSpecifications(string? type = null) + public Task ListSpecifications(string? type = null, bool? total = null) { var apiPath = "/functions/specifications"; var apiParameters = new Dictionary() { - { "type", type } + { "type", type }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Locale.cs b/Appwrite/Services/Locale.cs index 5b80b0dc..84f6ca57 100644 --- a/Appwrite/Services/Locale.cs +++ b/Appwrite/Services/Locale.cs @@ -56,12 +56,13 @@ static Models.Locale Convert(Dictionary it) /// 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). /// /// - public Task ListCodes() + public Task ListCodes(bool? total = null) { var apiPath = "/locale/codes"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -90,12 +91,13 @@ static Models.LocaleCodeList Convert(Dictionary it) /// supported language. /// /// - public Task ListContinents() + public Task ListContinents(bool? total = null) { var apiPath = "/locale/continents"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -124,12 +126,13 @@ static Models.ContinentList Convert(Dictionary it) /// supported language. /// /// - public Task ListCountries() + public Task ListCountries(bool? total = null) { var apiPath = "/locale/countries"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -158,12 +161,13 @@ static Models.CountryList Convert(Dictionary it) /// locale header to get the data in a supported language. /// /// - public Task ListCountriesEU() + public Task ListCountriesEU(bool? total = null) { var apiPath = "/locale/countries/eu"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -192,12 +196,13 @@ static Models.CountryList Convert(Dictionary it) /// data in a supported language. /// /// - public Task ListCountriesPhones() + public Task ListCountriesPhones(bool? total = null) { var apiPath = "/locale/countries/phones"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -227,12 +232,13 @@ static Models.PhoneList Convert(Dictionary it) /// header to get the data in a supported language. /// /// - public Task ListCurrencies() + public Task ListCurrencies(bool? total = null) { var apiPath = "/locale/currencies"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -261,12 +267,13 @@ static Models.CurrencyList Convert(Dictionary it) /// in English, and name in the respective language. /// /// - public Task ListLanguages() + public Task ListLanguages(bool? total = null) { var apiPath = "/locale/languages"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Messaging.cs b/Appwrite/Services/Messaging.cs index aa8ef109..9ee87a41 100644 --- a/Appwrite/Services/Messaging.cs +++ b/Appwrite/Services/Messaging.cs @@ -53,7 +53,7 @@ static Models.MessageList Convert(Dictionary it) /// Create a new email message. /// /// - public Task CreateEmail(string messageId, string subject, string content, List? topics = null, List? users = null, List? targets = null, List? cc = null, List? bcc = null, List? attachments = null, bool? draft = null, bool? html = null, string? scheduledAt = null) + public Task CreateEmail(string messageId, string subject, string content, List? topics = null, List? users = null, List? targets = null, List? cc = null, List? bcc = null, List? attachments = null, bool? draft = null, bool? html = null, string? scheduledAt = null, string? replyToEmail = null, string? replyToName = null) { var apiPath = "/messaging/messages/email"; @@ -70,7 +70,9 @@ static Models.MessageList Convert(Dictionary it) { "attachments", attachments }, { "draft", draft }, { "html", html }, - { "scheduledAt", scheduledAt } + { "scheduledAt", scheduledAt }, + { "replyToEmail", replyToEmail }, + { "replyToName", replyToName } }; var apiHeaders = new Dictionary() @@ -102,7 +104,7 @@ static Models.Message Convert(Dictionary it) /// /// /// - public Task UpdateEmail(string messageId, List? topics = null, List? users = null, List? targets = null, string? subject = null, string? content = null, bool? draft = null, bool? html = null, List? cc = null, List? bcc = null, string? scheduledAt = null, List? attachments = null) + public Task UpdateEmail(string messageId, List? topics = null, List? users = null, List? targets = null, string? subject = null, string? content = null, bool? draft = null, bool? html = null, List? cc = null, List? bcc = null, string? scheduledAt = null, List? attachments = null, string? replyToEmail = null, string? replyToName = null) { var apiPath = "/messaging/messages/email/{messageId}" .Replace("{messageId}", messageId); @@ -119,7 +121,9 @@ static Models.Message Convert(Dictionary it) { "cc", cc }, { "bcc", bcc }, { "scheduledAt", scheduledAt }, - { "attachments", attachments } + { "attachments", attachments }, + { "replyToEmail", replyToEmail }, + { "replyToName", replyToName } }; var apiHeaders = new Dictionary() @@ -148,7 +152,7 @@ static Models.Message Convert(Dictionary it) /// Create a new push notification. /// /// - public Task CreatePush(string messageId, string? title = null, string? body = null, List? topics = null, List? users = null, List? targets = null, object? data = null, string? action = null, string? image = null, string? icon = null, string? sound = null, string? color = null, string? tag = null, long? badge = null, bool? draft = null, string? scheduledAt = null, bool? contentAvailable = null, bool? critical = null, Appwrite.Enums.MessagePriority? priority = null) + public Task CreatePush(string messageId, string? title = null, string? body = null, List? topics = null, List? users = null, List? targets = null, object? data = null, string? action = null, string? image = null, string? icon = null, string? sound = null, string? color = null, string? tag = null, long? badge = null, bool? draft = null, string? scheduledAt = null, bool? contentAvailable = null, bool? critical = null, Appwrite.Enums.MessagePriority? priority = null, string? channelId = null) { var apiPath = "/messaging/messages/push"; @@ -172,7 +176,8 @@ static Models.Message Convert(Dictionary it) { "scheduledAt", scheduledAt }, { "contentAvailable", contentAvailable }, { "critical", critical }, - { "priority", priority?.Value } + { "priority", priority?.Value }, + { "channelId", channelId } }; var apiHeaders = new Dictionary() @@ -204,7 +209,7 @@ static Models.Message Convert(Dictionary it) /// /// /// - public Task UpdatePush(string messageId, List? topics = null, List? users = null, List? targets = null, string? title = null, string? body = null, object? data = null, string? action = null, string? image = null, string? icon = null, string? sound = null, string? color = null, string? tag = null, long? badge = null, bool? draft = null, string? scheduledAt = null, bool? contentAvailable = null, bool? critical = null, Appwrite.Enums.MessagePriority? priority = null) + public Task UpdatePush(string messageId, List? topics = null, List? users = null, List? targets = null, string? title = null, string? body = null, object? data = null, string? action = null, string? image = null, string? icon = null, string? sound = null, string? color = null, string? tag = null, long? badge = null, bool? draft = null, string? scheduledAt = null, bool? contentAvailable = null, bool? critical = null, Appwrite.Enums.MessagePriority? priority = null, string? channelId = null) { var apiPath = "/messaging/messages/push/{messageId}" .Replace("{messageId}", messageId); @@ -228,7 +233,8 @@ static Models.Message Convert(Dictionary it) { "scheduledAt", scheduledAt }, { "contentAvailable", contentAvailable }, { "critical", critical }, - { "priority", priority?.Value } + { "priority", priority?.Value }, + { "channelId", channelId } }; var apiHeaders = new Dictionary() @@ -732,6 +738,89 @@ static Models.Provider Convert(Dictionary it) } + /// + /// Create a new Appwrite push provider. + /// + /// + public Task CreateAppwriteProvider(string providerId, string name, bool? enabled = null, long? qos = null, long? expiry = null) + { + var apiPath = "/messaging/providers/appwrite"; + + var apiParameters = new Dictionary() + { + { "providerId", providerId }, + { "name", name }, + { "enabled", enabled }, + { "qos", qos }, + { "expiry", expiry } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Provider Convert(Dictionary it) + { + return Models.Provider.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an Appwrite push provider by its unique ID. + /// + /// + public Task UpdateAppwriteProvider(string providerId, string? name = null, bool? enabled = null, long? qos = null, long? expiry = null) + { + if (providerId == "") + { + throw new AppwriteException("Missing required parameter: \"providerId\""); + } + + var apiPath = "/messaging/providers/appwrite/{providerId}" + .Replace("{providerId}", providerId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "enabled", enabled }, + { "qos", qos }, + { "expiry", expiry } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Provider Convert(Dictionary it) + { + return Models.Provider.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Create a new Firebase Cloud Messaging provider. /// @@ -1928,7 +2017,7 @@ static Models.TopicList Convert(Dictionary it) /// Create a new topic. /// /// - public Task CreateTopic(string topicId, string name, List? subscribe = null) + public Task CreateTopic(string topicId, string name, List? subscribe = null, long? qos = null, long? expiry = null) { var apiPath = "/messaging/topics"; @@ -1936,7 +2025,9 @@ static Models.TopicList Convert(Dictionary it) { { "topicId", topicId }, { "name", name }, - { "subscribe", subscribe } + { "subscribe", subscribe }, + { "qos", qos }, + { "expiry", expiry } }; var apiHeaders = new Dictionary() @@ -2001,7 +2092,7 @@ static Models.Topic Convert(Dictionary it) /// /// /// - public Task UpdateTopic(string topicId, string? name = null, List? subscribe = null) + public Task UpdateTopic(string topicId, string? name = null, List? subscribe = null, long? qos = null, long? expiry = null) { var apiPath = "/messaging/topics/{topicId}" .Replace("{topicId}", topicId); @@ -2009,7 +2100,9 @@ static Models.Topic Convert(Dictionary it) var apiParameters = new Dictionary() { { "name", name }, - { "subscribe", subscribe } + { "subscribe", subscribe }, + { "qos", qos }, + { "expiry", expiry } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Oauth2.cs b/Appwrite/Services/Oauth2.cs index 534c1ab0..0655ea42 100644 --- a/Appwrite/Services/Oauth2.cs +++ b/Appwrite/Services/Oauth2.cs @@ -271,6 +271,47 @@ static Models.Oauth2Grant Convert(Dictionary it) } + /// + /// Introspect an OAuth2 access token or refresh token. Authenticate with an + /// API key holding the `oauth2.introspect` scope to introspect any token in + /// the project, or with the client credentials of the app the token was issued + /// to. + /// + /// + public Task Introspect(string token, string? tokenTypeHint = null, string? clientId = null, string? clientSecret = null) + { + var apiPath = "/oauth2/{project_id}/introspect" + .Replace("{project_id}", _client.GetConfig("project")); + + var apiParameters = new Dictionary() + { + { "token", token }, + { "token_type_hint", tokenTypeHint }, + { "client_id", clientId }, + { "client_secret", clientSecret } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Oauth2Introspection Convert(Dictionary it) + { + return Models.Oauth2Introspection.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// List the organizations the OAuth2 access token can access. Resolves the /// token's `organization` authorization details, expanding the `*` wildcard diff --git a/Appwrite/Services/Organization.cs b/Appwrite/Services/Organization.cs index 91e2ceb4..22baa11a 100644 --- a/Appwrite/Services/Organization.cs +++ b/Appwrite/Services/Organization.cs @@ -810,6 +810,231 @@ public Task DeleteProject(string projectId) + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Get a list of all API keys of a project in your organization. + /// + /// + public Task ListProjectKeys(string projectId, List? queries = null, bool? total = null) + { + if (projectId == "") + { + throw new AppwriteException("Missing required parameter: \"projectId\""); + } + + var apiPath = "/organization/projects/{projectId}/keys" + .Replace("{projectId}", projectId); + + var apiParameters = new Dictionary() + { + { "queries", queries }, + { "total", total } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.KeyList Convert(Dictionary it) + { + return Models.KeyList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new ephemeral API key for a project in your organization. It's + /// recommended to have multiple API keys with strict scopes for separate + /// functions within your project. + /// + /// You can also create a standard API key if you need a longer-lived key + /// instead. + /// + /// + public Task CreateEphemeralProjectKey(string projectId, List scopes, long duration) + { + if (projectId == "") + { + throw new AppwriteException("Missing required parameter: \"projectId\""); + } + + var apiPath = "/organization/projects/{projectId}/keys/ephemeral" + .Replace("{projectId}", projectId); + + var apiParameters = new Dictionary() + { + { "scopes", scopes?.Select(e => e.Value).ToList() }, + { "duration", duration } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.EphemeralKey Convert(Dictionary it) + { + return Models.EphemeralKey.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a project key by its unique ID. + /// + /// + public Task GetProjectKey(string projectId, string keyId) + { + if (projectId == "") + { + throw new AppwriteException("Missing required parameter: \"projectId\""); + } + + if (keyId == "") + { + throw new AppwriteException("Missing required parameter: \"keyId\""); + } + + var apiPath = "/organization/projects/{projectId}/keys/{keyId}" + .Replace("{projectId}", projectId) + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.Key Convert(Dictionary it) + { + return Models.Key.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a project key by its unique ID. Use this endpoint to update the + /// name, scopes, or expiration time of an API key. + /// + /// + public Task UpdateProjectKey(string projectId, string keyId, string name, List scopes, string? expire = null) + { + if (projectId == "") + { + throw new AppwriteException("Missing required parameter: \"projectId\""); + } + + if (keyId == "") + { + throw new AppwriteException("Missing required parameter: \"keyId\""); + } + + var apiPath = "/organization/projects/{projectId}/keys/{keyId}" + .Replace("{projectId}", projectId) + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "scopes", scopes?.Select(e => e.Value).ToList() }, + { "expire", expire } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Key Convert(Dictionary it) + { + return Models.Key.From(map: it); + } + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a project key by its unique ID. Once deleted, the key can no longer + /// be used to authenticate API calls. + /// + /// + public Task DeleteProjectKey(string projectId, string keyId) + { + if (projectId == "") + { + throw new AppwriteException("Missing required parameter: \"projectId\""); + } + + if (keyId == "") + { + throw new AppwriteException("Missing required parameter: \"keyId\""); + } + + var apiPath = "/organization/projects/{projectId}/keys/{keyId}" + .Replace("{projectId}", projectId) + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + return _client.Call( method: "DELETE", path: apiPath, diff --git a/Appwrite/Services/Project.cs b/Appwrite/Services/Project.cs index d596b7ee..be224350 100644 --- a/Appwrite/Services/Project.cs +++ b/Appwrite/Services/Project.cs @@ -110,6 +110,195 @@ static Models.Project Convert(Dictionary it) } + /// + /// Get a list of all environments of the project. You can use the query params + /// to filter your results. + /// + /// + public Task ListEnvironments(List? queries = null, bool? total = null) + { + var apiPath = "/project/environments"; + + var apiParameters = new Dictionary() + { + { "queries", queries }, + { "total", total } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.ProjectList Convert(Dictionary it) + { + return Models.ProjectList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new environment of the project. An environment is a separate + /// project in the same organization and region, with its own resources and + /// users. Its usage is billed under the project it belongs to. + /// + /// + public Task CreateEnvironment(string environmentId, string name) + { + var apiPath = "/project/environments"; + + var apiParameters = new Dictionary() + { + { "environmentId", environmentId }, + { "name", name } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Project Convert(Dictionary it) + { + return Models.Project.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get an environment of the project by its unique ID. + /// + /// + public Task GetEnvironment(string environmentId) + { + if (environmentId == "") + { + throw new AppwriteException("Missing required parameter: \"environmentId\""); + } + + var apiPath = "/project/environments/{environmentId}" + .Replace("{environmentId}", environmentId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.Project Convert(Dictionary it) + { + return Models.Project.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update the name of an environment of the project. + /// + /// + public Task UpdateEnvironment(string environmentId, string name) + { + if (environmentId == "") + { + throw new AppwriteException("Missing required parameter: \"environmentId\""); + } + + var apiPath = "/project/environments/{environmentId}" + .Replace("{environmentId}", environmentId); + + var apiParameters = new Dictionary() + { + { "name", name } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Project Convert(Dictionary it) + { + return Models.Project.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete an environment of the project, with all of its resources and users. + /// + /// + public Task DeleteEnvironment(string environmentId) + { + if (environmentId == "") + { + throw new AppwriteException("Missing required parameter: \"environmentId\""); + } + + var apiPath = "/project/environments/{environmentId}" + .Replace("{environmentId}", environmentId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + /// /// Get a list of all API keys from the current project. /// @@ -627,7 +816,7 @@ static Models.OAuth2Amazon Convert(Dictionary it) /// Update the project OAuth2 Apple configuration. /// /// - public Task UpdateOAuth2Apple(string? serviceId = null, string? keyId = null, string? teamId = null, string? p8File = null, bool? enabled = null) + public Task UpdateOAuth2Apple(string? serviceId = null, string? keyId = null, string? teamId = null, string? p8File = null, bool? enabled = null, List? nativeClientIds = null, bool? nativeEnabled = null) { var apiPath = "/project/oauth2/apple"; @@ -637,7 +826,9 @@ static Models.OAuth2Amazon Convert(Dictionary it) { "keyId", keyId }, { "teamId", teamId }, { "p8File", p8File }, - { "enabled", enabled } + { "enabled", enabled }, + { "nativeClientIds", nativeClientIds }, + { "nativeEnabled", nativeEnabled } }; var apiHeaders = new Dictionary() @@ -703,7 +894,7 @@ static Models.OAuth2Appwrite Convert(Dictionary it) /// Update the project OAuth2 Auth0 configuration. /// /// - public Task UpdateOAuth2Auth0(string? clientId = null, string? clientSecret = null, string? endpoint = null, bool? enabled = null) + public Task UpdateOAuth2Auth0(string? clientId = null, string? clientSecret = null, string? endpoint = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/auth0"; @@ -712,7 +903,8 @@ static Models.OAuth2Appwrite Convert(Dictionary it) { "clientId", clientId }, { "clientSecret", clientSecret }, { "endpoint", endpoint }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1001,7 +1193,7 @@ static Models.OAuth2Dailymotion Convert(Dictionary it) /// Update the project OAuth2 Discord configuration. /// /// - public Task UpdateOAuth2Discord(string? clientId = null, string? clientSecret = null, bool? enabled = null) + public Task UpdateOAuth2Discord(string? clientId = null, string? clientSecret = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/discord"; @@ -1009,7 +1201,8 @@ static Models.OAuth2Dailymotion Convert(Dictionary it) { { "clientId", clientId }, { "clientSecret", clientSecret }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1261,7 +1454,7 @@ static Models.OAuth2FusionAuth Convert(Dictionary it) /// Update the project OAuth2 GitHub configuration. /// /// - public Task UpdateOAuth2GitHub(string? clientId = null, string? clientSecret = null, bool? enabled = null) + public Task UpdateOAuth2GitHub(string? clientId = null, string? clientSecret = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/github"; @@ -1269,7 +1462,8 @@ static Models.OAuth2FusionAuth Convert(Dictionary it) { { "clientId", clientId }, { "clientSecret", clientSecret }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1336,7 +1530,7 @@ static Models.OAuth2Gitlab Convert(Dictionary it) /// Update the project OAuth2 Google configuration. /// /// - public Task UpdateOAuth2Google(string? clientId = null, string? clientSecret = null, List? prompt = null, bool? enabled = null) + public Task UpdateOAuth2Google(string? clientId = null, string? clientSecret = null, List? prompt = null, bool? enabled = null, List? nativeClientIds = null, bool? nativeEnabled = null) { var apiPath = "/project/oauth2/google"; @@ -1345,7 +1539,9 @@ static Models.OAuth2Gitlab Convert(Dictionary it) { "clientId", clientId }, { "clientSecret", clientSecret }, { "prompt", prompt?.Select(e => e.Value).ToList() }, - { "enabled", enabled } + { "enabled", enabled }, + { "nativeClientIds", nativeClientIds }, + { "nativeEnabled", nativeEnabled } }; var apiHeaders = new Dictionary() @@ -1407,6 +1603,44 @@ static Models.OAuth2HuggingFace Convert(Dictionary it) } + /// + /// Update the project OAuth2 Kakao configuration. + /// + /// + public Task UpdateOAuth2Kakao(string? clientId = null, string? clientSecret = null, List? prompt = null, bool? enabled = null) + { + var apiPath = "/project/oauth2/kakao"; + + var apiParameters = new Dictionary() + { + { "clientId", clientId }, + { "clientSecret", clientSecret }, + { "prompt", prompt?.Select(e => e.Value).ToList() }, + { "enabled", enabled } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.OAuth2Kakao Convert(Dictionary it) + { + return Models.OAuth2Kakao.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Update the project OAuth2 Keycloak configuration. /// @@ -1524,7 +1758,7 @@ static Models.OAuth2Linkedin Convert(Dictionary it) /// Update the project OAuth2 Microsoft configuration. /// /// - public Task UpdateOAuth2Microsoft(string? applicationId = null, string? applicationSecret = null, string? tenant = null, bool? enabled = null) + public Task UpdateOAuth2Microsoft(string? applicationId = null, string? applicationSecret = null, string? tenant = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/microsoft"; @@ -1533,7 +1767,8 @@ static Models.OAuth2Linkedin Convert(Dictionary it) { "applicationId", applicationId }, { "applicationSecret", applicationSecret }, { "tenant", tenant }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1642,7 +1877,7 @@ static Models.OAuth2Oidc Convert(Dictionary it) /// Update the project OAuth2 Okta configuration. /// /// - public Task UpdateOAuth2Okta(string? clientId = null, string? clientSecret = null, string? domain = null, string? authorizationServerId = null, bool? enabled = null) + public Task UpdateOAuth2Okta(string? clientId = null, string? clientSecret = null, string? domain = null, string? authorizationServerId = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/okta"; @@ -1652,7 +1887,8 @@ static Models.OAuth2Oidc Convert(Dictionary it) { "clientSecret", clientSecret }, { "domain", domain }, { "authorizationServerId", authorizationServerId }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1829,7 +2065,7 @@ static Models.OAuth2Resend Convert(Dictionary it) /// Update the project OAuth2 Salesforce configuration. /// /// - public Task UpdateOAuth2Salesforce(string? customerKey = null, string? customerSecret = null, bool? enabled = null) + public Task UpdateOAuth2Salesforce(string? customerKey = null, string? customerSecret = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/salesforce"; @@ -1837,7 +2073,8 @@ static Models.OAuth2Resend Convert(Dictionary it) { { "customerKey", customerKey }, { "customerSecret", customerSecret }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -1973,6 +2210,43 @@ static Models.OAuth2Stripe Convert(Dictionary it) } + /// + /// Update the project OAuth2 TikTok configuration. + /// + /// + public Task UpdateOAuth2TikTok(string? clientId = null, string? clientSecret = null, bool? enabled = null) + { + var apiPath = "/project/oauth2/tiktok"; + + var apiParameters = new Dictionary() + { + { "clientId", clientId }, + { "clientSecret", clientSecret }, + { "enabled", enabled } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.OAuth2TikTok Convert(Dictionary it) + { + return Models.OAuth2TikTok.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Update the project OAuth2 Tradeshift configuration. /// @@ -2084,6 +2358,43 @@ static Models.OAuth2Twitch Convert(Dictionary it) } + /// + /// Update the project OAuth2 Webflow configuration. + /// + /// + public Task UpdateOAuth2Webflow(string? clientId = null, string? clientSecret = null, bool? enabled = null) + { + var apiPath = "/project/oauth2/webflow"; + + var apiParameters = new Dictionary() + { + { "clientId", clientId }, + { "clientSecret", clientSecret }, + { "enabled", enabled } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.OAuth2Webflow Convert(Dictionary it) + { + return Models.OAuth2Webflow.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Update the project OAuth2 WordPress configuration. /// @@ -2236,7 +2547,7 @@ static Models.OAuth2Yandex Convert(Dictionary it) /// Update the project OAuth2 Zoho configuration. /// /// - public Task UpdateOAuth2Zoho(string? clientId = null, string? clientSecret = null, bool? enabled = null) + public Task UpdateOAuth2Zoho(string? clientId = null, string? clientSecret = null, bool? enabled = null, List? prompt = null) { var apiPath = "/project/oauth2/zoho"; @@ -2244,7 +2555,8 @@ static Models.OAuth2Yandex Convert(Dictionary it) { { "clientId", clientId }, { "clientSecret", clientSecret }, - { "enabled", enabled } + { "enabled", enabled }, + { "prompt", prompt?.Select(e => e.Value).ToList() } }; var apiHeaders = new Dictionary() @@ -2389,118 +2701,130 @@ static object Convert(Dictionary it) { return Appwrite.Models.OAuth2WordPress.From(map: it); } - if (it.TryGetValue("$id", out var idValue16) && idValue16?.ToString() == "twitch") + if (it.TryGetValue("$id", out var idValue16) && idValue16?.ToString() == "webflow") + { + return Appwrite.Models.OAuth2Webflow.From(map: it); + } + if (it.TryGetValue("$id", out var idValue17) && idValue17?.ToString() == "twitch") { return Appwrite.Models.OAuth2Twitch.From(map: it); } - if (it.TryGetValue("$id", out var idValue17) && idValue17?.ToString() == "stripe") + if (it.TryGetValue("$id", out var idValue18) && idValue18?.ToString() == "stripe") { return Appwrite.Models.OAuth2Stripe.From(map: it); } - if (it.TryGetValue("$id", out var idValue18) && idValue18?.ToString() == "spotify") + if (it.TryGetValue("$id", out var idValue19) && idValue19?.ToString() == "spotify") { return Appwrite.Models.OAuth2Spotify.From(map: it); } - if (it.TryGetValue("$id", out var idValue19) && idValue19?.ToString() == "slack") + if (it.TryGetValue("$id", out var idValue20) && idValue20?.ToString() == "slack") { return Appwrite.Models.OAuth2Slack.From(map: it); } - if (it.TryGetValue("$id", out var idValue20) && idValue20?.ToString() == "podio") + if (it.TryGetValue("$id", out var idValue21) && idValue21?.ToString() == "podio") { return Appwrite.Models.OAuth2Podio.From(map: it); } - if (it.TryGetValue("$id", out var idValue21) && idValue21?.ToString() == "notion") + if (it.TryGetValue("$id", out var idValue22) && idValue22?.ToString() == "notion") { return Appwrite.Models.OAuth2Notion.From(map: it); } - if (it.TryGetValue("$id", out var idValue22) && idValue22?.ToString() == "salesforce") + if (it.TryGetValue("$id", out var idValue23) && idValue23?.ToString() == "salesforce") { return Appwrite.Models.OAuth2Salesforce.From(map: it); } - if (it.TryGetValue("$id", out var idValue23) && idValue23?.ToString() == "yahoo") + if (it.TryGetValue("$id", out var idValue24) && idValue24?.ToString() == "yahoo") { return Appwrite.Models.OAuth2Yahoo.From(map: it); } - if (it.TryGetValue("$id", out var idValue24) && idValue24?.ToString() == "huggingface") + if (it.TryGetValue("$id", out var idValue25) && idValue25?.ToString() == "huggingface") { return Appwrite.Models.OAuth2HuggingFace.From(map: it); } - if (it.TryGetValue("$id", out var idValue25) && idValue25?.ToString() == "resend") + if (it.TryGetValue("$id", out var idValue26) && idValue26?.ToString() == "resend") { return Appwrite.Models.OAuth2Resend.From(map: it); } - if (it.TryGetValue("$id", out var idValue26) && idValue26?.ToString() == "cloudflare") + if (it.TryGetValue("$id", out var idValue27) && idValue27?.ToString() == "cloudflare") { return Appwrite.Models.OAuth2Cloudflare.From(map: it); } - if (it.TryGetValue("$id", out var idValue27) && idValue27?.ToString() == "linkedin") + if (it.TryGetValue("$id", out var idValue28) && idValue28?.ToString() == "linkedin") { return Appwrite.Models.OAuth2Linkedin.From(map: it); } - if (it.TryGetValue("$id", out var idValue28) && idValue28?.ToString() == "disqus") + if (it.TryGetValue("$id", out var idValue29) && idValue29?.ToString() == "disqus") { return Appwrite.Models.OAuth2Disqus.From(map: it); } - if (it.TryGetValue("$id", out var idValue29) && idValue29?.ToString() == "amazon") + if (it.TryGetValue("$id", out var idValue30) && idValue30?.ToString() == "amazon") { return Appwrite.Models.OAuth2Amazon.From(map: it); } - if (it.TryGetValue("$id", out var idValue30) && idValue30?.ToString() == "etsy") + if (it.TryGetValue("$id", out var idValue31) && idValue31?.ToString() == "etsy") { return Appwrite.Models.OAuth2Etsy.From(map: it); } - if (it.TryGetValue("$id", out var idValue31) && idValue31?.ToString() == "facebook") + if (it.TryGetValue("$id", out var idValue32) && idValue32?.ToString() == "facebook") { return Appwrite.Models.OAuth2Facebook.From(map: it); } - if (it.TryGetValue("$id", out var idValue32) && idValue32?.ToString() == "tradeshiftBox") + if (it.TryGetValue("$id", out var idValue33) && idValue33?.ToString() == "tradeshiftBox") { return Appwrite.Models.OAuth2Tradeshift.From(map: it); } - if (it.TryGetValue("$id", out var idValue33) && idValue33?.ToString() == "paypalSandbox") + if (it.TryGetValue("$id", out var idValue34) && idValue34?.ToString() == "paypalSandbox") { return Appwrite.Models.OAuth2Paypal.From(map: it); } - if (it.TryGetValue("$id", out var idValue34) && idValue34?.ToString() == "gitlab") + if (it.TryGetValue("$id", out var idValue35) && idValue35?.ToString() == "gitlab") { return Appwrite.Models.OAuth2Gitlab.From(map: it); } - if (it.TryGetValue("$id", out var idValue35) && idValue35?.ToString() == "authentik") + if (it.TryGetValue("$id", out var idValue36) && idValue36?.ToString() == "authentik") { return Appwrite.Models.OAuth2Authentik.From(map: it); } - if (it.TryGetValue("$id", out var idValue36) && idValue36?.ToString() == "auth0") + if (it.TryGetValue("$id", out var idValue37) && idValue37?.ToString() == "auth0") { return Appwrite.Models.OAuth2Auth0.From(map: it); } - if (it.TryGetValue("$id", out var idValue37) && idValue37?.ToString() == "fusionauth") + if (it.TryGetValue("$id", out var idValue38) && idValue38?.ToString() == "fusionauth") { return Appwrite.Models.OAuth2FusionAuth.From(map: it); } - if (it.TryGetValue("$id", out var idValue38) && idValue38?.ToString() == "keycloak") + if (it.TryGetValue("$id", out var idValue39) && idValue39?.ToString() == "keycloak") { return Appwrite.Models.OAuth2Keycloak.From(map: it); } - if (it.TryGetValue("$id", out var idValue39) && idValue39?.ToString() == "oidc") + if (it.TryGetValue("$id", out var idValue40) && idValue40?.ToString() == "oidc") { return Appwrite.Models.OAuth2Oidc.From(map: it); } - if (it.TryGetValue("$id", out var idValue40) && idValue40?.ToString() == "apple") + if (it.TryGetValue("$id", out var idValue41) && idValue41?.ToString() == "apple") { return Appwrite.Models.OAuth2Apple.From(map: it); } - if (it.TryGetValue("$id", out var idValue41) && idValue41?.ToString() == "okta") + if (it.TryGetValue("$id", out var idValue42) && idValue42?.ToString() == "okta") { return Appwrite.Models.OAuth2Okta.From(map: it); } - if (it.TryGetValue("$id", out var idValue42) && idValue42?.ToString() == "kick") + if (it.TryGetValue("$id", out var idValue43) && idValue43?.ToString() == "kick") { return Appwrite.Models.OAuth2Kick.From(map: it); } - if (it.TryGetValue("$id", out var idValue43) && idValue43?.ToString() == "microsoft") + if (it.TryGetValue("$id", out var idValue44) && idValue44?.ToString() == "microsoft") { return Appwrite.Models.OAuth2Microsoft.From(map: it); } + if (it.TryGetValue("$id", out var idValue45) && idValue45?.ToString() == "tiktok") + { + return Appwrite.Models.OAuth2TikTok.From(map: it); + } + if (it.TryGetValue("$id", out var idValue46) && idValue46?.ToString() == "kakao") + { + return Appwrite.Models.OAuth2Kakao.From(map: it); + } throw new System.Exception("Unable to match response to any expected response model"); } @@ -2555,7 +2879,7 @@ static Models.PlatformList Convert(Dictionary it) /// which will interact with the Appwrite API. /// /// - public Task CreateAndroidPlatform(string platformId, string name, string applicationId) + public Task CreateAndroidPlatform(string platformId, string name, string applicationId, List? fingerprints = null) { var apiPath = "/project/platforms/android"; @@ -2563,7 +2887,8 @@ static Models.PlatformList Convert(Dictionary it) { { "platformId", platformId }, { "name", name }, - { "applicationId", applicationId } + { "applicationId", applicationId }, + { "fingerprints", fingerprints } }; var apiHeaders = new Dictionary() @@ -2593,7 +2918,7 @@ static Models.PlatformAndroid Convert(Dictionary it) /// the platform's name or application ID. /// /// - public Task UpdateAndroidPlatform(string platformId, string name, string applicationId) + public Task UpdateAndroidPlatform(string platformId, string name, string applicationId, List? fingerprints = null) { var apiPath = "/project/platforms/android/{platformId}" .Replace("{platformId}", platformId); @@ -2601,7 +2926,8 @@ static Models.PlatformAndroid Convert(Dictionary it) var apiParameters = new Dictionary() { { "name", name }, - { "applicationId", applicationId } + { "applicationId", applicationId }, + { "fingerprints", fingerprints } }; var apiHeaders = new Dictionary() @@ -3440,6 +3766,88 @@ static Models.Project Convert(Dictionary it) } + /// + /// Updating this policy allows you to control if passwords are checked against + /// the Have I Been Pwned breach database. When enabled, every password a user + /// signs up, signs in or resets with is checked and the result is recorded on + /// the user as `passwordPwned`. On its own the policy only records. Enable + /// `users` to reject a breached password when a user signs up or sets a new + /// password, and `sessions` to refuse a sign-in with a breached password until + /// it is reset. Only the first five characters of the password hash are ever + /// shared with the service. Options left out keep their current value. + /// + /// + public Task UpdatePasswordPwnedPolicy(bool? enabled = null, bool? sessions = null, bool? users = null) + { + var apiPath = "/project/policies/password-pwned"; + + var apiParameters = new Dictionary() + { + { "enabled", enabled }, + { "sessions", sessions }, + { "users", users } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Project Convert(Dictionary it) + { + return Models.Project.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Require a password reset when an email/password sign-in uses a password + /// older than the configured maximum age. Options left out keep their current + /// value. + /// + /// + public Task UpdatePasswordRotationPolicy(bool? enabled = null, long? maxAge = null) + { + var apiPath = "/project/policies/password-rotation"; + + var apiParameters = new Dictionary() + { + { "enabled", enabled }, + { "maxAge", maxAge } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.Project Convert(Dictionary it) + { + return Models.Project.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Update the password strength requirements for users in the project. /// @@ -3703,51 +4111,59 @@ static object Convert(Dictionary it) { return Appwrite.Models.PolicyPasswordPersonalData.From(map: it); } - if (it.TryGetValue("$id", out var idValue5) && idValue5?.ToString() == "session-alert") + if (it.TryGetValue("$id", out var idValue5) && idValue5?.ToString() == "password-pwned") + { + return Appwrite.Models.PolicyPasswordPwned.From(map: it); + } + if (it.TryGetValue("$id", out var idValue6) && idValue6?.ToString() == "password-rotation") + { + return Appwrite.Models.PolicyPasswordRotation.From(map: it); + } + if (it.TryGetValue("$id", out var idValue7) && idValue7?.ToString() == "session-alert") { return Appwrite.Models.PolicySessionAlert.From(map: it); } - if (it.TryGetValue("$id", out var idValue6) && idValue6?.ToString() == "session-duration") + if (it.TryGetValue("$id", out var idValue8) && idValue8?.ToString() == "session-duration") { return Appwrite.Models.PolicySessionDuration.From(map: it); } - if (it.TryGetValue("$id", out var idValue7) && idValue7?.ToString() == "session-invalidation") + if (it.TryGetValue("$id", out var idValue9) && idValue9?.ToString() == "session-invalidation") { return Appwrite.Models.PolicySessionInvalidation.From(map: it); } - if (it.TryGetValue("$id", out var idValue8) && idValue8?.ToString() == "session-limit") + if (it.TryGetValue("$id", out var idValue10) && idValue10?.ToString() == "session-limit") { return Appwrite.Models.PolicySessionLimit.From(map: it); } - if (it.TryGetValue("$id", out var idValue9) && idValue9?.ToString() == "user-limit") + if (it.TryGetValue("$id", out var idValue11) && idValue11?.ToString() == "user-limit") { return Appwrite.Models.PolicyUserLimit.From(map: it); } - if (it.TryGetValue("$id", out var idValue10) && idValue10?.ToString() == "membership-privacy") + if (it.TryGetValue("$id", out var idValue12) && idValue12?.ToString() == "membership-privacy") { return Appwrite.Models.PolicyMembershipPrivacy.From(map: it); } - if (it.TryGetValue("$id", out var idValue11) && idValue11?.ToString() == "mfa-factors") + if (it.TryGetValue("$id", out var idValue13) && idValue13?.ToString() == "mfa-factors") { return Appwrite.Models.PolicyMfaFactors.From(map: it); } - if (it.TryGetValue("$id", out var idValue12) && idValue12?.ToString() == "deny-aliased-email") + if (it.TryGetValue("$id", out var idValue14) && idValue14?.ToString() == "deny-aliased-email") { return Appwrite.Models.PolicyDenyAliasedEmail.From(map: it); } - if (it.TryGetValue("$id", out var idValue13) && idValue13?.ToString() == "deny-disposable-email") + if (it.TryGetValue("$id", out var idValue15) && idValue15?.ToString() == "deny-disposable-email") { return Appwrite.Models.PolicyDenyDisposableEmail.From(map: it); } - if (it.TryGetValue("$id", out var idValue14) && idValue14?.ToString() == "deny-free-email") + if (it.TryGetValue("$id", out var idValue16) && idValue16?.ToString() == "deny-free-email") { return Appwrite.Models.PolicyDenyFreeEmail.From(map: it); } - if (it.TryGetValue("$id", out var idValue15) && idValue15?.ToString() == "deny-corporate-email") + if (it.TryGetValue("$id", out var idValue17) && idValue17?.ToString() == "deny-corporate-email") { return Appwrite.Models.PolicyDenyCorporateEmail.From(map: it); } - if (it.TryGetValue("$id", out var idValue17) && idValue17?.ToString() == "passkey") + if (it.TryGetValue("$id", out var idValue18) && idValue18?.ToString() == "passkey") { return Appwrite.Models.PolicyPasskey.From(map: it); } diff --git a/Appwrite/Services/Sites.cs b/Appwrite/Services/Sites.cs index b6a939cf..936706c5 100644 --- a/Appwrite/Services/Sites.cs +++ b/Appwrite/Services/Sites.cs @@ -113,12 +113,13 @@ static Models.Site Convert(Dictionary it) /// instance. /// /// - public Task ListFrameworks() + public Task ListFrameworks(bool? total = null) { var apiPath = "/sites/frameworks"; var apiParameters = new Dictionary() { + { "total", total } }; var apiHeaders = new Dictionary() @@ -146,13 +147,14 @@ static Models.FrameworkList Convert(Dictionary it) /// List allowed site specifications for this instance. /// /// - public Task ListSpecifications(string? type = null) + public Task ListSpecifications(string? type = null, bool? total = null) { var apiPath = "/sites/specifications"; var apiParameters = new Dictionary() { - { "type", type } + { "type", type }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/TablesDB.cs b/Appwrite/Services/TablesDB.cs index 51327851..f6e5e9a2 100644 --- a/Appwrite/Services/TablesDB.cs +++ b/Appwrite/Services/TablesDB.cs @@ -130,13 +130,14 @@ static Models.DedicatedDatabaseSpecificationList Convert(Dictionary /// - public Task ListTransactions(List? queries = null) + public Task ListTransactions(List? queries = null, bool? total = null) { var apiPath = "/tablesdb/transactions"; var apiParameters = new Dictionary() { - { "queries", queries } + { "queries", queries }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Teams.cs b/Appwrite/Services/Teams.cs index f47c7630..11d8ce96 100644 --- a/Appwrite/Services/Teams.cs +++ b/Appwrite/Services/Teams.cs @@ -437,7 +437,7 @@ static Models.MembershipList Convert(Dictionary it) /// /// /// - public Task CreateMembership(string teamId, List roles, string? email = null, string? userId = null, string? phone = null, string? url = null, string? name = null) + public Task CreateMembership(string teamId, List roles, string? email = null, string? userId = null, string? phone = null, string? url = null, string? name = null, string? membershipId = null) { var apiPath = "/teams/{teamId}/memberships" .Replace("{teamId}", teamId); @@ -449,7 +449,8 @@ static Models.MembershipList Convert(Dictionary it) { "phone", phone }, { "roles", roles }, { "url", url }, - { "name", name } + { "name", name }, + { "membershipId", membershipId } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/VectorsDB.cs b/Appwrite/Services/VectorsDB.cs index 31986d74..9702391f 100644 --- a/Appwrite/Services/VectorsDB.cs +++ b/Appwrite/Services/VectorsDB.cs @@ -129,13 +129,14 @@ static Models.DedicatedDatabaseSpecificationList Convert(Dictionary /// - public Task ListTransactions(List? queries = null) + public Task ListTransactions(List? queries = null, bool? total = null) { var apiPath = "/vectorsdb/transactions"; var apiParameters = new Dictionary() { - { "queries", queries } + { "queries", queries }, + { "total", total } }; var apiHeaders = new Dictionary() diff --git a/Appwrite/Services/Waf.cs b/Appwrite/Services/Waf.cs new file mode 100644 index 00000000..c0349415 --- /dev/null +++ b/Appwrite/Services/Waf.cs @@ -0,0 +1,682 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Appwrite.Models; +using Appwrite.Enums; + +namespace Appwrite.Services +{ + public class Waf : Service + { + public Waf(Client client) : base(client) + { + } + + /// + /// List WAF rules for the current project. + /// + /// + /// + public Task ListRules(List? queries = null, string? search = null, bool? total = null) + { + var apiPath = "/waf/rules"; + + var apiParameters = new Dictionary() + { + { "queries", queries }, + { "search", search }, + { "total", total } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static Models.WafRuleList Convert(Dictionary it) + { + return Models.WafRuleList.From(map: it); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a bypass WAF rule. Conditions can match request attributes including + /// `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, + /// `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task CreateBypassRule(string ruleId, string resourceType, string name, string? resourceId = null, string? description = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + var apiPath = "/waf/rules/bypass"; + + var apiParameters = new Dictionary() + { + { "ruleId", ruleId }, + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleBypass Convert(Dictionary it) + { + return Models.WafRuleBypass.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a bypass WAF rule. Conditions can match request attributes including + /// `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, + /// `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task UpdateBypassRule(string ruleId, string? resourceType = null, string? resourceId = null, string? name = null, string? description = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/bypass/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleBypass Convert(Dictionary it) + { + return Models.WafRuleBypass.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a challenge WAF rule. Use `difficulty` (1 easiest to 5 hardest) to + /// tune the client-side proof-of-work cost, and `ttl` to control how long, in + /// seconds, a visitor stays cleared after passing the challenge before being + /// challenged again. Conditions can match request attributes including `ip` + /// (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, + /// `country`, `continent`, `headers.`, `query.`, `queryKeys`, + /// `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions + /// on `city` and `state` require the premium Geo DB addon. + /// + /// + /// + public Task CreateChallengeRule(string ruleId, string resourceType, string name, string? resourceId = null, string? description = null, string? challengeType = null, long? priority = null, bool? enabled = null, List? conditions = null, long? difficulty = null, long? ttl = null) + { + var apiPath = "/waf/rules/challenge"; + + var apiParameters = new Dictionary() + { + { "ruleId", ruleId }, + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "challengeType", challengeType }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions }, + { "difficulty", difficulty }, + { "ttl", ttl } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleChallenge Convert(Dictionary it) + { + return Models.WafRuleChallenge.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a challenge WAF rule. Use `difficulty` (1 easiest to 5 hardest) to + /// tune the client-side proof-of-work cost, and `ttl` to control how long, in + /// seconds, a visitor stays cleared after passing the challenge before being + /// challenged again. Conditions can match request attributes including `ip` + /// (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, + /// `country`, `continent`, `headers.`, `query.`, `queryKeys`, + /// `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions + /// on `city` and `state` require the premium Geo DB addon. + /// + /// + /// + public Task UpdateChallengeRule(string ruleId, string? resourceType = null, string? resourceId = null, string? name = null, string? description = null, string? challengeType = null, long? priority = null, bool? enabled = null, List? conditions = null, long? difficulty = null, long? ttl = null) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/challenge/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "challengeType", challengeType }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions }, + { "difficulty", difficulty }, + { "ttl", ttl } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleChallenge Convert(Dictionary it) + { + return Models.WafRuleChallenge.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a deny WAF rule. Conditions can match request attributes including + /// `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, + /// `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task CreateDenyRule(string ruleId, string resourceType, string name, string? resourceId = null, string? description = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + var apiPath = "/waf/rules/deny"; + + var apiParameters = new Dictionary() + { + { "ruleId", ruleId }, + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleDeny Convert(Dictionary it) + { + return Models.WafRuleDeny.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a deny WAF rule. Conditions can match request attributes including + /// `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, + /// `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task UpdateDenyRule(string ruleId, string? resourceType = null, string? resourceId = null, string? name = null, string? description = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/deny/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleDeny Convert(Dictionary it) + { + return Models.WafRuleDeny.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a rate limit WAF rule. Use `key` to choose the counter: `ip` limits + /// per client IP, while `userId` limits per authenticated user (requests + /// without an authenticated user skip `userId` rules). Conditions can match + /// request attributes including `ip` (plain IPs or CIDR blocks like + /// `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, + /// `headers.`, `query.`, `queryKeys`, `userAgent`, `os`, + /// `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and + /// `state` require the premium Geo DB addon. + /// + /// + /// + public Task CreateRateLimitRule(string ruleId, string resourceType, string name, long limit, long interval, string? resourceId = null, string? description = null, string? key = null, string? strategy = null, long? maxBucketSize = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + var apiPath = "/waf/rules/rate-limit"; + + var apiParameters = new Dictionary() + { + { "ruleId", ruleId }, + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "limit", limit }, + { "interval", interval }, + { "key", key }, + { "strategy", strategy }, + { "maxBucketSize", maxBucketSize }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleRateLimit Convert(Dictionary it) + { + return Models.WafRuleRateLimit.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a rate limit WAF rule. Use `key` to choose the counter: `ip` limits + /// per client IP, while `userId` limits per authenticated user (requests + /// without an authenticated user skip `userId` rules). Conditions can match + /// request attributes including `ip` (plain IPs or CIDR blocks like + /// `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, + /// `headers.`, `query.`, `queryKeys`, `userAgent`, `os`, + /// `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and + /// `state` require the premium Geo DB addon. + /// + /// + /// + public Task UpdateRateLimitRule(string ruleId, string? resourceType = null, string? resourceId = null, string? name = null, string? description = null, long? limit = null, long? interval = null, string? key = null, long? maxBucketSize = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/rate-limit/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "limit", limit }, + { "interval", interval }, + { "key", key }, + { "maxBucketSize", maxBucketSize }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleRateLimit Convert(Dictionary it) + { + return Models.WafRuleRateLimit.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a redirect WAF rule. Conditions can match request attributes + /// including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, + /// `path`, `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task CreateRedirectRule(string ruleId, string resourceType, string name, string location, long statusCode, string? resourceId = null, string? description = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + var apiPath = "/waf/rules/redirect"; + + var apiParameters = new Dictionary() + { + { "ruleId", ruleId }, + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "location", location }, + { "statusCode", statusCode }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleRedirect Convert(Dictionary it) + { + return Models.WafRuleRedirect.From(map: it); + } + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a redirect WAF rule. Conditions can match request attributes + /// including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, + /// `path`, `host`, `country`, `continent`, `headers.`, `query.`, + /// `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and + /// `browserVersion`. Conditions on `city` and `state` require the premium Geo + /// DB addon. + /// + /// + /// + public Task UpdateRedirectRule(string ruleId, string? resourceType = null, string? resourceId = null, string? name = null, string? description = null, string? location = null, long? statusCode = null, long? priority = null, bool? enabled = null, List? conditions = null) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/redirect/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + { "resourceType", resourceType }, + { "resourceId", resourceId }, + { "name", name }, + { "description", description }, + { "location", location }, + { "statusCode", statusCode }, + { "priority", priority }, + { "enabled", enabled }, + { "conditions", conditions } + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + static Models.WafRuleRedirect Convert(Dictionary it) + { + return Models.WafRuleRedirect.From(map: it); + } + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a WAF rule by its ID. + /// + /// + /// + public Task GetRule(string ruleId) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "accept", "application/json" } + }; + + + static object Convert(Dictionary it) + { + if (it.TryGetValue("action", out var actionValue1) && actionValue1?.ToString() == "bypass") + { + return Appwrite.Models.WafRuleBypass.From(map: it); + } + if (it.TryGetValue("action", out var actionValue2) && actionValue2?.ToString() == "deny") + { + return Appwrite.Models.WafRuleDeny.From(map: it); + } + if (it.TryGetValue("action", out var actionValue3) && actionValue3?.ToString() == "challenge") + { + return Appwrite.Models.WafRuleChallenge.From(map: it); + } + if (it.TryGetValue("action", out var actionValue4) && actionValue4?.ToString() == "rateLimit") + { + return Appwrite.Models.WafRuleRateLimit.From(map: it); + } + if (it.TryGetValue("action", out var actionValue5) && actionValue5?.ToString() == "redirect") + { + return Appwrite.Models.WafRuleRedirect.From(map: it); + } + throw new System.Exception("Unable to match response to any expected response model"); + } + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a WAF rule. + /// + /// + /// + public Task DeleteRule(string ruleId) + { + if (ruleId == "") + { + throw new AppwriteException("Missing required parameter: \"ruleId\""); + } + + var apiPath = "/waf/rules/{ruleId}" + .Replace("{ruleId}", ruleId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "X-Appwrite-Project", _client.GetConfig("project") }, + { "content-type", "application/json" }, + { "accept", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c548e71..0634a5c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Change Log +## 8.4.0 + +* Added: `domains` service to manage domains, DNS records, email presets, prices, transfer status and zones +* Added: `waf` service with bypass, challenge, deny, rate-limit and redirect rules +* Added: `account.createEmailVerificationOTP`, `updateEmailVerificationOTP`, `createRecoveryOTP` and `updateRecoveryOTP` +* Added: `account.createIdTokenSession` and `Identity.providerIdToken` +* Added: `oauth2.introspect` +* Added: project environments with `project.createEnvironment`, `getEnvironment`, `listEnvironments`, `updateEnvironment` and `deleteEnvironment` +* Added: `organization.createEphemeralProjectKey`, `listProjectKeys`, `getProjectKey`, `updateProjectKey` and `deleteProjectKey` +* Added: Kakao, TikTok and Webflow OAuth2 providers with `project.updateOAuth2Kakao`, `updateOAuth2TikTok` and `updateOAuth2Webflow` +* Added: optional `prompt` on the Auth0, Discord, GitHub, Microsoft, Okta, Salesforce and Zoho OAuth2 settings, and native client IDs on Apple and Google +* Added: `project.updatePasswordPwnedPolicy`, `project.updatePasswordRotationPolicy` and `User.passwordPwned` +* Added: `messaging.createAppwriteProvider` and `messaging.updateAppwriteProvider` +* Added: optional `replyToEmail` and `replyToName` on email messages, `channelId` on push messages, and `qos` and `expiry` on topics +* Added: `avatars.updatePhoto` and `avatars.deletePhoto` +* Added: optional `duration` on `account.createEmailPasswordSession`, `current` on `account.deleteSessions`, `membershipId` on `teams.createMembership` and `fingerprints` on Android platforms +* Added: optional `total` on the locale, transaction, runtime, specification and framework lists +* Added: `dart-3.13` and `flutter-3.47` runtimes, the `jaspr` framework, the `trigram` index type, `auto` image gravity, the `dedicatedDatabase` proxy rule resource type, OTP email templates and new key scopes +* Added: optional fields on `BillingPlan`, `DedicatedDatabase`, `DedicatedDatabaseSpecification`, `Project` and `Topic`, and `free` and `start` in `BillingPlanGroup` +* Fixed: OAuth2 provider models with a `prompt` list, such as `OAuth2Google`, no longer throw `InvalidCastException` + ## 8.3.1 * Fixed: added `ProjectAuthMethodId.Passkey`, so `project.updateAuthMethod` can enable passkeys diff --git a/README.md b/README.md index 1190d90c..a9da58f1 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,17 @@ Appwrite is an open-source backend as a service server that abstracts and simpli Add this reference to your project's `.csproj` file: ```xml - + ``` You can install packages from the command line: ```powershell # Package Manager -Install-Package Appwrite -Version 8.3.1 +Install-Package Appwrite -Version 8.4.0 # or .NET CLI -dotnet add package Appwrite --version 8.3.1 +dotnet add package Appwrite --version 8.4.0 ``` diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 35b3aab4..ae5e5176 100644 --- a/docs/examples/account/create-anonymous-session.md +++ b/docs/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-email-password-session.md b/docs/examples/account/create-email-password-session.md index f24e35ca..0caead3d 100644 --- a/docs/examples/account/create-email-password-session.md +++ b/docs/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with @@ -12,7 +12,8 @@ Account account = new Account(client); Session result = await account.CreateEmailPasswordSession( email: "email@example.com", - password: "password" + password: "password", + duration: 60 // optional ); ``` diff --git a/docs/examples/account/create-email-token.md b/docs/examples/account/create-email-token.md index be003ffe..2005ab1a 100644 --- a/docs/examples/account/create-email-token.md +++ b/docs/examples/account/create-email-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-email-verification-otp.md b/docs/examples/account/create-email-verification-otp.md new file mode 100644 index 00000000..6b161292 --- /dev/null +++ b/docs/examples/account/create-email-verification-otp.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Appwrite.Models.Token result = await account.CreateEmailVerificationOTP( + phrase: false // optional +); + +``` diff --git a/docs/examples/account/create-email-verification.md b/docs/examples/account/create-email-verification.md index b5c4aad4..3ed33661 100644 --- a/docs/examples/account/create-email-verification.md +++ b/docs/examples/account/create-email-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-id-token-session.md b/docs/examples/account/create-id-token-session.md new file mode 100644 index 00000000..8495b681 --- /dev/null +++ b/docs/examples/account/create-id-token-session.md @@ -0,0 +1,23 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Appwrite.Models.Session result = await account.CreateIdTokenSession( + provider: IdTokenProvider.Apple, + idToken: "", + nonce: "", // optional + accessToken: "", // optional + accessTokenExpiry: 0, // optional + name: "" // optional +); + +``` diff --git a/docs/examples/account/create-magic-url-token.md b/docs/examples/account/create-magic-url-token.md index 85e77164..3ef9bc0b 100644 --- a/docs/examples/account/create-magic-url-token.md +++ b/docs/examples/account/create-magic-url-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-mfa-authenticator.md b/docs/examples/account/create-mfa-authenticator.md index 74e3d105..ee859533 100644 --- a/docs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-mfa-challenge.md b/docs/examples/account/create-mfa-challenge.md index 8f7a9208..51425634 100644 --- a/docs/examples/account/create-mfa-challenge.md +++ b/docs/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-mfa-recovery-codes.md b/docs/examples/account/create-mfa-recovery-codes.md index 6869828d..6bd25677 100644 --- a/docs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-o-auth-2-token.md b/docs/examples/account/create-o-auth-2-token.md index 8cc40785..adfe20de 100644 --- a/docs/examples/account/create-o-auth-2-token.md +++ b/docs/examples/account/create-o-auth-2-token.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-passkey-token.md b/docs/examples/account/create-passkey-token.md index bed3c988..741e3477 100644 --- a/docs/examples/account/create-passkey-token.md +++ b/docs/examples/account/create-passkey-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-passkey.md b/docs/examples/account/create-passkey.md index 366e221a..89257f2d 100644 --- a/docs/examples/account/create-passkey.md +++ b/docs/examples/account/create-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-phone-token.md b/docs/examples/account/create-phone-token.md index e296f8ed..629e15e4 100644 --- a/docs/examples/account/create-phone-token.md +++ b/docs/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md index e5f1144d..4cbf47fb 100644 --- a/docs/examples/account/create-phone-verification.md +++ b/docs/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-recovery-otp.md b/docs/examples/account/create-recovery-otp.md new file mode 100644 index 00000000..2f374abd --- /dev/null +++ b/docs/examples/account/create-recovery-otp.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Appwrite.Models.Token result = await account.CreateRecoveryOTP( + email: "email@example.com", + phrase: false // optional +); + +``` diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index 7951fcb6..f4428158 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-session.md b/docs/examples/account/create-session.md index 9cd8558a..97e0a370 100644 --- a/docs/examples/account/create-session.md +++ b/docs/examples/account/create-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index a25aa0de..5419cab2 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/create.md b/docs/examples/account/create.md index b068e0c3..c03a24ed 100644 --- a/docs/examples/account/create.md +++ b/docs/examples/account/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-consent-token.md b/docs/examples/account/delete-consent-token.md index 0080afa9..6710002d 100644 --- a/docs/examples/account/delete-consent-token.md +++ b/docs/examples/account/delete-consent-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-consent.md b/docs/examples/account/delete-consent.md index 34adec2b..c92084e5 100644 --- a/docs/examples/account/delete-consent.md +++ b/docs/examples/account/delete-consent.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-identity.md b/docs/examples/account/delete-identity.md index bc4938d6..89e28639 100644 --- a/docs/examples/account/delete-identity.md +++ b/docs/examples/account/delete-identity.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index 58aa3af1..4f38a3f4 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-passkey.md b/docs/examples/account/delete-passkey.md index 77ba3d03..8aee818b 100644 --- a/docs/examples/account/delete-passkey.md +++ b/docs/examples/account/delete-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index 9c8e9c1f..cfa950a1 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index 31bd03a1..7d219af3 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); -await account.DeleteSessions(); - +await account.DeleteSessions( + current: false // optional +); ``` diff --git a/docs/examples/account/get-consent-token.md b/docs/examples/account/get-consent-token.md index d348e155..86288f6e 100644 --- a/docs/examples/account/get-consent-token.md +++ b/docs/examples/account/get-consent-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get-consent.md b/docs/examples/account/get-consent.md index 816f6d5e..781dd59a 100644 --- a/docs/examples/account/get-consent.md +++ b/docs/examples/account/get-consent.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get-mfa-recovery-codes.md b/docs/examples/account/get-mfa-recovery-codes.md index 54ffda45..1116333e 100644 --- a/docs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get-passkey.md b/docs/examples/account/get-passkey.md index fb9d3841..7ee3c15c 100644 --- a/docs/examples/account/get-passkey.md +++ b/docs/examples/account/get-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index fb891b6e..b6bc794b 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index dee7ad1b..7ad6cb77 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index ba7c848b..a3218d61 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-consent-tokens.md b/docs/examples/account/list-consent-tokens.md index 5f1f36d4..16724610 100644 --- a/docs/examples/account/list-consent-tokens.md +++ b/docs/examples/account/list-consent-tokens.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-consents.md b/docs/examples/account/list-consents.md index ca7eb65a..14e2bac2 100644 --- a/docs/examples/account/list-consents.md +++ b/docs/examples/account/list-consents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-identities.md b/docs/examples/account/list-identities.md index f64b03b0..985a4c81 100644 --- a/docs/examples/account/list-identities.md +++ b/docs/examples/account/list-identities.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md index 99f6bea0..bd0a6f96 100644 --- a/docs/examples/account/list-logs.md +++ b/docs/examples/account/list-logs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-mfa-factors.md b/docs/examples/account/list-mfa-factors.md index 5fa29c29..cdd80168 100644 --- a/docs/examples/account/list-mfa-factors.md +++ b/docs/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-passkeys.md b/docs/examples/account/list-passkeys.md index c439615d..fbe95cf3 100644 --- a/docs/examples/account/list-passkeys.md +++ b/docs/examples/account/list-passkeys.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md index 81402bcc..e1f2d115 100644 --- a/docs/examples/account/list-sessions.md +++ b/docs/examples/account/list-sessions.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); -SessionList result = await account.ListSessions(); - +SessionList result = await account.ListSessions( + total: false // optional +); ``` diff --git a/docs/examples/account/update-email-verification-otp.md b/docs/examples/account/update-email-verification-otp.md new file mode 100644 index 00000000..df8e9da2 --- /dev/null +++ b/docs/examples/account/update-email-verification-otp.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Appwrite.Models.Token result = await account.UpdateEmailVerificationOTP( + userId: "", + secret: "" +); + +``` diff --git a/docs/examples/account/update-email-verification.md b/docs/examples/account/update-email-verification.md index 3b4214e6..392ba034 100644 --- a/docs/examples/account/update-email-verification.md +++ b/docs/examples/account/update-email-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index 9135dc1c..474b0fcb 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-magic-url-session.md b/docs/examples/account/update-magic-url-session.md index 06f707ee..b6ec5e03 100644 --- a/docs/examples/account/update-magic-url-session.md +++ b/docs/examples/account/update-magic-url-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-mfa-authenticator.md b/docs/examples/account/update-mfa-authenticator.md index a9cdba19..5adbaf2d 100644 --- a/docs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-mfa-challenge.md b/docs/examples/account/update-mfa-challenge.md index d74d8d58..6dc69a14 100644 --- a/docs/examples/account/update-mfa-challenge.md +++ b/docs/examples/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-mfa-recovery-codes.md b/docs/examples/account/update-mfa-recovery-codes.md index eefede0f..8efed16c 100644 --- a/docs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-mfa.md b/docs/examples/account/update-mfa.md index 449edcb3..45bd3db1 100644 --- a/docs/examples/account/update-mfa.md +++ b/docs/examples/account/update-mfa.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index bf88c662..4a591357 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-passkey-token.md b/docs/examples/account/update-passkey-token.md index d5e8ed93..b4644692 100644 --- a/docs/examples/account/update-passkey-token.md +++ b/docs/examples/account/update-passkey-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-passkey-verification.md b/docs/examples/account/update-passkey-verification.md index b1f8a554..0973b76f 100644 --- a/docs/examples/account/update-passkey-verification.md +++ b/docs/examples/account/update-passkey-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-passkey.md b/docs/examples/account/update-passkey.md index a1e0e0c8..476a7aba 100644 --- a/docs/examples/account/update-passkey.md +++ b/docs/examples/account/update-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index 323934ab..6b10d7b2 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-phone-session.md b/docs/examples/account/update-phone-session.md index dd7ab048..d25aea07 100644 --- a/docs/examples/account/update-phone-session.md +++ b/docs/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md index c2b7eebb..4c6b743d 100644 --- a/docs/examples/account/update-phone-verification.md +++ b/docs/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md index d2b7276b..3a027cc0 100644 --- a/docs/examples/account/update-phone.md +++ b/docs/examples/account/update-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index 105e6988..14234756 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-recovery-otp.md b/docs/examples/account/update-recovery-otp.md new file mode 100644 index 00000000..1a4dee05 --- /dev/null +++ b/docs/examples/account/update-recovery-otp.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Appwrite.Models.Token result = await account.UpdateRecoveryOTP( + userId: "", + secret: "", + password: "password" +); + +``` diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index 5875c5b0..8bd015e4 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md index d49e556f..e2ea3660 100644 --- a/docs/examples/account/update-session.md +++ b/docs/examples/account/update-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md index 95ac938d..b4b95a30 100644 --- a/docs/examples/account/update-status.md +++ b/docs/examples/account/update-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index 16fbc2ce..577585f8 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/activities/get-event.md b/docs/examples/activities/get-event.md index 82e50a0b..5e2826b3 100644 --- a/docs/examples/activities/get-event.md +++ b/docs/examples/activities/get-event.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/activities/list-events.md b/docs/examples/activities/list-events.md index c3d2ba2f..3d178562 100644 --- a/docs/examples/activities/list-events.md +++ b/docs/examples/activities/list-events.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/advisor/delete-report.md b/docs/examples/advisor/delete-report.md index 4e8f4123..d0588c57 100644 --- a/docs/examples/advisor/delete-report.md +++ b/docs/examples/advisor/delete-report.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/advisor/get-insight.md b/docs/examples/advisor/get-insight.md index 29543bdc..e1c3cae8 100644 --- a/docs/examples/advisor/get-insight.md +++ b/docs/examples/advisor/get-insight.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/advisor/get-report.md b/docs/examples/advisor/get-report.md index 2143cbc0..95c59e30 100644 --- a/docs/examples/advisor/get-report.md +++ b/docs/examples/advisor/get-report.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/advisor/list-insights.md b/docs/examples/advisor/list-insights.md index 00322495..3ce6e271 100644 --- a/docs/examples/advisor/list-insights.md +++ b/docs/examples/advisor/list-insights.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/advisor/list-reports.md b/docs/examples/advisor/list-reports.md index e610e521..5b66dd74 100644 --- a/docs/examples/advisor/list-reports.md +++ b/docs/examples/advisor/list-reports.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/apps/create-installation-token.md b/docs/examples/apps/create-installation-token.md index 0aabf4b1..eb419b51 100644 --- a/docs/examples/apps/create-installation-token.md +++ b/docs/examples/apps/create-installation-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/create-key.md b/docs/examples/apps/create-key.md index a4e53d1e..5585845c 100644 --- a/docs/examples/apps/create-key.md +++ b/docs/examples/apps/create-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/create-secret.md b/docs/examples/apps/create-secret.md index 12553ab6..e083c87b 100644 --- a/docs/examples/apps/create-secret.md +++ b/docs/examples/apps/create-secret.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/create.md b/docs/examples/apps/create.md index 18adab45..a46d57c9 100644 --- a/docs/examples/apps/create.md +++ b/docs/examples/apps/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/delete-installation.md b/docs/examples/apps/delete-installation.md index b55d8b31..307b7456 100644 --- a/docs/examples/apps/delete-installation.md +++ b/docs/examples/apps/delete-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/delete-key.md b/docs/examples/apps/delete-key.md index d816e061..04f6deb6 100644 --- a/docs/examples/apps/delete-key.md +++ b/docs/examples/apps/delete-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/delete-secret.md b/docs/examples/apps/delete-secret.md index 762390a2..de62ac15 100644 --- a/docs/examples/apps/delete-secret.md +++ b/docs/examples/apps/delete-secret.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/delete-tokens.md b/docs/examples/apps/delete-tokens.md index 4be6c113..8becbcb2 100644 --- a/docs/examples/apps/delete-tokens.md +++ b/docs/examples/apps/delete-tokens.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/delete.md b/docs/examples/apps/delete.md index 973b9f43..c2584441 100644 --- a/docs/examples/apps/delete.md +++ b/docs/examples/apps/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/get-installation.md b/docs/examples/apps/get-installation.md index 16221bdc..da1d31aa 100644 --- a/docs/examples/apps/get-installation.md +++ b/docs/examples/apps/get-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/get-key.md b/docs/examples/apps/get-key.md index 4bfe168c..e243ed62 100644 --- a/docs/examples/apps/get-key.md +++ b/docs/examples/apps/get-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/get-secret.md b/docs/examples/apps/get-secret.md index e1f6e4fc..4375ab9b 100644 --- a/docs/examples/apps/get-secret.md +++ b/docs/examples/apps/get-secret.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/get.md b/docs/examples/apps/get.md index df6aefd0..d1b619cf 100644 --- a/docs/examples/apps/get.md +++ b/docs/examples/apps/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list-installation-scopes.md b/docs/examples/apps/list-installation-scopes.md index 2ba341f0..309536ec 100644 --- a/docs/examples/apps/list-installation-scopes.md +++ b/docs/examples/apps/list-installation-scopes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list-installations.md b/docs/examples/apps/list-installations.md index 1a1bdf8d..b0ff97ae 100644 --- a/docs/examples/apps/list-installations.md +++ b/docs/examples/apps/list-installations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list-keys.md b/docs/examples/apps/list-keys.md index e6e8522f..805b232e 100644 --- a/docs/examples/apps/list-keys.md +++ b/docs/examples/apps/list-keys.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list-o-auth-2-scopes.md b/docs/examples/apps/list-o-auth-2-scopes.md index 6efd8503..1f95e2ba 100644 --- a/docs/examples/apps/list-o-auth-2-scopes.md +++ b/docs/examples/apps/list-o-auth-2-scopes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list-secrets.md b/docs/examples/apps/list-secrets.md index ab831c0a..f46c2744 100644 --- a/docs/examples/apps/list-secrets.md +++ b/docs/examples/apps/list-secrets.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/list.md b/docs/examples/apps/list.md index 724cfd91..36b4c0fd 100644 --- a/docs/examples/apps/list.md +++ b/docs/examples/apps/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/update-labels.md b/docs/examples/apps/update-labels.md index 3a311d25..b7d5b4c2 100644 --- a/docs/examples/apps/update-labels.md +++ b/docs/examples/apps/update-labels.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/apps/update-team.md b/docs/examples/apps/update-team.md index ac6fc92d..30c243ad 100644 --- a/docs/examples/apps/update-team.md +++ b/docs/examples/apps/update-team.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/apps/update.md b/docs/examples/apps/update.md index 20de7ef0..017699ee 100644 --- a/docs/examples/apps/update.md +++ b/docs/examples/apps/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/delete-photo.md b/docs/examples/avatars/delete-photo.md new file mode 100644 index 00000000..d3983a0e --- /dev/null +++ b/docs/examples/avatars/delete-photo.md @@ -0,0 +1,16 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +await avatars.DeletePhoto(); + + +``` diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index 4b53a3e4..94549364 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index 924d4b6c..af3fd429 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index d7179748..e6c25f24 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index 8480c6fb..298e9c71 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index 86ef67f7..3e6b3a5a 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index 3c6d7dd1..45c06ec6 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-photo.md b/docs/examples/avatars/get-photo.md index 0f65e539..719ca123 100644 --- a/docs/examples/avatars/get-photo.md +++ b/docs/examples/avatars/get-photo.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-qr.md b/docs/examples/avatars/get-qr.md index 0be679e6..a1929010 100644 --- a/docs/examples/avatars/get-qr.md +++ b/docs/examples/avatars/get-qr.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/get-screenshot.md b/docs/examples/avatars/get-screenshot.md index 92828bf7..bc2aca9c 100644 --- a/docs/examples/avatars/get-screenshot.md +++ b/docs/examples/avatars/get-screenshot.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/avatars/update-photo.md b/docs/examples/avatars/update-photo.md new file mode 100644 index 00000000..546dfd35 --- /dev/null +++ b/docs/examples/avatars/update-photo.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +Appwrite.Models.Account result = await avatars.UpdatePhoto( + file: InputFile.FromPath("./path-to-files/image.jpg") +); + +``` diff --git a/docs/examples/backups/create-archive.md b/docs/examples/backups/create-archive.md index 6cb21045..67a4c661 100644 --- a/docs/examples/backups/create-archive.md +++ b/docs/examples/backups/create-archive.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/create-policy.md b/docs/examples/backups/create-policy.md index cee682ed..c8fcd7d5 100644 --- a/docs/examples/backups/create-policy.md +++ b/docs/examples/backups/create-policy.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/create-restoration.md b/docs/examples/backups/create-restoration.md index f3649c17..4cf1d004 100644 --- a/docs/examples/backups/create-restoration.md +++ b/docs/examples/backups/create-restoration.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/delete-archive.md b/docs/examples/backups/delete-archive.md index 650e2a01..ad2d8155 100644 --- a/docs/examples/backups/delete-archive.md +++ b/docs/examples/backups/delete-archive.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/delete-policy.md b/docs/examples/backups/delete-policy.md index cacac41f..f7af022d 100644 --- a/docs/examples/backups/delete-policy.md +++ b/docs/examples/backups/delete-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/get-archive.md b/docs/examples/backups/get-archive.md index 15c9b83d..bbd8ed10 100644 --- a/docs/examples/backups/get-archive.md +++ b/docs/examples/backups/get-archive.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/get-policy.md b/docs/examples/backups/get-policy.md index 0fe94d97..b9cf7656 100644 --- a/docs/examples/backups/get-policy.md +++ b/docs/examples/backups/get-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/get-restoration.md b/docs/examples/backups/get-restoration.md index e48d04ee..12c7fbfc 100644 --- a/docs/examples/backups/get-restoration.md +++ b/docs/examples/backups/get-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/list-archives.md b/docs/examples/backups/list-archives.md index 15f69c28..f2763c02 100644 --- a/docs/examples/backups/list-archives.md +++ b/docs/examples/backups/list-archives.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/list-policies.md b/docs/examples/backups/list-policies.md index f1695519..9f9da589 100644 --- a/docs/examples/backups/list-policies.md +++ b/docs/examples/backups/list-policies.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/list-restorations.md b/docs/examples/backups/list-restorations.md index ee286a75..f33b8a46 100644 --- a/docs/examples/backups/list-restorations.md +++ b/docs/examples/backups/list-restorations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/backups/update-policy.md b/docs/examples/backups/update-policy.md index 93d1233b..776d56cd 100644 --- a/docs/examples/backups/update-policy.md +++ b/docs/examples/backups/update-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-big-int-attribute.md b/docs/examples/databases/create-big-int-attribute.md index db06ba5d..8c6dfd3b 100644 --- a/docs/examples/databases/create-big-int-attribute.md +++ b/docs/examples/databases/create-big-int-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md index ba2df46c..3f3ba1bb 100644 --- a/docs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md index 8fbf9538..7e836d6d 100644 --- a/docs/examples/databases/create-collection.md +++ b/docs/examples/databases/create-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md index f9248808..63fa8738 100644 --- a/docs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md index 54730c8d..71bb6fd7 100644 --- a/docs/examples/databases/create-document.md +++ b/docs/examples/databases/create-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/create-documents.md b/docs/examples/databases/create-documents.md index e490a0b8..41f39245 100644 --- a/docs/examples/databases/create-documents.md +++ b/docs/examples/databases/create-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md index 94757f04..60c601ed 100644 --- a/docs/examples/databases/create-email-attribute.md +++ b/docs/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md index d66cb3ac..ac3ee35b 100644 --- a/docs/examples/databases/create-enum-attribute.md +++ b/docs/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md index 26fb95a7..3f932ebb 100644 --- a/docs/examples/databases/create-float-attribute.md +++ b/docs/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md index 748394d9..270d3a02 100644 --- a/docs/examples/databases/create-index.md +++ b/docs/examples/databases/create-index.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md index 04678b94..b9d1f554 100644 --- a/docs/examples/databases/create-integer-attribute.md +++ b/docs/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md index b5de19be..251514b4 100644 --- a/docs/examples/databases/create-ip-attribute.md +++ b/docs/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-line-attribute.md b/docs/examples/databases/create-line-attribute.md index 53f1ada4..6d88b98f 100644 --- a/docs/examples/databases/create-line-attribute.md +++ b/docs/examples/databases/create-line-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-longtext-attribute.md b/docs/examples/databases/create-longtext-attribute.md index 3bf127aa..becd5dab 100644 --- a/docs/examples/databases/create-longtext-attribute.md +++ b/docs/examples/databases/create-longtext-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-mediumtext-attribute.md b/docs/examples/databases/create-mediumtext-attribute.md index 2e758f7b..8fa53dfc 100644 --- a/docs/examples/databases/create-mediumtext-attribute.md +++ b/docs/examples/databases/create-mediumtext-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-operations.md b/docs/examples/databases/create-operations.md index 7b150194..4511f88b 100644 --- a/docs/examples/databases/create-operations.md +++ b/docs/examples/databases/create-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-point-attribute.md b/docs/examples/databases/create-point-attribute.md index a08e2b9a..2d880ca5 100644 --- a/docs/examples/databases/create-point-attribute.md +++ b/docs/examples/databases/create-point-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-polygon-attribute.md b/docs/examples/databases/create-polygon-attribute.md index 917a45c9..47be1b6e 100644 --- a/docs/examples/databases/create-polygon-attribute.md +++ b/docs/examples/databases/create-polygon-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index 6f8ac621..63deba50 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md index ea547aaa..a7347a08 100644 --- a/docs/examples/databases/create-string-attribute.md +++ b/docs/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-text-attribute.md b/docs/examples/databases/create-text-attribute.md index dd6fe3cb..8f74cb8b 100644 --- a/docs/examples/databases/create-text-attribute.md +++ b/docs/examples/databases/create-text-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-transaction.md b/docs/examples/databases/create-transaction.md index 29b18cd4..4ed0c1e9 100644 --- a/docs/examples/databases/create-transaction.md +++ b/docs/examples/databases/create-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md index dd0e356b..b262f187 100644 --- a/docs/examples/databases/create-url-attribute.md +++ b/docs/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create-varchar-attribute.md b/docs/examples/databases/create-varchar-attribute.md index 4c3f3a1e..80db46ba 100644 --- a/docs/examples/databases/create-varchar-attribute.md +++ b/docs/examples/databases/create-varchar-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md index 6d0a504c..b9a670c4 100644 --- a/docs/examples/databases/create.md +++ b/docs/examples/databases/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/decrement-document-attribute.md b/docs/examples/databases/decrement-document-attribute.md index 46dd163d..d751d70e 100644 --- a/docs/examples/databases/decrement-document-attribute.md +++ b/docs/examples/databases/decrement-document-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md index 05fb3e78..03850122 100644 --- a/docs/examples/databases/delete-attribute.md +++ b/docs/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md index ecebab3a..2cee8700 100644 --- a/docs/examples/databases/delete-collection.md +++ b/docs/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md index 02adf999..e7d535b8 100644 --- a/docs/examples/databases/delete-document.md +++ b/docs/examples/databases/delete-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/delete-documents.md b/docs/examples/databases/delete-documents.md index 4b14b138..a31e27d5 100644 --- a/docs/examples/databases/delete-documents.md +++ b/docs/examples/databases/delete-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md index 60303458..0efc71a9 100644 --- a/docs/examples/databases/delete-index.md +++ b/docs/examples/databases/delete-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/delete-transaction.md b/docs/examples/databases/delete-transaction.md index 2c3b947f..dcc494ef 100644 --- a/docs/examples/databases/delete-transaction.md +++ b/docs/examples/databases/delete-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md index 519bcab3..be34ecc9 100644 --- a/docs/examples/databases/delete.md +++ b/docs/examples/databases/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md index d131b814..ef271df5 100644 --- a/docs/examples/databases/get-attribute.md +++ b/docs/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md index 0798f68e..a24aaf7a 100644 --- a/docs/examples/databases/get-collection.md +++ b/docs/examples/databases/get-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md index 102cbb5b..9be538cf 100644 --- a/docs/examples/databases/get-document.md +++ b/docs/examples/databases/get-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md index ad06f1fb..14dfedc7 100644 --- a/docs/examples/databases/get-index.md +++ b/docs/examples/databases/get-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/get-transaction.md b/docs/examples/databases/get-transaction.md index fe449961..079d3eb9 100644 --- a/docs/examples/databases/get-transaction.md +++ b/docs/examples/databases/get-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md index 91d9a0ec..f1ace918 100644 --- a/docs/examples/databases/get.md +++ b/docs/examples/databases/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/increment-document-attribute.md b/docs/examples/databases/increment-document-attribute.md index 230784d7..1469b774 100644 --- a/docs/examples/databases/increment-document-attribute.md +++ b/docs/examples/databases/increment-document-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md index ff57878c..65a2eea8 100644 --- a/docs/examples/databases/list-attributes.md +++ b/docs/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md index ed856f6e..1a8780b3 100644 --- a/docs/examples/databases/list-collections.md +++ b/docs/examples/databases/list-collections.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md index d8cdff0a..cb8c5e1e 100644 --- a/docs/examples/databases/list-documents.md +++ b/docs/examples/databases/list-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md index 80f4bcf2..135d7f26 100644 --- a/docs/examples/databases/list-indexes.md +++ b/docs/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/list-transactions.md b/docs/examples/databases/list-transactions.md index fc141674..51646bff 100644 --- a/docs/examples/databases/list-transactions.md +++ b/docs/examples/databases/list-transactions.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key Databases databases = new Databases(client); TransactionList result = await databases.ListTransactions( - queries: new List() // optional + queries: new List(), // optional + total: false // optional ); ``` diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md index 57095184..a9c71eee 100644 --- a/docs/examples/databases/list.md +++ b/docs/examples/databases/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-big-int-attribute.md b/docs/examples/databases/update-big-int-attribute.md index 7fea78b5..9a0e9627 100644 --- a/docs/examples/databases/update-big-int-attribute.md +++ b/docs/examples/databases/update-big-int-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md index 52b0a767..b9d44574 100644 --- a/docs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md index 7e3378fa..4b3faaae 100644 --- a/docs/examples/databases/update-collection.md +++ b/docs/examples/databases/update-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md index 2a1df23f..9997ca91 100644 --- a/docs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md index e18a6ef9..71317de6 100644 --- a/docs/examples/databases/update-document.md +++ b/docs/examples/databases/update-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/update-documents.md b/docs/examples/databases/update-documents.md index db3133df..93601700 100644 --- a/docs/examples/databases/update-documents.md +++ b/docs/examples/databases/update-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md index b1f0e37f..7bebc033 100644 --- a/docs/examples/databases/update-email-attribute.md +++ b/docs/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md index d009b5c7..71d00318 100644 --- a/docs/examples/databases/update-enum-attribute.md +++ b/docs/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md index fd8dc427..d259cac2 100644 --- a/docs/examples/databases/update-float-attribute.md +++ b/docs/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md index 17a0cc8b..7200abcd 100644 --- a/docs/examples/databases/update-integer-attribute.md +++ b/docs/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md index 432bb4d4..7a622fb4 100644 --- a/docs/examples/databases/update-ip-attribute.md +++ b/docs/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-line-attribute.md b/docs/examples/databases/update-line-attribute.md index 11dc3840..0a352a03 100644 --- a/docs/examples/databases/update-line-attribute.md +++ b/docs/examples/databases/update-line-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-longtext-attribute.md b/docs/examples/databases/update-longtext-attribute.md index 2dba9171..d4acfcf3 100644 --- a/docs/examples/databases/update-longtext-attribute.md +++ b/docs/examples/databases/update-longtext-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-mediumtext-attribute.md b/docs/examples/databases/update-mediumtext-attribute.md index ba356254..8efef8d8 100644 --- a/docs/examples/databases/update-mediumtext-attribute.md +++ b/docs/examples/databases/update-mediumtext-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-point-attribute.md b/docs/examples/databases/update-point-attribute.md index 7bbf9fb6..db0fa689 100644 --- a/docs/examples/databases/update-point-attribute.md +++ b/docs/examples/databases/update-point-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-polygon-attribute.md b/docs/examples/databases/update-polygon-attribute.md index f35fdcff..99724ab4 100644 --- a/docs/examples/databases/update-polygon-attribute.md +++ b/docs/examples/databases/update-polygon-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index aa7fd030..4b1eeafb 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md index 00bf4aed..95cd8ce4 100644 --- a/docs/examples/databases/update-string-attribute.md +++ b/docs/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-text-attribute.md b/docs/examples/databases/update-text-attribute.md index e041f96e..5e1559cc 100644 --- a/docs/examples/databases/update-text-attribute.md +++ b/docs/examples/databases/update-text-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-transaction.md b/docs/examples/databases/update-transaction.md index b3058935..49942aa4 100644 --- a/docs/examples/databases/update-transaction.md +++ b/docs/examples/databases/update-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md index 4beafd13..5d4b58b4 100644 --- a/docs/examples/databases/update-url-attribute.md +++ b/docs/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update-varchar-attribute.md b/docs/examples/databases/update-varchar-attribute.md index 2d721512..c2e75cc0 100644 --- a/docs/examples/databases/update-varchar-attribute.md +++ b/docs/examples/databases/update-varchar-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md index 1439c1ce..592329a3 100644 --- a/docs/examples/databases/update.md +++ b/docs/examples/databases/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/databases/upsert-document.md b/docs/examples/databases/upsert-document.md index 3eff270e..a073eb0c 100644 --- a/docs/examples/databases/upsert-document.md +++ b/docs/examples/databases/upsert-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/databases/upsert-documents.md b/docs/examples/databases/upsert-documents.md index d22184b8..8697a36c 100644 --- a/docs/examples/databases/upsert-documents.md +++ b/docs/examples/databases/upsert-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create-collection.md b/docs/examples/documentsdb/create-collection.md index 5c42dc56..d2695b6d 100644 --- a/docs/examples/documentsdb/create-collection.md +++ b/docs/examples/documentsdb/create-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create-document.md b/docs/examples/documentsdb/create-document.md index ccc8bc36..ce32aca5 100644 --- a/docs/examples/documentsdb/create-document.md +++ b/docs/examples/documentsdb/create-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/create-documents.md b/docs/examples/documentsdb/create-documents.md index 6b98311b..20d4cdf6 100644 --- a/docs/examples/documentsdb/create-documents.md +++ b/docs/examples/documentsdb/create-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/create-failover.md b/docs/examples/documentsdb/create-failover.md index 5a22d1c7..fda3461e 100644 --- a/docs/examples/documentsdb/create-failover.md +++ b/docs/examples/documentsdb/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create-index.md b/docs/examples/documentsdb/create-index.md index 31a06292..f90caeaf 100644 --- a/docs/examples/documentsdb/create-index.md +++ b/docs/examples/documentsdb/create-index.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create-operations.md b/docs/examples/documentsdb/create-operations.md index abe507f3..b1cbb13c 100644 --- a/docs/examples/documentsdb/create-operations.md +++ b/docs/examples/documentsdb/create-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create-transaction.md b/docs/examples/documentsdb/create-transaction.md index a948934b..69a37015 100644 --- a/docs/examples/documentsdb/create-transaction.md +++ b/docs/examples/documentsdb/create-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/create.md b/docs/examples/documentsdb/create.md index 8c1fa6b5..4dd3b4f3 100644 --- a/docs/examples/documentsdb/create.md +++ b/docs/examples/documentsdb/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/decrement-document-attribute.md b/docs/examples/documentsdb/decrement-document-attribute.md index 5ab49cdd..65664b57 100644 --- a/docs/examples/documentsdb/decrement-document-attribute.md +++ b/docs/examples/documentsdb/decrement-document-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/delete-collection.md b/docs/examples/documentsdb/delete-collection.md index ce55d795..fc15b052 100644 --- a/docs/examples/documentsdb/delete-collection.md +++ b/docs/examples/documentsdb/delete-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/delete-document.md b/docs/examples/documentsdb/delete-document.md index eeca145b..24745996 100644 --- a/docs/examples/documentsdb/delete-document.md +++ b/docs/examples/documentsdb/delete-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/delete-documents.md b/docs/examples/documentsdb/delete-documents.md index c1c885aa..2f9511e2 100644 --- a/docs/examples/documentsdb/delete-documents.md +++ b/docs/examples/documentsdb/delete-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/delete-index.md b/docs/examples/documentsdb/delete-index.md index fed0c3cc..d9f436bc 100644 --- a/docs/examples/documentsdb/delete-index.md +++ b/docs/examples/documentsdb/delete-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/delete-transaction.md b/docs/examples/documentsdb/delete-transaction.md index 5ad20ffd..9d03d960 100644 --- a/docs/examples/documentsdb/delete-transaction.md +++ b/docs/examples/documentsdb/delete-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/delete.md b/docs/examples/documentsdb/delete.md index 12696db2..1ed29f92 100644 --- a/docs/examples/documentsdb/delete.md +++ b/docs/examples/documentsdb/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get-collection.md b/docs/examples/documentsdb/get-collection.md index f50e03a1..4a423924 100644 --- a/docs/examples/documentsdb/get-collection.md +++ b/docs/examples/documentsdb/get-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get-document.md b/docs/examples/documentsdb/get-document.md index 1e3bfa5c..96a353b6 100644 --- a/docs/examples/documentsdb/get-document.md +++ b/docs/examples/documentsdb/get-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/get-index.md b/docs/examples/documentsdb/get-index.md index e8c99e38..23dd1d75 100644 --- a/docs/examples/documentsdb/get-index.md +++ b/docs/examples/documentsdb/get-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get-replicas.md b/docs/examples/documentsdb/get-replicas.md index abe66999..6f39e3b9 100644 --- a/docs/examples/documentsdb/get-replicas.md +++ b/docs/examples/documentsdb/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get-status.md b/docs/examples/documentsdb/get-status.md index 418a7613..8ddd9529 100644 --- a/docs/examples/documentsdb/get-status.md +++ b/docs/examples/documentsdb/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get-transaction.md b/docs/examples/documentsdb/get-transaction.md index 800897c2..1d33390d 100644 --- a/docs/examples/documentsdb/get-transaction.md +++ b/docs/examples/documentsdb/get-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/get.md b/docs/examples/documentsdb/get.md index f8d06919..f0ac3618 100644 --- a/docs/examples/documentsdb/get.md +++ b/docs/examples/documentsdb/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/increment-document-attribute.md b/docs/examples/documentsdb/increment-document-attribute.md index fc9d0795..ef395b82 100644 --- a/docs/examples/documentsdb/increment-document-attribute.md +++ b/docs/examples/documentsdb/increment-document-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/list-collections.md b/docs/examples/documentsdb/list-collections.md index 1227361b..86306ee3 100644 --- a/docs/examples/documentsdb/list-collections.md +++ b/docs/examples/documentsdb/list-collections.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/list-documents.md b/docs/examples/documentsdb/list-documents.md index 0838c9c1..0f741731 100644 --- a/docs/examples/documentsdb/list-documents.md +++ b/docs/examples/documentsdb/list-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/list-indexes.md b/docs/examples/documentsdb/list-indexes.md index aa8435ca..d53a98dd 100644 --- a/docs/examples/documentsdb/list-indexes.md +++ b/docs/examples/documentsdb/list-indexes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/list-operations.md b/docs/examples/documentsdb/list-operations.md index 5e274792..797ff022 100644 --- a/docs/examples/documentsdb/list-operations.md +++ b/docs/examples/documentsdb/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/list-specifications.md b/docs/examples/documentsdb/list-specifications.md index 33e4c32a..38cfb0cb 100644 --- a/docs/examples/documentsdb/list-specifications.md +++ b/docs/examples/documentsdb/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/list-transactions.md b/docs/examples/documentsdb/list-transactions.md index 84539069..46fa8c90 100644 --- a/docs/examples/documentsdb/list-transactions.md +++ b/docs/examples/documentsdb/list-transactions.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key DocumentsDB documentsDB = new DocumentsDB(client); TransactionList result = await documentsDB.ListTransactions( - queries: new List() // optional + queries: new List(), // optional + total: false // optional ); ``` diff --git a/docs/examples/documentsdb/list.md b/docs/examples/documentsdb/list.md index 79bfce24..e0b48cae 100644 --- a/docs/examples/documentsdb/list.md +++ b/docs/examples/documentsdb/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/update-collection.md b/docs/examples/documentsdb/update-collection.md index 093d9db9..8a3abcf9 100644 --- a/docs/examples/documentsdb/update-collection.md +++ b/docs/examples/documentsdb/update-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/update-document.md b/docs/examples/documentsdb/update-document.md index 87172a6e..e10be5c0 100644 --- a/docs/examples/documentsdb/update-document.md +++ b/docs/examples/documentsdb/update-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/update-documents.md b/docs/examples/documentsdb/update-documents.md index f325b2ea..4c8d286d 100644 --- a/docs/examples/documentsdb/update-documents.md +++ b/docs/examples/documentsdb/update-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/update-transaction.md b/docs/examples/documentsdb/update-transaction.md index b4a30687..959b657f 100644 --- a/docs/examples/documentsdb/update-transaction.md +++ b/docs/examples/documentsdb/update-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/update.md b/docs/examples/documentsdb/update.md index e9fd54c5..53e177d4 100644 --- a/docs/examples/documentsdb/update.md +++ b/docs/examples/documentsdb/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/documentsdb/upsert-document.md b/docs/examples/documentsdb/upsert-document.md index a5de788f..6f48113c 100644 --- a/docs/examples/documentsdb/upsert-document.md +++ b/docs/examples/documentsdb/upsert-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/documentsdb/upsert-documents.md b/docs/examples/documentsdb/upsert-documents.md index 66f738cf..7c2a207d 100644 --- a/docs/examples/documentsdb/upsert-documents.md +++ b/docs/examples/documentsdb/upsert-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/domains/create-preset-google-workspace.md b/docs/examples/domains/create-preset-google-workspace.md new file mode 100644 index 00000000..056dca86 --- /dev/null +++ b/docs/examples/domains/create-preset-google-workspace.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetGoogleWorkspace( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-preset-i-cloud.md b/docs/examples/domains/create-preset-i-cloud.md new file mode 100644 index 00000000..cc47ecc5 --- /dev/null +++ b/docs/examples/domains/create-preset-i-cloud.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetICloud( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-preset-mailgun.md b/docs/examples/domains/create-preset-mailgun.md new file mode 100644 index 00000000..453a5eed --- /dev/null +++ b/docs/examples/domains/create-preset-mailgun.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetMailgun( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-preset-outlook.md b/docs/examples/domains/create-preset-outlook.md new file mode 100644 index 00000000..23c77fdb --- /dev/null +++ b/docs/examples/domains/create-preset-outlook.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetOutlook( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-preset-proton-mail.md b/docs/examples/domains/create-preset-proton-mail.md new file mode 100644 index 00000000..30dd2ad8 --- /dev/null +++ b/docs/examples/domains/create-preset-proton-mail.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetProtonMail( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-preset-zoho.md b/docs/examples/domains/create-preset-zoho.md new file mode 100644 index 00000000..025b2294 --- /dev/null +++ b/docs/examples/domains/create-preset-zoho.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.CreatePresetZoho( + domainId: "" +); + +``` diff --git a/docs/examples/domains/create-record-a.md b/docs/examples/domains/create-record-a.md new file mode 100644 index 00000000..361b622b --- /dev/null +++ b/docs/examples/domains/create-record-a.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordA( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-aaaa.md b/docs/examples/domains/create-record-aaaa.md new file mode 100644 index 00000000..2a242304 --- /dev/null +++ b/docs/examples/domains/create-record-aaaa.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordAAAA( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-alias.md b/docs/examples/domains/create-record-alias.md new file mode 100644 index 00000000..987b806d --- /dev/null +++ b/docs/examples/domains/create-record-alias.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordAlias( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-caa.md b/docs/examples/domains/create-record-caa.md new file mode 100644 index 00000000..1c1d1da1 --- /dev/null +++ b/docs/examples/domains/create-record-caa.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordCAA( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-cname.md b/docs/examples/domains/create-record-cname.md new file mode 100644 index 00000000..dc20d2d4 --- /dev/null +++ b/docs/examples/domains/create-record-cname.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordCNAME( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-https.md b/docs/examples/domains/create-record-https.md new file mode 100644 index 00000000..cd3f8c8f --- /dev/null +++ b/docs/examples/domains/create-record-https.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordHTTPS( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-mx.md b/docs/examples/domains/create-record-mx.md new file mode 100644 index 00000000..6d017629 --- /dev/null +++ b/docs/examples/domains/create-record-mx.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordMX( + domainId: "", + name: "", + value: "", + ttl: 1, + priority: 0, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-ns.md b/docs/examples/domains/create-record-ns.md new file mode 100644 index 00000000..aebdc1b9 --- /dev/null +++ b/docs/examples/domains/create-record-ns.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordNS( + domainId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-srv.md b/docs/examples/domains/create-record-srv.md new file mode 100644 index 00000000..39015a63 --- /dev/null +++ b/docs/examples/domains/create-record-srv.md @@ -0,0 +1,24 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordSRV( + domainId: "", + name: "", + value: "", + ttl: 1, + priority: 0, + weight: 0, + port: 0, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create-record-txt.md b/docs/examples/domains/create-record-txt.md new file mode 100644 index 00000000..01c79385 --- /dev/null +++ b/docs/examples/domains/create-record-txt.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.CreateRecordTXT( + domainId: "", + name: "", + ttl: 1, + value: "", // optional + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/create.md b/docs/examples/domains/create.md new file mode 100644 index 00000000..d2f2fbba --- /dev/null +++ b/docs/examples/domains/create.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.Create( + teamId: "", + domain: "example.com" +); + +``` diff --git a/docs/examples/domains/delete-record.md b/docs/examples/domains/delete-record.md new file mode 100644 index 00000000..276661e9 --- /dev/null +++ b/docs/examples/domains/delete-record.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +await domains.DeleteRecord( + domainId: "", + recordId: "" +); + +``` diff --git a/docs/examples/domains/delete.md b/docs/examples/domains/delete.md new file mode 100644 index 00000000..6653595e --- /dev/null +++ b/docs/examples/domains/delete.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +await domains.Delete( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-google-workspace.md b/docs/examples/domains/get-preset-google-workspace.md new file mode 100644 index 00000000..03646756 --- /dev/null +++ b/docs/examples/domains/get-preset-google-workspace.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetGoogleWorkspace( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-i-cloud.md b/docs/examples/domains/get-preset-i-cloud.md new file mode 100644 index 00000000..75cdf4c7 --- /dev/null +++ b/docs/examples/domains/get-preset-i-cloud.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetICloud( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-mailgun.md b/docs/examples/domains/get-preset-mailgun.md new file mode 100644 index 00000000..8e63c07e --- /dev/null +++ b/docs/examples/domains/get-preset-mailgun.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetMailgun( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-outlook.md b/docs/examples/domains/get-preset-outlook.md new file mode 100644 index 00000000..d15880a0 --- /dev/null +++ b/docs/examples/domains/get-preset-outlook.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetOutlook( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-proton-mail.md b/docs/examples/domains/get-preset-proton-mail.md new file mode 100644 index 00000000..bb8eb2b1 --- /dev/null +++ b/docs/examples/domains/get-preset-proton-mail.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetProtonMail( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-preset-zoho.md b/docs/examples/domains/get-preset-zoho.md new file mode 100644 index 00000000..07c2ad41 --- /dev/null +++ b/docs/examples/domains/get-preset-zoho.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.GetPresetZoho( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-price.md b/docs/examples/domains/get-price.md new file mode 100644 index 00000000..b0ee54ca --- /dev/null +++ b/docs/examples/domains/get-price.md @@ -0,0 +1,20 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DomainPrice result = await domains.GetPrice( + domain: "example.com", + periodYears: 0, // optional + registrationType: DomainRegistrationType.New // optional +); + +``` diff --git a/docs/examples/domains/get-record.md b/docs/examples/domains/get-record.md new file mode 100644 index 00000000..cbadba5f --- /dev/null +++ b/docs/examples/domains/get-record.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.GetRecord( + domainId: "", + recordId: "" +); + +``` diff --git a/docs/examples/domains/get-transfer-status.md b/docs/examples/domains/get-transfer-status.md new file mode 100644 index 00000000..5c00b70d --- /dev/null +++ b/docs/examples/domains/get-transfer-status.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DomainTransferStatus result = await domains.GetTransferStatus( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get-zone.md b/docs/examples/domains/get-zone.md new file mode 100644 index 00000000..e8317244 --- /dev/null +++ b/docs/examples/domains/get-zone.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +string result = await domains.GetZone( + domainId: "" +); + +``` diff --git a/docs/examples/domains/get.md b/docs/examples/domains/get.md new file mode 100644 index 00000000..7d146ec5 --- /dev/null +++ b/docs/examples/domains/get.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.Get( + domainId: "" +); + +``` diff --git a/docs/examples/domains/list-prices.md b/docs/examples/domains/list-prices.md new file mode 100644 index 00000000..ef5a6a43 --- /dev/null +++ b/docs/examples/domains/list-prices.md @@ -0,0 +1,20 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DomainPricesList result = await domains.ListPrices( + domains: new List(), + periodYears: 0, // optional + registrationType: DomainRegistrationType.New // optional +); + +``` diff --git a/docs/examples/domains/list-records.md b/docs/examples/domains/list-records.md new file mode 100644 index 00000000..8df218d2 --- /dev/null +++ b/docs/examples/domains/list-records.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecordsList result = await domains.ListRecords( + domainId: "", + queries: new List() // optional +); + +``` diff --git a/docs/examples/domains/list.md b/docs/examples/domains/list.md new file mode 100644 index 00000000..94b0e9ea --- /dev/null +++ b/docs/examples/domains/list.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DomainsList result = await domains.List( + queries: new List(), // optional + search: "" // optional +); + +``` diff --git a/docs/examples/domains/update-nameservers.md b/docs/examples/domains/update-nameservers.md new file mode 100644 index 00000000..0eaf1473 --- /dev/null +++ b/docs/examples/domains/update-nameservers.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.UpdateNameservers( + domainId: "", + nameservers: new List() // optional +); + +``` diff --git a/docs/examples/domains/update-record-a.md b/docs/examples/domains/update-record-a.md new file mode 100644 index 00000000..66c6e67b --- /dev/null +++ b/docs/examples/domains/update-record-a.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordA( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-aaaa.md b/docs/examples/domains/update-record-aaaa.md new file mode 100644 index 00000000..7b0073e2 --- /dev/null +++ b/docs/examples/domains/update-record-aaaa.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordAAAA( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-alias.md b/docs/examples/domains/update-record-alias.md new file mode 100644 index 00000000..bf38ca8c --- /dev/null +++ b/docs/examples/domains/update-record-alias.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordAlias( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-caa.md b/docs/examples/domains/update-record-caa.md new file mode 100644 index 00000000..0c557c1f --- /dev/null +++ b/docs/examples/domains/update-record-caa.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordCAA( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-cname.md b/docs/examples/domains/update-record-cname.md new file mode 100644 index 00000000..7ae6ef71 --- /dev/null +++ b/docs/examples/domains/update-record-cname.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordCNAME( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-https.md b/docs/examples/domains/update-record-https.md new file mode 100644 index 00000000..44f9362d --- /dev/null +++ b/docs/examples/domains/update-record-https.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordHTTPS( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-mx.md b/docs/examples/domains/update-record-mx.md new file mode 100644 index 00000000..9354da17 --- /dev/null +++ b/docs/examples/domains/update-record-mx.md @@ -0,0 +1,23 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordMX( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + priority: 0, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-ns.md b/docs/examples/domains/update-record-ns.md new file mode 100644 index 00000000..67bffc9e --- /dev/null +++ b/docs/examples/domains/update-record-ns.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordNS( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-srv.md b/docs/examples/domains/update-record-srv.md new file mode 100644 index 00000000..a9dafa29 --- /dev/null +++ b/docs/examples/domains/update-record-srv.md @@ -0,0 +1,25 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordSRV( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + priority: 0, + weight: 0, + port: 0, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-record-txt.md b/docs/examples/domains/update-record-txt.md new file mode 100644 index 00000000..7da81c13 --- /dev/null +++ b/docs/examples/domains/update-record-txt.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.DnsRecord result = await domains.UpdateRecordTXT( + domainId: "", + recordId: "", + name: "", + value: "", + ttl: 1, + comment: "" // optional +); + +``` diff --git a/docs/examples/domains/update-team.md b/docs/examples/domains/update-team.md new file mode 100644 index 00000000..40f2cdc6 --- /dev/null +++ b/docs/examples/domains/update-team.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.UpdateTeam( + domainId: "", + teamId: "" +); + +``` diff --git a/docs/examples/domains/update-zone.md b/docs/examples/domains/update-zone.md new file mode 100644 index 00000000..01a16706 --- /dev/null +++ b/docs/examples/domains/update-zone.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.UpdateZone( + domainId: "", + content: "" +); + +``` diff --git a/docs/examples/domains/verify-nameservers.md b/docs/examples/domains/verify-nameservers.md new file mode 100644 index 00000000..b2b7ab5e --- /dev/null +++ b/docs/examples/domains/verify-nameservers.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Domains domains = new Domains(client); + +Appwrite.Models.XDomain result = await domains.VerifyNameservers( + domainId: "" +); + +``` diff --git a/docs/examples/embeddings/create-text-embeddings.md b/docs/examples/embeddings/create-text-embeddings.md index 95b97cc0..d27e151f 100644 --- a/docs/examples/embeddings/create-text-embeddings.md +++ b/docs/examples/embeddings/create-text-embeddings.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md index a445e35f..6b1713f9 100644 --- a/docs/examples/functions/create-deployment.md +++ b/docs/examples/functions/create-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create-duplicate-deployment.md b/docs/examples/functions/create-duplicate-deployment.md index 20ba6fab..06d01670 100644 --- a/docs/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/functions/create-duplicate-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index 38e0b69b..b06b8599 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/functions/create-template-deployment.md b/docs/examples/functions/create-template-deployment.md index 47edfa96..3078de05 100644 --- a/docs/examples/functions/create-template-deployment.md +++ b/docs/examples/functions/create-template-deployment.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md index 7e3d32f6..d54ad919 100644 --- a/docs/examples/functions/create-variable.md +++ b/docs/examples/functions/create-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create-vcs-deployment.md b/docs/examples/functions/create-vcs-deployment.md index bfc06888..2b8e08bb 100644 --- a/docs/examples/functions/create-vcs-deployment.md +++ b/docs/examples/functions/create-vcs-deployment.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 0526f8f0..cb14db90 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index 673fc1c8..f3e30e1a 100644 --- a/docs/examples/functions/delete-deployment.md +++ b/docs/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/delete-execution.md b/docs/examples/functions/delete-execution.md index 28882815..19fc99a6 100644 --- a/docs/examples/functions/delete-execution.md +++ b/docs/examples/functions/delete-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md index 7dcb9a9a..20396f6c 100644 --- a/docs/examples/functions/delete-variable.md +++ b/docs/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index c814f321..8946c778 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index 0756473a..f39b91e6 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md index fb0905f5..0ff7ee78 100644 --- a/docs/examples/functions/get-deployment.md +++ b/docs/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index 6f2871b4..53001d0f 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md index 7b383b0b..128c08c2 100644 --- a/docs/examples/functions/get-variable.md +++ b/docs/examples/functions/get-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index 86ffaa29..4bf27aa3 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md index 8e368f9f..5c42cd00 100644 --- a/docs/examples/functions/list-deployments.md +++ b/docs/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index 85cc2ab4..7356513f 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md index b0b68625..99d988c6 100644 --- a/docs/examples/functions/list-runtimes.md +++ b/docs/examples/functions/list-runtimes.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key Functions functions = new Functions(client); -RuntimeList result = await functions.ListRuntimes(); - +RuntimeList result = await functions.ListRuntimes( + total: false // optional +); ``` diff --git a/docs/examples/functions/list-specifications.md b/docs/examples/functions/list-specifications.md index b97f4cf4..7ab79017 100644 --- a/docs/examples/functions/list-specifications.md +++ b/docs/examples/functions/list-specifications.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key Functions functions = new Functions(client); SpecificationList result = await functions.ListSpecifications( - type: "runtimes" // optional + type: "runtimes", // optional + total: false // optional ); ``` diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index df8029e3..f354a920 100644 --- a/docs/examples/functions/list-variables.md +++ b/docs/examples/functions/list-variables.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index b09d8ee6..95a3113a 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/update-deployment-status.md b/docs/examples/functions/update-deployment-status.md index ee782aed..c104c9ec 100644 --- a/docs/examples/functions/update-deployment-status.md +++ b/docs/examples/functions/update-deployment-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/update-function-deployment.md b/docs/examples/functions/update-function-deployment.md index 563d5a21..443447b8 100644 --- a/docs/examples/functions/update-function-deployment.md +++ b/docs/examples/functions/update-function-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md index a1fd20ee..6e2d04ff 100644 --- a/docs/examples/functions/update-variable.md +++ b/docs/examples/functions/update-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 45574516..04001ce6 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index 0145c03c..cdaca98f 100644 --- a/docs/examples/graphql/mutation.md +++ b/docs/examples/graphql/mutation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md index 88c82162..2bf52d21 100644 --- a/docs/examples/graphql/query.md +++ b/docs/examples/graphql/query.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index a1dcbcc9..9777eee0 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/locale/list-codes.md b/docs/examples/locale/list-codes.md index a3bfeff5..3a6b204d 100644 --- a/docs/examples/locale/list-codes.md +++ b/docs/examples/locale/list-codes.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -LocaleCodeList result = await locale.ListCodes(); - +LocaleCodeList result = await locale.ListCodes( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md index 02b86116..35ae7502 100644 --- a/docs/examples/locale/list-continents.md +++ b/docs/examples/locale/list-continents.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -ContinentList result = await locale.ListContinents(); - +ContinentList result = await locale.ListContinents( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-countries-eu.md b/docs/examples/locale/list-countries-eu.md index 9452cd0e..8afd3129 100644 --- a/docs/examples/locale/list-countries-eu.md +++ b/docs/examples/locale/list-countries-eu.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -CountryList result = await locale.ListCountriesEU(); - +CountryList result = await locale.ListCountriesEU( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md index e3b5346e..d5c92628 100644 --- a/docs/examples/locale/list-countries-phones.md +++ b/docs/examples/locale/list-countries-phones.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -PhoneList result = await locale.ListCountriesPhones(); - +PhoneList result = await locale.ListCountriesPhones( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md index c9c1fb94..a1ae1331 100644 --- a/docs/examples/locale/list-countries.md +++ b/docs/examples/locale/list-countries.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -CountryList result = await locale.ListCountries(); - +CountryList result = await locale.ListCountries( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md index 18d04a69..b532dc3b 100644 --- a/docs/examples/locale/list-currencies.md +++ b/docs/examples/locale/list-currencies.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -CurrencyList result = await locale.ListCurrencies(); - +CurrencyList result = await locale.ListCurrencies( + total: false // optional +); ``` diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md index 83ed0241..fd245094 100644 --- a/docs/examples/locale/list-languages.md +++ b/docs/examples/locale/list-languages.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); -LanguageList result = await locale.ListLanguages(); - +LanguageList result = await locale.ListLanguages( + total: false // optional +); ``` diff --git a/docs/examples/messaging/create-apns-provider.md b/docs/examples/messaging/create-apns-provider.md index 55be57aa..bed5c0c1 100644 --- a/docs/examples/messaging/create-apns-provider.md +++ b/docs/examples/messaging/create-apns-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-appwrite-provider.md b/docs/examples/messaging/create-appwrite-provider.md new file mode 100644 index 00000000..a268171b --- /dev/null +++ b/docs/examples/messaging/create-appwrite-provider.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Messaging messaging = new Messaging(client); + +Appwrite.Models.Provider result = await messaging.CreateAppwriteProvider( + providerId: "", + name: "", + enabled: false, // optional + qos: 0, // optional + expiry: 0 // optional +); + +``` diff --git a/docs/examples/messaging/create-email.md b/docs/examples/messaging/create-email.md index 03c71b14..0bc15570 100644 --- a/docs/examples/messaging/create-email.md +++ b/docs/examples/messaging/create-email.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -22,7 +22,9 @@ Message result = await messaging.CreateEmail( attachments: new List(), // optional draft: false, // optional html: false, // optional - scheduledAt: "2020-10-15T06:38:00.000+00:00" // optional + scheduledAt: "2020-10-15T06:38:00.000+00:00", // optional + replyToEmail: "email@example.com", // optional + replyToName: "" // optional ); ``` diff --git a/docs/examples/messaging/create-fcm-provider.md b/docs/examples/messaging/create-fcm-provider.md index 4ef0b591..e1bf3646 100644 --- a/docs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/messaging/create-fcm-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-mailgun-provider.md b/docs/examples/messaging/create-mailgun-provider.md index ba278efe..90529552 100644 --- a/docs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/messaging/create-mailgun-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-msg-91-provider.md b/docs/examples/messaging/create-msg-91-provider.md index e7638b6e..17edab9a 100644 --- a/docs/examples/messaging/create-msg-91-provider.md +++ b/docs/examples/messaging/create-msg-91-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index 3ee6e423..09689244 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -30,7 +30,8 @@ Message result = await messaging.CreatePush( scheduledAt: "2020-10-15T06:38:00.000+00:00", // optional contentAvailable: false, // optional critical: false, // optional - priority: MessagePriority.Normal // optional + priority: MessagePriority.Normal, // optional + channelId: "" // optional ); ``` diff --git a/docs/examples/messaging/create-resend-provider.md b/docs/examples/messaging/create-resend-provider.md index e2400c9f..1eeafd9a 100644 --- a/docs/examples/messaging/create-resend-provider.md +++ b/docs/examples/messaging/create-resend-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-sendgrid-provider.md b/docs/examples/messaging/create-sendgrid-provider.md index f18e9a05..af743dac 100644 --- a/docs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/messaging/create-sendgrid-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-ses-provider.md b/docs/examples/messaging/create-ses-provider.md index ef569769..4e7779f5 100644 --- a/docs/examples/messaging/create-ses-provider.md +++ b/docs/examples/messaging/create-ses-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-sms.md b/docs/examples/messaging/create-sms.md index 2756f28c..a3a8a255 100644 --- a/docs/examples/messaging/create-sms.md +++ b/docs/examples/messaging/create-sms.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index bbe34356..267ee10c 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-subscriber.md b/docs/examples/messaging/create-subscriber.md index 619abf20..967085b6 100644 --- a/docs/examples/messaging/create-subscriber.md +++ b/docs/examples/messaging/create-subscriber.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetJWT(""); // Your secret JSON Web Token diff --git a/docs/examples/messaging/create-telesign-provider.md b/docs/examples/messaging/create-telesign-provider.md index 68c37c33..2784ee23 100644 --- a/docs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/messaging/create-telesign-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-textmagic-provider.md b/docs/examples/messaging/create-textmagic-provider.md index d549516c..ca1eba71 100644 --- a/docs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/messaging/create-textmagic-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-topic.md b/docs/examples/messaging/create-topic.md index 9b4338dc..b9fba258 100644 --- a/docs/examples/messaging/create-topic.md +++ b/docs/examples/messaging/create-topic.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +13,9 @@ Messaging messaging = new Messaging(client); Topic result = await messaging.CreateTopic( topicId: "", name: "", - subscribe: ["any"] // optional + subscribe: ["any"], // optional + qos: 0, // optional + expiry: 0 // optional ); ``` diff --git a/docs/examples/messaging/create-twilio-provider.md b/docs/examples/messaging/create-twilio-provider.md index a8a5d8c9..63b8064e 100644 --- a/docs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/messaging/create-twilio-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/create-vonage-provider.md b/docs/examples/messaging/create-vonage-provider.md index 8fc8335b..81d9b791 100644 --- a/docs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/messaging/create-vonage-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/delete-provider.md b/docs/examples/messaging/delete-provider.md index fb8bca39..d32f4c6e 100644 --- a/docs/examples/messaging/delete-provider.md +++ b/docs/examples/messaging/delete-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/delete-subscriber.md b/docs/examples/messaging/delete-subscriber.md index 81f1d1ce..e4b560b9 100644 --- a/docs/examples/messaging/delete-subscriber.md +++ b/docs/examples/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetJWT(""); // Your secret JSON Web Token diff --git a/docs/examples/messaging/delete-topic.md b/docs/examples/messaging/delete-topic.md index 579cce5b..56ec60ca 100644 --- a/docs/examples/messaging/delete-topic.md +++ b/docs/examples/messaging/delete-topic.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/delete.md b/docs/examples/messaging/delete.md index a04d0334..d8d21f68 100644 --- a/docs/examples/messaging/delete.md +++ b/docs/examples/messaging/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/get-message.md b/docs/examples/messaging/get-message.md index 53597127..03cd816c 100644 --- a/docs/examples/messaging/get-message.md +++ b/docs/examples/messaging/get-message.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/get-provider.md b/docs/examples/messaging/get-provider.md index fb9c334e..2f4e2384 100644 --- a/docs/examples/messaging/get-provider.md +++ b/docs/examples/messaging/get-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/get-subscriber.md b/docs/examples/messaging/get-subscriber.md index 79e6bb07..2e65ca2b 100644 --- a/docs/examples/messaging/get-subscriber.md +++ b/docs/examples/messaging/get-subscriber.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/get-topic.md b/docs/examples/messaging/get-topic.md index 6fc890d0..35f73e3e 100644 --- a/docs/examples/messaging/get-topic.md +++ b/docs/examples/messaging/get-topic.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/list-messages.md b/docs/examples/messaging/list-messages.md index 6bc43ea9..111143d5 100644 --- a/docs/examples/messaging/list-messages.md +++ b/docs/examples/messaging/list-messages.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/list-providers.md b/docs/examples/messaging/list-providers.md index 5d286744..44ec448c 100644 --- a/docs/examples/messaging/list-providers.md +++ b/docs/examples/messaging/list-providers.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/list-subscribers.md b/docs/examples/messaging/list-subscribers.md index 15773d00..82810968 100644 --- a/docs/examples/messaging/list-subscribers.md +++ b/docs/examples/messaging/list-subscribers.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/list-targets.md b/docs/examples/messaging/list-targets.md index e5b2cd94..7c966a4a 100644 --- a/docs/examples/messaging/list-targets.md +++ b/docs/examples/messaging/list-targets.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/list-topics.md b/docs/examples/messaging/list-topics.md index 4fa6f4df..1a108dfe 100644 --- a/docs/examples/messaging/list-topics.md +++ b/docs/examples/messaging/list-topics.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-apns-provider.md b/docs/examples/messaging/update-apns-provider.md index d8a04a49..2d787ae6 100644 --- a/docs/examples/messaging/update-apns-provider.md +++ b/docs/examples/messaging/update-apns-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-appwrite-provider.md b/docs/examples/messaging/update-appwrite-provider.md new file mode 100644 index 00000000..8e75b31d --- /dev/null +++ b/docs/examples/messaging/update-appwrite-provider.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Messaging messaging = new Messaging(client); + +Appwrite.Models.Provider result = await messaging.UpdateAppwriteProvider( + providerId: "", + name: "", // optional + enabled: false, // optional + qos: 0, // optional + expiry: 0 // optional +); + +``` diff --git a/docs/examples/messaging/update-email.md b/docs/examples/messaging/update-email.md index 5e87deeb..3c0661b5 100644 --- a/docs/examples/messaging/update-email.md +++ b/docs/examples/messaging/update-email.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -22,7 +22,9 @@ Message result = await messaging.UpdateEmail( cc: new List(), // optional bcc: new List(), // optional scheduledAt: "2020-10-15T06:38:00.000+00:00", // optional - attachments: new List() // optional + attachments: new List(), // optional + replyToEmail: "email@example.com", // optional + replyToName: "" // optional ); ``` diff --git a/docs/examples/messaging/update-fcm-provider.md b/docs/examples/messaging/update-fcm-provider.md index c7381ed2..550c503d 100644 --- a/docs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/messaging/update-fcm-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-mailgun-provider.md b/docs/examples/messaging/update-mailgun-provider.md index 95b8466d..1a3f03a0 100644 --- a/docs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/messaging/update-mailgun-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-msg-91-provider.md b/docs/examples/messaging/update-msg-91-provider.md index 3652c6a0..7671bf64 100644 --- a/docs/examples/messaging/update-msg-91-provider.md +++ b/docs/examples/messaging/update-msg-91-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index 6a151cca..43be99a0 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -30,7 +30,8 @@ Message result = await messaging.UpdatePush( scheduledAt: "2020-10-15T06:38:00.000+00:00", // optional contentAvailable: false, // optional critical: false, // optional - priority: MessagePriority.Normal // optional + priority: MessagePriority.Normal, // optional + channelId: "" // optional ); ``` diff --git a/docs/examples/messaging/update-resend-provider.md b/docs/examples/messaging/update-resend-provider.md index 9bef411a..b5770175 100644 --- a/docs/examples/messaging/update-resend-provider.md +++ b/docs/examples/messaging/update-resend-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-sendgrid-provider.md b/docs/examples/messaging/update-sendgrid-provider.md index b98feaa1..948954ef 100644 --- a/docs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/messaging/update-sendgrid-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-ses-provider.md b/docs/examples/messaging/update-ses-provider.md index 982cd549..21752156 100644 --- a/docs/examples/messaging/update-ses-provider.md +++ b/docs/examples/messaging/update-ses-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-sms.md b/docs/examples/messaging/update-sms.md index 3d38d9fb..c8b2ee8b 100644 --- a/docs/examples/messaging/update-sms.md +++ b/docs/examples/messaging/update-sms.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index 2d9da6ca..354e5c6e 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-telesign-provider.md b/docs/examples/messaging/update-telesign-provider.md index 5a7048b1..e8442f66 100644 --- a/docs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/messaging/update-telesign-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-textmagic-provider.md b/docs/examples/messaging/update-textmagic-provider.md index 4f0a7a0d..a63363e3 100644 --- a/docs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/messaging/update-textmagic-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-topic.md b/docs/examples/messaging/update-topic.md index aa45f99b..31febfc6 100644 --- a/docs/examples/messaging/update-topic.md +++ b/docs/examples/messaging/update-topic.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +13,9 @@ Messaging messaging = new Messaging(client); Topic result = await messaging.UpdateTopic( topicId: "", name: "", // optional - subscribe: ["any"] // optional + subscribe: ["any"], // optional + qos: 0, // optional + expiry: 0 // optional ); ``` diff --git a/docs/examples/messaging/update-twilio-provider.md b/docs/examples/messaging/update-twilio-provider.md index a1d51e9e..84886842 100644 --- a/docs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/messaging/update-twilio-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/messaging/update-vonage-provider.md b/docs/examples/messaging/update-vonage-provider.md index d26a17dd..1b8af0e9 100644 --- a/docs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/messaging/update-vonage-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-backup-policy.md b/docs/examples/mongo/create-backup-policy.md index 41e2ed4b..13784833 100644 --- a/docs/examples/mongo/create-backup-policy.md +++ b/docs/examples/mongo/create-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-backup.md b/docs/examples/mongo/create-backup.md index e25efa99..d6461ae6 100644 --- a/docs/examples/mongo/create-backup.md +++ b/docs/examples/mongo/create-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-branch.md b/docs/examples/mongo/create-branch.md index 8c01df43..5ee45fdd 100644 --- a/docs/examples/mongo/create-branch.md +++ b/docs/examples/mongo/create-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-failover.md b/docs/examples/mongo/create-failover.md index d4a6686e..7d30fa74 100644 --- a/docs/examples/mongo/create-failover.md +++ b/docs/examples/mongo/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-migration.md b/docs/examples/mongo/create-migration.md index b7fbcc7a..671cebc2 100644 --- a/docs/examples/mongo/create-migration.md +++ b/docs/examples/mongo/create-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-restoration.md b/docs/examples/mongo/create-restoration.md index 8e9358eb..5aa0e463 100644 --- a/docs/examples/mongo/create-restoration.md +++ b/docs/examples/mongo/create-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create-upgrade.md b/docs/examples/mongo/create-upgrade.md index c18e2d62..041ddf4e 100644 --- a/docs/examples/mongo/create-upgrade.md +++ b/docs/examples/mongo/create-upgrade.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/create.md b/docs/examples/mongo/create.md index c6ef970c..8a6bf45e 100644 --- a/docs/examples/mongo/create.md +++ b/docs/examples/mongo/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/delete-backup-policy.md b/docs/examples/mongo/delete-backup-policy.md index 923bea41..9d128c4c 100644 --- a/docs/examples/mongo/delete-backup-policy.md +++ b/docs/examples/mongo/delete-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/delete-backup.md b/docs/examples/mongo/delete-backup.md index 48529d97..b25bd304 100644 --- a/docs/examples/mongo/delete-backup.md +++ b/docs/examples/mongo/delete-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/delete-branch.md b/docs/examples/mongo/delete-branch.md index a17780fd..b5e8dadb 100644 --- a/docs/examples/mongo/delete-branch.md +++ b/docs/examples/mongo/delete-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/delete.md b/docs/examples/mongo/delete.md index e014f378..5bffed0a 100644 --- a/docs/examples/mongo/delete.md +++ b/docs/examples/mongo/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-backup-policy.md b/docs/examples/mongo/get-backup-policy.md index d05d979d..b0036c9b 100644 --- a/docs/examples/mongo/get-backup-policy.md +++ b/docs/examples/mongo/get-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-backup.md b/docs/examples/mongo/get-backup.md index ced57a21..deb3c8c3 100644 --- a/docs/examples/mongo/get-backup.md +++ b/docs/examples/mongo/get-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-pitr.md b/docs/examples/mongo/get-pitr.md index 55a1e64e..b6581acd 100644 --- a/docs/examples/mongo/get-pitr.md +++ b/docs/examples/mongo/get-pitr.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-replicas.md b/docs/examples/mongo/get-replicas.md index 7c52ecee..2a4be12c 100644 --- a/docs/examples/mongo/get-replicas.md +++ b/docs/examples/mongo/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-restoration.md b/docs/examples/mongo/get-restoration.md index 32e83008..8e410b7f 100644 --- a/docs/examples/mongo/get-restoration.md +++ b/docs/examples/mongo/get-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get-status.md b/docs/examples/mongo/get-status.md index 883f3b97..144a1681 100644 --- a/docs/examples/mongo/get-status.md +++ b/docs/examples/mongo/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/get.md b/docs/examples/mongo/get.md index 86e0b80c..40bd95ec 100644 --- a/docs/examples/mongo/get.md +++ b/docs/examples/mongo/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-backup-policies.md b/docs/examples/mongo/list-backup-policies.md index 9b56913a..7c1a0ccf 100644 --- a/docs/examples/mongo/list-backup-policies.md +++ b/docs/examples/mongo/list-backup-policies.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-backups.md b/docs/examples/mongo/list-backups.md index 6da449f8..1fe2333c 100644 --- a/docs/examples/mongo/list-backups.md +++ b/docs/examples/mongo/list-backups.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-branches.md b/docs/examples/mongo/list-branches.md index f68102dc..67a159dd 100644 --- a/docs/examples/mongo/list-branches.md +++ b/docs/examples/mongo/list-branches.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-operations.md b/docs/examples/mongo/list-operations.md index c2dc679f..1f34c0d0 100644 --- a/docs/examples/mongo/list-operations.md +++ b/docs/examples/mongo/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-restorations.md b/docs/examples/mongo/list-restorations.md index b5655c37..714c242f 100644 --- a/docs/examples/mongo/list-restorations.md +++ b/docs/examples/mongo/list-restorations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list-specifications.md b/docs/examples/mongo/list-specifications.md index 474e6123..079a8e80 100644 --- a/docs/examples/mongo/list-specifications.md +++ b/docs/examples/mongo/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/list.md b/docs/examples/mongo/list.md index bd222419..e712bcdf 100644 --- a/docs/examples/mongo/list.md +++ b/docs/examples/mongo/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/update-backup-policy.md b/docs/examples/mongo/update-backup-policy.md index 7bec7bf3..5f337f23 100644 --- a/docs/examples/mongo/update-backup-policy.md +++ b/docs/examples/mongo/update-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/update-backup-storage.md b/docs/examples/mongo/update-backup-storage.md index 27f365d4..7a870b3f 100644 --- a/docs/examples/mongo/update-backup-storage.md +++ b/docs/examples/mongo/update-backup-storage.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/update-credentials.md b/docs/examples/mongo/update-credentials.md index 9dafd042..3fc34c20 100644 --- a/docs/examples/mongo/update-credentials.md +++ b/docs/examples/mongo/update-credentials.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/update-maintenance.md b/docs/examples/mongo/update-maintenance.md index e64faec6..a1f19009 100644 --- a/docs/examples/mongo/update-maintenance.md +++ b/docs/examples/mongo/update-maintenance.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mongo/update.md b/docs/examples/mongo/update.md index 6c9b8d0a..06f87894 100644 --- a/docs/examples/mongo/update.md +++ b/docs/examples/mongo/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-backup-policy.md b/docs/examples/mysql/create-backup-policy.md index ca410dc0..d6d56c2b 100644 --- a/docs/examples/mysql/create-backup-policy.md +++ b/docs/examples/mysql/create-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-backup.md b/docs/examples/mysql/create-backup.md index f5e271df..2803c8ab 100644 --- a/docs/examples/mysql/create-backup.md +++ b/docs/examples/mysql/create-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-branch.md b/docs/examples/mysql/create-branch.md index a4d9283f..66d07c1f 100644 --- a/docs/examples/mysql/create-branch.md +++ b/docs/examples/mysql/create-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-execution.md b/docs/examples/mysql/create-execution.md index 364fd302..16873611 100644 --- a/docs/examples/mysql/create-execution.md +++ b/docs/examples/mysql/create-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-failover.md b/docs/examples/mysql/create-failover.md index e30720ba..197fbf7f 100644 --- a/docs/examples/mysql/create-failover.md +++ b/docs/examples/mysql/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-migration.md b/docs/examples/mysql/create-migration.md index c0b943c8..50cbb6e9 100644 --- a/docs/examples/mysql/create-migration.md +++ b/docs/examples/mysql/create-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-restoration.md b/docs/examples/mysql/create-restoration.md index d6f1fa35..d6cbf220 100644 --- a/docs/examples/mysql/create-restoration.md +++ b/docs/examples/mysql/create-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create-upgrade.md b/docs/examples/mysql/create-upgrade.md index 4b408cee..dc9a14a4 100644 --- a/docs/examples/mysql/create-upgrade.md +++ b/docs/examples/mysql/create-upgrade.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/create.md b/docs/examples/mysql/create.md index 23bcc79e..2cd322a6 100644 --- a/docs/examples/mysql/create.md +++ b/docs/examples/mysql/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/delete-backup-policy.md b/docs/examples/mysql/delete-backup-policy.md index b9edb4ce..d1bb3d88 100644 --- a/docs/examples/mysql/delete-backup-policy.md +++ b/docs/examples/mysql/delete-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/delete-backup.md b/docs/examples/mysql/delete-backup.md index dca510ca..b0d09dbd 100644 --- a/docs/examples/mysql/delete-backup.md +++ b/docs/examples/mysql/delete-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/delete-branch.md b/docs/examples/mysql/delete-branch.md index 1fc078f7..fb075ade 100644 --- a/docs/examples/mysql/delete-branch.md +++ b/docs/examples/mysql/delete-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/delete.md b/docs/examples/mysql/delete.md index 4da3ff7f..9d88284d 100644 --- a/docs/examples/mysql/delete.md +++ b/docs/examples/mysql/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-backup-policy.md b/docs/examples/mysql/get-backup-policy.md index 524bd066..d5640943 100644 --- a/docs/examples/mysql/get-backup-policy.md +++ b/docs/examples/mysql/get-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-backup.md b/docs/examples/mysql/get-backup.md index 1c81ffc4..edb8784f 100644 --- a/docs/examples/mysql/get-backup.md +++ b/docs/examples/mysql/get-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-pitr.md b/docs/examples/mysql/get-pitr.md index 3f1d3fcc..c1aeec16 100644 --- a/docs/examples/mysql/get-pitr.md +++ b/docs/examples/mysql/get-pitr.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-pooler.md b/docs/examples/mysql/get-pooler.md index c88ec9c8..6232103e 100644 --- a/docs/examples/mysql/get-pooler.md +++ b/docs/examples/mysql/get-pooler.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-replicas.md b/docs/examples/mysql/get-replicas.md index 4033dc58..b94cbc52 100644 --- a/docs/examples/mysql/get-replicas.md +++ b/docs/examples/mysql/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-restoration.md b/docs/examples/mysql/get-restoration.md index 11f18fc1..b7092a47 100644 --- a/docs/examples/mysql/get-restoration.md +++ b/docs/examples/mysql/get-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get-status.md b/docs/examples/mysql/get-status.md index a6adb9a2..209564c9 100644 --- a/docs/examples/mysql/get-status.md +++ b/docs/examples/mysql/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/get.md b/docs/examples/mysql/get.md index 0ae1db33..a5445d91 100644 --- a/docs/examples/mysql/get.md +++ b/docs/examples/mysql/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-backup-policies.md b/docs/examples/mysql/list-backup-policies.md index 546c276a..b66ab31d 100644 --- a/docs/examples/mysql/list-backup-policies.md +++ b/docs/examples/mysql/list-backup-policies.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-backups.md b/docs/examples/mysql/list-backups.md index 11fda3e8..cc88c870 100644 --- a/docs/examples/mysql/list-backups.md +++ b/docs/examples/mysql/list-backups.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-branches.md b/docs/examples/mysql/list-branches.md index 471fecec..939d58bd 100644 --- a/docs/examples/mysql/list-branches.md +++ b/docs/examples/mysql/list-branches.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-operations.md b/docs/examples/mysql/list-operations.md index 5b3f342a..59424cbb 100644 --- a/docs/examples/mysql/list-operations.md +++ b/docs/examples/mysql/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-restorations.md b/docs/examples/mysql/list-restorations.md index 0238c2ce..af7d1348 100644 --- a/docs/examples/mysql/list-restorations.md +++ b/docs/examples/mysql/list-restorations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list-specifications.md b/docs/examples/mysql/list-specifications.md index a469ff04..6a1bf622 100644 --- a/docs/examples/mysql/list-specifications.md +++ b/docs/examples/mysql/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/list.md b/docs/examples/mysql/list.md index f49707d1..0381838f 100644 --- a/docs/examples/mysql/list.md +++ b/docs/examples/mysql/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update-backup-policy.md b/docs/examples/mysql/update-backup-policy.md index c812e9ea..8a7db70d 100644 --- a/docs/examples/mysql/update-backup-policy.md +++ b/docs/examples/mysql/update-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update-backup-storage.md b/docs/examples/mysql/update-backup-storage.md index 6efbdc49..21e8caeb 100644 --- a/docs/examples/mysql/update-backup-storage.md +++ b/docs/examples/mysql/update-backup-storage.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update-credentials.md b/docs/examples/mysql/update-credentials.md index 7bf74cb3..633dda35 100644 --- a/docs/examples/mysql/update-credentials.md +++ b/docs/examples/mysql/update-credentials.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update-maintenance.md b/docs/examples/mysql/update-maintenance.md index 4a28819a..b8880570 100644 --- a/docs/examples/mysql/update-maintenance.md +++ b/docs/examples/mysql/update-maintenance.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update-pooler.md b/docs/examples/mysql/update-pooler.md index 455b6d2b..315c7b5b 100644 --- a/docs/examples/mysql/update-pooler.md +++ b/docs/examples/mysql/update-pooler.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/mysql/update.md b/docs/examples/mysql/update.md index 4e9e8adb..90e0e26a 100644 --- a/docs/examples/mysql/update.md +++ b/docs/examples/mysql/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/oauth2/approve.md b/docs/examples/oauth2/approve.md index b59de4dd..e10fc64a 100644 --- a/docs/examples/oauth2/approve.md +++ b/docs/examples/oauth2/approve.md @@ -4,15 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Approve result = await oauth2.Approve( - grant_id: "", - authorization_details: "", // optional + grantId: "", + authorizationDetails: "", // optional scope: "" // optional ); diff --git a/docs/examples/oauth2/authorize-post.md b/docs/examples/oauth2/authorize-post.md index b2269a0e..71dab9d7 100644 --- a/docs/examples/oauth2/authorize-post.md +++ b/docs/examples/oauth2/authorize-post.md @@ -4,27 +4,27 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Authorize result = await oauth2.AuthorizePost( - client_id: "", // optional - redirect_uri: "https://example.com", // optional - response_type: "", // optional + clientId: "", // optional + redirectUri: "https://example.com", // optional + responseType: "", // optional scope: "", // optional state: "", // optional nonce: "", // optional - code_challenge: "", // optional - code_challenge_method: "s256", // optional + codeChallenge: "", // optional + codeChallengeMethod: "s256", // optional prompt: "", // optional - max_age: 0, // optional - authorization_details: "", // optional + maxAge: 0, // optional + authorizationDetails: "", // optional resource: "", // optional audience: "", // optional - request_uri: "" // optional + requestUri: "" // optional ); ``` diff --git a/docs/examples/oauth2/authorize.md b/docs/examples/oauth2/authorize.md index 056859ea..6c95d61d 100644 --- a/docs/examples/oauth2/authorize.md +++ b/docs/examples/oauth2/authorize.md @@ -4,27 +4,27 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Authorize result = await oauth2.Authorize( - client_id: "", // optional - redirect_uri: "https://example.com", // optional - response_type: "", // optional + clientId: "", // optional + redirectUri: "https://example.com", // optional + responseType: "", // optional scope: "", // optional state: "", // optional nonce: "", // optional - code_challenge: "", // optional - code_challenge_method: "s256", // optional + codeChallenge: "", // optional + codeChallengeMethod: "s256", // optional prompt: "", // optional - max_age: 0, // optional - authorization_details: "", // optional + maxAge: 0, // optional + authorizationDetails: "", // optional resource: "", // optional audience: "", // optional - request_uri: "" // optional + requestUri: "" // optional ); ``` diff --git a/docs/examples/oauth2/create-device-authorization.md b/docs/examples/oauth2/create-device-authorization.md index a6697fe0..25a9bc77 100644 --- a/docs/examples/oauth2/create-device-authorization.md +++ b/docs/examples/oauth2/create-device-authorization.md @@ -4,16 +4,16 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2DeviceAuthorization result = await oauth2.CreateDeviceAuthorization( - client_id: "", // optional + clientId: "", // optional scope: "", // optional - authorization_details: "", // optional + authorizationDetails: "", // optional resource: "", // optional audience: "" // optional ); diff --git a/docs/examples/oauth2/create-grant.md b/docs/examples/oauth2/create-grant.md index 856a8815..c7550702 100644 --- a/docs/examples/oauth2/create-grant.md +++ b/docs/examples/oauth2/create-grant.md @@ -4,14 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Grant result = await oauth2.CreateGrant( - user_code: "" + userCode: "" ); ``` diff --git a/docs/examples/oauth2/create-par.md b/docs/examples/oauth2/create-par.md index 2d8827f3..9e63ce33 100644 --- a/docs/examples/oauth2/create-par.md +++ b/docs/examples/oauth2/create-par.md @@ -4,24 +4,24 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2PAR result = await oauth2.CreatePAR( - client_id: "", - redirect_uri: "https://example.com", - response_type: "code", + clientId: "", + redirectUri: "https://example.com", + responseType: "code", scope: "", // optional state: "", // optional nonce: "", // optional - code_challenge: "", // optional - code_challenge_method: "s256", // optional + codeChallenge: "", // optional + codeChallengeMethod: "s256", // optional prompt: "", // optional - max_age: 0, // optional - authorization_details: "", // optional + maxAge: 0, // optional + authorizationDetails: "", // optional resource: "", // optional audience: "" // optional ); diff --git a/docs/examples/oauth2/create-token.md b/docs/examples/oauth2/create-token.md index a4b2d762..fbf37f54 100644 --- a/docs/examples/oauth2/create-token.md +++ b/docs/examples/oauth2/create-token.md @@ -4,21 +4,21 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Token result = await oauth2.CreateToken( - grant_type: "", + grantType: "", code: "", // optional - refresh_token: "", // optional - device_code: "", // optional - client_id: "", // optional - client_secret: "", // optional - code_verifier: "", // optional - redirect_uri: "https://example.com", // optional + refreshToken: "", // optional + deviceCode: "", // optional + clientId: "", // optional + clientSecret: "", // optional + codeVerifier: "", // optional + redirectUri: "https://example.com", // optional resource: "", // optional audience: "" // optional ); diff --git a/docs/examples/oauth2/get-grant.md b/docs/examples/oauth2/get-grant.md index 389e5005..e29b3fac 100644 --- a/docs/examples/oauth2/get-grant.md +++ b/docs/examples/oauth2/get-grant.md @@ -4,14 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Grant result = await oauth2.GetGrant( - grant_id: "" + grantId: "" ); ``` diff --git a/docs/examples/oauth2/introspect.md b/docs/examples/oauth2/introspect.md new file mode 100644 index 00000000..e22c7a89 --- /dev/null +++ b/docs/examples/oauth2/introspect.md @@ -0,0 +1,20 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Oauth2 oauth2 = new Oauth2(client); + +Appwrite.Models.Oauth2Introspection result = await oauth2.Introspect( + token: "", + tokenTypeHint: "access_token", // optional + clientId: "", // optional + clientSecret: "" // optional +); + +``` diff --git a/docs/examples/oauth2/list-organizations.md b/docs/examples/oauth2/list-organizations.md index d2787675..c890f239 100644 --- a/docs/examples/oauth2/list-organizations.md +++ b/docs/examples/oauth2/list-organizations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID diff --git a/docs/examples/oauth2/list-projects.md b/docs/examples/oauth2/list-projects.md index cff6d2a9..f928c985 100644 --- a/docs/examples/oauth2/list-projects.md +++ b/docs/examples/oauth2/list-projects.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID diff --git a/docs/examples/oauth2/reject.md b/docs/examples/oauth2/reject.md index 9a92b2c7..97021062 100644 --- a/docs/examples/oauth2/reject.md +++ b/docs/examples/oauth2/reject.md @@ -4,14 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID Oauth2 oauth2 = new Oauth2(client); Oauth2Reject result = await oauth2.Reject( - grant_id: "" + grantId: "" ); ``` diff --git a/docs/examples/oauth2/revoke.md b/docs/examples/oauth2/revoke.md index eb902a05..60ef727e 100644 --- a/docs/examples/oauth2/revoke.md +++ b/docs/examples/oauth2/revoke.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetSession("") // The user session to authenticate with .SetProject(""); // Your project ID @@ -12,9 +12,9 @@ Oauth2 oauth2 = new Oauth2(client); result = await oauth2.Revoke( token: "", - token_type_hint: "access_token", // optional - client_id: "", // optional - client_secret: "" // optional + tokenTypeHint: "access_token", // optional + clientId: "", // optional + clientSecret: "" // optional ); ``` diff --git a/docs/examples/organization/create-ephemeral-project-key.md b/docs/examples/organization/create-ephemeral-project-key.md new file mode 100644 index 00000000..96b3c394 --- /dev/null +++ b/docs/examples/organization/create-ephemeral-project-key.md @@ -0,0 +1,20 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Organization organization = new Organization(client); + +Appwrite.Models.EphemeralKey result = await organization.CreateEphemeralProjectKey( + projectId: "", + scopes: new List<ProjectKeyScopes> { ProjectKeyScopes.UsersRead }, + duration: 600 +); + +``` diff --git a/docs/examples/organization/create-installation.md b/docs/examples/organization/create-installation.md index 78aa2c38..ce0860c3 100644 --- a/docs/examples/organization/create-installation.md +++ b/docs/examples/organization/create-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/organization/create-key.md b/docs/examples/organization/create-key.md index 85288ad8..b90c15fd 100644 --- a/docs/examples/organization/create-key.md +++ b/docs/examples/organization/create-key.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/create-membership.md b/docs/examples/organization/create-membership.md index bbeb4a1f..83221c39 100644 --- a/docs/examples/organization/create-membership.md +++ b/docs/examples/organization/create-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/create-project.md b/docs/examples/organization/create-project.md index c4f2e627..c19f1809 100644 --- a/docs/examples/organization/create-project.md +++ b/docs/examples/organization/create-project.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/delete-installation.md b/docs/examples/organization/delete-installation.md index 2bfb9f04..ae12335c 100644 --- a/docs/examples/organization/delete-installation.md +++ b/docs/examples/organization/delete-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/organization/delete-key.md b/docs/examples/organization/delete-key.md index 78ff5b81..84644b9d 100644 --- a/docs/examples/organization/delete-key.md +++ b/docs/examples/organization/delete-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/delete-membership.md b/docs/examples/organization/delete-membership.md index efcf35cc..e5fc60ad 100644 --- a/docs/examples/organization/delete-membership.md +++ b/docs/examples/organization/delete-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/delete-project-key.md b/docs/examples/organization/delete-project-key.md new file mode 100644 index 00000000..51283d0c --- /dev/null +++ b/docs/examples/organization/delete-project-key.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Organization organization = new Organization(client); + +await organization.DeleteProjectKey( + projectId: "", + keyId: "" +); + +``` diff --git a/docs/examples/organization/delete-project.md b/docs/examples/organization/delete-project.md index df9eb153..f7a2077b 100644 --- a/docs/examples/organization/delete-project.md +++ b/docs/examples/organization/delete-project.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/delete.md b/docs/examples/organization/delete.md index 5b034aa8..7443af60 100644 --- a/docs/examples/organization/delete.md +++ b/docs/examples/organization/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/get-installation.md b/docs/examples/organization/get-installation.md index c324528b..834213d1 100644 --- a/docs/examples/organization/get-installation.md +++ b/docs/examples/organization/get-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/organization/get-key.md b/docs/examples/organization/get-key.md index c240dbc0..24220116 100644 --- a/docs/examples/organization/get-key.md +++ b/docs/examples/organization/get-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/get-membership.md b/docs/examples/organization/get-membership.md index 44d6363e..e936a23c 100644 --- a/docs/examples/organization/get-membership.md +++ b/docs/examples/organization/get-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/get-project-key.md b/docs/examples/organization/get-project-key.md new file mode 100644 index 00000000..ba41088b --- /dev/null +++ b/docs/examples/organization/get-project-key.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Organization organization = new Organization(client); + +Appwrite.Models.Key result = await organization.GetProjectKey( + projectId: "", + keyId: "" +); + +``` diff --git a/docs/examples/organization/get-project.md b/docs/examples/organization/get-project.md index 3d64fe0c..bd23aba2 100644 --- a/docs/examples/organization/get-project.md +++ b/docs/examples/organization/get-project.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/get.md b/docs/examples/organization/get.md index 4c3c2b76..28de1900 100644 --- a/docs/examples/organization/get.md +++ b/docs/examples/organization/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/list-installations.md b/docs/examples/organization/list-installations.md index 2890e336..791cadcd 100644 --- a/docs/examples/organization/list-installations.md +++ b/docs/examples/organization/list-installations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/organization/list-keys.md b/docs/examples/organization/list-keys.md index 4671782d..47109dbc 100644 --- a/docs/examples/organization/list-keys.md +++ b/docs/examples/organization/list-keys.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/list-memberships.md b/docs/examples/organization/list-memberships.md index 69c357b7..d9358fb8 100644 --- a/docs/examples/organization/list-memberships.md +++ b/docs/examples/organization/list-memberships.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/list-project-keys.md b/docs/examples/organization/list-project-keys.md new file mode 100644 index 00000000..60400e6d --- /dev/null +++ b/docs/examples/organization/list-project-keys.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Organization organization = new Organization(client); + +Appwrite.Models.KeyList result = await organization.ListProjectKeys( + projectId: "", + queries: new List(), // optional + total: false // optional +); + +``` diff --git a/docs/examples/organization/list-projects.md b/docs/examples/organization/list-projects.md index c61a3341..c01907ff 100644 --- a/docs/examples/organization/list-projects.md +++ b/docs/examples/organization/list-projects.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/update-installation.md b/docs/examples/organization/update-installation.md index c79ee8b5..e82a3e4a 100644 --- a/docs/examples/organization/update-installation.md +++ b/docs/examples/organization/update-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/organization/update-key.md b/docs/examples/organization/update-key.md index d22ee7f6..35db3c5c 100644 --- a/docs/examples/organization/update-key.md +++ b/docs/examples/organization/update-key.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/update-membership.md b/docs/examples/organization/update-membership.md index d1faf7f0..3b17027f 100644 --- a/docs/examples/organization/update-membership.md +++ b/docs/examples/organization/update-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/update-project-key.md b/docs/examples/organization/update-project-key.md new file mode 100644 index 00000000..ab09912b --- /dev/null +++ b/docs/examples/organization/update-project-key.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Organization organization = new Organization(client); + +Appwrite.Models.Key result = await organization.UpdateProjectKey( + projectId: "", + keyId: "", + name: "", + scopes: new List<ProjectKeyScopes> { ProjectKeyScopes.UsersRead }, + expire: "2020-10-15T06:38:00.000+00:00" // optional +); + +``` diff --git a/docs/examples/organization/update-project.md b/docs/examples/organization/update-project.md index ae8e2664..ad20794c 100644 --- a/docs/examples/organization/update-project.md +++ b/docs/examples/organization/update-project.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/organization/update.md b/docs/examples/organization/update.md index 8b559ce1..128b5535 100644 --- a/docs/examples/organization/update.md +++ b/docs/examples/organization/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-backup-policy.md b/docs/examples/postgresql/create-backup-policy.md index ba827ae7..31a59925 100644 --- a/docs/examples/postgresql/create-backup-policy.md +++ b/docs/examples/postgresql/create-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-backup.md b/docs/examples/postgresql/create-backup.md index de70d5c5..2a540d08 100644 --- a/docs/examples/postgresql/create-backup.md +++ b/docs/examples/postgresql/create-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-branch.md b/docs/examples/postgresql/create-branch.md index f4e8d566..f747ddfc 100644 --- a/docs/examples/postgresql/create-branch.md +++ b/docs/examples/postgresql/create-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-execution.md b/docs/examples/postgresql/create-execution.md index 14804cc0..3c268750 100644 --- a/docs/examples/postgresql/create-execution.md +++ b/docs/examples/postgresql/create-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-extension.md b/docs/examples/postgresql/create-extension.md index d7a6e6fd..e29b044d 100644 --- a/docs/examples/postgresql/create-extension.md +++ b/docs/examples/postgresql/create-extension.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-failover.md b/docs/examples/postgresql/create-failover.md index b798844f..c1821cf8 100644 --- a/docs/examples/postgresql/create-failover.md +++ b/docs/examples/postgresql/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-migration.md b/docs/examples/postgresql/create-migration.md index 1868ba84..c3a6a689 100644 --- a/docs/examples/postgresql/create-migration.md +++ b/docs/examples/postgresql/create-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-restoration.md b/docs/examples/postgresql/create-restoration.md index fdd09484..b5390b69 100644 --- a/docs/examples/postgresql/create-restoration.md +++ b/docs/examples/postgresql/create-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create-upgrade.md b/docs/examples/postgresql/create-upgrade.md index c81ca922..18e0faaf 100644 --- a/docs/examples/postgresql/create-upgrade.md +++ b/docs/examples/postgresql/create-upgrade.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/create.md b/docs/examples/postgresql/create.md index b4c3a49b..ee72501c 100644 --- a/docs/examples/postgresql/create.md +++ b/docs/examples/postgresql/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/delete-backup-policy.md b/docs/examples/postgresql/delete-backup-policy.md index 0610c1a1..6758dede 100644 --- a/docs/examples/postgresql/delete-backup-policy.md +++ b/docs/examples/postgresql/delete-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/delete-backup.md b/docs/examples/postgresql/delete-backup.md index 45d01366..57195ba1 100644 --- a/docs/examples/postgresql/delete-backup.md +++ b/docs/examples/postgresql/delete-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/delete-branch.md b/docs/examples/postgresql/delete-branch.md index 31419ede..37318401 100644 --- a/docs/examples/postgresql/delete-branch.md +++ b/docs/examples/postgresql/delete-branch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/delete-extension.md b/docs/examples/postgresql/delete-extension.md index b625a039..e9130b1f 100644 --- a/docs/examples/postgresql/delete-extension.md +++ b/docs/examples/postgresql/delete-extension.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/delete.md b/docs/examples/postgresql/delete.md index e6e7201e..5e723985 100644 --- a/docs/examples/postgresql/delete.md +++ b/docs/examples/postgresql/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-backup-policy.md b/docs/examples/postgresql/get-backup-policy.md index e58d4e21..b0adc95d 100644 --- a/docs/examples/postgresql/get-backup-policy.md +++ b/docs/examples/postgresql/get-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-backup.md b/docs/examples/postgresql/get-backup.md index 4091ac39..48fe7acf 100644 --- a/docs/examples/postgresql/get-backup.md +++ b/docs/examples/postgresql/get-backup.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-pitr.md b/docs/examples/postgresql/get-pitr.md index aaabade0..26c1410c 100644 --- a/docs/examples/postgresql/get-pitr.md +++ b/docs/examples/postgresql/get-pitr.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-pooler.md b/docs/examples/postgresql/get-pooler.md index b42fd780..3446ed65 100644 --- a/docs/examples/postgresql/get-pooler.md +++ b/docs/examples/postgresql/get-pooler.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-replicas.md b/docs/examples/postgresql/get-replicas.md index 62475f36..5d7a999b 100644 --- a/docs/examples/postgresql/get-replicas.md +++ b/docs/examples/postgresql/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-restoration.md b/docs/examples/postgresql/get-restoration.md index 40a23f03..512284b4 100644 --- a/docs/examples/postgresql/get-restoration.md +++ b/docs/examples/postgresql/get-restoration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get-status.md b/docs/examples/postgresql/get-status.md index 0101abcb..91ad3f7a 100644 --- a/docs/examples/postgresql/get-status.md +++ b/docs/examples/postgresql/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/get.md b/docs/examples/postgresql/get.md index 67bd780f..963de5ca 100644 --- a/docs/examples/postgresql/get.md +++ b/docs/examples/postgresql/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-backup-policies.md b/docs/examples/postgresql/list-backup-policies.md index 7fe5d3f7..83bc31a9 100644 --- a/docs/examples/postgresql/list-backup-policies.md +++ b/docs/examples/postgresql/list-backup-policies.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-backups.md b/docs/examples/postgresql/list-backups.md index f3b66895..ea0e3b9c 100644 --- a/docs/examples/postgresql/list-backups.md +++ b/docs/examples/postgresql/list-backups.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-branches.md b/docs/examples/postgresql/list-branches.md index 1c092d45..e613ab10 100644 --- a/docs/examples/postgresql/list-branches.md +++ b/docs/examples/postgresql/list-branches.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-extensions.md b/docs/examples/postgresql/list-extensions.md index a7ca3908..917e1629 100644 --- a/docs/examples/postgresql/list-extensions.md +++ b/docs/examples/postgresql/list-extensions.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-operations.md b/docs/examples/postgresql/list-operations.md index cb745eaa..ddbae4b2 100644 --- a/docs/examples/postgresql/list-operations.md +++ b/docs/examples/postgresql/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-restorations.md b/docs/examples/postgresql/list-restorations.md index 2663a1f8..bb781824 100644 --- a/docs/examples/postgresql/list-restorations.md +++ b/docs/examples/postgresql/list-restorations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list-specifications.md b/docs/examples/postgresql/list-specifications.md index da1539be..d4110fda 100644 --- a/docs/examples/postgresql/list-specifications.md +++ b/docs/examples/postgresql/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/list.md b/docs/examples/postgresql/list.md index eb2e0e06..59703ab7 100644 --- a/docs/examples/postgresql/list.md +++ b/docs/examples/postgresql/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update-backup-policy.md b/docs/examples/postgresql/update-backup-policy.md index c1faaa09..f72bfbf1 100644 --- a/docs/examples/postgresql/update-backup-policy.md +++ b/docs/examples/postgresql/update-backup-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update-backup-storage.md b/docs/examples/postgresql/update-backup-storage.md index 88d946e1..0b57468b 100644 --- a/docs/examples/postgresql/update-backup-storage.md +++ b/docs/examples/postgresql/update-backup-storage.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update-credentials.md b/docs/examples/postgresql/update-credentials.md index 75f8f338..055f96f8 100644 --- a/docs/examples/postgresql/update-credentials.md +++ b/docs/examples/postgresql/update-credentials.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update-maintenance.md b/docs/examples/postgresql/update-maintenance.md index ed6fa91a..c8687cc2 100644 --- a/docs/examples/postgresql/update-maintenance.md +++ b/docs/examples/postgresql/update-maintenance.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update-pooler.md b/docs/examples/postgresql/update-pooler.md index bc77771f..3a49a83e 100644 --- a/docs/examples/postgresql/update-pooler.md +++ b/docs/examples/postgresql/update-pooler.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/postgresql/update.md b/docs/examples/postgresql/update.md index c6e5d48a..e3c28029 100644 --- a/docs/examples/postgresql/update.md +++ b/docs/examples/postgresql/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/presences/delete.md b/docs/examples/presences/delete.md index e3540674..3829dd00 100644 --- a/docs/examples/presences/delete.md +++ b/docs/examples/presences/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/presences/get.md b/docs/examples/presences/get.md index 85e7287e..458cc4a0 100644 --- a/docs/examples/presences/get.md +++ b/docs/examples/presences/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/presences/list.md b/docs/examples/presences/list.md index 8285644e..629d3d95 100644 --- a/docs/examples/presences/list.md +++ b/docs/examples/presences/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/presences/update.md b/docs/examples/presences/update.md index ed55483b..90052a2e 100644 --- a/docs/examples/presences/update.md +++ b/docs/examples/presences/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/presences/upsert.md b/docs/examples/presences/upsert.md index b7868248..16eb8ad3 100644 --- a/docs/examples/presences/upsert.md +++ b/docs/examples/presences/upsert.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-android-platform.md b/docs/examples/project/create-android-platform.md index df8dd6e0..7a8d59a1 100644 --- a/docs/examples/project/create-android-platform.md +++ b/docs/examples/project/create-android-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +13,8 @@ Project project = new Project(client); PlatformAndroid result = await project.CreateAndroidPlatform( platformId: "", name: "", - applicationId: "" + applicationId: "", + fingerprints: new List() // optional ); ``` diff --git a/docs/examples/project/create-apple-platform.md b/docs/examples/project/create-apple-platform.md index 10dc58da..7662d548 100644 --- a/docs/examples/project/create-apple-platform.md +++ b/docs/examples/project/create-apple-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-environment.md b/docs/examples/project/create-environment.md new file mode 100644 index 00000000..8d0ade34 --- /dev/null +++ b/docs/examples/project/create-environment.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.Project result = await project.CreateEnvironment( + environmentId: "", + name: "" +); + +``` diff --git a/docs/examples/project/create-ephemeral-key.md b/docs/examples/project/create-ephemeral-key.md index 5b6226bb..7e3acf90 100644 --- a/docs/examples/project/create-ephemeral-key.md +++ b/docs/examples/project/create-ephemeral-key.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-linux-platform.md b/docs/examples/project/create-linux-platform.md index 7037a09c..b3143c91 100644 --- a/docs/examples/project/create-linux-platform.md +++ b/docs/examples/project/create-linux-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-mock-phone.md b/docs/examples/project/create-mock-phone.md index f8bb1bf5..b444e6f3 100644 --- a/docs/examples/project/create-mock-phone.md +++ b/docs/examples/project/create-mock-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-smtp-test.md b/docs/examples/project/create-smtp-test.md index d461c0cd..4fa5c24f 100644 --- a/docs/examples/project/create-smtp-test.md +++ b/docs/examples/project/create-smtp-test.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-variable.md b/docs/examples/project/create-variable.md index 1e361c54..26cb670f 100644 --- a/docs/examples/project/create-variable.md +++ b/docs/examples/project/create-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-web-platform.md b/docs/examples/project/create-web-platform.md index 83f148a0..ac690c5e 100644 --- a/docs/examples/project/create-web-platform.md +++ b/docs/examples/project/create-web-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/create-windows-platform.md b/docs/examples/project/create-windows-platform.md index 01eb5b90..1ecbe02c 100644 --- a/docs/examples/project/create-windows-platform.md +++ b/docs/examples/project/create-windows-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/delete-environment.md b/docs/examples/project/delete-environment.md new file mode 100644 index 00000000..d6651f4f --- /dev/null +++ b/docs/examples/project/delete-environment.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +await project.DeleteEnvironment( + environmentId: "" +); + +``` diff --git a/docs/examples/project/delete-key.md b/docs/examples/project/delete-key.md index 258def64..696f11db 100644 --- a/docs/examples/project/delete-key.md +++ b/docs/examples/project/delete-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/delete-mock-phone.md b/docs/examples/project/delete-mock-phone.md index c716be59..f5c06d9d 100644 --- a/docs/examples/project/delete-mock-phone.md +++ b/docs/examples/project/delete-mock-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/delete-platform.md b/docs/examples/project/delete-platform.md index 77ddecda..4b962bb8 100644 --- a/docs/examples/project/delete-platform.md +++ b/docs/examples/project/delete-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/delete-variable.md b/docs/examples/project/delete-variable.md index 5ef1405e..21962af0 100644 --- a/docs/examples/project/delete-variable.md +++ b/docs/examples/project/delete-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/delete.md b/docs/examples/project/delete.md index 17f70c47..05b924bb 100644 --- a/docs/examples/project/delete.md +++ b/docs/examples/project/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-email-template.md b/docs/examples/project/get-email-template.md index 11a331a2..44c8efdf 100644 --- a/docs/examples/project/get-email-template.md +++ b/docs/examples/project/get-email-template.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-environment.md b/docs/examples/project/get-environment.md new file mode 100644 index 00000000..cd9f9f76 --- /dev/null +++ b/docs/examples/project/get-environment.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.Project result = await project.GetEnvironment( + environmentId: "" +); + +``` diff --git a/docs/examples/project/get-key.md b/docs/examples/project/get-key.md index a84c4602..bfe55353 100644 --- a/docs/examples/project/get-key.md +++ b/docs/examples/project/get-key.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-mock-phone.md b/docs/examples/project/get-mock-phone.md index 43fea545..7751a01c 100644 --- a/docs/examples/project/get-mock-phone.md +++ b/docs/examples/project/get-mock-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-o-auth-2-provider.md b/docs/examples/project/get-o-auth-2-provider.md index ea55cb1e..ca899a9e 100644 --- a/docs/examples/project/get-o-auth-2-provider.md +++ b/docs/examples/project/get-o-auth-2-provider.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-platform.md b/docs/examples/project/get-platform.md index 236eeb77..d0e1982b 100644 --- a/docs/examples/project/get-platform.md +++ b/docs/examples/project/get-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-policy.md b/docs/examples/project/get-policy.md index ed4e8a5f..41e96774 100644 --- a/docs/examples/project/get-policy.md +++ b/docs/examples/project/get-policy.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get-variable.md b/docs/examples/project/get-variable.md index bda49739..20c0b22f 100644 --- a/docs/examples/project/get-variable.md +++ b/docs/examples/project/get-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/get.md b/docs/examples/project/get.md index 8dbf5a58..7a092fbc 100644 --- a/docs/examples/project/get.md +++ b/docs/examples/project/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-email-templates.md b/docs/examples/project/list-email-templates.md index 0cd3cad1..d9db5b8f 100644 --- a/docs/examples/project/list-email-templates.md +++ b/docs/examples/project/list-email-templates.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-environments.md b/docs/examples/project/list-environments.md new file mode 100644 index 00000000..6906dcaa --- /dev/null +++ b/docs/examples/project/list-environments.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.ProjectList result = await project.ListEnvironments( + queries: new List(), // optional + total: false // optional +); + +``` diff --git a/docs/examples/project/list-keys.md b/docs/examples/project/list-keys.md index f006dd19..5ba9ee59 100644 --- a/docs/examples/project/list-keys.md +++ b/docs/examples/project/list-keys.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-mock-phones.md b/docs/examples/project/list-mock-phones.md index 3fa07bdc..08016aac 100644 --- a/docs/examples/project/list-mock-phones.md +++ b/docs/examples/project/list-mock-phones.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-o-auth-2-providers.md b/docs/examples/project/list-o-auth-2-providers.md index 9d0e7eae..c45ce436 100644 --- a/docs/examples/project/list-o-auth-2-providers.md +++ b/docs/examples/project/list-o-auth-2-providers.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-platforms.md b/docs/examples/project/list-platforms.md index 2a507c27..bae44177 100644 --- a/docs/examples/project/list-platforms.md +++ b/docs/examples/project/list-platforms.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-policies.md b/docs/examples/project/list-policies.md index bbd49b4c..e6bcf297 100644 --- a/docs/examples/project/list-policies.md +++ b/docs/examples/project/list-policies.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/list-variables.md b/docs/examples/project/list-variables.md index e8107ab6..be109061 100644 --- a/docs/examples/project/list-variables.md +++ b/docs/examples/project/list-variables.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-android-platform.md b/docs/examples/project/update-android-platform.md index 77b78b57..05158049 100644 --- a/docs/examples/project/update-android-platform.md +++ b/docs/examples/project/update-android-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +13,8 @@ Project project = new Project(client); PlatformAndroid result = await project.UpdateAndroidPlatform( platformId: "", name: "", - applicationId: "" + applicationId: "", + fingerprints: new List() // optional ); ``` diff --git a/docs/examples/project/update-apple-platform.md b/docs/examples/project/update-apple-platform.md index fa9ec462..9bdf6252 100644 --- a/docs/examples/project/update-apple-platform.md +++ b/docs/examples/project/update-apple-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-auth-method.md b/docs/examples/project/update-auth-method.md index 0b180be2..87acba7f 100644 --- a/docs/examples/project/update-auth-method.md +++ b/docs/examples/project/update-auth-method.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-deny-aliased-email-policy.md b/docs/examples/project/update-deny-aliased-email-policy.md index 50d622ea..04b229c5 100644 --- a/docs/examples/project/update-deny-aliased-email-policy.md +++ b/docs/examples/project/update-deny-aliased-email-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-deny-corporate-email-policy.md b/docs/examples/project/update-deny-corporate-email-policy.md index 13e204eb..84d908d0 100644 --- a/docs/examples/project/update-deny-corporate-email-policy.md +++ b/docs/examples/project/update-deny-corporate-email-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-deny-disposable-email-policy.md b/docs/examples/project/update-deny-disposable-email-policy.md index 7e22b31a..7aa2b601 100644 --- a/docs/examples/project/update-deny-disposable-email-policy.md +++ b/docs/examples/project/update-deny-disposable-email-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-deny-free-email-policy.md b/docs/examples/project/update-deny-free-email-policy.md index 49ba6767..f0d487e9 100644 --- a/docs/examples/project/update-deny-free-email-policy.md +++ b/docs/examples/project/update-deny-free-email-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-email-template.md b/docs/examples/project/update-email-template.md index 2c4c747d..7165c87f 100644 --- a/docs/examples/project/update-email-template.md +++ b/docs/examples/project/update-email-template.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-environment.md b/docs/examples/project/update-environment.md new file mode 100644 index 00000000..5f098c4a --- /dev/null +++ b/docs/examples/project/update-environment.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.Project result = await project.UpdateEnvironment( + environmentId: "", + name: "" +); + +``` diff --git a/docs/examples/project/update-key.md b/docs/examples/project/update-key.md index 619fca4b..4f4ba579 100644 --- a/docs/examples/project/update-key.md +++ b/docs/examples/project/update-key.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-labels.md b/docs/examples/project/update-labels.md index 2dfe3ea8..26b6e039 100644 --- a/docs/examples/project/update-labels.md +++ b/docs/examples/project/update-labels.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-linux-platform.md b/docs/examples/project/update-linux-platform.md index 0e0be47d..1834d25c 100644 --- a/docs/examples/project/update-linux-platform.md +++ b/docs/examples/project/update-linux-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-membership-privacy-policy.md b/docs/examples/project/update-membership-privacy-policy.md index 3e6102f6..cd741e4a 100644 --- a/docs/examples/project/update-membership-privacy-policy.md +++ b/docs/examples/project/update-membership-privacy-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-mfa-factors-policy.md b/docs/examples/project/update-mfa-factors-policy.md index aa9ed2a5..a3d8ff2b 100644 --- a/docs/examples/project/update-mfa-factors-policy.md +++ b/docs/examples/project/update-mfa-factors-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-mock-phone.md b/docs/examples/project/update-mock-phone.md index e2c699e2..52e6082b 100644 --- a/docs/examples/project/update-mock-phone.md +++ b/docs/examples/project/update-mock-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-amazon.md b/docs/examples/project/update-o-auth-2-amazon.md index b104edf0..85784498 100644 --- a/docs/examples/project/update-o-auth-2-amazon.md +++ b/docs/examples/project/update-o-auth-2-amazon.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-apple.md b/docs/examples/project/update-o-auth-2-apple.md index d36a2b98..9e99bbd5 100644 --- a/docs/examples/project/update-o-auth-2-apple.md +++ b/docs/examples/project/update-o-auth-2-apple.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -15,7 +15,9 @@ OAuth2Apple result = await project.UpdateOAuth2Apple( keyId: "", // optional teamId: "", // optional p8File: "", // optional - enabled: false // optional + enabled: false, // optional + nativeClientIds: new List(), // optional + nativeEnabled: false // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-appwrite.md b/docs/examples/project/update-o-auth-2-appwrite.md index cb38c52d..35d4ed46 100644 --- a/docs/examples/project/update-o-auth-2-appwrite.md +++ b/docs/examples/project/update-o-auth-2-appwrite.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-auth-0.md b/docs/examples/project/update-o-auth-2-auth-0.md index 081f8323..f3eca67e 100644 --- a/docs/examples/project/update-o-auth-2-auth-0.md +++ b/docs/examples/project/update-o-auth-2-auth-0.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -14,7 +15,8 @@ OAuth2Auth0 result = await project.UpdateOAuth2Auth0( clientId: "", // optional clientSecret: "", // optional endpoint: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2Auth0Prompt> { ProjectOAuth2Auth0Prompt.None } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-authentik.md b/docs/examples/project/update-o-auth-2-authentik.md index 75107594..fa312094 100644 --- a/docs/examples/project/update-o-auth-2-authentik.md +++ b/docs/examples/project/update-o-auth-2-authentik.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-autodesk.md b/docs/examples/project/update-o-auth-2-autodesk.md index 836fcc55..75d6e866 100644 --- a/docs/examples/project/update-o-auth-2-autodesk.md +++ b/docs/examples/project/update-o-auth-2-autodesk.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-bitbucket.md b/docs/examples/project/update-o-auth-2-bitbucket.md index 6a72900d..d5aac2bd 100644 --- a/docs/examples/project/update-o-auth-2-bitbucket.md +++ b/docs/examples/project/update-o-auth-2-bitbucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-bitly.md b/docs/examples/project/update-o-auth-2-bitly.md index f46dd35a..9d7c7201 100644 --- a/docs/examples/project/update-o-auth-2-bitly.md +++ b/docs/examples/project/update-o-auth-2-bitly.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-box.md b/docs/examples/project/update-o-auth-2-box.md index 1f331e2c..513a5962 100644 --- a/docs/examples/project/update-o-auth-2-box.md +++ b/docs/examples/project/update-o-auth-2-box.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-cloudflare.md b/docs/examples/project/update-o-auth-2-cloudflare.md index 2c7fd809..a7f5d589 100644 --- a/docs/examples/project/update-o-auth-2-cloudflare.md +++ b/docs/examples/project/update-o-auth-2-cloudflare.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-dailymotion.md b/docs/examples/project/update-o-auth-2-dailymotion.md index 87c2c478..8810c0d0 100644 --- a/docs/examples/project/update-o-auth-2-dailymotion.md +++ b/docs/examples/project/update-o-auth-2-dailymotion.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-discord.md b/docs/examples/project/update-o-auth-2-discord.md index b6a92dbe..1128a0ba 100644 --- a/docs/examples/project/update-o-auth-2-discord.md +++ b/docs/examples/project/update-o-auth-2-discord.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +14,8 @@ Project project = new Project(client); OAuth2Discord result = await project.UpdateOAuth2Discord( clientId: "", // optional clientSecret: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2DiscordPrompt> { ProjectOAuth2DiscordPrompt.None } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-disqus.md b/docs/examples/project/update-o-auth-2-disqus.md index a7235621..763329da 100644 --- a/docs/examples/project/update-o-auth-2-disqus.md +++ b/docs/examples/project/update-o-auth-2-disqus.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-dropbox.md b/docs/examples/project/update-o-auth-2-dropbox.md index 16dd0f99..52a3d1eb 100644 --- a/docs/examples/project/update-o-auth-2-dropbox.md +++ b/docs/examples/project/update-o-auth-2-dropbox.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-etsy.md b/docs/examples/project/update-o-auth-2-etsy.md index 7ffcb53f..46e3b297 100644 --- a/docs/examples/project/update-o-auth-2-etsy.md +++ b/docs/examples/project/update-o-auth-2-etsy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-facebook.md b/docs/examples/project/update-o-auth-2-facebook.md index a1549973..1f6aa218 100644 --- a/docs/examples/project/update-o-auth-2-facebook.md +++ b/docs/examples/project/update-o-auth-2-facebook.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-figma.md b/docs/examples/project/update-o-auth-2-figma.md index 4c2e8bcd..be4054d9 100644 --- a/docs/examples/project/update-o-auth-2-figma.md +++ b/docs/examples/project/update-o-auth-2-figma.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-fusion-auth.md b/docs/examples/project/update-o-auth-2-fusion-auth.md index d8515eea..f83ab268 100644 --- a/docs/examples/project/update-o-auth-2-fusion-auth.md +++ b/docs/examples/project/update-o-auth-2-fusion-auth.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-git-hub.md b/docs/examples/project/update-o-auth-2-git-hub.md index f57712e3..32944f3f 100644 --- a/docs/examples/project/update-o-auth-2-git-hub.md +++ b/docs/examples/project/update-o-auth-2-git-hub.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +14,8 @@ Project project = new Project(client); OAuth2Github result = await project.UpdateOAuth2GitHub( clientId: "", // optional clientSecret: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2GitHubPrompt> { ProjectOAuth2GitHubPrompt.SelectAccount } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-gitlab.md b/docs/examples/project/update-o-auth-2-gitlab.md index 169b2ec8..321213c9 100644 --- a/docs/examples/project/update-o-auth-2-gitlab.md +++ b/docs/examples/project/update-o-auth-2-gitlab.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-google.md b/docs/examples/project/update-o-auth-2-google.md index ca498940..ca59a94b 100644 --- a/docs/examples/project/update-o-auth-2-google.md +++ b/docs/examples/project/update-o-auth-2-google.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -15,7 +15,9 @@ OAuth2Google result = await project.UpdateOAuth2Google( clientId: "", // optional clientSecret: "", // optional prompt: new List<ProjectOAuth2GooglePrompt> { ProjectOAuth2GooglePrompt.None }, // optional - enabled: false // optional + enabled: false, // optional + nativeClientIds: new List(), // optional + nativeEnabled: false // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-hugging-face.md b/docs/examples/project/update-o-auth-2-hugging-face.md index 350640d4..372b9200 100644 --- a/docs/examples/project/update-o-auth-2-hugging-face.md +++ b/docs/examples/project/update-o-auth-2-hugging-face.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-kakao.md b/docs/examples/project/update-o-auth-2-kakao.md new file mode 100644 index 00000000..37589d5b --- /dev/null +++ b/docs/examples/project/update-o-auth-2-kakao.md @@ -0,0 +1,21 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.OAuth2Kakao result = await project.UpdateOAuth2Kakao( + clientId: "", // optional + clientSecret: "", // optional + prompt: new List<ProjectOAuth2KakaoPrompt> { ProjectOAuth2KakaoPrompt.None }, // optional + enabled: false // optional +); + +``` diff --git a/docs/examples/project/update-o-auth-2-keycloak.md b/docs/examples/project/update-o-auth-2-keycloak.md index 67b03697..b288eedb 100644 --- a/docs/examples/project/update-o-auth-2-keycloak.md +++ b/docs/examples/project/update-o-auth-2-keycloak.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-kick.md b/docs/examples/project/update-o-auth-2-kick.md index 56cbef85..95641eb2 100644 --- a/docs/examples/project/update-o-auth-2-kick.md +++ b/docs/examples/project/update-o-auth-2-kick.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-linkedin.md b/docs/examples/project/update-o-auth-2-linkedin.md index 72c13842..ddd83a5b 100644 --- a/docs/examples/project/update-o-auth-2-linkedin.md +++ b/docs/examples/project/update-o-auth-2-linkedin.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-microsoft.md b/docs/examples/project/update-o-auth-2-microsoft.md index 8e5afa31..f2e4d2cf 100644 --- a/docs/examples/project/update-o-auth-2-microsoft.md +++ b/docs/examples/project/update-o-auth-2-microsoft.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -14,7 +15,8 @@ OAuth2Microsoft result = await project.UpdateOAuth2Microsoft( applicationId: "", // optional applicationSecret: "", // optional tenant: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2MicrosoftPrompt> { ProjectOAuth2MicrosoftPrompt.None } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-notion.md b/docs/examples/project/update-o-auth-2-notion.md index a3cb7763..cb550e4f 100644 --- a/docs/examples/project/update-o-auth-2-notion.md +++ b/docs/examples/project/update-o-auth-2-notion.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-oidc.md b/docs/examples/project/update-o-auth-2-oidc.md index 5abb4932..16ff5e2a 100644 --- a/docs/examples/project/update-o-auth-2-oidc.md +++ b/docs/examples/project/update-o-auth-2-oidc.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-okta.md b/docs/examples/project/update-o-auth-2-okta.md index fa2a1151..b5b86135 100644 --- a/docs/examples/project/update-o-auth-2-okta.md +++ b/docs/examples/project/update-o-auth-2-okta.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -15,7 +16,8 @@ OAuth2Okta result = await project.UpdateOAuth2Okta( clientSecret: "", // optional domain: "example.com", // optional authorizationServerId: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2OktaPrompt> { ProjectOAuth2OktaPrompt.None } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-paypal-sandbox.md b/docs/examples/project/update-o-auth-2-paypal-sandbox.md index 1cbc8c57..d418ec6f 100644 --- a/docs/examples/project/update-o-auth-2-paypal-sandbox.md +++ b/docs/examples/project/update-o-auth-2-paypal-sandbox.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-paypal.md b/docs/examples/project/update-o-auth-2-paypal.md index 03fc6659..8a7089e9 100644 --- a/docs/examples/project/update-o-auth-2-paypal.md +++ b/docs/examples/project/update-o-auth-2-paypal.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-podio.md b/docs/examples/project/update-o-auth-2-podio.md index 9e8b31f6..5380052c 100644 --- a/docs/examples/project/update-o-auth-2-podio.md +++ b/docs/examples/project/update-o-auth-2-podio.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-resend.md b/docs/examples/project/update-o-auth-2-resend.md index 3fd79922..4660db2e 100644 --- a/docs/examples/project/update-o-auth-2-resend.md +++ b/docs/examples/project/update-o-auth-2-resend.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-salesforce.md b/docs/examples/project/update-o-auth-2-salesforce.md index e4b6629c..f3b14403 100644 --- a/docs/examples/project/update-o-auth-2-salesforce.md +++ b/docs/examples/project/update-o-auth-2-salesforce.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +14,8 @@ Project project = new Project(client); OAuth2Salesforce result = await project.UpdateOAuth2Salesforce( customerKey: "", // optional customerSecret: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2SalesforcePrompt> { ProjectOAuth2SalesforcePrompt.Login } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-server.md b/docs/examples/project/update-o-auth-2-server.md index c43efa26..c301f8a6 100644 --- a/docs/examples/project/update-o-auth-2-server.md +++ b/docs/examples/project/update-o-auth-2-server.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-slack.md b/docs/examples/project/update-o-auth-2-slack.md index 1d7cc149..0e13d4af 100644 --- a/docs/examples/project/update-o-auth-2-slack.md +++ b/docs/examples/project/update-o-auth-2-slack.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-spotify.md b/docs/examples/project/update-o-auth-2-spotify.md index 481634e4..9124cbe6 100644 --- a/docs/examples/project/update-o-auth-2-spotify.md +++ b/docs/examples/project/update-o-auth-2-spotify.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-stripe.md b/docs/examples/project/update-o-auth-2-stripe.md index 97ce54a1..fb8a8c6e 100644 --- a/docs/examples/project/update-o-auth-2-stripe.md +++ b/docs/examples/project/update-o-auth-2-stripe.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-tik-tok.md b/docs/examples/project/update-o-auth-2-tik-tok.md new file mode 100644 index 00000000..da810d05 --- /dev/null +++ b/docs/examples/project/update-o-auth-2-tik-tok.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.OAuth2TikTok result = await project.UpdateOAuth2TikTok( + clientId: "", // optional + clientSecret: "", // optional + enabled: false // optional +); + +``` diff --git a/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md b/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md index 72ab7c5a..b44d5d9f 100644 --- a/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md +++ b/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-tradeshift.md b/docs/examples/project/update-o-auth-2-tradeshift.md index 01edc689..40e18332 100644 --- a/docs/examples/project/update-o-auth-2-tradeshift.md +++ b/docs/examples/project/update-o-auth-2-tradeshift.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-twitch.md b/docs/examples/project/update-o-auth-2-twitch.md index 405b7dc7..25eaa6f8 100644 --- a/docs/examples/project/update-o-auth-2-twitch.md +++ b/docs/examples/project/update-o-auth-2-twitch.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-webflow.md b/docs/examples/project/update-o-auth-2-webflow.md new file mode 100644 index 00000000..6a17c33c --- /dev/null +++ b/docs/examples/project/update-o-auth-2-webflow.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.OAuth2Webflow result = await project.UpdateOAuth2Webflow( + clientId: "", // optional + clientSecret: "", // optional + enabled: false // optional +); + +``` diff --git a/docs/examples/project/update-o-auth-2-word-press.md b/docs/examples/project/update-o-auth-2-word-press.md index 60bbdfcf..62fdeb64 100644 --- a/docs/examples/project/update-o-auth-2-word-press.md +++ b/docs/examples/project/update-o-auth-2-word-press.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-yahoo.md b/docs/examples/project/update-o-auth-2-yahoo.md index 127f9786..8d7eecff 100644 --- a/docs/examples/project/update-o-auth-2-yahoo.md +++ b/docs/examples/project/update-o-auth-2-yahoo.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-yandex.md b/docs/examples/project/update-o-auth-2-yandex.md index 0fcc0dc7..1d447278 100644 --- a/docs/examples/project/update-o-auth-2-yandex.md +++ b/docs/examples/project/update-o-auth-2-yandex.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2-zoho.md b/docs/examples/project/update-o-auth-2-zoho.md index 6347cb2b..a6585b44 100644 --- a/docs/examples/project/update-o-auth-2-zoho.md +++ b/docs/examples/project/update-o-auth-2-zoho.md @@ -1,10 +1,11 @@ ```csharp using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -13,7 +14,8 @@ Project project = new Project(client); OAuth2Zoho result = await project.UpdateOAuth2Zoho( clientId: "", // optional clientSecret: "", // optional - enabled: false // optional + enabled: false, // optional + prompt: new List<ProjectOAuth2ZohoPrompt> { ProjectOAuth2ZohoPrompt.Consent } // optional ); ``` diff --git a/docs/examples/project/update-o-auth-2-zoom.md b/docs/examples/project/update-o-auth-2-zoom.md index 2b9d60dd..b137c6e9 100644 --- a/docs/examples/project/update-o-auth-2-zoom.md +++ b/docs/examples/project/update-o-auth-2-zoom.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-o-auth-2x.md b/docs/examples/project/update-o-auth-2x.md index 01bab140..794ad76f 100644 --- a/docs/examples/project/update-o-auth-2x.md +++ b/docs/examples/project/update-o-auth-2x.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-passkey-policy.md b/docs/examples/project/update-passkey-policy.md index 3cebcd9d..47d65579 100644 --- a/docs/examples/project/update-passkey-policy.md +++ b/docs/examples/project/update-passkey-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-password-dictionary-policy.md b/docs/examples/project/update-password-dictionary-policy.md index bfcf1c3d..9f09c459 100644 --- a/docs/examples/project/update-password-dictionary-policy.md +++ b/docs/examples/project/update-password-dictionary-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-password-history-policy.md b/docs/examples/project/update-password-history-policy.md index 83876154..730889d4 100644 --- a/docs/examples/project/update-password-history-policy.md +++ b/docs/examples/project/update-password-history-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-password-personal-data-policy.md b/docs/examples/project/update-password-personal-data-policy.md index e79919f2..4e8a371b 100644 --- a/docs/examples/project/update-password-personal-data-policy.md +++ b/docs/examples/project/update-password-personal-data-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-password-pwned-policy.md b/docs/examples/project/update-password-pwned-policy.md new file mode 100644 index 00000000..5fe26e79 --- /dev/null +++ b/docs/examples/project/update-password-pwned-policy.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.Project result = await project.UpdatePasswordPwnedPolicy( + enabled: false, // optional + sessions: false, // optional + users: false // optional +); + +``` diff --git a/docs/examples/project/update-password-rotation-policy.md b/docs/examples/project/update-password-rotation-policy.md new file mode 100644 index 00000000..d024709a --- /dev/null +++ b/docs/examples/project/update-password-rotation-policy.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Project project = new Project(client); + +Appwrite.Models.Project result = await project.UpdatePasswordRotationPolicy( + enabled: false, // optional + maxAge: 86400 // optional +); + +``` diff --git a/docs/examples/project/update-password-strength-policy.md b/docs/examples/project/update-password-strength-policy.md index 7edf3050..789452e2 100644 --- a/docs/examples/project/update-password-strength-policy.md +++ b/docs/examples/project/update-password-strength-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-protocol.md b/docs/examples/project/update-protocol.md index 9a53240a..8c94a04b 100644 --- a/docs/examples/project/update-protocol.md +++ b/docs/examples/project/update-protocol.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-service.md b/docs/examples/project/update-service.md index 8463028b..25f120ed 100644 --- a/docs/examples/project/update-service.md +++ b/docs/examples/project/update-service.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-session-alert-policy.md b/docs/examples/project/update-session-alert-policy.md index 247fe3ce..66bcf948 100644 --- a/docs/examples/project/update-session-alert-policy.md +++ b/docs/examples/project/update-session-alert-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-session-duration-policy.md b/docs/examples/project/update-session-duration-policy.md index 1c66cc20..6ec8d2db 100644 --- a/docs/examples/project/update-session-duration-policy.md +++ b/docs/examples/project/update-session-duration-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-session-invalidation-policy.md b/docs/examples/project/update-session-invalidation-policy.md index e354b471..3bd33c57 100644 --- a/docs/examples/project/update-session-invalidation-policy.md +++ b/docs/examples/project/update-session-invalidation-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-session-limit-policy.md b/docs/examples/project/update-session-limit-policy.md index 11434253..4482bf30 100644 --- a/docs/examples/project/update-session-limit-policy.md +++ b/docs/examples/project/update-session-limit-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-smtp.md b/docs/examples/project/update-smtp.md index 4af1ceee..ff3c9e61 100644 --- a/docs/examples/project/update-smtp.md +++ b/docs/examples/project/update-smtp.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-user-limit-policy.md b/docs/examples/project/update-user-limit-policy.md index d24957e0..c202fc50 100644 --- a/docs/examples/project/update-user-limit-policy.md +++ b/docs/examples/project/update-user-limit-policy.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-variable.md b/docs/examples/project/update-variable.md index b612ed86..9984c9e4 100644 --- a/docs/examples/project/update-variable.md +++ b/docs/examples/project/update-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-web-platform.md b/docs/examples/project/update-web-platform.md index 3d03f26d..0a8b6406 100644 --- a/docs/examples/project/update-web-platform.md +++ b/docs/examples/project/update-web-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/project/update-windows-platform.md b/docs/examples/project/update-windows-platform.md index 64e21998..203fb17a 100644 --- a/docs/examples/project/update-windows-platform.md +++ b/docs/examples/project/update-windows-platform.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/create-api-rule.md b/docs/examples/proxy/create-api-rule.md index a5511bd3..3e821a7c 100644 --- a/docs/examples/proxy/create-api-rule.md +++ b/docs/examples/proxy/create-api-rule.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/create-function-rule.md b/docs/examples/proxy/create-function-rule.md index fe1fd906..37093d4b 100644 --- a/docs/examples/proxy/create-function-rule.md +++ b/docs/examples/proxy/create-function-rule.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/create-invalidation.md b/docs/examples/proxy/create-invalidation.md index 0b51ed48..a45a83c1 100644 --- a/docs/examples/proxy/create-invalidation.md +++ b/docs/examples/proxy/create-invalidation.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/create-redirect-rule.md b/docs/examples/proxy/create-redirect-rule.md index 71ffbefe..a5f0ddbc 100644 --- a/docs/examples/proxy/create-redirect-rule.md +++ b/docs/examples/proxy/create-redirect-rule.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/create-site-rule.md b/docs/examples/proxy/create-site-rule.md index 52b6b60e..068aac28 100644 --- a/docs/examples/proxy/create-site-rule.md +++ b/docs/examples/proxy/create-site-rule.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/delete-rule.md b/docs/examples/proxy/delete-rule.md index d9e9b160..8307aab9 100644 --- a/docs/examples/proxy/delete-rule.md +++ b/docs/examples/proxy/delete-rule.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/get-rule.md b/docs/examples/proxy/get-rule.md index 6834db74..b126ebe3 100644 --- a/docs/examples/proxy/get-rule.md +++ b/docs/examples/proxy/get-rule.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/list-rules.md b/docs/examples/proxy/list-rules.md index 4a962d30..734b4f51 100644 --- a/docs/examples/proxy/list-rules.md +++ b/docs/examples/proxy/list-rules.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/proxy/update-rule-status.md b/docs/examples/proxy/update-rule-status.md index da3efe37..42085473 100644 --- a/docs/examples/proxy/update-rule-status.md +++ b/docs/examples/proxy/update-rule-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create-deployment.md b/docs/examples/sites/create-deployment.md index 61b56268..bb09ccdb 100644 --- a/docs/examples/sites/create-deployment.md +++ b/docs/examples/sites/create-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create-duplicate-deployment.md b/docs/examples/sites/create-duplicate-deployment.md index 22c70c1d..ce43fe3e 100644 --- a/docs/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/sites/create-duplicate-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create-template-deployment.md b/docs/examples/sites/create-template-deployment.md index 769fcc1c..d1d5b0da 100644 --- a/docs/examples/sites/create-template-deployment.md +++ b/docs/examples/sites/create-template-deployment.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create-variable.md b/docs/examples/sites/create-variable.md index 9e9d1ef7..50cfe8f4 100644 --- a/docs/examples/sites/create-variable.md +++ b/docs/examples/sites/create-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create-vcs-deployment.md b/docs/examples/sites/create-vcs-deployment.md index 42ec3756..a5cf957d 100644 --- a/docs/examples/sites/create-vcs-deployment.md +++ b/docs/examples/sites/create-vcs-deployment.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/create.md b/docs/examples/sites/create.md index 9b2d5b52..bc06ef15 100644 --- a/docs/examples/sites/create.md +++ b/docs/examples/sites/create.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/delete-deployment.md b/docs/examples/sites/delete-deployment.md index be144088..bf85639d 100644 --- a/docs/examples/sites/delete-deployment.md +++ b/docs/examples/sites/delete-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/delete-log.md b/docs/examples/sites/delete-log.md index 576be3fb..d86f86cb 100644 --- a/docs/examples/sites/delete-log.md +++ b/docs/examples/sites/delete-log.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/delete-variable.md b/docs/examples/sites/delete-variable.md index 0d7d68be..ff14b2ec 100644 --- a/docs/examples/sites/delete-variable.md +++ b/docs/examples/sites/delete-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/delete.md b/docs/examples/sites/delete.md index 80510f15..dd4de1c9 100644 --- a/docs/examples/sites/delete.md +++ b/docs/examples/sites/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/get-deployment-download.md b/docs/examples/sites/get-deployment-download.md index e4f0985b..7f9439d7 100644 --- a/docs/examples/sites/get-deployment-download.md +++ b/docs/examples/sites/get-deployment-download.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/get-deployment.md b/docs/examples/sites/get-deployment.md index dfd86dfc..3f394d3e 100644 --- a/docs/examples/sites/get-deployment.md +++ b/docs/examples/sites/get-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/get-log.md b/docs/examples/sites/get-log.md index caa38be7..60f2a7b3 100644 --- a/docs/examples/sites/get-log.md +++ b/docs/examples/sites/get-log.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/get-variable.md b/docs/examples/sites/get-variable.md index 9a68b661..41960be8 100644 --- a/docs/examples/sites/get-variable.md +++ b/docs/examples/sites/get-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/get.md b/docs/examples/sites/get.md index 7c1885cb..c5804162 100644 --- a/docs/examples/sites/get.md +++ b/docs/examples/sites/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/list-deployments.md b/docs/examples/sites/list-deployments.md index b25172e2..f4e4a313 100644 --- a/docs/examples/sites/list-deployments.md +++ b/docs/examples/sites/list-deployments.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/list-frameworks.md b/docs/examples/sites/list-frameworks.md index 7a3165f9..92ec7bae 100644 --- a/docs/examples/sites/list-frameworks.md +++ b/docs/examples/sites/list-frameworks.md @@ -4,13 +4,14 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key Sites sites = new Sites(client); -FrameworkList result = await sites.ListFrameworks(); - +FrameworkList result = await sites.ListFrameworks( + total: false // optional +); ``` diff --git a/docs/examples/sites/list-logs.md b/docs/examples/sites/list-logs.md index baee6c91..5b1f5a42 100644 --- a/docs/examples/sites/list-logs.md +++ b/docs/examples/sites/list-logs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/list-specifications.md b/docs/examples/sites/list-specifications.md index 12d18408..dd780b35 100644 --- a/docs/examples/sites/list-specifications.md +++ b/docs/examples/sites/list-specifications.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key Sites sites = new Sites(client); SpecificationList result = await sites.ListSpecifications( - type: "runtimes" // optional + type: "runtimes", // optional + total: false // optional ); ``` diff --git a/docs/examples/sites/list-variables.md b/docs/examples/sites/list-variables.md index 8f546817..e0019b21 100644 --- a/docs/examples/sites/list-variables.md +++ b/docs/examples/sites/list-variables.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/list.md b/docs/examples/sites/list.md index 27c4f659..7c2af4a6 100644 --- a/docs/examples/sites/list.md +++ b/docs/examples/sites/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/update-deployment-status.md b/docs/examples/sites/update-deployment-status.md index 0a6bf240..4a2c0ef5 100644 --- a/docs/examples/sites/update-deployment-status.md +++ b/docs/examples/sites/update-deployment-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/update-site-deployment.md b/docs/examples/sites/update-site-deployment.md index 8633ab7e..2d6dd425 100644 --- a/docs/examples/sites/update-site-deployment.md +++ b/docs/examples/sites/update-site-deployment.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/update-variable.md b/docs/examples/sites/update-variable.md index e7236cef..31326ddb 100644 --- a/docs/examples/sites/update-variable.md +++ b/docs/examples/sites/update-variable.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/sites/update.md b/docs/examples/sites/update.md index 8c812841..f1265a5f 100644 --- a/docs/examples/sites/update.md +++ b/docs/examples/sites/update.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index bdbd46a9..aecf38d5 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index 32cbd1d3..49bfc071 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md index 7203b3fb..7b2a15aa 100644 --- a/docs/examples/storage/delete-bucket.md +++ b/docs/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index cc540d6d..3ea0e7b7 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md index 8c1edda2..fc19e693 100644 --- a/docs/examples/storage/get-bucket.md +++ b/docs/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index 0cb45475..003cdb93 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index 0f8ae58d..1ad85290 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index 5639caef..5b1bde30 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index 925a7b5d..d95b5cab 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md index df214567..f25d7949 100644 --- a/docs/examples/storage/list-buckets.md +++ b/docs/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index 756aeb9f..dc7e95cc 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index 6e31cb35..c54e4721 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index a2b7013c..39b6e451 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/create-big-int-column.md b/docs/examples/tablesdb/create-big-int-column.md index 9849dc44..b0e5f12d 100644 --- a/docs/examples/tablesdb/create-big-int-column.md +++ b/docs/examples/tablesdb/create-big-int-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-boolean-column.md b/docs/examples/tablesdb/create-boolean-column.md index d4d17767..67d6f11e 100644 --- a/docs/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/tablesdb/create-boolean-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-cutover.md b/docs/examples/tablesdb/create-cutover.md index 522ed948..45ed9e76 100644 --- a/docs/examples/tablesdb/create-cutover.md +++ b/docs/examples/tablesdb/create-cutover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-datetime-column.md b/docs/examples/tablesdb/create-datetime-column.md index 0739c6cf..43b66471 100644 --- a/docs/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/tablesdb/create-datetime-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-email-column.md b/docs/examples/tablesdb/create-email-column.md index b5879ca4..12282a4e 100644 --- a/docs/examples/tablesdb/create-email-column.md +++ b/docs/examples/tablesdb/create-email-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-enum-column.md b/docs/examples/tablesdb/create-enum-column.md index 7a855e5d..bbfa1a99 100644 --- a/docs/examples/tablesdb/create-enum-column.md +++ b/docs/examples/tablesdb/create-enum-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-failover.md b/docs/examples/tablesdb/create-failover.md index 8eee23f4..d44d4f04 100644 --- a/docs/examples/tablesdb/create-failover.md +++ b/docs/examples/tablesdb/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-float-column.md b/docs/examples/tablesdb/create-float-column.md index 8d7293a5..aca83476 100644 --- a/docs/examples/tablesdb/create-float-column.md +++ b/docs/examples/tablesdb/create-float-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-index.md b/docs/examples/tablesdb/create-index.md index df5d61e3..6749f4d4 100644 --- a/docs/examples/tablesdb/create-index.md +++ b/docs/examples/tablesdb/create-index.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-integer-column.md b/docs/examples/tablesdb/create-integer-column.md index 60ecc4c1..136d3b6f 100644 --- a/docs/examples/tablesdb/create-integer-column.md +++ b/docs/examples/tablesdb/create-integer-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-ip-column.md b/docs/examples/tablesdb/create-ip-column.md index dea6f8a0..4a3c9454 100644 --- a/docs/examples/tablesdb/create-ip-column.md +++ b/docs/examples/tablesdb/create-ip-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-line-column.md b/docs/examples/tablesdb/create-line-column.md index 3f7ae338..351cffd4 100644 --- a/docs/examples/tablesdb/create-line-column.md +++ b/docs/examples/tablesdb/create-line-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-longtext-column.md b/docs/examples/tablesdb/create-longtext-column.md index 7f63f462..fb30a74e 100644 --- a/docs/examples/tablesdb/create-longtext-column.md +++ b/docs/examples/tablesdb/create-longtext-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-mediumtext-column.md b/docs/examples/tablesdb/create-mediumtext-column.md index f834cf24..21965444 100644 --- a/docs/examples/tablesdb/create-mediumtext-column.md +++ b/docs/examples/tablesdb/create-mediumtext-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-migration.md b/docs/examples/tablesdb/create-migration.md index 863f223c..779d89b4 100644 --- a/docs/examples/tablesdb/create-migration.md +++ b/docs/examples/tablesdb/create-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-operations.md b/docs/examples/tablesdb/create-operations.md index e7e92df1..5b1b8327 100644 --- a/docs/examples/tablesdb/create-operations.md +++ b/docs/examples/tablesdb/create-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-point-column.md b/docs/examples/tablesdb/create-point-column.md index aa787a48..40fa4e85 100644 --- a/docs/examples/tablesdb/create-point-column.md +++ b/docs/examples/tablesdb/create-point-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-polygon-column.md b/docs/examples/tablesdb/create-polygon-column.md index c667492f..447e7a90 100644 --- a/docs/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/tablesdb/create-polygon-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-relationship-column.md b/docs/examples/tablesdb/create-relationship-column.md index 2ad3e365..3de0a494 100644 --- a/docs/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/tablesdb/create-relationship-column.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-row.md b/docs/examples/tablesdb/create-row.md index 05cbe3ce..bf4c929c 100644 --- a/docs/examples/tablesdb/create-row.md +++ b/docs/examples/tablesdb/create-row.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/create-rows.md b/docs/examples/tablesdb/create-rows.md index 868c515a..c9059f6d 100644 --- a/docs/examples/tablesdb/create-rows.md +++ b/docs/examples/tablesdb/create-rows.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-string-column.md b/docs/examples/tablesdb/create-string-column.md index 70d55283..7bb6fe35 100644 --- a/docs/examples/tablesdb/create-string-column.md +++ b/docs/examples/tablesdb/create-string-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-table.md b/docs/examples/tablesdb/create-table.md index f7781fc7..fb1df629 100644 --- a/docs/examples/tablesdb/create-table.md +++ b/docs/examples/tablesdb/create-table.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-text-column.md b/docs/examples/tablesdb/create-text-column.md index ae046a6a..fa79b322 100644 --- a/docs/examples/tablesdb/create-text-column.md +++ b/docs/examples/tablesdb/create-text-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-transaction.md b/docs/examples/tablesdb/create-transaction.md index cc3845f0..18de0ee3 100644 --- a/docs/examples/tablesdb/create-transaction.md +++ b/docs/examples/tablesdb/create-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-url-column.md b/docs/examples/tablesdb/create-url-column.md index de79303f..bdafd380 100644 --- a/docs/examples/tablesdb/create-url-column.md +++ b/docs/examples/tablesdb/create-url-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create-varchar-column.md b/docs/examples/tablesdb/create-varchar-column.md index 507c8dd4..3f1a6825 100644 --- a/docs/examples/tablesdb/create-varchar-column.md +++ b/docs/examples/tablesdb/create-varchar-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/create.md b/docs/examples/tablesdb/create.md index 8175c0eb..932ecea0 100644 --- a/docs/examples/tablesdb/create.md +++ b/docs/examples/tablesdb/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/decrement-row-column.md b/docs/examples/tablesdb/decrement-row-column.md index c7a97020..3a631feb 100644 --- a/docs/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/tablesdb/decrement-row-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/delete-column.md b/docs/examples/tablesdb/delete-column.md index fbb62253..c4a83424 100644 --- a/docs/examples/tablesdb/delete-column.md +++ b/docs/examples/tablesdb/delete-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete-index.md b/docs/examples/tablesdb/delete-index.md index ccf44a5f..ae621c96 100644 --- a/docs/examples/tablesdb/delete-index.md +++ b/docs/examples/tablesdb/delete-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete-migration.md b/docs/examples/tablesdb/delete-migration.md index 84541e14..827b46ca 100644 --- a/docs/examples/tablesdb/delete-migration.md +++ b/docs/examples/tablesdb/delete-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete-row.md b/docs/examples/tablesdb/delete-row.md index 51c0168e..829ca96a 100644 --- a/docs/examples/tablesdb/delete-row.md +++ b/docs/examples/tablesdb/delete-row.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/delete-rows.md b/docs/examples/tablesdb/delete-rows.md index 1cfdfe72..aefbbf62 100644 --- a/docs/examples/tablesdb/delete-rows.md +++ b/docs/examples/tablesdb/delete-rows.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete-table.md b/docs/examples/tablesdb/delete-table.md index 486d1cfd..804c9743 100644 --- a/docs/examples/tablesdb/delete-table.md +++ b/docs/examples/tablesdb/delete-table.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete-transaction.md b/docs/examples/tablesdb/delete-transaction.md index 1fc1ced4..ebcd35f5 100644 --- a/docs/examples/tablesdb/delete-transaction.md +++ b/docs/examples/tablesdb/delete-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/delete.md b/docs/examples/tablesdb/delete.md index 8af9ed67..6efb716a 100644 --- a/docs/examples/tablesdb/delete.md +++ b/docs/examples/tablesdb/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-column.md b/docs/examples/tablesdb/get-column.md index c0d9c042..517f7afa 100644 --- a/docs/examples/tablesdb/get-column.md +++ b/docs/examples/tablesdb/get-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-index.md b/docs/examples/tablesdb/get-index.md index 45cb4826..6511c368 100644 --- a/docs/examples/tablesdb/get-index.md +++ b/docs/examples/tablesdb/get-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-migration.md b/docs/examples/tablesdb/get-migration.md index de4d85e3..06ce963c 100644 --- a/docs/examples/tablesdb/get-migration.md +++ b/docs/examples/tablesdb/get-migration.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-replicas.md b/docs/examples/tablesdb/get-replicas.md index 1053522f..97b41889 100644 --- a/docs/examples/tablesdb/get-replicas.md +++ b/docs/examples/tablesdb/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-row.md b/docs/examples/tablesdb/get-row.md index 83c1f61e..b6ebe93c 100644 --- a/docs/examples/tablesdb/get-row.md +++ b/docs/examples/tablesdb/get-row.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/get-status.md b/docs/examples/tablesdb/get-status.md index 5cc588fb..28e25ba7 100644 --- a/docs/examples/tablesdb/get-status.md +++ b/docs/examples/tablesdb/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-table.md b/docs/examples/tablesdb/get-table.md index e5f5c4e4..f2bd8a77 100644 --- a/docs/examples/tablesdb/get-table.md +++ b/docs/examples/tablesdb/get-table.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get-transaction.md b/docs/examples/tablesdb/get-transaction.md index 9bfeeb63..f5d051af 100644 --- a/docs/examples/tablesdb/get-transaction.md +++ b/docs/examples/tablesdb/get-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/get.md b/docs/examples/tablesdb/get.md index daa759ab..f6f91258 100644 --- a/docs/examples/tablesdb/get.md +++ b/docs/examples/tablesdb/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/increment-row-column.md b/docs/examples/tablesdb/increment-row-column.md index 16d13fbc..f1ec54f6 100644 --- a/docs/examples/tablesdb/increment-row-column.md +++ b/docs/examples/tablesdb/increment-row-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/list-columns.md b/docs/examples/tablesdb/list-columns.md index fdb00a25..4e56e093 100644 --- a/docs/examples/tablesdb/list-columns.md +++ b/docs/examples/tablesdb/list-columns.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-indexes.md b/docs/examples/tablesdb/list-indexes.md index f2b039a4..7d099ce7 100644 --- a/docs/examples/tablesdb/list-indexes.md +++ b/docs/examples/tablesdb/list-indexes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-migrations.md b/docs/examples/tablesdb/list-migrations.md index a7b88cb9..ef1685c4 100644 --- a/docs/examples/tablesdb/list-migrations.md +++ b/docs/examples/tablesdb/list-migrations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-operations.md b/docs/examples/tablesdb/list-operations.md index daaa2868..8d41dc70 100644 --- a/docs/examples/tablesdb/list-operations.md +++ b/docs/examples/tablesdb/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-rows.md b/docs/examples/tablesdb/list-rows.md index 66e085fd..bafd1629 100644 --- a/docs/examples/tablesdb/list-rows.md +++ b/docs/examples/tablesdb/list-rows.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/list-specifications.md b/docs/examples/tablesdb/list-specifications.md index 262b9fd3..c0f44071 100644 --- a/docs/examples/tablesdb/list-specifications.md +++ b/docs/examples/tablesdb/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-tables.md b/docs/examples/tablesdb/list-tables.md index 89c2e7b5..2ad82064 100644 --- a/docs/examples/tablesdb/list-tables.md +++ b/docs/examples/tablesdb/list-tables.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/list-transactions.md b/docs/examples/tablesdb/list-transactions.md index 6d7db9ab..8533176f 100644 --- a/docs/examples/tablesdb/list-transactions.md +++ b/docs/examples/tablesdb/list-transactions.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key TablesDB tablesDB = new TablesDB(client); TransactionList result = await tablesDB.ListTransactions( - queries: new List() // optional + queries: new List(), // optional + total: false // optional ); ``` diff --git a/docs/examples/tablesdb/list.md b/docs/examples/tablesdb/list.md index 6f082930..2ec31e14 100644 --- a/docs/examples/tablesdb/list.md +++ b/docs/examples/tablesdb/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-big-int-column.md b/docs/examples/tablesdb/update-big-int-column.md index 381d02b2..898be2f5 100644 --- a/docs/examples/tablesdb/update-big-int-column.md +++ b/docs/examples/tablesdb/update-big-int-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-boolean-column.md b/docs/examples/tablesdb/update-boolean-column.md index 5f7685ec..de37acfb 100644 --- a/docs/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/tablesdb/update-boolean-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-datetime-column.md b/docs/examples/tablesdb/update-datetime-column.md index f659279c..6836acf6 100644 --- a/docs/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/tablesdb/update-datetime-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-email-column.md b/docs/examples/tablesdb/update-email-column.md index c8f5d912..b4dbdd87 100644 --- a/docs/examples/tablesdb/update-email-column.md +++ b/docs/examples/tablesdb/update-email-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-enum-column.md b/docs/examples/tablesdb/update-enum-column.md index 404fc413..58e7b686 100644 --- a/docs/examples/tablesdb/update-enum-column.md +++ b/docs/examples/tablesdb/update-enum-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-float-column.md b/docs/examples/tablesdb/update-float-column.md index 7983743e..f33f1c09 100644 --- a/docs/examples/tablesdb/update-float-column.md +++ b/docs/examples/tablesdb/update-float-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-integer-column.md b/docs/examples/tablesdb/update-integer-column.md index 22b8ab20..ec8c38d3 100644 --- a/docs/examples/tablesdb/update-integer-column.md +++ b/docs/examples/tablesdb/update-integer-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-ip-column.md b/docs/examples/tablesdb/update-ip-column.md index 30a9c595..abe5af44 100644 --- a/docs/examples/tablesdb/update-ip-column.md +++ b/docs/examples/tablesdb/update-ip-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-line-column.md b/docs/examples/tablesdb/update-line-column.md index 91291e3f..e9d0bf3f 100644 --- a/docs/examples/tablesdb/update-line-column.md +++ b/docs/examples/tablesdb/update-line-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-longtext-column.md b/docs/examples/tablesdb/update-longtext-column.md index c240a496..4ba55862 100644 --- a/docs/examples/tablesdb/update-longtext-column.md +++ b/docs/examples/tablesdb/update-longtext-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-mediumtext-column.md b/docs/examples/tablesdb/update-mediumtext-column.md index 592d8afa..711dac96 100644 --- a/docs/examples/tablesdb/update-mediumtext-column.md +++ b/docs/examples/tablesdb/update-mediumtext-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-point-column.md b/docs/examples/tablesdb/update-point-column.md index 4e2dcc07..1dc768d9 100644 --- a/docs/examples/tablesdb/update-point-column.md +++ b/docs/examples/tablesdb/update-point-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-polygon-column.md b/docs/examples/tablesdb/update-polygon-column.md index 5ecd1b80..c169a1c2 100644 --- a/docs/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/tablesdb/update-polygon-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-relationship-column.md b/docs/examples/tablesdb/update-relationship-column.md index 8d75dd0a..715d0273 100644 --- a/docs/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/tablesdb/update-relationship-column.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-row.md b/docs/examples/tablesdb/update-row.md index 03f71f61..3ad1d2af 100644 --- a/docs/examples/tablesdb/update-row.md +++ b/docs/examples/tablesdb/update-row.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/update-rows.md b/docs/examples/tablesdb/update-rows.md index 9e4c497b..cd3cdd46 100644 --- a/docs/examples/tablesdb/update-rows.md +++ b/docs/examples/tablesdb/update-rows.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-string-column.md b/docs/examples/tablesdb/update-string-column.md index bf0849e2..f4ad63fd 100644 --- a/docs/examples/tablesdb/update-string-column.md +++ b/docs/examples/tablesdb/update-string-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-table.md b/docs/examples/tablesdb/update-table.md index e7a22821..2ed75d40 100644 --- a/docs/examples/tablesdb/update-table.md +++ b/docs/examples/tablesdb/update-table.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-text-column.md b/docs/examples/tablesdb/update-text-column.md index 0ee26e04..90947c92 100644 --- a/docs/examples/tablesdb/update-text-column.md +++ b/docs/examples/tablesdb/update-text-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-transaction.md b/docs/examples/tablesdb/update-transaction.md index 2010f673..37a3fc2e 100644 --- a/docs/examples/tablesdb/update-transaction.md +++ b/docs/examples/tablesdb/update-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-url-column.md b/docs/examples/tablesdb/update-url-column.md index f32ce01a..191d1305 100644 --- a/docs/examples/tablesdb/update-url-column.md +++ b/docs/examples/tablesdb/update-url-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update-varchar-column.md b/docs/examples/tablesdb/update-varchar-column.md index 3cd1f9c0..1cb254cc 100644 --- a/docs/examples/tablesdb/update-varchar-column.md +++ b/docs/examples/tablesdb/update-varchar-column.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/update.md b/docs/examples/tablesdb/update.md index 8b28a996..e9e48acb 100644 --- a/docs/examples/tablesdb/update.md +++ b/docs/examples/tablesdb/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tablesdb/upsert-row.md b/docs/examples/tablesdb/upsert-row.md index ef38e305..08dc3572 100644 --- a/docs/examples/tablesdb/upsert-row.md +++ b/docs/examples/tablesdb/upsert-row.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tablesdb/upsert-rows.md b/docs/examples/tablesdb/upsert-rows.md index 41d3bcd8..42b32274 100644 --- a/docs/examples/tablesdb/upsert-rows.md +++ b/docs/examples/tablesdb/upsert-rows.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/teams/create-installation.md b/docs/examples/teams/create-installation.md index 217d0a23..f22575a8 100644 --- a/docs/examples/teams/create-installation.md +++ b/docs/examples/teams/create-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 1092050b..2ec17246 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with @@ -17,7 +17,8 @@ Membership result = await teams.CreateMembership( userId: "", // optional phone: "+12065550100", // optional url: "https://example.com", // optional - name: "" // optional + name: "", // optional + membershipId: "" // optional ); ``` diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index fdc1e09c..6ce48b80 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/delete-installation.md b/docs/examples/teams/delete-installation.md index d9d4263a..2c32dce6 100644 --- a/docs/examples/teams/delete-installation.md +++ b/docs/examples/teams/delete-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index e7b8bb31..37c4c72d 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index b1054418..4e5a375a 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/get-installation.md b/docs/examples/teams/get-installation.md index e23c4781..97e4b145 100644 --- a/docs/examples/teams/get-installation.md +++ b/docs/examples/teams/get-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md index f359df1a..490313c4 100644 --- a/docs/examples/teams/get-membership.md +++ b/docs/examples/teams/get-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md index 95a8c288..1ca4d5d3 100644 --- a/docs/examples/teams/get-prefs.md +++ b/docs/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 900d932d..473128c3 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/list-installations.md b/docs/examples/teams/list-installations.md index 133f4278..43e451dd 100644 --- a/docs/examples/teams/list-installations.md +++ b/docs/examples/teams/list-installations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md index 64c25747..dd59d05f 100644 --- a/docs/examples/teams/list-memberships.md +++ b/docs/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index 571c8663..814aafea 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/update-installation.md b/docs/examples/teams/update-installation.md index 7fa98101..099ec4d9 100644 --- a/docs/examples/teams/update-installation.md +++ b/docs/examples/teams/update-installation.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index 1f172dab..3c9510db 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/update-membership.md b/docs/examples/teams/update-membership.md index ff4ad455..30d39d5f 100644 --- a/docs/examples/teams/update-membership.md +++ b/docs/examples/teams/update-membership.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md index 6f42ce5c..b7b80037 100644 --- a/docs/examples/teams/update-name.md +++ b/docs/examples/teams/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md index b2dbac7a..8f22bb3b 100644 --- a/docs/examples/teams/update-prefs.md +++ b/docs/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/tokens/create-file-token.md b/docs/examples/tokens/create-file-token.md index baf4c376..8a4e22cd 100644 --- a/docs/examples/tokens/create-file-token.md +++ b/docs/examples/tokens/create-file-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tokens/delete.md b/docs/examples/tokens/delete.md index 9b186358..0d547a01 100644 --- a/docs/examples/tokens/delete.md +++ b/docs/examples/tokens/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tokens/get.md b/docs/examples/tokens/get.md index 5466ae87..bcb59dcd 100644 --- a/docs/examples/tokens/get.md +++ b/docs/examples/tokens/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tokens/list.md b/docs/examples/tokens/list.md index 45e027d4..4621297c 100644 --- a/docs/examples/tokens/list.md +++ b/docs/examples/tokens/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/tokens/update.md b/docs/examples/tokens/update.md index 041dce97..1f00472a 100644 --- a/docs/examples/tokens/update.md +++ b/docs/examples/tokens/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-argon-2-user.md b/docs/examples/users/create-argon-2-user.md index 6c4ba635..90ea2a07 100644 --- a/docs/examples/users/create-argon-2-user.md +++ b/docs/examples/users/create-argon-2-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md index d4a70e5b..e8815156 100644 --- a/docs/examples/users/create-bcrypt-user.md +++ b/docs/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-jwt.md b/docs/examples/users/create-jwt.md index 0841f4ea..32c08277 100644 --- a/docs/examples/users/create-jwt.md +++ b/docs/examples/users/create-jwt.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-md-5-user.md b/docs/examples/users/create-md-5-user.md index 26825711..3745c63f 100644 --- a/docs/examples/users/create-md-5-user.md +++ b/docs/examples/users/create-md-5-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-mfa-recovery-codes.md b/docs/examples/users/create-mfa-recovery-codes.md index 02a34ab9..5ea66b18 100644 --- a/docs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/users/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-ph-pass-user.md b/docs/examples/users/create-ph-pass-user.md index efcc9f27..6ea3abc0 100644 --- a/docs/examples/users/create-ph-pass-user.md +++ b/docs/examples/users/create-ph-pass-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md index 687282b2..6ebdd1d5 100644 --- a/docs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md index ee7e61a1..b4f17413 100644 --- a/docs/examples/users/create-scrypt-user.md +++ b/docs/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-session.md b/docs/examples/users/create-session.md index 5ca7121f..6a573013 100644 --- a/docs/examples/users/create-session.md +++ b/docs/examples/users/create-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-sha-user.md b/docs/examples/users/create-sha-user.md index 8dd3a160..cd9cd3ad 100644 --- a/docs/examples/users/create-sha-user.md +++ b/docs/examples/users/create-sha-user.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-target.md b/docs/examples/users/create-target.md index 281996df..db41169a 100644 --- a/docs/examples/users/create-target.md +++ b/docs/examples/users/create-target.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create-token.md b/docs/examples/users/create-token.md index 3d929346..2501a935 100644 --- a/docs/examples/users/create-token.md +++ b/docs/examples/users/create-token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index fb2a8095..ad8bed4c 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-identity.md b/docs/examples/users/delete-identity.md index bc55fed8..6d957894 100644 --- a/docs/examples/users/delete-identity.md +++ b/docs/examples/users/delete-identity.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-mfa-authenticator.md b/docs/examples/users/delete-mfa-authenticator.md index 82ddb00f..89a37cbe 100644 --- a/docs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/users/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-passkey.md b/docs/examples/users/delete-passkey.md index 0a01c267..f5218d7b 100644 --- a/docs/examples/users/delete-passkey.md +++ b/docs/examples/users/delete-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index c0cbbf02..6b3c0abf 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 6fcb9d0c..a7f184ad 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete-target.md b/docs/examples/users/delete-target.md index b496d645..f4a4dc77 100644 --- a/docs/examples/users/delete-target.md +++ b/docs/examples/users/delete-target.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index 426c3007..97612cd4 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get-mfa-challenge.md b/docs/examples/users/get-mfa-challenge.md index 98f2131b..397d4eed 100644 --- a/docs/examples/users/get-mfa-challenge.md +++ b/docs/examples/users/get-mfa-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get-mfa-recovery-codes.md b/docs/examples/users/get-mfa-recovery-codes.md index b2c1e98a..8bc493d0 100644 --- a/docs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/users/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get-passkey.md b/docs/examples/users/get-passkey.md index 186046bd..d294f75c 100644 --- a/docs/examples/users/get-passkey.md +++ b/docs/examples/users/get-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index 70f55411..2d0e4286 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get-target.md b/docs/examples/users/get-target.md index 3011e569..0428000f 100644 --- a/docs/examples/users/get-target.md +++ b/docs/examples/users/get-target.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 047ed83c..c75fa789 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-identities.md b/docs/examples/users/list-identities.md index 08ee96bd..e6ea33f3 100644 --- a/docs/examples/users/list-identities.md +++ b/docs/examples/users/list-identities.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md index ec0ff9ac..6ac96510 100644 --- a/docs/examples/users/list-logs.md +++ b/docs/examples/users/list-logs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md index ad3e77a2..2f69bad6 100644 --- a/docs/examples/users/list-memberships.md +++ b/docs/examples/users/list-memberships.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-mfa-factors.md b/docs/examples/users/list-mfa-factors.md index c1f7365e..90e6d144 100644 --- a/docs/examples/users/list-mfa-factors.md +++ b/docs/examples/users/list-mfa-factors.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-passkeys.md b/docs/examples/users/list-passkeys.md index d0964ba8..eb547735 100644 --- a/docs/examples/users/list-passkeys.md +++ b/docs/examples/users/list-passkeys.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md index 49593956..a6c5e843 100644 --- a/docs/examples/users/list-sessions.md +++ b/docs/examples/users/list-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list-targets.md b/docs/examples/users/list-targets.md index d867b06f..ce2fbef0 100644 --- a/docs/examples/users/list-targets.md +++ b/docs/examples/users/list-targets.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index 8f0ad9d5..42714830 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md index 0f6233c3..880cab65 100644 --- a/docs/examples/users/update-email-verification.md +++ b/docs/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md index be7bc521..920bfba1 100644 --- a/docs/examples/users/update-email.md +++ b/docs/examples/users/update-email.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-impersonator.md b/docs/examples/users/update-impersonator.md index 91d94e78..e0be3c59 100644 --- a/docs/examples/users/update-impersonator.md +++ b/docs/examples/users/update-impersonator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-labels.md b/docs/examples/users/update-labels.md index f6c0b554..e52ea355 100644 --- a/docs/examples/users/update-labels.md +++ b/docs/examples/users/update-labels.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-mfa-recovery-codes.md b/docs/examples/users/update-mfa-recovery-codes.md index 78018690..52662f1d 100644 --- a/docs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/users/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-mfa.md b/docs/examples/users/update-mfa.md index 4e51f9f1..f3b133c0 100644 --- a/docs/examples/users/update-mfa.md +++ b/docs/examples/users/update-mfa.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md index 4a58aa86..14bde5fa 100644 --- a/docs/examples/users/update-name.md +++ b/docs/examples/users/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-passkey.md b/docs/examples/users/update-passkey.md index 7551eddf..25ea5441 100644 --- a/docs/examples/users/update-passkey.md +++ b/docs/examples/users/update-passkey.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md index 4306cd73..f3f72b82 100644 --- a/docs/examples/users/update-password.md +++ b/docs/examples/users/update-password.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md index 81fedf8a..2929c3a8 100644 --- a/docs/examples/users/update-phone-verification.md +++ b/docs/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md index de2a0723..ed9b1b7e 100644 --- a/docs/examples/users/update-phone.md +++ b/docs/examples/users/update-phone.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index db20bfc8..eb0e811c 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index bd9f4839..505fee7a 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/users/update-target.md b/docs/examples/users/update-target.md index a2c18419..1b43b4ae 100644 --- a/docs/examples/users/update-target.md +++ b/docs/examples/users/update-target.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-collection.md b/docs/examples/vectorsdb/create-collection.md index b0cebcd4..21893d1f 100644 --- a/docs/examples/vectorsdb/create-collection.md +++ b/docs/examples/vectorsdb/create-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-document.md b/docs/examples/vectorsdb/create-document.md index 54260d78..46b15934 100644 --- a/docs/examples/vectorsdb/create-document.md +++ b/docs/examples/vectorsdb/create-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/create-documents.md b/docs/examples/vectorsdb/create-documents.md index af00ea00..10adaacc 100644 --- a/docs/examples/vectorsdb/create-documents.md +++ b/docs/examples/vectorsdb/create-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-failover.md b/docs/examples/vectorsdb/create-failover.md index dd50d8dc..5a04d910 100644 --- a/docs/examples/vectorsdb/create-failover.md +++ b/docs/examples/vectorsdb/create-failover.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-index.md b/docs/examples/vectorsdb/create-index.md index 5adac04c..da993496 100644 --- a/docs/examples/vectorsdb/create-index.md +++ b/docs/examples/vectorsdb/create-index.md @@ -5,7 +5,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-operations.md b/docs/examples/vectorsdb/create-operations.md index 346c7d24..d23b4d4f 100644 --- a/docs/examples/vectorsdb/create-operations.md +++ b/docs/examples/vectorsdb/create-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create-query.md b/docs/examples/vectorsdb/create-query.md index bcc28eda..cab935dd 100644 --- a/docs/examples/vectorsdb/create-query.md +++ b/docs/examples/vectorsdb/create-query.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/create-transaction.md b/docs/examples/vectorsdb/create-transaction.md index 133e6bbd..64b9a660 100644 --- a/docs/examples/vectorsdb/create-transaction.md +++ b/docs/examples/vectorsdb/create-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/create.md b/docs/examples/vectorsdb/create.md index 5ef6db08..538ee933 100644 --- a/docs/examples/vectorsdb/create.md +++ b/docs/examples/vectorsdb/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/delete-collection.md b/docs/examples/vectorsdb/delete-collection.md index 563f025d..15a9f646 100644 --- a/docs/examples/vectorsdb/delete-collection.md +++ b/docs/examples/vectorsdb/delete-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/delete-document.md b/docs/examples/vectorsdb/delete-document.md index 78ccb33c..1fd8c13e 100644 --- a/docs/examples/vectorsdb/delete-document.md +++ b/docs/examples/vectorsdb/delete-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/delete-documents.md b/docs/examples/vectorsdb/delete-documents.md index e7d21a4b..09d2aca7 100644 --- a/docs/examples/vectorsdb/delete-documents.md +++ b/docs/examples/vectorsdb/delete-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/delete-index.md b/docs/examples/vectorsdb/delete-index.md index 7764d3ce..8eb45302 100644 --- a/docs/examples/vectorsdb/delete-index.md +++ b/docs/examples/vectorsdb/delete-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/delete-transaction.md b/docs/examples/vectorsdb/delete-transaction.md index 2d706dd2..c6ad3fcd 100644 --- a/docs/examples/vectorsdb/delete-transaction.md +++ b/docs/examples/vectorsdb/delete-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/delete.md b/docs/examples/vectorsdb/delete.md index 0f43900d..a9b9aed7 100644 --- a/docs/examples/vectorsdb/delete.md +++ b/docs/examples/vectorsdb/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get-collection.md b/docs/examples/vectorsdb/get-collection.md index 9111b740..9f0afc05 100644 --- a/docs/examples/vectorsdb/get-collection.md +++ b/docs/examples/vectorsdb/get-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get-document.md b/docs/examples/vectorsdb/get-document.md index 98762a93..80760773 100644 --- a/docs/examples/vectorsdb/get-document.md +++ b/docs/examples/vectorsdb/get-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/get-index.md b/docs/examples/vectorsdb/get-index.md index 6c2d1dfb..fb39350f 100644 --- a/docs/examples/vectorsdb/get-index.md +++ b/docs/examples/vectorsdb/get-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get-replicas.md b/docs/examples/vectorsdb/get-replicas.md index b1a849f3..a8db8388 100644 --- a/docs/examples/vectorsdb/get-replicas.md +++ b/docs/examples/vectorsdb/get-replicas.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get-status.md b/docs/examples/vectorsdb/get-status.md index e019656d..1e1c13d3 100644 --- a/docs/examples/vectorsdb/get-status.md +++ b/docs/examples/vectorsdb/get-status.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get-transaction.md b/docs/examples/vectorsdb/get-transaction.md index 4cd0b3fd..d8f7c765 100644 --- a/docs/examples/vectorsdb/get-transaction.md +++ b/docs/examples/vectorsdb/get-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/get.md b/docs/examples/vectorsdb/get.md index 5b605e57..62391ec9 100644 --- a/docs/examples/vectorsdb/get.md +++ b/docs/examples/vectorsdb/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/list-collections.md b/docs/examples/vectorsdb/list-collections.md index 5e9f2737..ed71cfd0 100644 --- a/docs/examples/vectorsdb/list-collections.md +++ b/docs/examples/vectorsdb/list-collections.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/list-documents.md b/docs/examples/vectorsdb/list-documents.md index 93411673..d32255b7 100644 --- a/docs/examples/vectorsdb/list-documents.md +++ b/docs/examples/vectorsdb/list-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/list-indexes.md b/docs/examples/vectorsdb/list-indexes.md index acf0af7a..47cea01f 100644 --- a/docs/examples/vectorsdb/list-indexes.md +++ b/docs/examples/vectorsdb/list-indexes.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/list-operations.md b/docs/examples/vectorsdb/list-operations.md index 90a4327f..6d6f7af6 100644 --- a/docs/examples/vectorsdb/list-operations.md +++ b/docs/examples/vectorsdb/list-operations.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/list-specifications.md b/docs/examples/vectorsdb/list-specifications.md index 652d2324..5e65626d 100644 --- a/docs/examples/vectorsdb/list-specifications.md +++ b/docs/examples/vectorsdb/list-specifications.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/list-transactions.md b/docs/examples/vectorsdb/list-transactions.md index 54ada0e6..88d5982e 100644 --- a/docs/examples/vectorsdb/list-transactions.md +++ b/docs/examples/vectorsdb/list-transactions.md @@ -4,14 +4,15 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key VectorsDB vectorsDB = new VectorsDB(client); TransactionList result = await vectorsDB.ListTransactions( - queries: new List() // optional + queries: new List(), // optional + total: false // optional ); ``` diff --git a/docs/examples/vectorsdb/list.md b/docs/examples/vectorsdb/list.md index f2c0e930..264abf7f 100644 --- a/docs/examples/vectorsdb/list.md +++ b/docs/examples/vectorsdb/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/update-collection.md b/docs/examples/vectorsdb/update-collection.md index bcadbda2..d15bf3a3 100644 --- a/docs/examples/vectorsdb/update-collection.md +++ b/docs/examples/vectorsdb/update-collection.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/update-document.md b/docs/examples/vectorsdb/update-document.md index d1d0d078..e366abbf 100644 --- a/docs/examples/vectorsdb/update-document.md +++ b/docs/examples/vectorsdb/update-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/update-documents.md b/docs/examples/vectorsdb/update-documents.md index 5833aac1..ea664990 100644 --- a/docs/examples/vectorsdb/update-documents.md +++ b/docs/examples/vectorsdb/update-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/update-transaction.md b/docs/examples/vectorsdb/update-transaction.md index 65320cc2..c338c4a8 100644 --- a/docs/examples/vectorsdb/update-transaction.md +++ b/docs/examples/vectorsdb/update-transaction.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/update.md b/docs/examples/vectorsdb/update.md index c8184ece..776874f3 100644 --- a/docs/examples/vectorsdb/update.md +++ b/docs/examples/vectorsdb/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/vectorsdb/upsert-document.md b/docs/examples/vectorsdb/upsert-document.md index edb18673..00e9b25a 100644 --- a/docs/examples/vectorsdb/upsert-document.md +++ b/docs/examples/vectorsdb/upsert-document.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/vectorsdb/upsert-documents.md b/docs/examples/vectorsdb/upsert-documents.md index d9209fd9..f17bd7f9 100644 --- a/docs/examples/vectorsdb/upsert-documents.md +++ b/docs/examples/vectorsdb/upsert-documents.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/waf/create-bypass-rule.md b/docs/examples/waf/create-bypass-rule.md new file mode 100644 index 00000000..dd56b385 --- /dev/null +++ b/docs/examples/waf/create-bypass-rule.md @@ -0,0 +1,24 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleBypass result = await waf.CreateBypassRule( + ruleId: "", + resourceType: "api", + name: "", + resourceId: "", // optional + description: "", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/create-challenge-rule.md b/docs/examples/waf/create-challenge-rule.md new file mode 100644 index 00000000..b7c5faaa --- /dev/null +++ b/docs/examples/waf/create-challenge-rule.md @@ -0,0 +1,27 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleChallenge result = await waf.CreateChallengeRule( + ruleId: "", + resourceType: "api", + name: "", + resourceId: "", // optional + description: "", // optional + challengeType: "compute", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List(), // optional + difficulty: 1, // optional + ttl: 900 // optional +); + +``` diff --git a/docs/examples/waf/create-deny-rule.md b/docs/examples/waf/create-deny-rule.md new file mode 100644 index 00000000..a47cac44 --- /dev/null +++ b/docs/examples/waf/create-deny-rule.md @@ -0,0 +1,24 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleDeny result = await waf.CreateDenyRule( + ruleId: "", + resourceType: "api", + name: "", + resourceId: "", // optional + description: "", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/create-rate-limit-rule.md b/docs/examples/waf/create-rate-limit-rule.md new file mode 100644 index 00000000..c0d34edd --- /dev/null +++ b/docs/examples/waf/create-rate-limit-rule.md @@ -0,0 +1,29 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleRateLimit result = await waf.CreateRateLimitRule( + ruleId: "", + resourceType: "api", + name: "", + limit: 1, + interval: 1, + resourceId: "", // optional + description: "", // optional + key: "ip", // optional + strategy: "fixedWindow", // optional + maxBucketSize: 1, // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/create-redirect-rule.md b/docs/examples/waf/create-redirect-rule.md new file mode 100644 index 00000000..04e9d3b8 --- /dev/null +++ b/docs/examples/waf/create-redirect-rule.md @@ -0,0 +1,26 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleRedirect result = await waf.CreateRedirectRule( + ruleId: "", + resourceType: "api", + name: "", + location: "", + statusCode: 300, + resourceId: "", // optional + description: "", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/delete-rule.md b/docs/examples/waf/delete-rule.md new file mode 100644 index 00000000..b38d03df --- /dev/null +++ b/docs/examples/waf/delete-rule.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +await waf.DeleteRule( + ruleId: "" +); + +``` diff --git a/docs/examples/waf/get-rule.md b/docs/examples/waf/get-rule.md new file mode 100644 index 00000000..6d3a80a8 --- /dev/null +++ b/docs/examples/waf/get-rule.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +object result = await waf.GetRule( + ruleId: "" +); + +``` diff --git a/docs/examples/waf/list-rules.md b/docs/examples/waf/list-rules.md new file mode 100644 index 00000000..a3798a54 --- /dev/null +++ b/docs/examples/waf/list-rules.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleList result = await waf.ListRules( + queries: new List(), // optional + search: "", // optional + total: false // optional +); + +``` diff --git a/docs/examples/waf/update-bypass-rule.md b/docs/examples/waf/update-bypass-rule.md new file mode 100644 index 00000000..a21d2607 --- /dev/null +++ b/docs/examples/waf/update-bypass-rule.md @@ -0,0 +1,24 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleBypass result = await waf.UpdateBypassRule( + ruleId: "", + resourceType: "api", // optional + resourceId: "", // optional + name: "", // optional + description: "", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/update-challenge-rule.md b/docs/examples/waf/update-challenge-rule.md new file mode 100644 index 00000000..71a965dc --- /dev/null +++ b/docs/examples/waf/update-challenge-rule.md @@ -0,0 +1,27 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleChallenge result = await waf.UpdateChallengeRule( + ruleId: "", + resourceType: "api", // optional + resourceId: "", // optional + name: "", // optional + description: "", // optional + challengeType: "compute", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List(), // optional + difficulty: 1, // optional + ttl: 900 // optional +); + +``` diff --git a/docs/examples/waf/update-deny-rule.md b/docs/examples/waf/update-deny-rule.md new file mode 100644 index 00000000..b65be602 --- /dev/null +++ b/docs/examples/waf/update-deny-rule.md @@ -0,0 +1,24 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleDeny result = await waf.UpdateDenyRule( + ruleId: "", + resourceType: "api", // optional + resourceId: "", // optional + name: "", // optional + description: "", // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/update-rate-limit-rule.md b/docs/examples/waf/update-rate-limit-rule.md new file mode 100644 index 00000000..cb6ebb3e --- /dev/null +++ b/docs/examples/waf/update-rate-limit-rule.md @@ -0,0 +1,28 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleRateLimit result = await waf.UpdateRateLimitRule( + ruleId: "", + resourceType: "api", // optional + resourceId: "", // optional + name: "", // optional + description: "", // optional + limit: 1, // optional + interval: 1, // optional + key: "ip", // optional + maxBucketSize: 1, // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/waf/update-redirect-rule.md b/docs/examples/waf/update-redirect-rule.md new file mode 100644 index 00000000..2fed4e71 --- /dev/null +++ b/docs/examples/waf/update-redirect-rule.md @@ -0,0 +1,26 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Waf waf = new Waf(client); + +Appwrite.Models.WafRuleRedirect result = await waf.UpdateRedirectRule( + ruleId: "", + resourceType: "api", // optional + resourceId: "", // optional + name: "", // optional + description: "", // optional + location: "", // optional + statusCode: 300, // optional + priority: -100000, // optional + enabled: false, // optional + conditions: new List() // optional +); + +``` diff --git a/docs/examples/webhooks/create.md b/docs/examples/webhooks/create.md index 28a5222f..b5d8350e 100644 --- a/docs/examples/webhooks/create.md +++ b/docs/examples/webhooks/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/webhooks/delete.md b/docs/examples/webhooks/delete.md index 8cb5a401..213a5e38 100644 --- a/docs/examples/webhooks/delete.md +++ b/docs/examples/webhooks/delete.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/webhooks/get.md b/docs/examples/webhooks/get.md index 2b6ce7dd..018e3ded 100644 --- a/docs/examples/webhooks/get.md +++ b/docs/examples/webhooks/get.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/webhooks/list.md b/docs/examples/webhooks/list.md index c8c4b065..81435c05 100644 --- a/docs/examples/webhooks/list.md +++ b/docs/examples/webhooks/list.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/webhooks/update-secret.md b/docs/examples/webhooks/update-secret.md index c6d94551..ccdcd5b1 100644 --- a/docs/examples/webhooks/update-secret.md +++ b/docs/examples/webhooks/update-secret.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key diff --git a/docs/examples/webhooks/update.md b/docs/examples/webhooks/update.md index 795cfafe..394e9729 100644 --- a/docs/examples/webhooks/update.md +++ b/docs/examples/webhooks/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key