From 1713594039e4e575d5628f8387e1f3f4e7cf7c0c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Jun 2026 08:23:54 +0000 Subject: [PATCH] chore: update Go SDK to v5.0.0 --- CHANGELOG.md | 14 + README.md | 6 +- account/account.go | 4 +- account/account_test.go | 2 +- activities/activities.go | 4 +- activities/activities_test.go | 18 +- advisor/advisor.go | 4 +- advisor/advisor_test.go | 10 +- appwrite/appwrite.go | 50 +- avatars/avatars.go | 2 +- avatars/avatars_test.go | 2 +- backups/backups.go | 4 +- backups/backups_test.go | 2 +- client/client.go | 167 ++++- databases/databases.go | 4 +- databases/databases_test.go | 4 +- .../account/create-anonymous-session.md | 4 +- .../account/create-email-password-session.md | 4 +- docs/examples/account/create-email-token.md | 4 +- .../account/create-email-verification.md | 4 +- docs/examples/account/create-jwt.md | 4 +- .../account/create-magic-url-token.md | 4 +- .../account/create-mfa-authenticator.md | 4 +- docs/examples/account/create-mfa-challenge.md | 4 +- .../account/create-mfa-recovery-codes.md | 4 +- .../examples/account/create-o-auth-2-token.md | 4 +- docs/examples/account/create-phone-token.md | 4 +- .../account/create-phone-verification.md | 4 +- docs/examples/account/create-recovery.md | 4 +- docs/examples/account/create-session.md | 4 +- docs/examples/account/create-verification.md | 4 +- docs/examples/account/create.md | 4 +- docs/examples/account/delete-identity.md | 4 +- .../account/delete-mfa-authenticator.md | 4 +- docs/examples/account/delete-session.md | 4 +- docs/examples/account/delete-sessions.md | 4 +- .../account/get-mfa-recovery-codes.md | 4 +- docs/examples/account/get-prefs.md | 4 +- docs/examples/account/get-session.md | 4 +- docs/examples/account/get.md | 4 +- docs/examples/account/list-identities.md | 4 +- docs/examples/account/list-logs.md | 4 +- docs/examples/account/list-mfa-factors.md | 4 +- docs/examples/account/list-sessions.md | 4 +- .../account/update-email-verification.md | 4 +- docs/examples/account/update-email.md | 4 +- .../account/update-magic-url-session.md | 4 +- .../account/update-mfa-authenticator.md | 4 +- docs/examples/account/update-mfa-challenge.md | 4 +- .../account/update-mfa-recovery-codes.md | 4 +- docs/examples/account/update-mfa.md | 4 +- docs/examples/account/update-name.md | 4 +- docs/examples/account/update-password.md | 4 +- docs/examples/account/update-phone-session.md | 4 +- .../account/update-phone-verification.md | 4 +- docs/examples/account/update-phone.md | 4 +- docs/examples/account/update-prefs.md | 4 +- docs/examples/account/update-recovery.md | 4 +- docs/examples/account/update-session.md | 4 +- docs/examples/account/update-status.md | 4 +- docs/examples/account/update-verification.md | 4 +- docs/examples/activities/get-event.md | 4 +- docs/examples/activities/list-events.md | 4 +- docs/examples/advisor/delete-report.md | 4 +- docs/examples/advisor/get-insight.md | 6 +- docs/examples/advisor/get-report.md | 6 +- docs/examples/advisor/list-insights.md | 6 +- docs/examples/advisor/list-reports.md | 6 +- docs/examples/avatars/get-browser.md | 4 +- docs/examples/avatars/get-credit-card.md | 4 +- docs/examples/avatars/get-favicon.md | 4 +- docs/examples/avatars/get-flag.md | 4 +- docs/examples/avatars/get-image.md | 4 +- docs/examples/avatars/get-initials.md | 4 +- docs/examples/avatars/get-qr.md | 4 +- docs/examples/avatars/get-screenshot.md | 6 +- docs/examples/backups/create-archive.md | 4 +- docs/examples/backups/create-policy.md | 4 +- docs/examples/backups/create-restoration.md | 4 +- docs/examples/backups/delete-archive.md | 4 +- docs/examples/backups/delete-policy.md | 4 +- docs/examples/backups/get-archive.md | 4 +- docs/examples/backups/get-policy.md | 4 +- docs/examples/backups/get-restoration.md | 4 +- docs/examples/backups/list-archives.md | 4 +- docs/examples/backups/list-policies.md | 4 +- docs/examples/backups/list-restorations.md | 4 +- docs/examples/backups/update-policy.md | 4 +- .../databases/create-big-int-attribute.md | 4 +- .../databases/create-boolean-attribute.md | 4 +- docs/examples/databases/create-collection.md | 4 +- .../databases/create-datetime-attribute.md | 4 +- docs/examples/databases/create-document.md | 4 +- docs/examples/databases/create-documents.md | 4 +- .../databases/create-email-attribute.md | 4 +- .../databases/create-enum-attribute.md | 4 +- .../databases/create-float-attribute.md | 4 +- docs/examples/databases/create-index.md | 4 +- .../databases/create-integer-attribute.md | 4 +- .../examples/databases/create-ip-attribute.md | 4 +- .../databases/create-line-attribute.md | 4 +- .../databases/create-longtext-attribute.md | 4 +- .../databases/create-mediumtext-attribute.md | 4 +- docs/examples/databases/create-operations.md | 4 +- .../databases/create-point-attribute.md | 4 +- .../databases/create-polygon-attribute.md | 4 +- .../create-relationship-attribute.md | 4 +- .../databases/create-string-attribute.md | 4 +- .../databases/create-text-attribute.md | 4 +- docs/examples/databases/create-transaction.md | 4 +- .../databases/create-url-attribute.md | 4 +- .../databases/create-varchar-attribute.md | 4 +- docs/examples/databases/create.md | 4 +- .../databases/decrement-document-attribute.md | 4 +- docs/examples/databases/delete-attribute.md | 4 +- docs/examples/databases/delete-collection.md | 4 +- docs/examples/databases/delete-document.md | 4 +- docs/examples/databases/delete-documents.md | 4 +- docs/examples/databases/delete-index.md | 4 +- docs/examples/databases/delete-transaction.md | 4 +- docs/examples/databases/delete.md | 4 +- docs/examples/databases/get-attribute.md | 4 +- docs/examples/databases/get-collection.md | 4 +- docs/examples/databases/get-document.md | 4 +- docs/examples/databases/get-index.md | 4 +- docs/examples/databases/get-transaction.md | 4 +- docs/examples/databases/get.md | 4 +- .../databases/increment-document-attribute.md | 4 +- docs/examples/databases/list-attributes.md | 4 +- docs/examples/databases/list-collections.md | 4 +- docs/examples/databases/list-documents.md | 4 +- docs/examples/databases/list-indexes.md | 4 +- docs/examples/databases/list-transactions.md | 4 +- docs/examples/databases/list.md | 4 +- .../databases/update-big-int-attribute.md | 4 +- .../databases/update-boolean-attribute.md | 4 +- docs/examples/databases/update-collection.md | 4 +- .../databases/update-datetime-attribute.md | 4 +- docs/examples/databases/update-document.md | 4 +- docs/examples/databases/update-documents.md | 4 +- .../databases/update-email-attribute.md | 4 +- .../databases/update-enum-attribute.md | 4 +- .../databases/update-float-attribute.md | 4 +- .../databases/update-integer-attribute.md | 4 +- .../examples/databases/update-ip-attribute.md | 4 +- .../databases/update-line-attribute.md | 4 +- .../databases/update-longtext-attribute.md | 4 +- .../databases/update-mediumtext-attribute.md | 4 +- .../databases/update-point-attribute.md | 4 +- .../databases/update-polygon-attribute.md | 4 +- .../update-relationship-attribute.md | 4 +- .../databases/update-string-attribute.md | 4 +- .../databases/update-text-attribute.md | 4 +- docs/examples/databases/update-transaction.md | 4 +- .../databases/update-url-attribute.md | 4 +- .../databases/update-varchar-attribute.md | 4 +- docs/examples/databases/update.md | 4 +- docs/examples/databases/upsert-document.md | 4 +- docs/examples/databases/upsert-documents.md | 4 +- docs/examples/functions/create-deployment.md | 4 +- .../functions/create-duplicate-deployment.md | 4 +- docs/examples/functions/create-execution.md | 4 +- .../functions/create-template-deployment.md | 4 +- docs/examples/functions/create-variable.md | 4 +- .../functions/create-vcs-deployment.md | 4 +- docs/examples/functions/create.md | 6 +- docs/examples/functions/delete-deployment.md | 4 +- docs/examples/functions/delete-execution.md | 4 +- docs/examples/functions/delete-variable.md | 4 +- docs/examples/functions/delete.md | 4 +- .../functions/get-deployment-download.md | 4 +- docs/examples/functions/get-deployment.md | 4 +- docs/examples/functions/get-execution.md | 4 +- docs/examples/functions/get-variable.md | 4 +- docs/examples/functions/get.md | 4 +- docs/examples/functions/list-deployments.md | 4 +- docs/examples/functions/list-executions.md | 4 +- docs/examples/functions/list-runtimes.md | 4 +- .../examples/functions/list-specifications.md | 4 +- docs/examples/functions/list-variables.md | 4 +- docs/examples/functions/list.md | 4 +- .../functions/update-deployment-status.md | 4 +- .../functions/update-function-deployment.md | 4 +- docs/examples/functions/update-variable.md | 4 +- docs/examples/functions/update.md | 6 +- docs/examples/graphql/mutation.md | 4 +- docs/examples/graphql/query.md | 4 +- docs/examples/health/get-antivirus.md | 4 +- docs/examples/health/get-cache.md | 4 +- docs/examples/health/get-certificate.md | 4 +- docs/examples/health/get-console-pausing.md | 4 +- docs/examples/health/get-db.md | 4 +- docs/examples/health/get-failed-jobs.md | 4 +- docs/examples/health/get-pub-sub.md | 4 +- docs/examples/health/get-queue-audits.md | 4 +- docs/examples/health/get-queue-builds.md | 4 +- .../examples/health/get-queue-certificates.md | 4 +- docs/examples/health/get-queue-databases.md | 4 +- docs/examples/health/get-queue-deletes.md | 4 +- docs/examples/health/get-queue-functions.md | 4 +- docs/examples/health/get-queue-logs.md | 4 +- docs/examples/health/get-queue-mails.md | 4 +- docs/examples/health/get-queue-messaging.md | 4 +- docs/examples/health/get-queue-migrations.md | 4 +- .../health/get-queue-stats-resources.md | 4 +- docs/examples/health/get-queue-usage.md | 4 +- docs/examples/health/get-queue-webhooks.md | 4 +- docs/examples/health/get-storage-local.md | 4 +- docs/examples/health/get-storage.md | 4 +- docs/examples/health/get-time.md | 4 +- docs/examples/health/get.md | 4 +- docs/examples/locale/get.md | 4 +- docs/examples/locale/list-codes.md | 4 +- docs/examples/locale/list-continents.md | 4 +- docs/examples/locale/list-countries-eu.md | 4 +- docs/examples/locale/list-countries-phones.md | 4 +- docs/examples/locale/list-countries.md | 4 +- docs/examples/locale/list-currencies.md | 4 +- docs/examples/locale/list-languages.md | 4 +- .../messaging/create-apns-provider.md | 4 +- docs/examples/messaging/create-email.md | 4 +- .../examples/messaging/create-fcm-provider.md | 4 +- .../messaging/create-mailgun-provider.md | 4 +- .../messaging/create-msg-91-provider.md | 4 +- docs/examples/messaging/create-push.md | 4 +- .../messaging/create-resend-provider.md | 4 +- .../messaging/create-sendgrid-provider.md | 4 +- docs/examples/messaging/create-sms.md | 4 +- .../messaging/create-smtp-provider.md | 4 +- docs/examples/messaging/create-subscriber.md | 4 +- .../messaging/create-telesign-provider.md | 4 +- .../messaging/create-textmagic-provider.md | 4 +- docs/examples/messaging/create-topic.md | 4 +- .../messaging/create-twilio-provider.md | 4 +- .../messaging/create-vonage-provider.md | 4 +- docs/examples/messaging/delete-provider.md | 4 +- docs/examples/messaging/delete-subscriber.md | 4 +- docs/examples/messaging/delete-topic.md | 4 +- docs/examples/messaging/delete.md | 4 +- docs/examples/messaging/get-message.md | 4 +- docs/examples/messaging/get-provider.md | 4 +- docs/examples/messaging/get-subscriber.md | 4 +- docs/examples/messaging/get-topic.md | 4 +- docs/examples/messaging/list-message-logs.md | 4 +- docs/examples/messaging/list-messages.md | 4 +- docs/examples/messaging/list-provider-logs.md | 4 +- docs/examples/messaging/list-providers.md | 4 +- .../messaging/list-subscriber-logs.md | 4 +- docs/examples/messaging/list-subscribers.md | 4 +- docs/examples/messaging/list-targets.md | 4 +- docs/examples/messaging/list-topic-logs.md | 4 +- docs/examples/messaging/list-topics.md | 4 +- .../messaging/update-apns-provider.md | 4 +- docs/examples/messaging/update-email.md | 4 +- .../examples/messaging/update-fcm-provider.md | 4 +- .../messaging/update-mailgun-provider.md | 4 +- .../messaging/update-msg-91-provider.md | 4 +- docs/examples/messaging/update-push.md | 4 +- .../messaging/update-resend-provider.md | 4 +- .../messaging/update-sendgrid-provider.md | 4 +- docs/examples/messaging/update-sms.md | 4 +- .../messaging/update-smtp-provider.md | 4 +- .../messaging/update-telesign-provider.md | 4 +- .../messaging/update-textmagic-provider.md | 4 +- docs/examples/messaging/update-topic.md | 4 +- .../messaging/update-twilio-provider.md | 4 +- .../messaging/update-vonage-provider.md | 4 +- docs/examples/organization/create-key.md | 24 + docs/examples/organization/create-project.md | 23 + docs/examples/organization/delete-key.md | 21 + docs/examples/organization/delete-project.md | 21 + docs/examples/organization/get-key.md | 21 + docs/examples/organization/get-project.md | 21 + docs/examples/organization/list-keys.md | 22 + docs/examples/organization/list-projects.md | 23 + docs/examples/organization/update-key.md | 24 + docs/examples/organization/update-project.md | 22 + docs/examples/presences/delete.md | 4 +- docs/examples/presences/get.md | 4 +- docs/examples/presences/list.md | 4 +- docs/examples/presences/update-presence.md | 27 - docs/examples/presences/update.md | 27 + docs/examples/presences/upsert.md | 4 +- .../project/create-android-platform.md | 4 +- .../examples/project/create-apple-platform.md | 4 +- docs/examples/project/create-ephemeral-key.md | 4 +- docs/examples/project/create-key.md | 4 +- .../examples/project/create-linux-platform.md | 4 +- docs/examples/project/create-mock-phone.md | 4 +- docs/examples/project/create-smtp-test.md | 4 +- docs/examples/project/create-variable.md | 4 +- docs/examples/project/create-web-platform.md | 4 +- .../project/create-windows-platform.md | 4 +- docs/examples/project/delete-key.md | 4 +- docs/examples/project/delete-mock-phone.md | 4 +- docs/examples/project/delete-platform.md | 4 +- docs/examples/project/delete-variable.md | 4 +- docs/examples/project/delete.md | 4 +- docs/examples/project/get-email-template.md | 4 +- docs/examples/project/get-key.md | 4 +- docs/examples/project/get-mock-phone.md | 4 +- .../examples/project/get-o-auth-2-provider.md | 4 +- docs/examples/project/get-platform.md | 4 +- docs/examples/project/get-policy.md | 4 +- docs/examples/project/get-variable.md | 4 +- docs/examples/project/get.md | 4 +- docs/examples/project/list-email-templates.md | 4 +- docs/examples/project/list-keys.md | 4 +- docs/examples/project/list-mock-phones.md | 4 +- .../project/list-o-auth-2-providers.md | 4 +- docs/examples/project/list-platforms.md | 4 +- docs/examples/project/list-policies.md | 4 +- docs/examples/project/list-variables.md | 4 +- .../project/update-android-platform.md | 4 +- .../examples/project/update-apple-platform.md | 4 +- docs/examples/project/update-auth-method.md | 4 +- .../update-deny-aliased-email-policy.md | 4 +- .../update-deny-disposable-email-policy.md | 4 +- .../project/update-deny-free-email-policy.md | 4 +- .../examples/project/update-email-template.md | 4 +- docs/examples/project/update-key.md | 4 +- docs/examples/project/update-labels.md | 4 +- .../examples/project/update-linux-platform.md | 4 +- .../update-membership-privacy-policy.md | 4 +- docs/examples/project/update-mock-phone.md | 4 +- .../project/update-o-auth-2-amazon.md | 4 +- .../examples/project/update-o-auth-2-apple.md | 4 +- .../project/update-o-auth-2-auth-0.md | 4 +- .../project/update-o-auth-2-authentik.md | 4 +- .../project/update-o-auth-2-autodesk.md | 4 +- .../project/update-o-auth-2-bitbucket.md | 4 +- .../examples/project/update-o-auth-2-bitly.md | 4 +- docs/examples/project/update-o-auth-2-box.md | 4 +- .../project/update-o-auth-2-dailymotion.md | 4 +- .../project/update-o-auth-2-discord.md | 4 +- .../project/update-o-auth-2-disqus.md | 4 +- .../project/update-o-auth-2-dropbox.md | 4 +- docs/examples/project/update-o-auth-2-etsy.md | 4 +- .../project/update-o-auth-2-facebook.md | 4 +- .../examples/project/update-o-auth-2-figma.md | 4 +- .../project/update-o-auth-2-fusion-auth.md | 4 +- .../project/update-o-auth-2-git-hub.md | 4 +- .../project/update-o-auth-2-gitlab.md | 4 +- .../project/update-o-auth-2-google.md | 4 +- .../project/update-o-auth-2-keycloak.md | 4 +- docs/examples/project/update-o-auth-2-kick.md | 4 +- .../project/update-o-auth-2-linkedin.md | 4 +- .../project/update-o-auth-2-microsoft.md | 4 +- .../project/update-o-auth-2-notion.md | 4 +- docs/examples/project/update-o-auth-2-oidc.md | 4 +- docs/examples/project/update-o-auth-2-okta.md | 4 +- .../project/update-o-auth-2-paypal-sandbox.md | 4 +- .../project/update-o-auth-2-paypal.md | 4 +- .../examples/project/update-o-auth-2-podio.md | 4 +- .../project/update-o-auth-2-salesforce.md | 4 +- .../examples/project/update-o-auth-2-slack.md | 4 +- .../project/update-o-auth-2-spotify.md | 4 +- .../project/update-o-auth-2-stripe.md | 4 +- .../update-o-auth-2-tradeshift-sandbox.md | 4 +- .../project/update-o-auth-2-tradeshift.md | 4 +- .../project/update-o-auth-2-twitch.md | 4 +- .../project/update-o-auth-2-word-press.md | 4 +- .../examples/project/update-o-auth-2-yahoo.md | 4 +- .../project/update-o-auth-2-yandex.md | 4 +- docs/examples/project/update-o-auth-2-zoho.md | 4 +- docs/examples/project/update-o-auth-2-zoom.md | 4 +- docs/examples/project/update-o-auth-2x.md | 4 +- .../update-password-dictionary-policy.md | 4 +- .../project/update-password-history-policy.md | 4 +- .../update-password-personal-data-policy.md | 4 +- docs/examples/project/update-protocol.md | 4 +- docs/examples/project/update-service.md | 4 +- .../project/update-session-alert-policy.md | 4 +- .../project/update-session-duration-policy.md | 4 +- .../update-session-invalidation-policy.md | 4 +- .../project/update-session-limit-policy.md | 4 +- docs/examples/project/update-smtp.md | 4 +- .../project/update-user-limit-policy.md | 4 +- docs/examples/project/update-variable.md | 4 +- docs/examples/project/update-web-platform.md | 4 +- .../project/update-windows-platform.md | 4 +- docs/examples/proxy/create-api-rule.md | 4 +- docs/examples/proxy/create-function-rule.md | 4 +- docs/examples/proxy/create-redirect-rule.md | 4 +- docs/examples/proxy/create-site-rule.md | 4 +- docs/examples/proxy/delete-rule.md | 4 +- docs/examples/proxy/get-rule.md | 4 +- docs/examples/proxy/list-rules.md | 4 +- docs/examples/proxy/update-rule-status.md | 4 +- docs/examples/sites/create-deployment.md | 4 +- .../sites/create-duplicate-deployment.md | 4 +- .../sites/create-template-deployment.md | 4 +- docs/examples/sites/create-variable.md | 4 +- docs/examples/sites/create-vcs-deployment.md | 4 +- docs/examples/sites/create.md | 6 +- docs/examples/sites/delete-deployment.md | 4 +- docs/examples/sites/delete-log.md | 4 +- docs/examples/sites/delete-variable.md | 4 +- docs/examples/sites/delete.md | 4 +- .../examples/sites/get-deployment-download.md | 4 +- docs/examples/sites/get-deployment.md | 4 +- docs/examples/sites/get-log.md | 4 +- docs/examples/sites/get-variable.md | 4 +- docs/examples/sites/get.md | 4 +- docs/examples/sites/list-deployments.md | 4 +- docs/examples/sites/list-frameworks.md | 4 +- docs/examples/sites/list-logs.md | 4 +- docs/examples/sites/list-specifications.md | 4 +- docs/examples/sites/list-variables.md | 4 +- docs/examples/sites/list.md | 4 +- .../sites/update-deployment-status.md | 4 +- docs/examples/sites/update-site-deployment.md | 4 +- docs/examples/sites/update-variable.md | 4 +- docs/examples/sites/update.md | 6 +- docs/examples/storage/create-bucket.md | 4 +- docs/examples/storage/create-file.md | 4 +- docs/examples/storage/delete-bucket.md | 4 +- docs/examples/storage/delete-file.md | 4 +- docs/examples/storage/get-bucket.md | 4 +- docs/examples/storage/get-file-download.md | 4 +- docs/examples/storage/get-file-preview.md | 4 +- docs/examples/storage/get-file-view.md | 4 +- docs/examples/storage/get-file.md | 4 +- docs/examples/storage/list-buckets.md | 4 +- docs/examples/storage/list-files.md | 4 +- docs/examples/storage/update-bucket.md | 4 +- docs/examples/storage/update-file.md | 4 +- .../tablesdb/create-big-int-column.md | 4 +- .../tablesdb/create-boolean-column.md | 4 +- .../tablesdb/create-datetime-column.md | 4 +- docs/examples/tablesdb/create-email-column.md | 4 +- docs/examples/tablesdb/create-enum-column.md | 4 +- docs/examples/tablesdb/create-float-column.md | 4 +- docs/examples/tablesdb/create-index.md | 4 +- .../tablesdb/create-integer-column.md | 4 +- docs/examples/tablesdb/create-ip-column.md | 4 +- docs/examples/tablesdb/create-line-column.md | 4 +- .../tablesdb/create-longtext-column.md | 4 +- .../tablesdb/create-mediumtext-column.md | 4 +- docs/examples/tablesdb/create-operations.md | 4 +- docs/examples/tablesdb/create-point-column.md | 4 +- .../tablesdb/create-polygon-column.md | 4 +- .../tablesdb/create-relationship-column.md | 4 +- docs/examples/tablesdb/create-row.md | 4 +- docs/examples/tablesdb/create-rows.md | 4 +- .../examples/tablesdb/create-string-column.md | 4 +- docs/examples/tablesdb/create-table.md | 4 +- docs/examples/tablesdb/create-text-column.md | 4 +- docs/examples/tablesdb/create-transaction.md | 4 +- docs/examples/tablesdb/create-url-column.md | 4 +- .../tablesdb/create-varchar-column.md | 4 +- docs/examples/tablesdb/create.md | 4 +- .../examples/tablesdb/decrement-row-column.md | 4 +- docs/examples/tablesdb/delete-column.md | 4 +- docs/examples/tablesdb/delete-index.md | 4 +- docs/examples/tablesdb/delete-row.md | 4 +- docs/examples/tablesdb/delete-rows.md | 4 +- docs/examples/tablesdb/delete-table.md | 4 +- docs/examples/tablesdb/delete-transaction.md | 4 +- docs/examples/tablesdb/delete.md | 4 +- docs/examples/tablesdb/get-column.md | 4 +- docs/examples/tablesdb/get-index.md | 4 +- docs/examples/tablesdb/get-row.md | 4 +- docs/examples/tablesdb/get-table.md | 4 +- docs/examples/tablesdb/get-transaction.md | 4 +- docs/examples/tablesdb/get.md | 4 +- .../examples/tablesdb/increment-row-column.md | 4 +- docs/examples/tablesdb/list-columns.md | 4 +- docs/examples/tablesdb/list-indexes.md | 4 +- docs/examples/tablesdb/list-rows.md | 4 +- docs/examples/tablesdb/list-tables.md | 4 +- docs/examples/tablesdb/list-transactions.md | 4 +- docs/examples/tablesdb/list.md | 4 +- .../tablesdb/update-big-int-column.md | 4 +- .../tablesdb/update-boolean-column.md | 4 +- .../tablesdb/update-datetime-column.md | 4 +- docs/examples/tablesdb/update-email-column.md | 4 +- docs/examples/tablesdb/update-enum-column.md | 4 +- docs/examples/tablesdb/update-float-column.md | 4 +- .../tablesdb/update-integer-column.md | 4 +- docs/examples/tablesdb/update-ip-column.md | 4 +- docs/examples/tablesdb/update-line-column.md | 4 +- .../tablesdb/update-longtext-column.md | 4 +- .../tablesdb/update-mediumtext-column.md | 4 +- docs/examples/tablesdb/update-point-column.md | 4 +- .../tablesdb/update-polygon-column.md | 4 +- .../tablesdb/update-relationship-column.md | 4 +- docs/examples/tablesdb/update-row.md | 4 +- docs/examples/tablesdb/update-rows.md | 4 +- .../examples/tablesdb/update-string-column.md | 4 +- docs/examples/tablesdb/update-table.md | 4 +- docs/examples/tablesdb/update-text-column.md | 4 +- docs/examples/tablesdb/update-transaction.md | 4 +- docs/examples/tablesdb/update-url-column.md | 4 +- .../tablesdb/update-varchar-column.md | 4 +- docs/examples/tablesdb/update.md | 4 +- docs/examples/tablesdb/upsert-row.md | 4 +- docs/examples/tablesdb/upsert-rows.md | 4 +- docs/examples/teams/create-membership.md | 4 +- docs/examples/teams/create.md | 4 +- docs/examples/teams/delete-membership.md | 4 +- docs/examples/teams/delete.md | 4 +- docs/examples/teams/get-membership.md | 4 +- docs/examples/teams/get-prefs.md | 4 +- docs/examples/teams/get.md | 4 +- docs/examples/teams/list-memberships.md | 4 +- docs/examples/teams/list.md | 4 +- .../teams/update-membership-status.md | 4 +- docs/examples/teams/update-membership.md | 4 +- docs/examples/teams/update-name.md | 4 +- docs/examples/teams/update-prefs.md | 4 +- docs/examples/tokens/create-file-token.md | 4 +- docs/examples/tokens/delete.md | 4 +- docs/examples/tokens/get.md | 4 +- docs/examples/tokens/list.md | 4 +- docs/examples/tokens/update.md | 4 +- docs/examples/usage/list-events.md | 4 +- docs/examples/usage/list-gauges.md | 4 +- docs/examples/users/create-argon-2-user.md | 4 +- docs/examples/users/create-bcrypt-user.md | 4 +- docs/examples/users/create-jwt.md | 4 +- docs/examples/users/create-md-5-user.md | 4 +- .../users/create-mfa-recovery-codes.md | 4 +- docs/examples/users/create-ph-pass-user.md | 4 +- .../users/create-scrypt-modified-user.md | 4 +- docs/examples/users/create-scrypt-user.md | 4 +- docs/examples/users/create-session.md | 4 +- docs/examples/users/create-sha-user.md | 4 +- docs/examples/users/create-target.md | 4 +- docs/examples/users/create-token.md | 4 +- docs/examples/users/create.md | 4 +- docs/examples/users/delete-identity.md | 4 +- .../users/delete-mfa-authenticator.md | 4 +- docs/examples/users/delete-session.md | 4 +- docs/examples/users/delete-sessions.md | 4 +- docs/examples/users/delete-target.md | 4 +- docs/examples/users/delete.md | 4 +- docs/examples/users/get-mfa-recovery-codes.md | 4 +- docs/examples/users/get-prefs.md | 4 +- docs/examples/users/get-target.md | 4 +- docs/examples/users/get.md | 4 +- docs/examples/users/list-identities.md | 4 +- docs/examples/users/list-logs.md | 4 +- docs/examples/users/list-memberships.md | 4 +- docs/examples/users/list-mfa-factors.md | 4 +- docs/examples/users/list-sessions.md | 4 +- docs/examples/users/list-targets.md | 4 +- docs/examples/users/list.md | 4 +- .../users/update-email-verification.md | 4 +- docs/examples/users/update-email.md | 4 +- docs/examples/users/update-impersonator.md | 4 +- docs/examples/users/update-labels.md | 4 +- .../users/update-mfa-recovery-codes.md | 4 +- docs/examples/users/update-mfa.md | 4 +- docs/examples/users/update-name.md | 4 +- docs/examples/users/update-password.md | 4 +- .../users/update-phone-verification.md | 4 +- docs/examples/users/update-phone.md | 4 +- docs/examples/users/update-prefs.md | 4 +- docs/examples/users/update-status.md | 4 +- docs/examples/users/update-target.md | 4 +- docs/examples/webhooks/create.md | 4 +- docs/examples/webhooks/delete.md | 4 +- docs/examples/webhooks/get.md | 4 +- docs/examples/webhooks/list.md | 4 +- docs/examples/webhooks/update-secret.md | 4 +- docs/examples/webhooks/update.md | 4 +- functions/functions.go | 50 +- functions/functions_test.go | 14 +- go.mod | 2 +- graphql/graphql.go | 2 +- graphql/graphql_test.go | 2 +- health/health.go | 4 +- health/health_test.go | 2 +- locale/locale.go | 4 +- locale/locale_test.go | 2 +- messaging/messaging.go | 4 +- messaging/messaging_test.go | 2 +- models/activityEvent.go | 16 +- models/activityEventList_test.go | 2 +- models/activityEvent_test.go | 18 +- models/billingLimits.go | 2 +- models/billingLimits_test.go | 26 +- models/file.go | 2 + models/fileList_test.go | 2 +- models/file_test.go | 5 +- models/function.go | 6 + models/functionList_test.go | 2 +- models/function_test.go | 2 +- models/oAuth2Amazon_test.go | 2 +- models/oAuth2Auth0_test.go | 2 +- models/oAuth2Authentik_test.go | 2 +- models/oAuth2Autodesk_test.go | 2 +- models/oAuth2Bitbucket_test.go | 2 +- models/oAuth2Bitly_test.go | 2 +- models/oAuth2Box_test.go | 2 +- models/oAuth2Dailymotion_test.go | 2 +- models/oAuth2Discord_test.go | 2 +- models/oAuth2Disqus_test.go | 2 +- models/oAuth2Dropbox_test.go | 2 +- models/oAuth2Etsy_test.go | 2 +- models/oAuth2Facebook_test.go | 2 +- models/oAuth2Figma_test.go | 2 +- models/oAuth2FusionAuth_test.go | 2 +- models/oAuth2Github_test.go | 2 +- models/oAuth2Gitlab_test.go | 2 +- models/oAuth2Google_test.go | 2 +- models/oAuth2Keycloak_test.go | 2 +- models/oAuth2Kick_test.go | 2 +- models/oAuth2Linkedin_test.go | 2 +- models/oAuth2Microsoft_test.go | 2 +- models/oAuth2Notion_test.go | 2 +- models/oAuth2Oidc_test.go | 2 +- models/oAuth2Okta_test.go | 2 +- models/oAuth2Paypal_test.go | 2 +- models/oAuth2Podio_test.go | 2 +- models/oAuth2Salesforce_test.go | 2 +- models/oAuth2Slack_test.go | 2 +- models/oAuth2Spotify_test.go | 2 +- models/oAuth2Stripe_test.go | 2 +- models/oAuth2Tradeshift_test.go | 2 +- models/oAuth2Twitch_test.go | 2 +- models/oAuth2WordPress_test.go | 2 +- models/oAuth2X_test.go | 2 +- models/oAuth2Yahoo_test.go | 2 +- models/oAuth2Yandex_test.go | 2 +- models/oAuth2Zoho_test.go | 2 +- models/oAuth2Zoom_test.go | 2 +- models/policyDenyAliasedEmail.go | 35 ++ models/policyDenyAliasedEmail_test.go | 26 + models/policyDenyDisposableEmail.go | 35 ++ models/policyDenyDisposableEmail_test.go | 26 + models/policyDenyFreeEmail.go | 35 ++ models/policyDenyFreeEmail_test.go | 26 + models/presence.go | 3 +- models/projectList.go | 35 ++ models/projectList_test.go | 29 + models/project_test.go | 2 +- models/site.go | 6 + models/siteList_test.go | 2 +- models/site_test.go | 2 +- models/usageGauge.go | 4 + models/usageGaugeList_test.go | 2 +- models/usageGauge_test.go | 8 +- organization/organization.go | 522 ++++++++++++++++ organization/organization_test.go | 568 ++++++++++++++++++ presences/presences.go | 38 +- presences/presences_test.go | 8 +- project/project.go | 28 +- project/project_test.go | 280 ++------- proxy/proxy.go | 4 +- proxy/proxy_test.go | 2 +- sites/sites.go | 50 +- sites/sites_test.go | 14 +- storage/storage.go | 6 +- storage/storage_test.go | 8 +- tablesdb/tables_db.go | 4 +- tablesdb/tables_db_test.go | 4 +- teams/teams.go | 4 +- teams/teams_test.go | 2 +- tokens/tokens.go | 4 +- tokens/tokens_test.go | 2 +- usage/usage.go | 10 +- usage/usage_test.go | 6 +- users/users.go | 4 +- users/users_test.go | 2 +- webhooks/webhooks.go | 4 +- webhooks/webhooks_test.go | 2 +- 668 files changed, 3258 insertions(+), 1590 deletions(-) create mode 100644 docs/examples/organization/create-key.md create mode 100644 docs/examples/organization/create-project.md create mode 100644 docs/examples/organization/delete-key.md create mode 100644 docs/examples/organization/delete-project.md create mode 100644 docs/examples/organization/get-key.md create mode 100644 docs/examples/organization/get-project.md create mode 100644 docs/examples/organization/list-keys.md create mode 100644 docs/examples/organization/list-projects.md create mode 100644 docs/examples/organization/update-key.md create mode 100644 docs/examples/organization/update-project.md delete mode 100644 docs/examples/presences/update-presence.md create mode 100644 docs/examples/presences/update.md create mode 100644 models/policyDenyAliasedEmail.go create mode 100644 models/policyDenyAliasedEmail_test.go create mode 100644 models/policyDenyDisposableEmail.go create mode 100644 models/policyDenyDisposableEmail_test.go create mode 100644 models/policyDenyFreeEmail.go create mode 100644 models/policyDenyFreeEmail_test.go create mode 100644 models/projectList.go create mode 100644 models/projectList_test.go create mode 100644 organization/organization.go create mode 100644 organization/organization_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 01c20a51..935a351d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## v5.0.0 + +* Breaking: Removed `githubImagine` and `googleImagine` from `ProjectOAuthProviderId` +* Breaking: Removed `deno-1.21`, `deno-1.24`, and `deno-1.35` from `Runtime` and `BuildRuntime` +* Breaking: Dropped numeric suffixes from `StatusCode` redirect members +* Added: `Organization` service for managing projects and API keys +* Added: `PolicyDenyAliasedEmail`, `PolicyDenyDisposableEmail`, and `PolicyDenyFreeEmail` policy models +* Added: `deny-aliased-email`, `deny-disposable-email`, and `deny-free-email` to `ProjectPolicyId` +* Added: `BrowserTheme`, `HealthQueueName`, `OrganizationKeyScopes`, and `Region` enums +* Added: `dart-3.12` and `flutter-3.44` runtimes +* Added: `ProjectList` model and new attributes on `Function`, `Site`, and `UsageGauge` +* Updated: `functions`, `sites`, `usage`, `health`, and `avatars` services +* Updated: Renamed `updatePresence` to `update` in the `presences` service + ## v4.0.0 * Breaking: Renamed `AuthMethod` enum to `ProjectAuthMethodId` diff --git a/README.md b/README.md index 3a0d12dd..6abe227d 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ go mod init To install using `go get`: ```bash -go get github.com/appwrite/sdk-for-go/v4 +go get github.com/appwrite/sdk-for-go/v5 ``` ## Testing the SDK @@ -51,8 +51,8 @@ go get github.com/appwrite/sdk-for-go/v4 "os" "time" - "github.com/appwrite/sdk-for-go/v4/appwrite" - "github.com/appwrite/sdk-for-go/v4/id" + "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v5/id" ) func main() { diff --git a/account/account.go b/account/account.go index 9b8171e3..145a7d13 100644 --- a/account/account.go +++ b/account/account.go @@ -3,8 +3,8 @@ package account import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/account/account_test.go b/account/account_test.go index 60c81f44..80f45e56 100644 --- a/account/account_test.go +++ b/account/account_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestAccount(t *testing.T) { diff --git a/activities/activities.go b/activities/activities.go index e70b35ef..dc050db5 100644 --- a/activities/activities.go +++ b/activities/activities.go @@ -3,8 +3,8 @@ package activities import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/activities/activities_test.go b/activities/activities_test.go index 263e8c45..c61b6885 100644 --- a/activities/activities_test.go +++ b/activities/activities_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestActivities(t *testing.T) { @@ -23,10 +23,10 @@ func TestActivities(t *testing.T) { "events": [ { "$id": "5e5ea5c16897e", - "userType": "user", - "userId": "610fc2f985ee0", - "userEmail": "john@appwrite.io", - "userName": "John Doe", + "actorType": "user", + "actorId": "610fc2f985ee0", + "actorEmail": "john@appwrite.io", + "actorName": "John Doe", "resourceParent": "database/ID", "resourceType": "collection", "resourceId": "610fc2f985ee0", @@ -82,10 +82,10 @@ func TestActivities(t *testing.T) { mockResponse := ` { "$id": "5e5ea5c16897e", - "userType": "user", - "userId": "610fc2f985ee0", - "userEmail": "john@appwrite.io", - "userName": "John Doe", + "actorType": "user", + "actorId": "610fc2f985ee0", + "actorEmail": "john@appwrite.io", + "actorName": "John Doe", "resourceParent": "database/ID", "resourceType": "collection", "resourceId": "610fc2f985ee0", diff --git a/advisor/advisor.go b/advisor/advisor.go index ea229ff4..9a927fdd 100644 --- a/advisor/advisor.go +++ b/advisor/advisor.go @@ -3,8 +3,8 @@ package advisor import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/advisor/advisor_test.go b/advisor/advisor_test.go index 6f3272fb..0f14d9c8 100644 --- a/advisor/advisor_test.go +++ b/advisor/advisor_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestAdvisor(t *testing.T) { @@ -46,7 +46,7 @@ func TestAdvisor(t *testing.T) { "parentResourceType": "tables", "parentResourceId": "orders", "title": "Missing index on collection orders", - "summary": "Queries against `orders.status` are scanning the full collection.", + "summary": "Queries against \u0060orders.status\u0060 are scanning the full collection.", "ctas": [ { "label": "Create missing index", @@ -108,7 +108,7 @@ func TestAdvisor(t *testing.T) { "parentResourceType": "tables", "parentResourceId": "orders", "title": "Missing index on collection orders", - "summary": "Queries against `orders.status` are scanning the full collection.", + "summary": "Queries against \u0060orders.status\u0060 are scanning the full collection.", "ctas": [ { "label": "Create missing index", @@ -185,7 +185,7 @@ func TestAdvisor(t *testing.T) { "parentResourceType": "tables", "parentResourceId": "orders", "title": "Missing index on collection orders", - "summary": "Queries against `orders.status` are scanning the full collection.", + "summary": "Queries against \u0060orders.status\u0060 are scanning the full collection.", "ctas": [ { "label": "Create missing index", @@ -233,7 +233,7 @@ func TestAdvisor(t *testing.T) { "parentResourceType": "tables", "parentResourceId": "orders", "title": "Missing index on collection orders", - "summary": "Queries against `orders.status` are scanning the full collection.", + "summary": "Queries against \u0060orders.status\u0060 are scanning the full collection.", "ctas": [ { "label": "Create missing index", diff --git a/appwrite/appwrite.go b/appwrite/appwrite.go index 242d39bc..cf89a727 100644 --- a/appwrite/appwrite.go +++ b/appwrite/appwrite.go @@ -3,29 +3,30 @@ package appwrite import ( "time" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" - "github.com/appwrite/sdk-for-go/v4/activities" - "github.com/appwrite/sdk-for-go/v4/avatars" - "github.com/appwrite/sdk-for-go/v4/backups" - "github.com/appwrite/sdk-for-go/v4/databases" - "github.com/appwrite/sdk-for-go/v4/functions" - "github.com/appwrite/sdk-for-go/v4/graphql" - "github.com/appwrite/sdk-for-go/v4/health" - "github.com/appwrite/sdk-for-go/v4/locale" - "github.com/appwrite/sdk-for-go/v4/messaging" - "github.com/appwrite/sdk-for-go/v4/presences" - "github.com/appwrite/sdk-for-go/v4/project" - "github.com/appwrite/sdk-for-go/v4/proxy" - "github.com/appwrite/sdk-for-go/v4/advisor" - "github.com/appwrite/sdk-for-go/v4/sites" - "github.com/appwrite/sdk-for-go/v4/storage" - "github.com/appwrite/sdk-for-go/v4/tablesdb" - "github.com/appwrite/sdk-for-go/v4/teams" - "github.com/appwrite/sdk-for-go/v4/tokens" - "github.com/appwrite/sdk-for-go/v4/usage" - "github.com/appwrite/sdk-for-go/v4/users" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" + "github.com/appwrite/sdk-for-go/v5/activities" + "github.com/appwrite/sdk-for-go/v5/avatars" + "github.com/appwrite/sdk-for-go/v5/backups" + "github.com/appwrite/sdk-for-go/v5/databases" + "github.com/appwrite/sdk-for-go/v5/functions" + "github.com/appwrite/sdk-for-go/v5/graphql" + "github.com/appwrite/sdk-for-go/v5/health" + "github.com/appwrite/sdk-for-go/v5/locale" + "github.com/appwrite/sdk-for-go/v5/messaging" + "github.com/appwrite/sdk-for-go/v5/organization" + "github.com/appwrite/sdk-for-go/v5/presences" + "github.com/appwrite/sdk-for-go/v5/project" + "github.com/appwrite/sdk-for-go/v5/proxy" + "github.com/appwrite/sdk-for-go/v5/advisor" + "github.com/appwrite/sdk-for-go/v5/sites" + "github.com/appwrite/sdk-for-go/v5/storage" + "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v5/teams" + "github.com/appwrite/sdk-for-go/v5/tokens" + "github.com/appwrite/sdk-for-go/v5/usage" + "github.com/appwrite/sdk-for-go/v5/users" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) func NewAccount(clt client.Client) *account.Account { @@ -58,6 +59,9 @@ func NewLocale(clt client.Client) *locale.Locale { func NewMessaging(clt client.Client) *messaging.Messaging { return messaging.New(clt) } +func NewOrganization(clt client.Client) *organization.Organization { + return organization.New(clt) +} func NewPresences(clt client.Client) *presences.Presences { return presences.New(clt) } diff --git a/avatars/avatars.go b/avatars/avatars.go index 55da191c..65511920 100644 --- a/avatars/avatars.go +++ b/avatars/avatars.go @@ -3,7 +3,7 @@ package avatars import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" "net/url" "fmt" "strings" diff --git a/avatars/avatars_test.go b/avatars/avatars_test.go index 91182457..5fb8fa5e 100644 --- a/avatars/avatars_test.go +++ b/avatars/avatars_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestAvatars(t *testing.T) { diff --git a/backups/backups.go b/backups/backups.go index 7edb967f..b0b5e3f0 100644 --- a/backups/backups.go +++ b/backups/backups.go @@ -3,8 +3,8 @@ package backups import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/backups/backups_test.go b/backups/backups_test.go index e50def10..d5530fee 100644 --- a/backups/backups_test.go +++ b/backups/backups_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestBackups(t *testing.T) { diff --git a/client/client.go b/client/client.go index 74798bef..8239a621 100644 --- a/client/client.go +++ b/client/client.go @@ -19,7 +19,7 @@ import ( "time" "runtime" - "github.com/appwrite/sdk-for-go/v4/file" + "github.com/appwrite/sdk-for-go/v5/file" ) const ( @@ -74,11 +74,11 @@ type Client struct { func New(optionalSetters ...ClientOption) Client { headers := map[string]string{ "X-Appwrite-Response-Format" : "1.9.5", - "user-agent" : fmt.Sprintf("AppwriteGoSDK/v4.0.0 (%s; %s)", runtime.GOOS, runtime.GOARCH), + "user-agent" : fmt.Sprintf("AppwriteGoSDK/v5.0.0 (%s; %s)", runtime.GOOS, runtime.GOARCH), "x-sdk-name": "Go", "x-sdk-platform": "server", "x-sdk-language": "go", - "x-sdk-version": "v4.0.0", + "x-sdk-version": "v5.0.0", } httpClient, err := GetDefaultClient(defaultTimeout) if err != nil { @@ -148,6 +148,22 @@ func isFileUpload(headers map[string]interface{}) bool { return false } +func copyHeaders(headers map[string]interface{}) map[string]interface{} { + clone := make(map[string]interface{}, len(headers)) + for key, value := range headers { + clone[key] = value + } + return clone +} + +func copyParams(params map[string]interface{}) map[string]interface{} { + clone := make(map[string]interface{}, len(params)) + for key, value := range params { + clone[key] = value + } + return clone +} + func (client *Client) FileUpload(url string, headers map[string]interface{}, params map[string]interface{}, paramName string, uploadId string) (*ClientResponse, error) { inputFile, ok := params[paramName].(file.InputFile) if !ok { @@ -178,6 +194,7 @@ func (client *Client) FileUpload(url string, headers map[string]interface{}, par if uploadId != "" { resp, err := client.Call("GET", url+"/"+uploadId, nil, nil) if err == nil { + result = resp var result map[string]interface{} if resStr, ok := resp.Result.(string); ok { _ = json.Unmarshal([]byte(resStr), &result) @@ -217,40 +234,148 @@ func (client *Client) FileUpload(url string, headers map[string]interface{}, par return result, nil } - for i := currentChunk; i < numChunks; i++ { + parseUploadId := func(resp *ClientResponse) string { + var parsed map[string]interface{} + if resp != nil && strings.HasPrefix(resp.Type, "application/json") { + if unmarshalErr := json.Unmarshal([]byte(resp.Result.(string)), &parsed); unmarshalErr == nil { + id, _ := parsed["$id"].(string) + return id + } + } + return "" + } + + isUploadComplete := func(resp *ClientResponse) bool { + if resp == nil || !strings.HasPrefix(resp.Type, "application/json") { + return false + } + + var parsed map[string]interface{} + if resStr, ok := resp.Result.(string); ok { + _ = json.Unmarshal([]byte(resStr), &parsed) + } else { + parsed, _ = resp.Result.(map[string]interface{}) + } + if parsed == nil || parsed["chunksUploaded"] == nil { + return false + } + + chunksUploaded, ok := parsed["chunksUploaded"].(float64) + if !ok { + return false + } + chunksTotal := float64(numChunks) + if value, ok := parsed["chunksTotal"].(float64); ok { + chunksTotal = value + } + + return chunksUploaded >= chunksTotal + } + + uploadChunk := func(i int64, id string) (*ClientResponse, error) { chunkSize := client.ChunkSize - offset := int64(i) * chunkSize + offset := i * client.ChunkSize if i == numChunks-1 { chunkSize = fileInfo.Size() - offset - inputFile.Data = make([]byte, chunkSize) } - _, err := file.ReadAt(inputFile.Data, offset) + + chunkFile := inputFile + chunkFile.Data = make([]byte, chunkSize) + _, err := file.ReadAt(chunkFile.Data, offset) if err != nil && err != io.EOF { return nil, err } - params[paramName] = inputFile - if uploadId != "" { - headers["x-appwrite-id"] = uploadId + + chunkParams := copyParams(params) + chunkParams[paramName] = chunkFile + chunkHeaders := copyHeaders(headers) + if id != "" { + chunkHeaders["x-appwrite-id"] = id } + totalSize := fileInfo.Size() start := offset - end := offset + client.ChunkSize - 1 - if end >= totalSize { - end = totalSize - 1 - } - headers["content-range"] = fmt.Sprintf("bytes %d-%d/%d", start, end, totalSize) - result, err = client.Call("POST", url, headers, params) + end := offset + chunkSize - 1 + chunkHeaders["content-range"] = fmt.Sprintf("bytes %d-%d/%d", start, end, totalSize) + + return client.Call("POST", url, chunkHeaders, chunkParams) + } + + if currentChunk == 0 { + result, err = uploadChunk(0, uploadId) if err != nil { return nil, err } + if id := parseUploadId(result); id != "" { + uploadId = id + } + currentChunk = 1 + } - var parsed map[string]interface{} - if strings.HasPrefix(result.Type, "application/json") { - err = json.Unmarshal([]byte(result.Result.(string)), &parsed) - if err == nil { - uploadId, _ = parsed["$id"].(string) + type chunkResult struct { + index int64 + resp *ClientResponse + err error + } + + remainingChunks := numChunks - currentChunk + if remainingChunks <= 0 { + return result, nil + } + + concurrency := int64(8) + if remainingChunks < concurrency { + concurrency = remainingChunks + } + + jobs := make(chan int64) + results := make(chan chunkResult, int(remainingChunks)) + done := make(chan struct{}) + + for worker := int64(0); worker < concurrency; worker++ { + go func() { + for { + select { + case <-done: + return + case i, ok := <-jobs: + if !ok { + return + } + resp, err := uploadChunk(i, uploadId) + results <- chunkResult{index: i, resp: resp, err: err} + } + } + }() + } + + go func() { + defer close(jobs) + for i := currentChunk; i < numChunks; i++ { + select { + case <-done: + return + case jobs <- i: } } + }() + + var lastResult *ClientResponse + completeFound := false + for i := int64(0); i < remainingChunks; i++ { + chunk := <-results + if chunk.err != nil { + close(done) + return nil, chunk.err + } + lastResult = chunk.resp + if isUploadComplete(chunk.resp) { + result = chunk.resp + completeFound = true + } + } + if !completeFound && lastResult != nil { + result = lastResult } return result, nil } diff --git a/databases/databases.go b/databases/databases.go index c9e1241c..c8517792 100644 --- a/databases/databases.go +++ b/databases/databases.go @@ -3,8 +3,8 @@ package databases import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "fmt" "strings" ) diff --git a/databases/databases_test.go b/databases/databases_test.go index 870742dc..8a8f0063 100644 --- a/databases/databases_test.go +++ b/databases/databases_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" ) func TestDatabases(t *testing.T) { diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 7a8cb087..1b609e10 100644 --- a/docs/examples/account/create-anonymous-session.md +++ b/docs/examples/account/create-anonymous-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-email-password-session.md b/docs/examples/account/create-email-password-session.md index 7410ddd7..7ed0f12a 100644 --- a/docs/examples/account/create-email-password-session.md +++ b/docs/examples/account/create-email-password-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-email-token.md b/docs/examples/account/create-email-token.md index e90ba45e..cc386bb0 100644 --- a/docs/examples/account/create-email-token.md +++ b/docs/examples/account/create-email-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-email-verification.md b/docs/examples/account/create-email-verification.md index 46c6782c..bb8be819 100644 --- a/docs/examples/account/create-email-verification.md +++ b/docs/examples/account/create-email-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-jwt.md b/docs/examples/account/create-jwt.md index a5520834..84243c36 100644 --- a/docs/examples/account/create-jwt.md +++ b/docs/examples/account/create-jwt.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-magic-url-token.md b/docs/examples/account/create-magic-url-token.md index aa6792af..adedee46 100644 --- a/docs/examples/account/create-magic-url-token.md +++ b/docs/examples/account/create-magic-url-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-mfa-authenticator.md b/docs/examples/account/create-mfa-authenticator.md index 8df4fd18..6aacada8 100644 --- a/docs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/account/create-mfa-authenticator.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-mfa-challenge.md b/docs/examples/account/create-mfa-challenge.md index ccb5898b..7803cf1f 100644 --- a/docs/examples/account/create-mfa-challenge.md +++ b/docs/examples/account/create-mfa-challenge.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-mfa-recovery-codes.md b/docs/examples/account/create-mfa-recovery-codes.md index 33f824ff..9fca3a63 100644 --- a/docs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/account/create-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-o-auth-2-token.md b/docs/examples/account/create-o-auth-2-token.md index c8da31bb..713c5528 100644 --- a/docs/examples/account/create-o-auth-2-token.md +++ b/docs/examples/account/create-o-auth-2-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-phone-token.md b/docs/examples/account/create-phone-token.md index c91d7192..27a2df7b 100644 --- a/docs/examples/account/create-phone-token.md +++ b/docs/examples/account/create-phone-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md index 8ecf3f5c..940aa2d7 100644 --- a/docs/examples/account/create-phone-verification.md +++ b/docs/examples/account/create-phone-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index 242ddedc..a325cd32 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-session.md b/docs/examples/account/create-session.md index c25f3ac7..89000d93 100644 --- a/docs/examples/account/create-session.md +++ b/docs/examples/account/create-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index ab8ca98a..56ec6895 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/create.md b/docs/examples/account/create.md index 9844f940..c7cecfa3 100644 --- a/docs/examples/account/create.md +++ b/docs/examples/account/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/delete-identity.md b/docs/examples/account/delete-identity.md index 54e5adad..0fcd8b94 100644 --- a/docs/examples/account/delete-identity.md +++ b/docs/examples/account/delete-identity.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index 0def4821..9c7d04fe 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index 3bde4358..2550c28d 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index d0351d35..c3ffe9a0 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/get-mfa-recovery-codes.md b/docs/examples/account/get-mfa-recovery-codes.md index e37c0a4a..3a51cad0 100644 --- a/docs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/account/get-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index dcd569e6..7e8a2d69 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index 5b29d675..64017fa4 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index 2aca55af..c6b773ff 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/list-identities.md b/docs/examples/account/list-identities.md index 74f6d6b4..71379c22 100644 --- a/docs/examples/account/list-identities.md +++ b/docs/examples/account/list-identities.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md index 36024a12..2e332e7b 100644 --- a/docs/examples/account/list-logs.md +++ b/docs/examples/account/list-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/list-mfa-factors.md b/docs/examples/account/list-mfa-factors.md index ea5fa699..a0da0500 100644 --- a/docs/examples/account/list-mfa-factors.md +++ b/docs/examples/account/list-mfa-factors.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md index 658f1532..931746a7 100644 --- a/docs/examples/account/list-sessions.md +++ b/docs/examples/account/list-sessions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-email-verification.md b/docs/examples/account/update-email-verification.md index f35c557b..fe6fc5ee 100644 --- a/docs/examples/account/update-email-verification.md +++ b/docs/examples/account/update-email-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index 09f8e412..290f661d 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-magic-url-session.md b/docs/examples/account/update-magic-url-session.md index b3268767..04888773 100644 --- a/docs/examples/account/update-magic-url-session.md +++ b/docs/examples/account/update-magic-url-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-mfa-authenticator.md b/docs/examples/account/update-mfa-authenticator.md index ba4bb811..2bea8698 100644 --- a/docs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/account/update-mfa-authenticator.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-mfa-challenge.md b/docs/examples/account/update-mfa-challenge.md index 2b8d9734..21ca328f 100644 --- a/docs/examples/account/update-mfa-challenge.md +++ b/docs/examples/account/update-mfa-challenge.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-mfa-recovery-codes.md b/docs/examples/account/update-mfa-recovery-codes.md index 6e20f801..f2ed0212 100644 --- a/docs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/account/update-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-mfa.md b/docs/examples/account/update-mfa.md index 2a37127a..79092250 100644 --- a/docs/examples/account/update-mfa.md +++ b/docs/examples/account/update-mfa.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index 00e1e84c..905a7b9b 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index 06c91d61..34c117a3 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-phone-session.md b/docs/examples/account/update-phone-session.md index c2cb5224..f407908f 100644 --- a/docs/examples/account/update-phone-session.md +++ b/docs/examples/account/update-phone-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md index dac49195..ce2cce21 100644 --- a/docs/examples/account/update-phone-verification.md +++ b/docs/examples/account/update-phone-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md index 9cc4730b..3b0dd1f3 100644 --- a/docs/examples/account/update-phone.md +++ b/docs/examples/account/update-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index fd9ceda2..59c0cf27 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index 429edf41..0ee702ff 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md index b66c4b6b..b5bc1727 100644 --- a/docs/examples/account/update-session.md +++ b/docs/examples/account/update-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md index 0bb0048a..c2c7a23c 100644 --- a/docs/examples/account/update-status.md +++ b/docs/examples/account/update-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index 66f09a78..568d56cd 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/account" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/account" ) client := client.New( diff --git a/docs/examples/activities/get-event.md b/docs/examples/activities/get-event.md index 63b4a859..4120d9ed 100644 --- a/docs/examples/activities/get-event.md +++ b/docs/examples/activities/get-event.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/activities" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/activities" ) client := client.New( diff --git a/docs/examples/activities/list-events.md b/docs/examples/activities/list-events.md index 0c39e727..5aa484db 100644 --- a/docs/examples/activities/list-events.md +++ b/docs/examples/activities/list-events.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/activities" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/activities" ) client := client.New( diff --git a/docs/examples/advisor/delete-report.md b/docs/examples/advisor/delete-report.md index 4d5c0e63..370a33e2 100644 --- a/docs/examples/advisor/delete-report.md +++ b/docs/examples/advisor/delete-report.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/advisor" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/advisor" ) client := client.New( diff --git a/docs/examples/advisor/get-insight.md b/docs/examples/advisor/get-insight.md index 8862bc90..4fa95148 100644 --- a/docs/examples/advisor/get-insight.md +++ b/docs/examples/advisor/get-insight.md @@ -3,14 +3,14 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/advisor" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/advisor" ) client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") - client.WithSession("") + client.WithKey("") ) service := advisor.New(client) diff --git a/docs/examples/advisor/get-report.md b/docs/examples/advisor/get-report.md index 2dc65f08..c1d9c65d 100644 --- a/docs/examples/advisor/get-report.md +++ b/docs/examples/advisor/get-report.md @@ -3,14 +3,14 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/advisor" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/advisor" ) client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") - client.WithSession("") + client.WithKey("") ) service := advisor.New(client) diff --git a/docs/examples/advisor/list-insights.md b/docs/examples/advisor/list-insights.md index 018abd34..c869971d 100644 --- a/docs/examples/advisor/list-insights.md +++ b/docs/examples/advisor/list-insights.md @@ -3,14 +3,14 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/advisor" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/advisor" ) client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") - client.WithSession("") + client.WithKey("") ) service := advisor.New(client) diff --git a/docs/examples/advisor/list-reports.md b/docs/examples/advisor/list-reports.md index d1754e37..b0802467 100644 --- a/docs/examples/advisor/list-reports.md +++ b/docs/examples/advisor/list-reports.md @@ -3,14 +3,14 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/advisor" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/advisor" ) client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") - client.WithSession("") + client.WithKey("") ) service := advisor.New(client) diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index 795527a6..378e30f7 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index f9cea7c8..f0bd6a8b 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index 09dff598..f07e7fbd 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index 5a1e68b5..eff8c369 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index ec3b1310..fdd79adc 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index d522a687..f3e29b22 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-qr.md b/docs/examples/avatars/get-qr.md index 39ea2dce..bae6f288 100644 --- a/docs/examples/avatars/get-qr.md +++ b/docs/examples/avatars/get-qr.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( diff --git a/docs/examples/avatars/get-screenshot.md b/docs/examples/avatars/get-screenshot.md index 9de51c64..143e06af 100644 --- a/docs/examples/avatars/get-screenshot.md +++ b/docs/examples/avatars/get-screenshot.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/avatars" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/avatars" ) client := client.New( @@ -28,7 +28,7 @@ response, error := service.GetScreenshot( avatars.WithGetScreenshotUserAgent("Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15"), avatars.WithGetScreenshotFullpage(true), avatars.WithGetScreenshotLocale("en-US"), - avatars.WithGetScreenshotTimezone("america/new_york"), + avatars.WithGetScreenshotTimezone("America/New_York"), avatars.WithGetScreenshotLatitude(37.7749), avatars.WithGetScreenshotLongitude(-122.4194), avatars.WithGetScreenshotAccuracy(100), diff --git a/docs/examples/backups/create-archive.md b/docs/examples/backups/create-archive.md index 9fc14e1b..7fac1556 100644 --- a/docs/examples/backups/create-archive.md +++ b/docs/examples/backups/create-archive.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/create-policy.md b/docs/examples/backups/create-policy.md index a62ce8ef..b1303a14 100644 --- a/docs/examples/backups/create-policy.md +++ b/docs/examples/backups/create-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/create-restoration.md b/docs/examples/backups/create-restoration.md index d7a00351..0df787a9 100644 --- a/docs/examples/backups/create-restoration.md +++ b/docs/examples/backups/create-restoration.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/delete-archive.md b/docs/examples/backups/delete-archive.md index 8a44767d..f44ff77c 100644 --- a/docs/examples/backups/delete-archive.md +++ b/docs/examples/backups/delete-archive.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/delete-policy.md b/docs/examples/backups/delete-policy.md index 740989d8..12d608c6 100644 --- a/docs/examples/backups/delete-policy.md +++ b/docs/examples/backups/delete-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/get-archive.md b/docs/examples/backups/get-archive.md index 927ca8a7..2d34ee1a 100644 --- a/docs/examples/backups/get-archive.md +++ b/docs/examples/backups/get-archive.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/get-policy.md b/docs/examples/backups/get-policy.md index 1ac6c8ab..86a9e8d2 100644 --- a/docs/examples/backups/get-policy.md +++ b/docs/examples/backups/get-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/get-restoration.md b/docs/examples/backups/get-restoration.md index 916be261..f42463d1 100644 --- a/docs/examples/backups/get-restoration.md +++ b/docs/examples/backups/get-restoration.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/list-archives.md b/docs/examples/backups/list-archives.md index e17c54ec..64d75706 100644 --- a/docs/examples/backups/list-archives.md +++ b/docs/examples/backups/list-archives.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/list-policies.md b/docs/examples/backups/list-policies.md index c053b75f..df757d20 100644 --- a/docs/examples/backups/list-policies.md +++ b/docs/examples/backups/list-policies.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/list-restorations.md b/docs/examples/backups/list-restorations.md index 1e127436..f9071db9 100644 --- a/docs/examples/backups/list-restorations.md +++ b/docs/examples/backups/list-restorations.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/backups/update-policy.md b/docs/examples/backups/update-policy.md index 26a6044b..e4c555ca 100644 --- a/docs/examples/backups/update-policy.md +++ b/docs/examples/backups/update-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/backups" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/backups" ) client := client.New( diff --git a/docs/examples/databases/create-big-int-attribute.md b/docs/examples/databases/create-big-int-attribute.md index db07a238..3cf1c285 100644 --- a/docs/examples/databases/create-big-int-attribute.md +++ b/docs/examples/databases/create-big-int-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md index cd81728f..732059f0 100644 --- a/docs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/databases/create-boolean-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md index e4dc478a..d25162b8 100644 --- a/docs/examples/databases/create-collection.md +++ b/docs/examples/databases/create-collection.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md index aba44fb8..89a6706e 100644 --- a/docs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/databases/create-datetime-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md index c790b2b2..1c5fb2bb 100644 --- a/docs/examples/databases/create-document.md +++ b/docs/examples/databases/create-document.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-documents.md b/docs/examples/databases/create-documents.md index 8e774744..2836230c 100644 --- a/docs/examples/databases/create-documents.md +++ b/docs/examples/databases/create-documents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md index 8f453351..f6cefb16 100644 --- a/docs/examples/databases/create-email-attribute.md +++ b/docs/examples/databases/create-email-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md index ec876274..72ea1b9c 100644 --- a/docs/examples/databases/create-enum-attribute.md +++ b/docs/examples/databases/create-enum-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md index ebb845af..b60c638a 100644 --- a/docs/examples/databases/create-float-attribute.md +++ b/docs/examples/databases/create-float-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md index 2ce0d93f..e4227e5c 100644 --- a/docs/examples/databases/create-index.md +++ b/docs/examples/databases/create-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md index 35d1cb2a..71db4b5e 100644 --- a/docs/examples/databases/create-integer-attribute.md +++ b/docs/examples/databases/create-integer-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md index 689df8de..cbc1802f 100644 --- a/docs/examples/databases/create-ip-attribute.md +++ b/docs/examples/databases/create-ip-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-line-attribute.md b/docs/examples/databases/create-line-attribute.md index f76653be..6da90eec 100644 --- a/docs/examples/databases/create-line-attribute.md +++ b/docs/examples/databases/create-line-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-longtext-attribute.md b/docs/examples/databases/create-longtext-attribute.md index 936bc933..d22ff736 100644 --- a/docs/examples/databases/create-longtext-attribute.md +++ b/docs/examples/databases/create-longtext-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-mediumtext-attribute.md b/docs/examples/databases/create-mediumtext-attribute.md index 2ce24cad..7f4a9233 100644 --- a/docs/examples/databases/create-mediumtext-attribute.md +++ b/docs/examples/databases/create-mediumtext-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-operations.md b/docs/examples/databases/create-operations.md index 37f43ca2..e5a46425 100644 --- a/docs/examples/databases/create-operations.md +++ b/docs/examples/databases/create-operations.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-point-attribute.md b/docs/examples/databases/create-point-attribute.md index 10b3fb1e..9c1cb797 100644 --- a/docs/examples/databases/create-point-attribute.md +++ b/docs/examples/databases/create-point-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-polygon-attribute.md b/docs/examples/databases/create-polygon-attribute.md index c0c6e7d2..b2ab2ca7 100644 --- a/docs/examples/databases/create-polygon-attribute.md +++ b/docs/examples/databases/create-polygon-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index 759e7996..53da85ff 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md index 11e9374b..b68cd180 100644 --- a/docs/examples/databases/create-string-attribute.md +++ b/docs/examples/databases/create-string-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-text-attribute.md b/docs/examples/databases/create-text-attribute.md index 4515b756..6a107499 100644 --- a/docs/examples/databases/create-text-attribute.md +++ b/docs/examples/databases/create-text-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-transaction.md b/docs/examples/databases/create-transaction.md index 2a725d68..410e6232 100644 --- a/docs/examples/databases/create-transaction.md +++ b/docs/examples/databases/create-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md index 5cf8095d..60d2e708 100644 --- a/docs/examples/databases/create-url-attribute.md +++ b/docs/examples/databases/create-url-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create-varchar-attribute.md b/docs/examples/databases/create-varchar-attribute.md index d3b569af..556debc9 100644 --- a/docs/examples/databases/create-varchar-attribute.md +++ b/docs/examples/databases/create-varchar-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md index c53535c9..a41baf5a 100644 --- a/docs/examples/databases/create.md +++ b/docs/examples/databases/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/decrement-document-attribute.md b/docs/examples/databases/decrement-document-attribute.md index d0fa4a32..cab7b222 100644 --- a/docs/examples/databases/decrement-document-attribute.md +++ b/docs/examples/databases/decrement-document-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md index 350a4083..19cdc2c4 100644 --- a/docs/examples/databases/delete-attribute.md +++ b/docs/examples/databases/delete-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md index cfe815b0..150f2585 100644 --- a/docs/examples/databases/delete-collection.md +++ b/docs/examples/databases/delete-collection.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md index 204294a8..a2508651 100644 --- a/docs/examples/databases/delete-document.md +++ b/docs/examples/databases/delete-document.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-documents.md b/docs/examples/databases/delete-documents.md index 33f15e38..e36bc47a 100644 --- a/docs/examples/databases/delete-documents.md +++ b/docs/examples/databases/delete-documents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md index 7932d3ee..f2180511 100644 --- a/docs/examples/databases/delete-index.md +++ b/docs/examples/databases/delete-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete-transaction.md b/docs/examples/databases/delete-transaction.md index 78ef85b0..b33e9caf 100644 --- a/docs/examples/databases/delete-transaction.md +++ b/docs/examples/databases/delete-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md index 4a147b77..720be0d2 100644 --- a/docs/examples/databases/delete.md +++ b/docs/examples/databases/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md index bfd3598c..9b17f2d8 100644 --- a/docs/examples/databases/get-attribute.md +++ b/docs/examples/databases/get-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md index 01f950c6..7777ef1a 100644 --- a/docs/examples/databases/get-collection.md +++ b/docs/examples/databases/get-collection.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md index bb551646..4f4664bf 100644 --- a/docs/examples/databases/get-document.md +++ b/docs/examples/databases/get-document.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md index 8de6b15e..90d6333e 100644 --- a/docs/examples/databases/get-index.md +++ b/docs/examples/databases/get-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get-transaction.md b/docs/examples/databases/get-transaction.md index 02e8b5b6..651578cb 100644 --- a/docs/examples/databases/get-transaction.md +++ b/docs/examples/databases/get-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md index 5b5df1e9..8e4fad51 100644 --- a/docs/examples/databases/get.md +++ b/docs/examples/databases/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/increment-document-attribute.md b/docs/examples/databases/increment-document-attribute.md index 331fb44b..aa1c3858 100644 --- a/docs/examples/databases/increment-document-attribute.md +++ b/docs/examples/databases/increment-document-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md index e53c5cd9..9f02c93c 100644 --- a/docs/examples/databases/list-attributes.md +++ b/docs/examples/databases/list-attributes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md index aac8213c..b88368d0 100644 --- a/docs/examples/databases/list-collections.md +++ b/docs/examples/databases/list-collections.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md index fe8f3cea..aff9ed3c 100644 --- a/docs/examples/databases/list-documents.md +++ b/docs/examples/databases/list-documents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md index d8a85b81..353e5879 100644 --- a/docs/examples/databases/list-indexes.md +++ b/docs/examples/databases/list-indexes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list-transactions.md b/docs/examples/databases/list-transactions.md index f2a7854f..5a7c43aa 100644 --- a/docs/examples/databases/list-transactions.md +++ b/docs/examples/databases/list-transactions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md index ce620ef6..1c246d1c 100644 --- a/docs/examples/databases/list.md +++ b/docs/examples/databases/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-big-int-attribute.md b/docs/examples/databases/update-big-int-attribute.md index 5363c961..0d3c454d 100644 --- a/docs/examples/databases/update-big-int-attribute.md +++ b/docs/examples/databases/update-big-int-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md index 7e663539..ab3aa1b6 100644 --- a/docs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/databases/update-boolean-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md index bb232c00..ee46530f 100644 --- a/docs/examples/databases/update-collection.md +++ b/docs/examples/databases/update-collection.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md index 555c8780..eafd3a77 100644 --- a/docs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/databases/update-datetime-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md index 28ca13c9..a16c2a11 100644 --- a/docs/examples/databases/update-document.md +++ b/docs/examples/databases/update-document.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-documents.md b/docs/examples/databases/update-documents.md index c9765d99..f72abb4f 100644 --- a/docs/examples/databases/update-documents.md +++ b/docs/examples/databases/update-documents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md index e2e17646..b1e90190 100644 --- a/docs/examples/databases/update-email-attribute.md +++ b/docs/examples/databases/update-email-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md index e25e40fd..c08d7500 100644 --- a/docs/examples/databases/update-enum-attribute.md +++ b/docs/examples/databases/update-enum-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md index a7065b45..2c02d5cf 100644 --- a/docs/examples/databases/update-float-attribute.md +++ b/docs/examples/databases/update-float-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md index 7a8452b2..52f7461c 100644 --- a/docs/examples/databases/update-integer-attribute.md +++ b/docs/examples/databases/update-integer-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md index 7e399cdf..d21c4ca5 100644 --- a/docs/examples/databases/update-ip-attribute.md +++ b/docs/examples/databases/update-ip-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-line-attribute.md b/docs/examples/databases/update-line-attribute.md index 8da0bde7..d57414c1 100644 --- a/docs/examples/databases/update-line-attribute.md +++ b/docs/examples/databases/update-line-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-longtext-attribute.md b/docs/examples/databases/update-longtext-attribute.md index 0e9e154d..f27d533d 100644 --- a/docs/examples/databases/update-longtext-attribute.md +++ b/docs/examples/databases/update-longtext-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-mediumtext-attribute.md b/docs/examples/databases/update-mediumtext-attribute.md index 86a6ed68..3d496199 100644 --- a/docs/examples/databases/update-mediumtext-attribute.md +++ b/docs/examples/databases/update-mediumtext-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-point-attribute.md b/docs/examples/databases/update-point-attribute.md index 2f11a5f3..f9a602f9 100644 --- a/docs/examples/databases/update-point-attribute.md +++ b/docs/examples/databases/update-point-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-polygon-attribute.md b/docs/examples/databases/update-polygon-attribute.md index ac2cd16e..9b92af0b 100644 --- a/docs/examples/databases/update-polygon-attribute.md +++ b/docs/examples/databases/update-polygon-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index c0affa5a..7ef894ef 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md index 9a20ba7e..a3949812 100644 --- a/docs/examples/databases/update-string-attribute.md +++ b/docs/examples/databases/update-string-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-text-attribute.md b/docs/examples/databases/update-text-attribute.md index c5f907db..7fe9a6bd 100644 --- a/docs/examples/databases/update-text-attribute.md +++ b/docs/examples/databases/update-text-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-transaction.md b/docs/examples/databases/update-transaction.md index bf165b9b..cca98fbe 100644 --- a/docs/examples/databases/update-transaction.md +++ b/docs/examples/databases/update-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md index 79ee9ad0..9c6c1fd7 100644 --- a/docs/examples/databases/update-url-attribute.md +++ b/docs/examples/databases/update-url-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update-varchar-attribute.md b/docs/examples/databases/update-varchar-attribute.md index 811d3559..3c360a96 100644 --- a/docs/examples/databases/update-varchar-attribute.md +++ b/docs/examples/databases/update-varchar-attribute.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md index a5bb11bc..1c265154 100644 --- a/docs/examples/databases/update.md +++ b/docs/examples/databases/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/upsert-document.md b/docs/examples/databases/upsert-document.md index d59fcea7..9e07e0d7 100644 --- a/docs/examples/databases/upsert-document.md +++ b/docs/examples/databases/upsert-document.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/databases/upsert-documents.md b/docs/examples/databases/upsert-documents.md index 6aee62e5..f1d35f9a 100644 --- a/docs/examples/databases/upsert-documents.md +++ b/docs/examples/databases/upsert-documents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/databases" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/databases" ) client := client.New( diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md index ef9676fe..c2b92132 100644 --- a/docs/examples/functions/create-deployment.md +++ b/docs/examples/functions/create-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create-duplicate-deployment.md b/docs/examples/functions/create-duplicate-deployment.md index e3dd6428..1c250b9f 100644 --- a/docs/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/functions/create-duplicate-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index 1948927f..90697f47 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create-template-deployment.md b/docs/examples/functions/create-template-deployment.md index a643cac3..e5609f28 100644 --- a/docs/examples/functions/create-template-deployment.md +++ b/docs/examples/functions/create-template-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md index 3ce53661..0ca38f21 100644 --- a/docs/examples/functions/create-variable.md +++ b/docs/examples/functions/create-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create-vcs-deployment.md b/docs/examples/functions/create-vcs-deployment.md index b5003405..9c9b79ad 100644 --- a/docs/examples/functions/create-vcs-deployment.md +++ b/docs/examples/functions/create-vcs-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 1a4aac00..8ad35b52 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( @@ -33,6 +33,8 @@ response, error := service.Create( functions.WithCreateProviderBranch(""), functions.WithCreateProviderSilentMode(false), functions.WithCreateProviderRootDirectory(""), + functions.WithCreateProviderBranches([]interface{}{}), + functions.WithCreateProviderPaths([]interface{}{}), functions.WithCreateBuildSpecification(""), functions.WithCreateRuntimeSpecification(""), functions.WithCreateDeploymentRetention(0), diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index 3808fea9..ec7fef5a 100644 --- a/docs/examples/functions/delete-deployment.md +++ b/docs/examples/functions/delete-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/delete-execution.md b/docs/examples/functions/delete-execution.md index 4fa801b5..04fe7edc 100644 --- a/docs/examples/functions/delete-execution.md +++ b/docs/examples/functions/delete-execution.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md index 12cac490..b33c9479 100644 --- a/docs/examples/functions/delete-variable.md +++ b/docs/examples/functions/delete-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index 0d09ebab..17866447 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index 56a40a73..965670cf 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md index eda50476..09b4a1b1 100644 --- a/docs/examples/functions/get-deployment.md +++ b/docs/examples/functions/get-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index 4c3c05aa..e6b5c0af 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md index 33b5a6fb..33bc5df3 100644 --- a/docs/examples/functions/get-variable.md +++ b/docs/examples/functions/get-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index 840d3de9..83bdc4da 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md index ed933db0..815ed2fa 100644 --- a/docs/examples/functions/list-deployments.md +++ b/docs/examples/functions/list-deployments.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index 6d615255..7290d628 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md index c7f5d470..61b1157c 100644 --- a/docs/examples/functions/list-runtimes.md +++ b/docs/examples/functions/list-runtimes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list-specifications.md b/docs/examples/functions/list-specifications.md index 3594b708..7c386a3e 100644 --- a/docs/examples/functions/list-specifications.md +++ b/docs/examples/functions/list-specifications.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index 63b2efbc..e1248a43 100644 --- a/docs/examples/functions/list-variables.md +++ b/docs/examples/functions/list-variables.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index cb0e7a59..6f3ccff4 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/update-deployment-status.md b/docs/examples/functions/update-deployment-status.md index b7f5175e..c118a133 100644 --- a/docs/examples/functions/update-deployment-status.md +++ b/docs/examples/functions/update-deployment-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/update-function-deployment.md b/docs/examples/functions/update-function-deployment.md index 882b8cd2..81195b2e 100644 --- a/docs/examples/functions/update-function-deployment.md +++ b/docs/examples/functions/update-function-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md index dee9e710..4b3f2685 100644 --- a/docs/examples/functions/update-variable.md +++ b/docs/examples/functions/update-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 5d3936cf..6fed969c 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/functions" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/functions" ) client := client.New( @@ -33,6 +33,8 @@ response, error := service.Update( functions.WithUpdateProviderBranch(""), functions.WithUpdateProviderSilentMode(false), functions.WithUpdateProviderRootDirectory(""), + functions.WithUpdateProviderBranches([]interface{}{}), + functions.WithUpdateProviderPaths([]interface{}{}), functions.WithUpdateBuildSpecification(""), functions.WithUpdateRuntimeSpecification(""), functions.WithUpdateDeploymentRetention(0), diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index addf9b68..b7e94ecd 100644 --- a/docs/examples/graphql/mutation.md +++ b/docs/examples/graphql/mutation.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/graphql" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/graphql" ) client := client.New( diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md index 7a62b568..af59062b 100644 --- a/docs/examples/graphql/query.md +++ b/docs/examples/graphql/query.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/graphql" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/graphql" ) client := client.New( diff --git a/docs/examples/health/get-antivirus.md b/docs/examples/health/get-antivirus.md index 34c4e7b3..0123704f 100644 --- a/docs/examples/health/get-antivirus.md +++ b/docs/examples/health/get-antivirus.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md index 59b0743d..e89996a4 100644 --- a/docs/examples/health/get-cache.md +++ b/docs/examples/health/get-cache.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-certificate.md b/docs/examples/health/get-certificate.md index 18149b05..04828317 100644 --- a/docs/examples/health/get-certificate.md +++ b/docs/examples/health/get-certificate.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-console-pausing.md b/docs/examples/health/get-console-pausing.md index 88d150eb..b3da19bc 100644 --- a/docs/examples/health/get-console-pausing.md +++ b/docs/examples/health/get-console-pausing.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-db.md b/docs/examples/health/get-db.md index 8e9b03cd..b7c97721 100644 --- a/docs/examples/health/get-db.md +++ b/docs/examples/health/get-db.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-failed-jobs.md b/docs/examples/health/get-failed-jobs.md index d056cb68..ef75aff7 100644 --- a/docs/examples/health/get-failed-jobs.md +++ b/docs/examples/health/get-failed-jobs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-pub-sub.md b/docs/examples/health/get-pub-sub.md index ac7ec370..ce639429 100644 --- a/docs/examples/health/get-pub-sub.md +++ b/docs/examples/health/get-pub-sub.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-audits.md b/docs/examples/health/get-queue-audits.md index 58946474..9e2b1a4e 100644 --- a/docs/examples/health/get-queue-audits.md +++ b/docs/examples/health/get-queue-audits.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-builds.md b/docs/examples/health/get-queue-builds.md index b35242e2..586e0685 100644 --- a/docs/examples/health/get-queue-builds.md +++ b/docs/examples/health/get-queue-builds.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md index c001ed83..8fe12df9 100644 --- a/docs/examples/health/get-queue-certificates.md +++ b/docs/examples/health/get-queue-certificates.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-databases.md b/docs/examples/health/get-queue-databases.md index e0b7e2a8..bd619e7e 100644 --- a/docs/examples/health/get-queue-databases.md +++ b/docs/examples/health/get-queue-databases.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-deletes.md b/docs/examples/health/get-queue-deletes.md index ca8be1f1..7619691f 100644 --- a/docs/examples/health/get-queue-deletes.md +++ b/docs/examples/health/get-queue-deletes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md index 175eaae5..67ec8ce4 100644 --- a/docs/examples/health/get-queue-functions.md +++ b/docs/examples/health/get-queue-functions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md index 71a3a52a..4c37f64b 100644 --- a/docs/examples/health/get-queue-logs.md +++ b/docs/examples/health/get-queue-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-mails.md b/docs/examples/health/get-queue-mails.md index 48ceb1d9..8274f9cd 100644 --- a/docs/examples/health/get-queue-mails.md +++ b/docs/examples/health/get-queue-mails.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-messaging.md b/docs/examples/health/get-queue-messaging.md index 5e7d7a15..62270776 100644 --- a/docs/examples/health/get-queue-messaging.md +++ b/docs/examples/health/get-queue-messaging.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-migrations.md b/docs/examples/health/get-queue-migrations.md index cdf7db4a..cc1d5c98 100644 --- a/docs/examples/health/get-queue-migrations.md +++ b/docs/examples/health/get-queue-migrations.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-stats-resources.md b/docs/examples/health/get-queue-stats-resources.md index bbb6f7cf..f3f57142 100644 --- a/docs/examples/health/get-queue-stats-resources.md +++ b/docs/examples/health/get-queue-stats-resources.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md index 57799c5a..b6f60bd6 100644 --- a/docs/examples/health/get-queue-usage.md +++ b/docs/examples/health/get-queue-usage.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md index 54de652f..8d2ea59a 100644 --- a/docs/examples/health/get-queue-webhooks.md +++ b/docs/examples/health/get-queue-webhooks.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md index 4e68717c..c192696d 100644 --- a/docs/examples/health/get-storage-local.md +++ b/docs/examples/health/get-storage-local.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-storage.md b/docs/examples/health/get-storage.md index ab2eda87..0c91e897 100644 --- a/docs/examples/health/get-storage.md +++ b/docs/examples/health/get-storage.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md index 7e8f4f77..d7237389 100644 --- a/docs/examples/health/get-time.md +++ b/docs/examples/health/get-time.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md index cd8268ff..5b38e982 100644 --- a/docs/examples/health/get.md +++ b/docs/examples/health/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/health" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/health" ) client := client.New( diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index aac76deb..dc2f394c 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-codes.md b/docs/examples/locale/list-codes.md index 18307fae..be7df35f 100644 --- a/docs/examples/locale/list-codes.md +++ b/docs/examples/locale/list-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md index ae8e476c..b2e41ff1 100644 --- a/docs/examples/locale/list-continents.md +++ b/docs/examples/locale/list-continents.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-countries-eu.md b/docs/examples/locale/list-countries-eu.md index 6b379fe7..9a675f90 100644 --- a/docs/examples/locale/list-countries-eu.md +++ b/docs/examples/locale/list-countries-eu.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md index 494f3575..600aa5ef 100644 --- a/docs/examples/locale/list-countries-phones.md +++ b/docs/examples/locale/list-countries-phones.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md index 85ef0923..0e820ea8 100644 --- a/docs/examples/locale/list-countries.md +++ b/docs/examples/locale/list-countries.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md index ed897308..0c2422a0 100644 --- a/docs/examples/locale/list-currencies.md +++ b/docs/examples/locale/list-currencies.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md index dc65b8b5..af956b55 100644 --- a/docs/examples/locale/list-languages.md +++ b/docs/examples/locale/list-languages.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/locale" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/locale" ) client := client.New( diff --git a/docs/examples/messaging/create-apns-provider.md b/docs/examples/messaging/create-apns-provider.md index dbe9195d..0d8ea7b7 100644 --- a/docs/examples/messaging/create-apns-provider.md +++ b/docs/examples/messaging/create-apns-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-email.md b/docs/examples/messaging/create-email.md index 3d7193db..6e59e83f 100644 --- a/docs/examples/messaging/create-email.md +++ b/docs/examples/messaging/create-email.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-fcm-provider.md b/docs/examples/messaging/create-fcm-provider.md index d2a5a8bb..e22d8e9e 100644 --- a/docs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/messaging/create-fcm-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-mailgun-provider.md b/docs/examples/messaging/create-mailgun-provider.md index 11692ffc..9ccbfa94 100644 --- a/docs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/messaging/create-mailgun-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-msg-91-provider.md b/docs/examples/messaging/create-msg-91-provider.md index f3029ffc..9e6c3314 100644 --- a/docs/examples/messaging/create-msg-91-provider.md +++ b/docs/examples/messaging/create-msg-91-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index 5d506d8a..a8437c92 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-resend-provider.md b/docs/examples/messaging/create-resend-provider.md index 693d9e32..1c3136f2 100644 --- a/docs/examples/messaging/create-resend-provider.md +++ b/docs/examples/messaging/create-resend-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-sendgrid-provider.md b/docs/examples/messaging/create-sendgrid-provider.md index 25cdaa8e..13feb8ee 100644 --- a/docs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/messaging/create-sendgrid-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-sms.md b/docs/examples/messaging/create-sms.md index c8469501..0d52b9bd 100644 --- a/docs/examples/messaging/create-sms.md +++ b/docs/examples/messaging/create-sms.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index 0bb5f204..36c8489b 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-subscriber.md b/docs/examples/messaging/create-subscriber.md index 82385231..98a60724 100644 --- a/docs/examples/messaging/create-subscriber.md +++ b/docs/examples/messaging/create-subscriber.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-telesign-provider.md b/docs/examples/messaging/create-telesign-provider.md index 0c1b141f..e47c2c1e 100644 --- a/docs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/messaging/create-telesign-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-textmagic-provider.md b/docs/examples/messaging/create-textmagic-provider.md index cec57633..2f7c52c3 100644 --- a/docs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/messaging/create-textmagic-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-topic.md b/docs/examples/messaging/create-topic.md index d720638b..aec8900a 100644 --- a/docs/examples/messaging/create-topic.md +++ b/docs/examples/messaging/create-topic.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-twilio-provider.md b/docs/examples/messaging/create-twilio-provider.md index b92dde7f..46708cc0 100644 --- a/docs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/messaging/create-twilio-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/create-vonage-provider.md b/docs/examples/messaging/create-vonage-provider.md index 83d2ac1a..22c59e0d 100644 --- a/docs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/messaging/create-vonage-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/delete-provider.md b/docs/examples/messaging/delete-provider.md index b860db97..4c641a85 100644 --- a/docs/examples/messaging/delete-provider.md +++ b/docs/examples/messaging/delete-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/delete-subscriber.md b/docs/examples/messaging/delete-subscriber.md index 2a7c8036..1914238f 100644 --- a/docs/examples/messaging/delete-subscriber.md +++ b/docs/examples/messaging/delete-subscriber.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/delete-topic.md b/docs/examples/messaging/delete-topic.md index daf1d764..a3b127ed 100644 --- a/docs/examples/messaging/delete-topic.md +++ b/docs/examples/messaging/delete-topic.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/delete.md b/docs/examples/messaging/delete.md index 5f5f420b..1cfe9251 100644 --- a/docs/examples/messaging/delete.md +++ b/docs/examples/messaging/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/get-message.md b/docs/examples/messaging/get-message.md index 492368c8..c0153ed8 100644 --- a/docs/examples/messaging/get-message.md +++ b/docs/examples/messaging/get-message.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/get-provider.md b/docs/examples/messaging/get-provider.md index 7c113372..ee59fb5e 100644 --- a/docs/examples/messaging/get-provider.md +++ b/docs/examples/messaging/get-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/get-subscriber.md b/docs/examples/messaging/get-subscriber.md index 7004b17c..f00ea9e1 100644 --- a/docs/examples/messaging/get-subscriber.md +++ b/docs/examples/messaging/get-subscriber.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/get-topic.md b/docs/examples/messaging/get-topic.md index 3740b329..83176c20 100644 --- a/docs/examples/messaging/get-topic.md +++ b/docs/examples/messaging/get-topic.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-message-logs.md b/docs/examples/messaging/list-message-logs.md index 81a07d88..231235be 100644 --- a/docs/examples/messaging/list-message-logs.md +++ b/docs/examples/messaging/list-message-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-messages.md b/docs/examples/messaging/list-messages.md index c3fddaf2..261d83a5 100644 --- a/docs/examples/messaging/list-messages.md +++ b/docs/examples/messaging/list-messages.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-provider-logs.md b/docs/examples/messaging/list-provider-logs.md index 75b22f11..0544d3f4 100644 --- a/docs/examples/messaging/list-provider-logs.md +++ b/docs/examples/messaging/list-provider-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-providers.md b/docs/examples/messaging/list-providers.md index 6c754591..1d06de93 100644 --- a/docs/examples/messaging/list-providers.md +++ b/docs/examples/messaging/list-providers.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-subscriber-logs.md b/docs/examples/messaging/list-subscriber-logs.md index 050a7a2d..3a751b5b 100644 --- a/docs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/messaging/list-subscriber-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-subscribers.md b/docs/examples/messaging/list-subscribers.md index 0dc21588..4b5d12a1 100644 --- a/docs/examples/messaging/list-subscribers.md +++ b/docs/examples/messaging/list-subscribers.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-targets.md b/docs/examples/messaging/list-targets.md index 38a9a1b7..159167ea 100644 --- a/docs/examples/messaging/list-targets.md +++ b/docs/examples/messaging/list-targets.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-topic-logs.md b/docs/examples/messaging/list-topic-logs.md index 6785f62f..a5c4b94e 100644 --- a/docs/examples/messaging/list-topic-logs.md +++ b/docs/examples/messaging/list-topic-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/list-topics.md b/docs/examples/messaging/list-topics.md index 7c5e2238..0104b513 100644 --- a/docs/examples/messaging/list-topics.md +++ b/docs/examples/messaging/list-topics.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-apns-provider.md b/docs/examples/messaging/update-apns-provider.md index ce95fdd8..06f2e56d 100644 --- a/docs/examples/messaging/update-apns-provider.md +++ b/docs/examples/messaging/update-apns-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-email.md b/docs/examples/messaging/update-email.md index 3d9a7b8b..66f0c426 100644 --- a/docs/examples/messaging/update-email.md +++ b/docs/examples/messaging/update-email.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-fcm-provider.md b/docs/examples/messaging/update-fcm-provider.md index c24cc651..ec6d62b9 100644 --- a/docs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/messaging/update-fcm-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-mailgun-provider.md b/docs/examples/messaging/update-mailgun-provider.md index 3f0f7680..7a4e3854 100644 --- a/docs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/messaging/update-mailgun-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-msg-91-provider.md b/docs/examples/messaging/update-msg-91-provider.md index ea38ebce..05515381 100644 --- a/docs/examples/messaging/update-msg-91-provider.md +++ b/docs/examples/messaging/update-msg-91-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index 2bb13815..3935091f 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-resend-provider.md b/docs/examples/messaging/update-resend-provider.md index 02de53da..9e4fb697 100644 --- a/docs/examples/messaging/update-resend-provider.md +++ b/docs/examples/messaging/update-resend-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-sendgrid-provider.md b/docs/examples/messaging/update-sendgrid-provider.md index d8b3e22c..d8f1bf32 100644 --- a/docs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/messaging/update-sendgrid-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-sms.md b/docs/examples/messaging/update-sms.md index baa181af..844cedab 100644 --- a/docs/examples/messaging/update-sms.md +++ b/docs/examples/messaging/update-sms.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index a08b688f..a4c6ab20 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-telesign-provider.md b/docs/examples/messaging/update-telesign-provider.md index 31373616..2c4089c9 100644 --- a/docs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/messaging/update-telesign-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-textmagic-provider.md b/docs/examples/messaging/update-textmagic-provider.md index c500201d..d631180e 100644 --- a/docs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/messaging/update-textmagic-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-topic.md b/docs/examples/messaging/update-topic.md index 9c5c572f..ce77c46d 100644 --- a/docs/examples/messaging/update-topic.md +++ b/docs/examples/messaging/update-topic.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-twilio-provider.md b/docs/examples/messaging/update-twilio-provider.md index 050c067f..7c079f44 100644 --- a/docs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/messaging/update-twilio-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/messaging/update-vonage-provider.md b/docs/examples/messaging/update-vonage-provider.md index 1fa2e8c5..32edfacd 100644 --- a/docs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/messaging/update-vonage-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/messaging" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/messaging" ) client := client.New( diff --git a/docs/examples/organization/create-key.md b/docs/examples/organization/create-key.md new file mode 100644 index 00000000..563d8e8c --- /dev/null +++ b/docs/examples/organization/create-key.md @@ -0,0 +1,24 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.CreateKey( + "", + "", + []interface{}{}, + organization.WithCreateKeyExpire("2020-10-15T06:38:00.000+00:00"), +) +``` diff --git a/docs/examples/organization/create-project.md b/docs/examples/organization/create-project.md new file mode 100644 index 00000000..fc59725b --- /dev/null +++ b/docs/examples/organization/create-project.md @@ -0,0 +1,23 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.CreateProject( + "", + "", + organization.WithCreateProjectRegion("fra"), +) +``` diff --git a/docs/examples/organization/delete-key.md b/docs/examples/organization/delete-key.md new file mode 100644 index 00000000..7d81d6e9 --- /dev/null +++ b/docs/examples/organization/delete-key.md @@ -0,0 +1,21 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.DeleteKey( + "", +) +``` diff --git a/docs/examples/organization/delete-project.md b/docs/examples/organization/delete-project.md new file mode 100644 index 00000000..3a8c9341 --- /dev/null +++ b/docs/examples/organization/delete-project.md @@ -0,0 +1,21 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.DeleteProject( + "", +) +``` diff --git a/docs/examples/organization/get-key.md b/docs/examples/organization/get-key.md new file mode 100644 index 00000000..903ab361 --- /dev/null +++ b/docs/examples/organization/get-key.md @@ -0,0 +1,21 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.GetKey( + "", +) +``` diff --git a/docs/examples/organization/get-project.md b/docs/examples/organization/get-project.md new file mode 100644 index 00000000..65165500 --- /dev/null +++ b/docs/examples/organization/get-project.md @@ -0,0 +1,21 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.GetProject( + "", +) +``` diff --git a/docs/examples/organization/list-keys.md b/docs/examples/organization/list-keys.md new file mode 100644 index 00000000..a71a5e8c --- /dev/null +++ b/docs/examples/organization/list-keys.md @@ -0,0 +1,22 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.ListKeys( + organization.WithListKeysQueries([]interface{}{}), + organization.WithListKeysTotal(false), +) +``` diff --git a/docs/examples/organization/list-projects.md b/docs/examples/organization/list-projects.md new file mode 100644 index 00000000..2afc5661 --- /dev/null +++ b/docs/examples/organization/list-projects.md @@ -0,0 +1,23 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.ListProjects( + organization.WithListProjectsQueries([]interface{}{}), + organization.WithListProjectsSearch(""), + organization.WithListProjectsTotal(false), +) +``` diff --git a/docs/examples/organization/update-key.md b/docs/examples/organization/update-key.md new file mode 100644 index 00000000..14900926 --- /dev/null +++ b/docs/examples/organization/update-key.md @@ -0,0 +1,24 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.UpdateKey( + "", + "", + []interface{}{}, + organization.WithUpdateKeyExpire("2020-10-15T06:38:00.000+00:00"), +) +``` diff --git a/docs/examples/organization/update-project.md b/docs/examples/organization/update-project.md new file mode 100644 index 00000000..7c9d0567 --- /dev/null +++ b/docs/examples/organization/update-project.md @@ -0,0 +1,22 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/organization" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := organization.New(client) + +response, error := service.UpdateProject( + "", + "", +) +``` diff --git a/docs/examples/presences/delete.md b/docs/examples/presences/delete.md index 8a2818a2..1b32e0fb 100644 --- a/docs/examples/presences/delete.md +++ b/docs/examples/presences/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/presences" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/presences" ) client := client.New( diff --git a/docs/examples/presences/get.md b/docs/examples/presences/get.md index 04f95ab6..e21b74f2 100644 --- a/docs/examples/presences/get.md +++ b/docs/examples/presences/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/presences" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/presences" ) client := client.New( diff --git a/docs/examples/presences/list.md b/docs/examples/presences/list.md index 71a52ec4..cb446714 100644 --- a/docs/examples/presences/list.md +++ b/docs/examples/presences/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/presences" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/presences" ) client := client.New( diff --git a/docs/examples/presences/update-presence.md b/docs/examples/presences/update-presence.md deleted file mode 100644 index f877255a..00000000 --- a/docs/examples/presences/update-presence.md +++ /dev/null @@ -1,27 +0,0 @@ -```go -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/presences" -) - -client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") - client.WithProject("") - client.WithKey("") -) - -service := presences.New(client) - -response, error := service.UpdatePresence( - "", - "", - presences.WithUpdatePresenceStatus(""), - presences.WithUpdatePresenceExpiresAt("2020-10-15T06:38:00.000+00:00"), - presences.WithUpdatePresenceMetadata(map[string]interface{}{}), - presences.WithUpdatePresencePermissions(interface{}{"read("any")"}), - presences.WithUpdatePresencePurge(false), -) -``` diff --git a/docs/examples/presences/update.md b/docs/examples/presences/update.md new file mode 100644 index 00000000..da1afc5b --- /dev/null +++ b/docs/examples/presences/update.md @@ -0,0 +1,27 @@ +```go +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/presences" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := presences.New(client) + +response, error := service.Update( + "", + "", + presences.WithUpdateStatus(""), + presences.WithUpdateExpiresAt("2020-10-15T06:38:00.000+00:00"), + presences.WithUpdateMetadata(map[string]interface{}{}), + presences.WithUpdatePermissions(interface{}{"read("any")"}), + presences.WithUpdatePurge(false), +) +``` diff --git a/docs/examples/presences/upsert.md b/docs/examples/presences/upsert.md index d2bd7837..4d275557 100644 --- a/docs/examples/presences/upsert.md +++ b/docs/examples/presences/upsert.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/presences" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/presences" ) client := client.New( diff --git a/docs/examples/project/create-android-platform.md b/docs/examples/project/create-android-platform.md index 3c4c310f..74637102 100644 --- a/docs/examples/project/create-android-platform.md +++ b/docs/examples/project/create-android-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-apple-platform.md b/docs/examples/project/create-apple-platform.md index ef6df392..4ad2d2ec 100644 --- a/docs/examples/project/create-apple-platform.md +++ b/docs/examples/project/create-apple-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-ephemeral-key.md b/docs/examples/project/create-ephemeral-key.md index 036f6772..8ad72acc 100644 --- a/docs/examples/project/create-ephemeral-key.md +++ b/docs/examples/project/create-ephemeral-key.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-key.md b/docs/examples/project/create-key.md index 47fc9f83..618b90c3 100644 --- a/docs/examples/project/create-key.md +++ b/docs/examples/project/create-key.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-linux-platform.md b/docs/examples/project/create-linux-platform.md index 4673feef..16771159 100644 --- a/docs/examples/project/create-linux-platform.md +++ b/docs/examples/project/create-linux-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-mock-phone.md b/docs/examples/project/create-mock-phone.md index c1e95669..5d7b81b9 100644 --- a/docs/examples/project/create-mock-phone.md +++ b/docs/examples/project/create-mock-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-smtp-test.md b/docs/examples/project/create-smtp-test.md index 9f074dda..8faa0900 100644 --- a/docs/examples/project/create-smtp-test.md +++ b/docs/examples/project/create-smtp-test.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-variable.md b/docs/examples/project/create-variable.md index 1bfe49f8..5e895efc 100644 --- a/docs/examples/project/create-variable.md +++ b/docs/examples/project/create-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-web-platform.md b/docs/examples/project/create-web-platform.md index 8b829c07..84386bc4 100644 --- a/docs/examples/project/create-web-platform.md +++ b/docs/examples/project/create-web-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/create-windows-platform.md b/docs/examples/project/create-windows-platform.md index b4516cab..84aae513 100644 --- a/docs/examples/project/create-windows-platform.md +++ b/docs/examples/project/create-windows-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/delete-key.md b/docs/examples/project/delete-key.md index 29f20650..b36afc43 100644 --- a/docs/examples/project/delete-key.md +++ b/docs/examples/project/delete-key.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/delete-mock-phone.md b/docs/examples/project/delete-mock-phone.md index 099d85e0..8ba1c0a7 100644 --- a/docs/examples/project/delete-mock-phone.md +++ b/docs/examples/project/delete-mock-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/delete-platform.md b/docs/examples/project/delete-platform.md index cd0b7181..c7a64513 100644 --- a/docs/examples/project/delete-platform.md +++ b/docs/examples/project/delete-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/delete-variable.md b/docs/examples/project/delete-variable.md index ef7a44f2..f8f12c28 100644 --- a/docs/examples/project/delete-variable.md +++ b/docs/examples/project/delete-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/delete.md b/docs/examples/project/delete.md index 6f48c4f7..c415f96b 100644 --- a/docs/examples/project/delete.md +++ b/docs/examples/project/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-email-template.md b/docs/examples/project/get-email-template.md index bb8dd3de..6abf87f3 100644 --- a/docs/examples/project/get-email-template.md +++ b/docs/examples/project/get-email-template.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-key.md b/docs/examples/project/get-key.md index 84ad54ec..65b52548 100644 --- a/docs/examples/project/get-key.md +++ b/docs/examples/project/get-key.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-mock-phone.md b/docs/examples/project/get-mock-phone.md index 3115e4f8..56a41c0a 100644 --- a/docs/examples/project/get-mock-phone.md +++ b/docs/examples/project/get-mock-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-o-auth-2-provider.md b/docs/examples/project/get-o-auth-2-provider.md index ad07a73c..cc0f0b25 100644 --- a/docs/examples/project/get-o-auth-2-provider.md +++ b/docs/examples/project/get-o-auth-2-provider.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-platform.md b/docs/examples/project/get-platform.md index cdd6cc03..72dc615b 100644 --- a/docs/examples/project/get-platform.md +++ b/docs/examples/project/get-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-policy.md b/docs/examples/project/get-policy.md index 15f1fee4..79bb30e1 100644 --- a/docs/examples/project/get-policy.md +++ b/docs/examples/project/get-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get-variable.md b/docs/examples/project/get-variable.md index ba9f0c0c..e5c9ebec 100644 --- a/docs/examples/project/get-variable.md +++ b/docs/examples/project/get-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/get.md b/docs/examples/project/get.md index cc21ee85..a7e79b2e 100644 --- a/docs/examples/project/get.md +++ b/docs/examples/project/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-email-templates.md b/docs/examples/project/list-email-templates.md index 10979860..9f429ce5 100644 --- a/docs/examples/project/list-email-templates.md +++ b/docs/examples/project/list-email-templates.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-keys.md b/docs/examples/project/list-keys.md index c3dd64db..8741ec23 100644 --- a/docs/examples/project/list-keys.md +++ b/docs/examples/project/list-keys.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-mock-phones.md b/docs/examples/project/list-mock-phones.md index a105a5b3..68f5a04d 100644 --- a/docs/examples/project/list-mock-phones.md +++ b/docs/examples/project/list-mock-phones.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-o-auth-2-providers.md b/docs/examples/project/list-o-auth-2-providers.md index 4cc50d25..c0e7647a 100644 --- a/docs/examples/project/list-o-auth-2-providers.md +++ b/docs/examples/project/list-o-auth-2-providers.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-platforms.md b/docs/examples/project/list-platforms.md index c9e3eb1f..ee00038b 100644 --- a/docs/examples/project/list-platforms.md +++ b/docs/examples/project/list-platforms.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-policies.md b/docs/examples/project/list-policies.md index 0cc4f080..57cfa1a7 100644 --- a/docs/examples/project/list-policies.md +++ b/docs/examples/project/list-policies.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/list-variables.md b/docs/examples/project/list-variables.md index 40602349..19cec045 100644 --- a/docs/examples/project/list-variables.md +++ b/docs/examples/project/list-variables.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-android-platform.md b/docs/examples/project/update-android-platform.md index 5d4b523a..cda7e27a 100644 --- a/docs/examples/project/update-android-platform.md +++ b/docs/examples/project/update-android-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-apple-platform.md b/docs/examples/project/update-apple-platform.md index 9758be97..02e26b3e 100644 --- a/docs/examples/project/update-apple-platform.md +++ b/docs/examples/project/update-apple-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-auth-method.md b/docs/examples/project/update-auth-method.md index 2f37d3af..d9e456dd 100644 --- a/docs/examples/project/update-auth-method.md +++ b/docs/examples/project/update-auth-method.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-deny-aliased-email-policy.md b/docs/examples/project/update-deny-aliased-email-policy.md index 52e26c8a..029f61d8 100644 --- a/docs/examples/project/update-deny-aliased-email-policy.md +++ b/docs/examples/project/update-deny-aliased-email-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-deny-disposable-email-policy.md b/docs/examples/project/update-deny-disposable-email-policy.md index 64ca2e51..283459c1 100644 --- a/docs/examples/project/update-deny-disposable-email-policy.md +++ b/docs/examples/project/update-deny-disposable-email-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-deny-free-email-policy.md b/docs/examples/project/update-deny-free-email-policy.md index 7598819b..3ccb8f9e 100644 --- a/docs/examples/project/update-deny-free-email-policy.md +++ b/docs/examples/project/update-deny-free-email-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-email-template.md b/docs/examples/project/update-email-template.md index ad2e3a42..7f483023 100644 --- a/docs/examples/project/update-email-template.md +++ b/docs/examples/project/update-email-template.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-key.md b/docs/examples/project/update-key.md index 047055ff..171bece1 100644 --- a/docs/examples/project/update-key.md +++ b/docs/examples/project/update-key.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-labels.md b/docs/examples/project/update-labels.md index 48e441d1..15a25186 100644 --- a/docs/examples/project/update-labels.md +++ b/docs/examples/project/update-labels.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-linux-platform.md b/docs/examples/project/update-linux-platform.md index 9ecd4188..e11b2760 100644 --- a/docs/examples/project/update-linux-platform.md +++ b/docs/examples/project/update-linux-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-membership-privacy-policy.md b/docs/examples/project/update-membership-privacy-policy.md index 34c21552..e6a16fde 100644 --- a/docs/examples/project/update-membership-privacy-policy.md +++ b/docs/examples/project/update-membership-privacy-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-mock-phone.md b/docs/examples/project/update-mock-phone.md index d18c54fb..9cc678bd 100644 --- a/docs/examples/project/update-mock-phone.md +++ b/docs/examples/project/update-mock-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-amazon.md b/docs/examples/project/update-o-auth-2-amazon.md index 1addc081..70adefb3 100644 --- a/docs/examples/project/update-o-auth-2-amazon.md +++ b/docs/examples/project/update-o-auth-2-amazon.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-apple.md b/docs/examples/project/update-o-auth-2-apple.md index de68fbcf..0bc54a81 100644 --- a/docs/examples/project/update-o-auth-2-apple.md +++ b/docs/examples/project/update-o-auth-2-apple.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 eb60aa00..031d3d53 100644 --- a/docs/examples/project/update-o-auth-2-auth-0.md +++ b/docs/examples/project/update-o-auth-2-auth-0.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-authentik.md b/docs/examples/project/update-o-auth-2-authentik.md index 1003fc10..ad97d498 100644 --- a/docs/examples/project/update-o-auth-2-authentik.md +++ b/docs/examples/project/update-o-auth-2-authentik.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-autodesk.md b/docs/examples/project/update-o-auth-2-autodesk.md index ed0604a2..c4d8ece1 100644 --- a/docs/examples/project/update-o-auth-2-autodesk.md +++ b/docs/examples/project/update-o-auth-2-autodesk.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-bitbucket.md b/docs/examples/project/update-o-auth-2-bitbucket.md index 689e6f31..46614253 100644 --- a/docs/examples/project/update-o-auth-2-bitbucket.md +++ b/docs/examples/project/update-o-auth-2-bitbucket.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-bitly.md b/docs/examples/project/update-o-auth-2-bitly.md index 6d89fc35..cdf76e50 100644 --- a/docs/examples/project/update-o-auth-2-bitly.md +++ b/docs/examples/project/update-o-auth-2-bitly.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-box.md b/docs/examples/project/update-o-auth-2-box.md index d4f9445a..f9708e72 100644 --- a/docs/examples/project/update-o-auth-2-box.md +++ b/docs/examples/project/update-o-auth-2-box.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-dailymotion.md b/docs/examples/project/update-o-auth-2-dailymotion.md index f5576bbe..33ff0f99 100644 --- a/docs/examples/project/update-o-auth-2-dailymotion.md +++ b/docs/examples/project/update-o-auth-2-dailymotion.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-discord.md b/docs/examples/project/update-o-auth-2-discord.md index 3e63e796..09f5e13f 100644 --- a/docs/examples/project/update-o-auth-2-discord.md +++ b/docs/examples/project/update-o-auth-2-discord.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-disqus.md b/docs/examples/project/update-o-auth-2-disqus.md index 1f600f70..99c6989a 100644 --- a/docs/examples/project/update-o-auth-2-disqus.md +++ b/docs/examples/project/update-o-auth-2-disqus.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-dropbox.md b/docs/examples/project/update-o-auth-2-dropbox.md index 9409e8c8..5e8d3e3d 100644 --- a/docs/examples/project/update-o-auth-2-dropbox.md +++ b/docs/examples/project/update-o-auth-2-dropbox.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-etsy.md b/docs/examples/project/update-o-auth-2-etsy.md index 1ab7e1be..fe909ef5 100644 --- a/docs/examples/project/update-o-auth-2-etsy.md +++ b/docs/examples/project/update-o-auth-2-etsy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-facebook.md b/docs/examples/project/update-o-auth-2-facebook.md index 9a48bf5d..bb61b0f3 100644 --- a/docs/examples/project/update-o-auth-2-facebook.md +++ b/docs/examples/project/update-o-auth-2-facebook.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-figma.md b/docs/examples/project/update-o-auth-2-figma.md index 03e35052..b99b5fda 100644 --- a/docs/examples/project/update-o-auth-2-figma.md +++ b/docs/examples/project/update-o-auth-2-figma.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 028a8494..83f3a875 100644 --- a/docs/examples/project/update-o-auth-2-fusion-auth.md +++ b/docs/examples/project/update-o-auth-2-fusion-auth.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 b2b788b8..0134dda8 100644 --- a/docs/examples/project/update-o-auth-2-git-hub.md +++ b/docs/examples/project/update-o-auth-2-git-hub.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-gitlab.md b/docs/examples/project/update-o-auth-2-gitlab.md index a3650809..83673d6f 100644 --- a/docs/examples/project/update-o-auth-2-gitlab.md +++ b/docs/examples/project/update-o-auth-2-gitlab.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-google.md b/docs/examples/project/update-o-auth-2-google.md index 77e32a7f..9bdbefa8 100644 --- a/docs/examples/project/update-o-auth-2-google.md +++ b/docs/examples/project/update-o-auth-2-google.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-keycloak.md b/docs/examples/project/update-o-auth-2-keycloak.md index 426fbc95..504e0cc7 100644 --- a/docs/examples/project/update-o-auth-2-keycloak.md +++ b/docs/examples/project/update-o-auth-2-keycloak.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-kick.md b/docs/examples/project/update-o-auth-2-kick.md index 8af99443..4c533755 100644 --- a/docs/examples/project/update-o-auth-2-kick.md +++ b/docs/examples/project/update-o-auth-2-kick.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-linkedin.md b/docs/examples/project/update-o-auth-2-linkedin.md index 2b149735..d439d5a9 100644 --- a/docs/examples/project/update-o-auth-2-linkedin.md +++ b/docs/examples/project/update-o-auth-2-linkedin.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-microsoft.md b/docs/examples/project/update-o-auth-2-microsoft.md index bf8a6304..eb54b79b 100644 --- a/docs/examples/project/update-o-auth-2-microsoft.md +++ b/docs/examples/project/update-o-auth-2-microsoft.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-notion.md b/docs/examples/project/update-o-auth-2-notion.md index e0e2a413..1b3d7b89 100644 --- a/docs/examples/project/update-o-auth-2-notion.md +++ b/docs/examples/project/update-o-auth-2-notion.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-oidc.md b/docs/examples/project/update-o-auth-2-oidc.md index 5baf5f37..f9e8fa2d 100644 --- a/docs/examples/project/update-o-auth-2-oidc.md +++ b/docs/examples/project/update-o-auth-2-oidc.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-okta.md b/docs/examples/project/update-o-auth-2-okta.md index ccb282f7..2f04beaf 100644 --- a/docs/examples/project/update-o-auth-2-okta.md +++ b/docs/examples/project/update-o-auth-2-okta.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 2d03deda..362baea8 100644 --- a/docs/examples/project/update-o-auth-2-paypal-sandbox.md +++ b/docs/examples/project/update-o-auth-2-paypal-sandbox.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-paypal.md b/docs/examples/project/update-o-auth-2-paypal.md index 6c57a551..35111390 100644 --- a/docs/examples/project/update-o-auth-2-paypal.md +++ b/docs/examples/project/update-o-auth-2-paypal.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-podio.md b/docs/examples/project/update-o-auth-2-podio.md index e99af128..ab360f9d 100644 --- a/docs/examples/project/update-o-auth-2-podio.md +++ b/docs/examples/project/update-o-auth-2-podio.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-salesforce.md b/docs/examples/project/update-o-auth-2-salesforce.md index e82bbbee..4bc65023 100644 --- a/docs/examples/project/update-o-auth-2-salesforce.md +++ b/docs/examples/project/update-o-auth-2-salesforce.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-slack.md b/docs/examples/project/update-o-auth-2-slack.md index ba8b6135..91ab0862 100644 --- a/docs/examples/project/update-o-auth-2-slack.md +++ b/docs/examples/project/update-o-auth-2-slack.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-spotify.md b/docs/examples/project/update-o-auth-2-spotify.md index b46637a3..6507cbb5 100644 --- a/docs/examples/project/update-o-auth-2-spotify.md +++ b/docs/examples/project/update-o-auth-2-spotify.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-stripe.md b/docs/examples/project/update-o-auth-2-stripe.md index 194a52f0..a7c95f43 100644 --- a/docs/examples/project/update-o-auth-2-stripe.md +++ b/docs/examples/project/update-o-auth-2-stripe.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 1d39ba7d..d26051d1 100644 --- a/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md +++ b/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-tradeshift.md b/docs/examples/project/update-o-auth-2-tradeshift.md index e141b7f3..500a5610 100644 --- a/docs/examples/project/update-o-auth-2-tradeshift.md +++ b/docs/examples/project/update-o-auth-2-tradeshift.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-twitch.md b/docs/examples/project/update-o-auth-2-twitch.md index 90ec7517..4c5d20dc 100644 --- a/docs/examples/project/update-o-auth-2-twitch.md +++ b/docs/examples/project/update-o-auth-2-twitch.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( 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 2c6009e2..0e7ec635 100644 --- a/docs/examples/project/update-o-auth-2-word-press.md +++ b/docs/examples/project/update-o-auth-2-word-press.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-yahoo.md b/docs/examples/project/update-o-auth-2-yahoo.md index dc6d19a7..9a74961e 100644 --- a/docs/examples/project/update-o-auth-2-yahoo.md +++ b/docs/examples/project/update-o-auth-2-yahoo.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-yandex.md b/docs/examples/project/update-o-auth-2-yandex.md index 8f140b65..230e8388 100644 --- a/docs/examples/project/update-o-auth-2-yandex.md +++ b/docs/examples/project/update-o-auth-2-yandex.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-zoho.md b/docs/examples/project/update-o-auth-2-zoho.md index 7fa111c7..30077b18 100644 --- a/docs/examples/project/update-o-auth-2-zoho.md +++ b/docs/examples/project/update-o-auth-2-zoho.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2-zoom.md b/docs/examples/project/update-o-auth-2-zoom.md index 5345d25b..3970c253 100644 --- a/docs/examples/project/update-o-auth-2-zoom.md +++ b/docs/examples/project/update-o-auth-2-zoom.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-o-auth-2x.md b/docs/examples/project/update-o-auth-2x.md index 605d22f4..ea9c0bef 100644 --- a/docs/examples/project/update-o-auth-2x.md +++ b/docs/examples/project/update-o-auth-2x.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-password-dictionary-policy.md b/docs/examples/project/update-password-dictionary-policy.md index 70c7cdfb..41903ee8 100644 --- a/docs/examples/project/update-password-dictionary-policy.md +++ b/docs/examples/project/update-password-dictionary-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-password-history-policy.md b/docs/examples/project/update-password-history-policy.md index 11e7eace..73e1ae23 100644 --- a/docs/examples/project/update-password-history-policy.md +++ b/docs/examples/project/update-password-history-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-password-personal-data-policy.md b/docs/examples/project/update-password-personal-data-policy.md index 8059b224..da77edf9 100644 --- a/docs/examples/project/update-password-personal-data-policy.md +++ b/docs/examples/project/update-password-personal-data-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-protocol.md b/docs/examples/project/update-protocol.md index 6b74ddf4..ecc39dc4 100644 --- a/docs/examples/project/update-protocol.md +++ b/docs/examples/project/update-protocol.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-service.md b/docs/examples/project/update-service.md index 15690654..f67721c3 100644 --- a/docs/examples/project/update-service.md +++ b/docs/examples/project/update-service.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-session-alert-policy.md b/docs/examples/project/update-session-alert-policy.md index cfba3c15..3b860954 100644 --- a/docs/examples/project/update-session-alert-policy.md +++ b/docs/examples/project/update-session-alert-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-session-duration-policy.md b/docs/examples/project/update-session-duration-policy.md index 5cc7c9d3..b738799b 100644 --- a/docs/examples/project/update-session-duration-policy.md +++ b/docs/examples/project/update-session-duration-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-session-invalidation-policy.md b/docs/examples/project/update-session-invalidation-policy.md index 76764188..0aaf5d04 100644 --- a/docs/examples/project/update-session-invalidation-policy.md +++ b/docs/examples/project/update-session-invalidation-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-session-limit-policy.md b/docs/examples/project/update-session-limit-policy.md index ccde7054..87bc546a 100644 --- a/docs/examples/project/update-session-limit-policy.md +++ b/docs/examples/project/update-session-limit-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-smtp.md b/docs/examples/project/update-smtp.md index e3948a65..aa3d203a 100644 --- a/docs/examples/project/update-smtp.md +++ b/docs/examples/project/update-smtp.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-user-limit-policy.md b/docs/examples/project/update-user-limit-policy.md index e146e59b..38ccd7e4 100644 --- a/docs/examples/project/update-user-limit-policy.md +++ b/docs/examples/project/update-user-limit-policy.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-variable.md b/docs/examples/project/update-variable.md index 507f9b76..361302a1 100644 --- a/docs/examples/project/update-variable.md +++ b/docs/examples/project/update-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-web-platform.md b/docs/examples/project/update-web-platform.md index df7a8be2..6a1f3464 100644 --- a/docs/examples/project/update-web-platform.md +++ b/docs/examples/project/update-web-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/project/update-windows-platform.md b/docs/examples/project/update-windows-platform.md index 96b64d98..5cedddff 100644 --- a/docs/examples/project/update-windows-platform.md +++ b/docs/examples/project/update-windows-platform.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/project" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/project" ) client := client.New( diff --git a/docs/examples/proxy/create-api-rule.md b/docs/examples/proxy/create-api-rule.md index 632895c0..6b917b32 100644 --- a/docs/examples/proxy/create-api-rule.md +++ b/docs/examples/proxy/create-api-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/create-function-rule.md b/docs/examples/proxy/create-function-rule.md index 8e1102db..d5cce671 100644 --- a/docs/examples/proxy/create-function-rule.md +++ b/docs/examples/proxy/create-function-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/create-redirect-rule.md b/docs/examples/proxy/create-redirect-rule.md index 5e5b11fe..3b682ecc 100644 --- a/docs/examples/proxy/create-redirect-rule.md +++ b/docs/examples/proxy/create-redirect-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/create-site-rule.md b/docs/examples/proxy/create-site-rule.md index 9894b37c..dd7f0d48 100644 --- a/docs/examples/proxy/create-site-rule.md +++ b/docs/examples/proxy/create-site-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/delete-rule.md b/docs/examples/proxy/delete-rule.md index 3423da0c..6b22c350 100644 --- a/docs/examples/proxy/delete-rule.md +++ b/docs/examples/proxy/delete-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/get-rule.md b/docs/examples/proxy/get-rule.md index 45d93238..dc0049af 100644 --- a/docs/examples/proxy/get-rule.md +++ b/docs/examples/proxy/get-rule.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/list-rules.md b/docs/examples/proxy/list-rules.md index d10cac50..c3f75eb0 100644 --- a/docs/examples/proxy/list-rules.md +++ b/docs/examples/proxy/list-rules.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/proxy/update-rule-status.md b/docs/examples/proxy/update-rule-status.md index 21546810..a93bd9ab 100644 --- a/docs/examples/proxy/update-rule-status.md +++ b/docs/examples/proxy/update-rule-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/proxy" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/proxy" ) client := client.New( diff --git a/docs/examples/sites/create-deployment.md b/docs/examples/sites/create-deployment.md index 6d1cc83e..71d45125 100644 --- a/docs/examples/sites/create-deployment.md +++ b/docs/examples/sites/create-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/create-duplicate-deployment.md b/docs/examples/sites/create-duplicate-deployment.md index b159facd..c7da9768 100644 --- a/docs/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/sites/create-duplicate-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/create-template-deployment.md b/docs/examples/sites/create-template-deployment.md index e067ea5a..fdc6094f 100644 --- a/docs/examples/sites/create-template-deployment.md +++ b/docs/examples/sites/create-template-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/create-variable.md b/docs/examples/sites/create-variable.md index 63824637..81ded728 100644 --- a/docs/examples/sites/create-variable.md +++ b/docs/examples/sites/create-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/create-vcs-deployment.md b/docs/examples/sites/create-vcs-deployment.md index c7660829..6d898ee8 100644 --- a/docs/examples/sites/create-vcs-deployment.md +++ b/docs/examples/sites/create-vcs-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/create.md b/docs/examples/sites/create.md index 1160f0dc..fdc2ae08 100644 --- a/docs/examples/sites/create.md +++ b/docs/examples/sites/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( @@ -34,6 +34,8 @@ response, error := service.Create( sites.WithCreateProviderBranch(""), sites.WithCreateProviderSilentMode(false), sites.WithCreateProviderRootDirectory(""), + sites.WithCreateProviderBranches([]interface{}{}), + sites.WithCreateProviderPaths([]interface{}{}), sites.WithCreateBuildSpecification(""), sites.WithCreateRuntimeSpecification(""), sites.WithCreateDeploymentRetention(0), diff --git a/docs/examples/sites/delete-deployment.md b/docs/examples/sites/delete-deployment.md index 053be7f1..39b1adef 100644 --- a/docs/examples/sites/delete-deployment.md +++ b/docs/examples/sites/delete-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/delete-log.md b/docs/examples/sites/delete-log.md index 748dde4a..5349e3f0 100644 --- a/docs/examples/sites/delete-log.md +++ b/docs/examples/sites/delete-log.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/delete-variable.md b/docs/examples/sites/delete-variable.md index 84588a35..c5266178 100644 --- a/docs/examples/sites/delete-variable.md +++ b/docs/examples/sites/delete-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/delete.md b/docs/examples/sites/delete.md index 33dc9ad6..3ea10378 100644 --- a/docs/examples/sites/delete.md +++ b/docs/examples/sites/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/get-deployment-download.md b/docs/examples/sites/get-deployment-download.md index d6d66a86..bd6d27c7 100644 --- a/docs/examples/sites/get-deployment-download.md +++ b/docs/examples/sites/get-deployment-download.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/get-deployment.md b/docs/examples/sites/get-deployment.md index eebff461..bebeb36c 100644 --- a/docs/examples/sites/get-deployment.md +++ b/docs/examples/sites/get-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/get-log.md b/docs/examples/sites/get-log.md index 6fe5eb82..4d9ab19a 100644 --- a/docs/examples/sites/get-log.md +++ b/docs/examples/sites/get-log.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/get-variable.md b/docs/examples/sites/get-variable.md index c396f358..966d9a93 100644 --- a/docs/examples/sites/get-variable.md +++ b/docs/examples/sites/get-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/get.md b/docs/examples/sites/get.md index ad107acf..838654ab 100644 --- a/docs/examples/sites/get.md +++ b/docs/examples/sites/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list-deployments.md b/docs/examples/sites/list-deployments.md index 6379f059..e95dad13 100644 --- a/docs/examples/sites/list-deployments.md +++ b/docs/examples/sites/list-deployments.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list-frameworks.md b/docs/examples/sites/list-frameworks.md index 01e5a839..dbd77a24 100644 --- a/docs/examples/sites/list-frameworks.md +++ b/docs/examples/sites/list-frameworks.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list-logs.md b/docs/examples/sites/list-logs.md index e6cacb6a..8e6d1930 100644 --- a/docs/examples/sites/list-logs.md +++ b/docs/examples/sites/list-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list-specifications.md b/docs/examples/sites/list-specifications.md index 31ecc544..8168c2cd 100644 --- a/docs/examples/sites/list-specifications.md +++ b/docs/examples/sites/list-specifications.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list-variables.md b/docs/examples/sites/list-variables.md index 658bc982..4fb76993 100644 --- a/docs/examples/sites/list-variables.md +++ b/docs/examples/sites/list-variables.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/list.md b/docs/examples/sites/list.md index ab859cb8..ff1ae657 100644 --- a/docs/examples/sites/list.md +++ b/docs/examples/sites/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/update-deployment-status.md b/docs/examples/sites/update-deployment-status.md index 33ac8b76..cf5f311f 100644 --- a/docs/examples/sites/update-deployment-status.md +++ b/docs/examples/sites/update-deployment-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/update-site-deployment.md b/docs/examples/sites/update-site-deployment.md index eb245326..3cc2929f 100644 --- a/docs/examples/sites/update-site-deployment.md +++ b/docs/examples/sites/update-site-deployment.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/update-variable.md b/docs/examples/sites/update-variable.md index 64c41320..b7d388b2 100644 --- a/docs/examples/sites/update-variable.md +++ b/docs/examples/sites/update-variable.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( diff --git a/docs/examples/sites/update.md b/docs/examples/sites/update.md index 6d387277..ea24771f 100644 --- a/docs/examples/sites/update.md +++ b/docs/examples/sites/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/sites" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/sites" ) client := client.New( @@ -34,6 +34,8 @@ response, error := service.Update( sites.WithUpdateProviderBranch(""), sites.WithUpdateProviderSilentMode(false), sites.WithUpdateProviderRootDirectory(""), + sites.WithUpdateProviderBranches([]interface{}{}), + sites.WithUpdateProviderPaths([]interface{}{}), sites.WithUpdateBuildSpecification(""), sites.WithUpdateRuntimeSpecification(""), sites.WithUpdateDeploymentRetention(0), diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index f1f84624..d9e1bd1e 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index 275825e0..3cd3c79a 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md index 8347ac28..72b03216 100644 --- a/docs/examples/storage/delete-bucket.md +++ b/docs/examples/storage/delete-bucket.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index 4fc1c441..6c7f79b4 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md index 2e909d58..642bb3a5 100644 --- a/docs/examples/storage/get-bucket.md +++ b/docs/examples/storage/get-bucket.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index 928e9175..164b6fa2 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index f700549b..d7204873 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index 489839fe..e35635b4 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index f7000861..5692d44f 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md index 1d460516..c113e9e5 100644 --- a/docs/examples/storage/list-buckets.md +++ b/docs/examples/storage/list-buckets.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index 963e6c38..12adb72d 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index a8592efa..b29f2a83 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index 45bb46f4..e342d0e6 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/storage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/storage" ) client := client.New( diff --git a/docs/examples/tablesdb/create-big-int-column.md b/docs/examples/tablesdb/create-big-int-column.md index b3212a65..d764ee7a 100644 --- a/docs/examples/tablesdb/create-big-int-column.md +++ b/docs/examples/tablesdb/create-big-int-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-boolean-column.md b/docs/examples/tablesdb/create-boolean-column.md index 59a31c8f..7b349c64 100644 --- a/docs/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/tablesdb/create-boolean-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-datetime-column.md b/docs/examples/tablesdb/create-datetime-column.md index 6c7c370f..0883250b 100644 --- a/docs/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/tablesdb/create-datetime-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-email-column.md b/docs/examples/tablesdb/create-email-column.md index 8f1a5c36..0f138a65 100644 --- a/docs/examples/tablesdb/create-email-column.md +++ b/docs/examples/tablesdb/create-email-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-enum-column.md b/docs/examples/tablesdb/create-enum-column.md index 0639681b..db2179be 100644 --- a/docs/examples/tablesdb/create-enum-column.md +++ b/docs/examples/tablesdb/create-enum-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-float-column.md b/docs/examples/tablesdb/create-float-column.md index a4a76cd5..89b64c07 100644 --- a/docs/examples/tablesdb/create-float-column.md +++ b/docs/examples/tablesdb/create-float-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-index.md b/docs/examples/tablesdb/create-index.md index 19b8ca67..8841da70 100644 --- a/docs/examples/tablesdb/create-index.md +++ b/docs/examples/tablesdb/create-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-integer-column.md b/docs/examples/tablesdb/create-integer-column.md index 6fa97899..9a17c7df 100644 --- a/docs/examples/tablesdb/create-integer-column.md +++ b/docs/examples/tablesdb/create-integer-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-ip-column.md b/docs/examples/tablesdb/create-ip-column.md index d985d74a..e1c8e448 100644 --- a/docs/examples/tablesdb/create-ip-column.md +++ b/docs/examples/tablesdb/create-ip-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-line-column.md b/docs/examples/tablesdb/create-line-column.md index 4cb475d3..bde6dee0 100644 --- a/docs/examples/tablesdb/create-line-column.md +++ b/docs/examples/tablesdb/create-line-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-longtext-column.md b/docs/examples/tablesdb/create-longtext-column.md index 0bda2405..a4cf1c42 100644 --- a/docs/examples/tablesdb/create-longtext-column.md +++ b/docs/examples/tablesdb/create-longtext-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-mediumtext-column.md b/docs/examples/tablesdb/create-mediumtext-column.md index a3121d32..c528fc2c 100644 --- a/docs/examples/tablesdb/create-mediumtext-column.md +++ b/docs/examples/tablesdb/create-mediumtext-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-operations.md b/docs/examples/tablesdb/create-operations.md index 01c07c29..61893af9 100644 --- a/docs/examples/tablesdb/create-operations.md +++ b/docs/examples/tablesdb/create-operations.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-point-column.md b/docs/examples/tablesdb/create-point-column.md index 5dfaa725..ad1a18dc 100644 --- a/docs/examples/tablesdb/create-point-column.md +++ b/docs/examples/tablesdb/create-point-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-polygon-column.md b/docs/examples/tablesdb/create-polygon-column.md index a1c78408..259c5690 100644 --- a/docs/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/tablesdb/create-polygon-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-relationship-column.md b/docs/examples/tablesdb/create-relationship-column.md index 98074628..fa33f0a8 100644 --- a/docs/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/tablesdb/create-relationship-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-row.md b/docs/examples/tablesdb/create-row.md index 85cb5a72..753e99d7 100644 --- a/docs/examples/tablesdb/create-row.md +++ b/docs/examples/tablesdb/create-row.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-rows.md b/docs/examples/tablesdb/create-rows.md index e7bc6626..d771a923 100644 --- a/docs/examples/tablesdb/create-rows.md +++ b/docs/examples/tablesdb/create-rows.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-string-column.md b/docs/examples/tablesdb/create-string-column.md index 52b5c727..efa4e2cf 100644 --- a/docs/examples/tablesdb/create-string-column.md +++ b/docs/examples/tablesdb/create-string-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-table.md b/docs/examples/tablesdb/create-table.md index bb52de8c..ed22c608 100644 --- a/docs/examples/tablesdb/create-table.md +++ b/docs/examples/tablesdb/create-table.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-text-column.md b/docs/examples/tablesdb/create-text-column.md index 6a1beb8f..8f6a238f 100644 --- a/docs/examples/tablesdb/create-text-column.md +++ b/docs/examples/tablesdb/create-text-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-transaction.md b/docs/examples/tablesdb/create-transaction.md index 5ccea957..e320713c 100644 --- a/docs/examples/tablesdb/create-transaction.md +++ b/docs/examples/tablesdb/create-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-url-column.md b/docs/examples/tablesdb/create-url-column.md index af68adc4..039ec344 100644 --- a/docs/examples/tablesdb/create-url-column.md +++ b/docs/examples/tablesdb/create-url-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create-varchar-column.md b/docs/examples/tablesdb/create-varchar-column.md index d0a37089..06b54706 100644 --- a/docs/examples/tablesdb/create-varchar-column.md +++ b/docs/examples/tablesdb/create-varchar-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/create.md b/docs/examples/tablesdb/create.md index ffe3632b..c44f118a 100644 --- a/docs/examples/tablesdb/create.md +++ b/docs/examples/tablesdb/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/decrement-row-column.md b/docs/examples/tablesdb/decrement-row-column.md index e9dbd21f..da7dab46 100644 --- a/docs/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/tablesdb/decrement-row-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-column.md b/docs/examples/tablesdb/delete-column.md index 131ab961..51c93622 100644 --- a/docs/examples/tablesdb/delete-column.md +++ b/docs/examples/tablesdb/delete-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-index.md b/docs/examples/tablesdb/delete-index.md index b17785de..050950b3 100644 --- a/docs/examples/tablesdb/delete-index.md +++ b/docs/examples/tablesdb/delete-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-row.md b/docs/examples/tablesdb/delete-row.md index 6a365c5a..39c15f5b 100644 --- a/docs/examples/tablesdb/delete-row.md +++ b/docs/examples/tablesdb/delete-row.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-rows.md b/docs/examples/tablesdb/delete-rows.md index e282e991..aa8c65a1 100644 --- a/docs/examples/tablesdb/delete-rows.md +++ b/docs/examples/tablesdb/delete-rows.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-table.md b/docs/examples/tablesdb/delete-table.md index af8b11e2..74f5f716 100644 --- a/docs/examples/tablesdb/delete-table.md +++ b/docs/examples/tablesdb/delete-table.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete-transaction.md b/docs/examples/tablesdb/delete-transaction.md index 82eb7b59..14c51402 100644 --- a/docs/examples/tablesdb/delete-transaction.md +++ b/docs/examples/tablesdb/delete-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/delete.md b/docs/examples/tablesdb/delete.md index cdb8d003..638759c5 100644 --- a/docs/examples/tablesdb/delete.md +++ b/docs/examples/tablesdb/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get-column.md b/docs/examples/tablesdb/get-column.md index 5c611d47..219b9717 100644 --- a/docs/examples/tablesdb/get-column.md +++ b/docs/examples/tablesdb/get-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get-index.md b/docs/examples/tablesdb/get-index.md index dc5472e7..f65947ff 100644 --- a/docs/examples/tablesdb/get-index.md +++ b/docs/examples/tablesdb/get-index.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get-row.md b/docs/examples/tablesdb/get-row.md index 22794406..acd16691 100644 --- a/docs/examples/tablesdb/get-row.md +++ b/docs/examples/tablesdb/get-row.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get-table.md b/docs/examples/tablesdb/get-table.md index 4d4a0936..7d34e8bb 100644 --- a/docs/examples/tablesdb/get-table.md +++ b/docs/examples/tablesdb/get-table.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get-transaction.md b/docs/examples/tablesdb/get-transaction.md index 545adecc..620b21d9 100644 --- a/docs/examples/tablesdb/get-transaction.md +++ b/docs/examples/tablesdb/get-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/get.md b/docs/examples/tablesdb/get.md index d8b5b1d2..4df23f72 100644 --- a/docs/examples/tablesdb/get.md +++ b/docs/examples/tablesdb/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/increment-row-column.md b/docs/examples/tablesdb/increment-row-column.md index 5281dd10..39a443b2 100644 --- a/docs/examples/tablesdb/increment-row-column.md +++ b/docs/examples/tablesdb/increment-row-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list-columns.md b/docs/examples/tablesdb/list-columns.md index b33a50a7..ae35052d 100644 --- a/docs/examples/tablesdb/list-columns.md +++ b/docs/examples/tablesdb/list-columns.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list-indexes.md b/docs/examples/tablesdb/list-indexes.md index ec6a03b6..2cbe8be8 100644 --- a/docs/examples/tablesdb/list-indexes.md +++ b/docs/examples/tablesdb/list-indexes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list-rows.md b/docs/examples/tablesdb/list-rows.md index 5f6e1631..fa953d7d 100644 --- a/docs/examples/tablesdb/list-rows.md +++ b/docs/examples/tablesdb/list-rows.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list-tables.md b/docs/examples/tablesdb/list-tables.md index a580af26..8f1e0dd0 100644 --- a/docs/examples/tablesdb/list-tables.md +++ b/docs/examples/tablesdb/list-tables.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list-transactions.md b/docs/examples/tablesdb/list-transactions.md index 6212155d..dced89ff 100644 --- a/docs/examples/tablesdb/list-transactions.md +++ b/docs/examples/tablesdb/list-transactions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/list.md b/docs/examples/tablesdb/list.md index 6fbd3abd..75e6880f 100644 --- a/docs/examples/tablesdb/list.md +++ b/docs/examples/tablesdb/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-big-int-column.md b/docs/examples/tablesdb/update-big-int-column.md index 85f0c166..f96c3ceb 100644 --- a/docs/examples/tablesdb/update-big-int-column.md +++ b/docs/examples/tablesdb/update-big-int-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-boolean-column.md b/docs/examples/tablesdb/update-boolean-column.md index ec82db5c..2d9f712e 100644 --- a/docs/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/tablesdb/update-boolean-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-datetime-column.md b/docs/examples/tablesdb/update-datetime-column.md index b9300f5a..49547775 100644 --- a/docs/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/tablesdb/update-datetime-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-email-column.md b/docs/examples/tablesdb/update-email-column.md index 46db0f90..caadab45 100644 --- a/docs/examples/tablesdb/update-email-column.md +++ b/docs/examples/tablesdb/update-email-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-enum-column.md b/docs/examples/tablesdb/update-enum-column.md index 5563caf1..8a54362b 100644 --- a/docs/examples/tablesdb/update-enum-column.md +++ b/docs/examples/tablesdb/update-enum-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-float-column.md b/docs/examples/tablesdb/update-float-column.md index a304f1b6..10bd20b4 100644 --- a/docs/examples/tablesdb/update-float-column.md +++ b/docs/examples/tablesdb/update-float-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-integer-column.md b/docs/examples/tablesdb/update-integer-column.md index 5f016d3f..ab19734c 100644 --- a/docs/examples/tablesdb/update-integer-column.md +++ b/docs/examples/tablesdb/update-integer-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-ip-column.md b/docs/examples/tablesdb/update-ip-column.md index f67a968c..b4ecdd87 100644 --- a/docs/examples/tablesdb/update-ip-column.md +++ b/docs/examples/tablesdb/update-ip-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-line-column.md b/docs/examples/tablesdb/update-line-column.md index 58ef19e3..bccb8602 100644 --- a/docs/examples/tablesdb/update-line-column.md +++ b/docs/examples/tablesdb/update-line-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-longtext-column.md b/docs/examples/tablesdb/update-longtext-column.md index 325275b7..01b1bf93 100644 --- a/docs/examples/tablesdb/update-longtext-column.md +++ b/docs/examples/tablesdb/update-longtext-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-mediumtext-column.md b/docs/examples/tablesdb/update-mediumtext-column.md index 704828d0..6e8f4574 100644 --- a/docs/examples/tablesdb/update-mediumtext-column.md +++ b/docs/examples/tablesdb/update-mediumtext-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-point-column.md b/docs/examples/tablesdb/update-point-column.md index dde212bf..ad844af4 100644 --- a/docs/examples/tablesdb/update-point-column.md +++ b/docs/examples/tablesdb/update-point-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-polygon-column.md b/docs/examples/tablesdb/update-polygon-column.md index b49520ac..a8e5bcfb 100644 --- a/docs/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/tablesdb/update-polygon-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-relationship-column.md b/docs/examples/tablesdb/update-relationship-column.md index 1bc8ee26..226e6c83 100644 --- a/docs/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/tablesdb/update-relationship-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-row.md b/docs/examples/tablesdb/update-row.md index 30a2d644..db27fcbf 100644 --- a/docs/examples/tablesdb/update-row.md +++ b/docs/examples/tablesdb/update-row.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-rows.md b/docs/examples/tablesdb/update-rows.md index d0bf880d..7cdba14a 100644 --- a/docs/examples/tablesdb/update-rows.md +++ b/docs/examples/tablesdb/update-rows.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-string-column.md b/docs/examples/tablesdb/update-string-column.md index 8a5ab0e8..1293b40a 100644 --- a/docs/examples/tablesdb/update-string-column.md +++ b/docs/examples/tablesdb/update-string-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-table.md b/docs/examples/tablesdb/update-table.md index dff249d0..4ed06f51 100644 --- a/docs/examples/tablesdb/update-table.md +++ b/docs/examples/tablesdb/update-table.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-text-column.md b/docs/examples/tablesdb/update-text-column.md index 2b21c83a..fca652ec 100644 --- a/docs/examples/tablesdb/update-text-column.md +++ b/docs/examples/tablesdb/update-text-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-transaction.md b/docs/examples/tablesdb/update-transaction.md index ab86872b..3d815df3 100644 --- a/docs/examples/tablesdb/update-transaction.md +++ b/docs/examples/tablesdb/update-transaction.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-url-column.md b/docs/examples/tablesdb/update-url-column.md index fec3ebcf..587c72a8 100644 --- a/docs/examples/tablesdb/update-url-column.md +++ b/docs/examples/tablesdb/update-url-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update-varchar-column.md b/docs/examples/tablesdb/update-varchar-column.md index 58cd03d6..5ef89c2a 100644 --- a/docs/examples/tablesdb/update-varchar-column.md +++ b/docs/examples/tablesdb/update-varchar-column.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/update.md b/docs/examples/tablesdb/update.md index 31f077c8..d6b36d9c 100644 --- a/docs/examples/tablesdb/update.md +++ b/docs/examples/tablesdb/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/upsert-row.md b/docs/examples/tablesdb/upsert-row.md index 12362a10..27e278d0 100644 --- a/docs/examples/tablesdb/upsert-row.md +++ b/docs/examples/tablesdb/upsert-row.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/tablesdb/upsert-rows.md b/docs/examples/tablesdb/upsert-rows.md index 18e1f149..52cb7d4b 100644 --- a/docs/examples/tablesdb/upsert-rows.md +++ b/docs/examples/tablesdb/upsert-rows.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tablesdb" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tablesdb" ) client := client.New( diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 943305ee..bdce92bc 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index a461e14c..adbbd6c3 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index a3f0fd7f..33fd607e 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index 2b3cdc69..bd7e7cef 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md index ab1b9b9a..0e58ec26 100644 --- a/docs/examples/teams/get-membership.md +++ b/docs/examples/teams/get-membership.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md index bdfc49d1..07a694fe 100644 --- a/docs/examples/teams/get-prefs.md +++ b/docs/examples/teams/get-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 64727982..aad11cc0 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md index 443b8a99..98f55dfe 100644 --- a/docs/examples/teams/list-memberships.md +++ b/docs/examples/teams/list-memberships.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index 9ba7fdea..04738396 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index 91d47cbe..d39e54f2 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/update-membership.md b/docs/examples/teams/update-membership.md index 9769fff2..7f235317 100644 --- a/docs/examples/teams/update-membership.md +++ b/docs/examples/teams/update-membership.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md index 11d37ecc..d010097f 100644 --- a/docs/examples/teams/update-name.md +++ b/docs/examples/teams/update-name.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md index 694acd95..da3d47a2 100644 --- a/docs/examples/teams/update-prefs.md +++ b/docs/examples/teams/update-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/teams" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/teams" ) client := client.New( diff --git a/docs/examples/tokens/create-file-token.md b/docs/examples/tokens/create-file-token.md index 2b4baa1a..7df82dd7 100644 --- a/docs/examples/tokens/create-file-token.md +++ b/docs/examples/tokens/create-file-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tokens" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tokens" ) client := client.New( diff --git a/docs/examples/tokens/delete.md b/docs/examples/tokens/delete.md index 981412d5..363f22a0 100644 --- a/docs/examples/tokens/delete.md +++ b/docs/examples/tokens/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tokens" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tokens" ) client := client.New( diff --git a/docs/examples/tokens/get.md b/docs/examples/tokens/get.md index bca1fce4..245099a4 100644 --- a/docs/examples/tokens/get.md +++ b/docs/examples/tokens/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tokens" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tokens" ) client := client.New( diff --git a/docs/examples/tokens/list.md b/docs/examples/tokens/list.md index 625251f1..7f002f1c 100644 --- a/docs/examples/tokens/list.md +++ b/docs/examples/tokens/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tokens" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tokens" ) client := client.New( diff --git a/docs/examples/tokens/update.md b/docs/examples/tokens/update.md index d32aec1b..5614aaad 100644 --- a/docs/examples/tokens/update.md +++ b/docs/examples/tokens/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/tokens" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/tokens" ) client := client.New( diff --git a/docs/examples/usage/list-events.md b/docs/examples/usage/list-events.md index 31a95a53..c366ad34 100644 --- a/docs/examples/usage/list-events.md +++ b/docs/examples/usage/list-events.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/usage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/usage" ) client := client.New( diff --git a/docs/examples/usage/list-gauges.md b/docs/examples/usage/list-gauges.md index ddfc6298..1b396855 100644 --- a/docs/examples/usage/list-gauges.md +++ b/docs/examples/usage/list-gauges.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/usage" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/usage" ) client := client.New( diff --git a/docs/examples/users/create-argon-2-user.md b/docs/examples/users/create-argon-2-user.md index 07cfb6b3..b6b54872 100644 --- a/docs/examples/users/create-argon-2-user.md +++ b/docs/examples/users/create-argon-2-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md index 108224cd..21824609 100644 --- a/docs/examples/users/create-bcrypt-user.md +++ b/docs/examples/users/create-bcrypt-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-jwt.md b/docs/examples/users/create-jwt.md index d8909ebe..4b702bdc 100644 --- a/docs/examples/users/create-jwt.md +++ b/docs/examples/users/create-jwt.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-md-5-user.md b/docs/examples/users/create-md-5-user.md index 33fdbb6f..b0bd748c 100644 --- a/docs/examples/users/create-md-5-user.md +++ b/docs/examples/users/create-md-5-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-mfa-recovery-codes.md b/docs/examples/users/create-mfa-recovery-codes.md index 0a259ae1..47090f89 100644 --- a/docs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/users/create-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-ph-pass-user.md b/docs/examples/users/create-ph-pass-user.md index a5e8a412..58cf9a3c 100644 --- a/docs/examples/users/create-ph-pass-user.md +++ b/docs/examples/users/create-ph-pass-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md index 6afa4f8e..227ce879 100644 --- a/docs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/users/create-scrypt-modified-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md index 60c07a15..6db68696 100644 --- a/docs/examples/users/create-scrypt-user.md +++ b/docs/examples/users/create-scrypt-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-session.md b/docs/examples/users/create-session.md index 7b807863..20780595 100644 --- a/docs/examples/users/create-session.md +++ b/docs/examples/users/create-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-sha-user.md b/docs/examples/users/create-sha-user.md index d8df8338..8ee60369 100644 --- a/docs/examples/users/create-sha-user.md +++ b/docs/examples/users/create-sha-user.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-target.md b/docs/examples/users/create-target.md index 14926a16..1dc3e2bc 100644 --- a/docs/examples/users/create-target.md +++ b/docs/examples/users/create-target.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create-token.md b/docs/examples/users/create-token.md index 6e5bdd3d..9f404bc7 100644 --- a/docs/examples/users/create-token.md +++ b/docs/examples/users/create-token.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index cd65e5d8..2eba4280 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete-identity.md b/docs/examples/users/delete-identity.md index d5091266..691433d3 100644 --- a/docs/examples/users/delete-identity.md +++ b/docs/examples/users/delete-identity.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete-mfa-authenticator.md b/docs/examples/users/delete-mfa-authenticator.md index da7213db..da4cfd86 100644 --- a/docs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/users/delete-mfa-authenticator.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index 2f9b23be..388c9816 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 7ff72df4..e2c473db 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete-target.md b/docs/examples/users/delete-target.md index 55ab0813..5deef722 100644 --- a/docs/examples/users/delete-target.md +++ b/docs/examples/users/delete-target.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index 247266a0..c2ee373d 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/get-mfa-recovery-codes.md b/docs/examples/users/get-mfa-recovery-codes.md index e017e452..5ee2645f 100644 --- a/docs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/users/get-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index e6367519..b0836ee8 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/get-target.md b/docs/examples/users/get-target.md index 9a90efdc..a364d0a3 100644 --- a/docs/examples/users/get-target.md +++ b/docs/examples/users/get-target.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 9ed504ee..8a9db7e4 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-identities.md b/docs/examples/users/list-identities.md index 9a3be96a..7fa6bca9 100644 --- a/docs/examples/users/list-identities.md +++ b/docs/examples/users/list-identities.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md index 004a9c2f..4755c474 100644 --- a/docs/examples/users/list-logs.md +++ b/docs/examples/users/list-logs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md index 5fce1161..daa4c734 100644 --- a/docs/examples/users/list-memberships.md +++ b/docs/examples/users/list-memberships.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-mfa-factors.md b/docs/examples/users/list-mfa-factors.md index 9fe69902..bd6e8bbd 100644 --- a/docs/examples/users/list-mfa-factors.md +++ b/docs/examples/users/list-mfa-factors.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md index 7dc577ff..cd4287ff 100644 --- a/docs/examples/users/list-sessions.md +++ b/docs/examples/users/list-sessions.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list-targets.md b/docs/examples/users/list-targets.md index 9cd72f40..b7ef2871 100644 --- a/docs/examples/users/list-targets.md +++ b/docs/examples/users/list-targets.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index 3aee17e3..3d14f6ff 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md index 93daf520..3aee3c73 100644 --- a/docs/examples/users/update-email-verification.md +++ b/docs/examples/users/update-email-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md index 1e5faf60..28acdfd8 100644 --- a/docs/examples/users/update-email.md +++ b/docs/examples/users/update-email.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-impersonator.md b/docs/examples/users/update-impersonator.md index 799c1c44..80597b34 100644 --- a/docs/examples/users/update-impersonator.md +++ b/docs/examples/users/update-impersonator.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-labels.md b/docs/examples/users/update-labels.md index 7152c40f..0f6f55c9 100644 --- a/docs/examples/users/update-labels.md +++ b/docs/examples/users/update-labels.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-mfa-recovery-codes.md b/docs/examples/users/update-mfa-recovery-codes.md index 531e88be..008d8ee2 100644 --- a/docs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/users/update-mfa-recovery-codes.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-mfa.md b/docs/examples/users/update-mfa.md index ea1653f0..4016861d 100644 --- a/docs/examples/users/update-mfa.md +++ b/docs/examples/users/update-mfa.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md index 79d069b1..e6bb9f5a 100644 --- a/docs/examples/users/update-name.md +++ b/docs/examples/users/update-name.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md index 4f8f3226..60bd42ee 100644 --- a/docs/examples/users/update-password.md +++ b/docs/examples/users/update-password.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md index 7dee18dc..2c776f09 100644 --- a/docs/examples/users/update-phone-verification.md +++ b/docs/examples/users/update-phone-verification.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md index 13ff326d..dfa8e31e 100644 --- a/docs/examples/users/update-phone.md +++ b/docs/examples/users/update-phone.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index 28f9d48f..a79a8f36 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index 3a8c0983..1716adb1 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/users/update-target.md b/docs/examples/users/update-target.md index 752f5820..fff4d15b 100644 --- a/docs/examples/users/update-target.md +++ b/docs/examples/users/update-target.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/users" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/users" ) client := client.New( diff --git a/docs/examples/webhooks/create.md b/docs/examples/webhooks/create.md index afa8e495..8186e1b4 100644 --- a/docs/examples/webhooks/create.md +++ b/docs/examples/webhooks/create.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/docs/examples/webhooks/delete.md b/docs/examples/webhooks/delete.md index c47a589d..adfcab6d 100644 --- a/docs/examples/webhooks/delete.md +++ b/docs/examples/webhooks/delete.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/docs/examples/webhooks/get.md b/docs/examples/webhooks/get.md index 88771987..cb0fe72a 100644 --- a/docs/examples/webhooks/get.md +++ b/docs/examples/webhooks/get.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/docs/examples/webhooks/list.md b/docs/examples/webhooks/list.md index 69343067..0ba537cc 100644 --- a/docs/examples/webhooks/list.md +++ b/docs/examples/webhooks/list.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/docs/examples/webhooks/update-secret.md b/docs/examples/webhooks/update-secret.md index 5f63c263..10140ff6 100644 --- a/docs/examples/webhooks/update-secret.md +++ b/docs/examples/webhooks/update-secret.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/docs/examples/webhooks/update.md b/docs/examples/webhooks/update.md index 7b0b2509..2850b853 100644 --- a/docs/examples/webhooks/update.md +++ b/docs/examples/webhooks/update.md @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/webhooks" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/webhooks" ) client := client.New( diff --git a/functions/functions.go b/functions/functions.go index 3d7708db..c7299a05 100644 --- a/functions/functions.go +++ b/functions/functions.go @@ -3,9 +3,9 @@ package functions import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" - "github.com/appwrite/sdk-for-go/v4/file" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v5/file" "net/url" "fmt" "strings" @@ -116,6 +116,8 @@ type CreateOptions struct { ProviderBranch string ProviderSilentMode bool ProviderRootDirectory string + ProviderBranches []string + ProviderPaths []string BuildSpecification string RuntimeSpecification string DeploymentRetention int @@ -137,6 +139,8 @@ func (options CreateOptions) New() *CreateOptions { "ProviderBranch": false, "ProviderSilentMode": false, "ProviderRootDirectory": false, + "ProviderBranches": false, + "ProviderPaths": false, "BuildSpecification": false, "RuntimeSpecification": false, "DeploymentRetention": false, @@ -228,6 +232,18 @@ func (srv *Functions) WithCreateProviderRootDirectory(v string) CreateOption { o.enabledSetters["ProviderRootDirectory"] = true } } +func (srv *Functions) WithCreateProviderBranches(v []string) CreateOption { + return func(o *CreateOptions) { + o.ProviderBranches = v + o.enabledSetters["ProviderBranches"] = true + } +} +func (srv *Functions) WithCreateProviderPaths(v []string) CreateOption { + return func(o *CreateOptions) { + o.ProviderPaths = v + o.enabledSetters["ProviderPaths"] = true + } +} func (srv *Functions) WithCreateBuildSpecification(v string) CreateOption { return func(o *CreateOptions) { o.BuildSpecification = v @@ -303,6 +319,12 @@ func (srv *Functions) Create(FunctionId string, Name string, Runtime string, opt if options.enabledSetters["ProviderRootDirectory"] { params["providerRootDirectory"] = options.ProviderRootDirectory } + if options.enabledSetters["ProviderBranches"] { + params["providerBranches"] = options.ProviderBranches + } + if options.enabledSetters["ProviderPaths"] { + params["providerPaths"] = options.ProviderPaths + } if options.enabledSetters["BuildSpecification"] { params["buildSpecification"] = options.BuildSpecification } @@ -455,6 +477,8 @@ type UpdateOptions struct { ProviderBranch string ProviderSilentMode bool ProviderRootDirectory string + ProviderBranches []string + ProviderPaths []string BuildSpecification string RuntimeSpecification string DeploymentRetention int @@ -477,6 +501,8 @@ func (options UpdateOptions) New() *UpdateOptions { "ProviderBranch": false, "ProviderSilentMode": false, "ProviderRootDirectory": false, + "ProviderBranches": false, + "ProviderPaths": false, "BuildSpecification": false, "RuntimeSpecification": false, "DeploymentRetention": false, @@ -574,6 +600,18 @@ func (srv *Functions) WithUpdateProviderRootDirectory(v string) UpdateOption { o.enabledSetters["ProviderRootDirectory"] = true } } +func (srv *Functions) WithUpdateProviderBranches(v []string) UpdateOption { + return func(o *UpdateOptions) { + o.ProviderBranches = v + o.enabledSetters["ProviderBranches"] = true + } +} +func (srv *Functions) WithUpdateProviderPaths(v []string) UpdateOption { + return func(o *UpdateOptions) { + o.ProviderPaths = v + o.enabledSetters["ProviderPaths"] = true + } +} func (srv *Functions) WithUpdateBuildSpecification(v string) UpdateOption { return func(o *UpdateOptions) { o.BuildSpecification = v @@ -649,6 +687,12 @@ func (srv *Functions) Update(FunctionId string, Name string, optionalSetters ... if options.enabledSetters["ProviderRootDirectory"] { params["providerRootDirectory"] = options.ProviderRootDirectory } + if options.enabledSetters["ProviderBranches"] { + params["providerBranches"] = options.ProviderBranches + } + if options.enabledSetters["ProviderPaths"] { + params["providerPaths"] = options.ProviderPaths + } if options.enabledSetters["BuildSpecification"] { params["buildSpecification"] = options.BuildSpecification } diff --git a/functions/functions_test.go b/functions/functions_test.go index df961b8e..d19f4812 100644 --- a/functions/functions_test.go +++ b/functions/functions_test.go @@ -6,8 +6,8 @@ import ( "testing" "os" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/file") + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/file") func TestFunctions(t *testing.T) { tmpFile, err := os.CreateTemp("", "test") @@ -69,6 +69,8 @@ func TestFunctions(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "functions/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb" } @@ -137,6 +139,8 @@ func TestFunctions(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "functions/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb" } @@ -275,6 +279,8 @@ func TestFunctions(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "functions/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb" } @@ -341,6 +347,8 @@ func TestFunctions(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "functions/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb" } @@ -433,6 +441,8 @@ func TestFunctions(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "functions/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb" } diff --git a/go.mod b/go.mod index c9730def..734e08dd 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/appwrite/sdk-for-go/v4 +module github.com/appwrite/sdk-for-go/v5 go 1.22.5 diff --git a/graphql/graphql.go b/graphql/graphql.go index 2f6dc90c..4bf159b1 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -3,7 +3,7 @@ package graphql import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" "strings" ) diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index e4e085de..4df81c78 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestGraphql(t *testing.T) { diff --git a/health/health.go b/health/health.go index ffa7c9c1..2c037477 100644 --- a/health/health.go +++ b/health/health.go @@ -3,8 +3,8 @@ package health import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/health/health_test.go b/health/health_test.go index e6afbf58..5a9111c9 100644 --- a/health/health_test.go +++ b/health/health_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestHealth(t *testing.T) { diff --git a/locale/locale.go b/locale/locale.go index eb2b1002..2b37b82e 100644 --- a/locale/locale.go +++ b/locale/locale.go @@ -3,8 +3,8 @@ package locale import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/locale/locale_test.go b/locale/locale_test.go index fe4fafa5..d028fdef 100644 --- a/locale/locale_test.go +++ b/locale/locale_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestLocale(t *testing.T) { diff --git a/messaging/messaging.go b/messaging/messaging.go index 4f205c28..41fc71e0 100644 --- a/messaging/messaging.go +++ b/messaging/messaging.go @@ -3,8 +3,8 @@ package messaging import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/messaging/messaging_test.go b/messaging/messaging_test.go index 0c0e5172..17c32bef 100644 --- a/messaging/messaging_test.go +++ b/messaging/messaging_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestMessaging(t *testing.T) { diff --git a/models/activityEvent.go b/models/activityEvent.go index c515bf2d..9a730633 100644 --- a/models/activityEvent.go +++ b/models/activityEvent.go @@ -9,14 +9,14 @@ import ( type ActivityEvent struct { // Event ID. Id string `json:"$id"` - // User type. - UserType string `json:"userType"` - // User ID. - UserId string `json:"userId"` - // User Email. - UserEmail string `json:"userEmail"` - // User Name. - UserName string `json:"userName"` + // Actor type. + ActorType string `json:"actorType"` + // Actor ID. + ActorId string `json:"actorId"` + // Actor Email. + ActorEmail string `json:"actorEmail"` + // Actor Name. + ActorName string `json:"actorName"` // Resource parent. ResourceParent string `json:"resourceParent"` // Resource type. diff --git a/models/activityEventList_test.go b/models/activityEventList_test.go index 4c299610..4882c1e0 100644 --- a/models/activityEventList_test.go +++ b/models/activityEventList_test.go @@ -6,7 +6,7 @@ import ( ) func TestActivityEventListModel(t *testing.T) { - model := ActivityEventList{ Total: 5, Events: []ActivityEvent{ActivityEvent{ Id: "5e5ea5c16897e", UserType: "user", UserId: "610fc2f985ee0", UserEmail: "john@appwrite.io", UserName: "John Doe", ResourceParent: "database/ID", ResourceType: "collection", ResourceId: "610fc2f985ee0", Resource: "collections/610fc2f985ee0", Event: "account.sessions.create", UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", Ip: "127.0.0.1", Mode: "admin", Country: "US", Time: "2020-10-15T06:38:00.000+00:00", ProjectId: "610fc2f985ee0", TeamId: "610fc2f985ee0", Hostname: "appwrite.io", OsCode: "Mac", OsName: "Mac", OsVersion: "Mac", ClientType: "browser", ClientCode: "CM", ClientName: "Chrome Mobile iOS", ClientVersion: "84.0", ClientEngine: "WebKit", ClientEngineVersion: "605.1.15", DeviceName: "smartphone", DeviceBrand: "Google", DeviceModel: "Nexus 5", CountryCode: "US", CountryName: "United States", }, + model := ActivityEventList{ Total: 5, Events: []ActivityEvent{ActivityEvent{ Id: "5e5ea5c16897e", ActorType: "user", ActorId: "610fc2f985ee0", ActorEmail: "john@appwrite.io", ActorName: "John Doe", ResourceParent: "database/ID", ResourceType: "collection", ResourceId: "610fc2f985ee0", Resource: "collections/610fc2f985ee0", Event: "account.sessions.create", UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", Ip: "127.0.0.1", Mode: "admin", Country: "US", Time: "2020-10-15T06:38:00.000+00:00", ProjectId: "610fc2f985ee0", TeamId: "610fc2f985ee0", Hostname: "appwrite.io", OsCode: "Mac", OsName: "Mac", OsVersion: "Mac", ClientType: "browser", ClientCode: "CM", ClientName: "Chrome Mobile iOS", ClientVersion: "84.0", ClientEngine: "WebKit", ClientEngineVersion: "605.1.15", DeviceName: "smartphone", DeviceBrand: "Google", DeviceModel: "Nexus 5", CountryCode: "US", CountryName: "United States", }, }, } data, err := json.Marshal(model) diff --git a/models/activityEvent_test.go b/models/activityEvent_test.go index 2ce41227..9c882149 100644 --- a/models/activityEvent_test.go +++ b/models/activityEvent_test.go @@ -6,7 +6,7 @@ import ( ) func TestActivityEventModel(t *testing.T) { - model := ActivityEvent{ Id: "5e5ea5c16897e", UserType: "user", UserId: "610fc2f985ee0", UserEmail: "john@appwrite.io", UserName: "John Doe", ResourceParent: "database/ID", ResourceType: "collection", ResourceId: "610fc2f985ee0", Resource: "collections/610fc2f985ee0", Event: "account.sessions.create", UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", Ip: "127.0.0.1", Mode: "admin", Country: "US", Time: "2020-10-15T06:38:00.000+00:00", ProjectId: "610fc2f985ee0", TeamId: "610fc2f985ee0", Hostname: "appwrite.io", OsCode: "Mac", OsName: "Mac", OsVersion: "Mac", ClientType: "browser", ClientCode: "CM", ClientName: "Chrome Mobile iOS", ClientVersion: "84.0", ClientEngine: "WebKit", ClientEngineVersion: "605.1.15", DeviceName: "smartphone", DeviceBrand: "Google", DeviceModel: "Nexus 5", CountryCode: "US", CountryName: "United States", } + model := ActivityEvent{ Id: "5e5ea5c16897e", ActorType: "user", ActorId: "610fc2f985ee0", ActorEmail: "john@appwrite.io", ActorName: "John Doe", ResourceParent: "database/ID", ResourceType: "collection", ResourceId: "610fc2f985ee0", Resource: "collections/610fc2f985ee0", Event: "account.sessions.create", UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", Ip: "127.0.0.1", Mode: "admin", Country: "US", Time: "2020-10-15T06:38:00.000+00:00", ProjectId: "610fc2f985ee0", TeamId: "610fc2f985ee0", Hostname: "appwrite.io", OsCode: "Mac", OsName: "Mac", OsVersion: "Mac", ClientType: "browser", ClientCode: "CM", ClientName: "Chrome Mobile iOS", ClientVersion: "84.0", ClientEngine: "WebKit", ClientEngineVersion: "605.1.15", DeviceName: "smartphone", DeviceBrand: "Google", DeviceModel: "Nexus 5", CountryCode: "US", CountryName: "United States", } data, err := json.Marshal(model) if err != nil { @@ -21,17 +21,17 @@ func TestActivityEventModel(t *testing.T) { if result.Id != model.Id { t.Errorf("Expected Id %v, got %v", model.Id, result.Id) } - if result.UserType != model.UserType { - t.Errorf("Expected UserType %v, got %v", model.UserType, result.UserType) + if result.ActorType != model.ActorType { + t.Errorf("Expected ActorType %v, got %v", model.ActorType, result.ActorType) } - if result.UserId != model.UserId { - t.Errorf("Expected UserId %v, got %v", model.UserId, result.UserId) + if result.ActorId != model.ActorId { + t.Errorf("Expected ActorId %v, got %v", model.ActorId, result.ActorId) } - if result.UserEmail != model.UserEmail { - t.Errorf("Expected UserEmail %v, got %v", model.UserEmail, result.UserEmail) + if result.ActorEmail != model.ActorEmail { + t.Errorf("Expected ActorEmail %v, got %v", model.ActorEmail, result.ActorEmail) } - if result.UserName != model.UserName { - t.Errorf("Expected UserName %v, got %v", model.UserName, result.UserName) + if result.ActorName != model.ActorName { + t.Errorf("Expected ActorName %v, got %v", model.ActorName, result.ActorName) } if result.ResourceParent != model.ResourceParent { t.Errorf("Expected ResourceParent %v, got %v", model.ResourceParent, result.ResourceParent) diff --git a/models/billingLimits.go b/models/billingLimits.go index 03c7714b..8b7685a9 100644 --- a/models/billingLimits.go +++ b/models/billingLimits.go @@ -5,7 +5,7 @@ import ( "errors" ) -// BillingLimits Model +// Limits Model type BillingLimits struct { // Bandwidth limit Bandwidth int `json:"bandwidth"` diff --git a/models/billingLimits_test.go b/models/billingLimits_test.go index 60a369f7..7e264d8c 100644 --- a/models/billingLimits_test.go +++ b/models/billingLimits_test.go @@ -6,7 +6,7 @@ import ( ) func TestBillingLimitsModel(t *testing.T) { - model := BillingLimits{ Bandwidth: 5, Storage: 150, Users: 200000, Executions: 750000, GBHours: 100, ImageTransformations: 100, AuthPhone: 10, BudgetLimit: 100, } + model := BillingLimits{ } data, err := json.Marshal(model) if err != nil { @@ -17,28 +17,4 @@ func TestBillingLimitsModel(t *testing.T) { err = json.Unmarshal(data, &result) if err != nil { t.Fatal(err) - } - if result.Bandwidth != model.Bandwidth { - t.Errorf("Expected Bandwidth %v, got %v", model.Bandwidth, result.Bandwidth) - } - if result.Storage != model.Storage { - t.Errorf("Expected Storage %v, got %v", model.Storage, result.Storage) - } - if result.Users != model.Users { - t.Errorf("Expected Users %v, got %v", model.Users, result.Users) - } - if result.Executions != model.Executions { - t.Errorf("Expected Executions %v, got %v", model.Executions, result.Executions) - } - if result.GBHours != model.GBHours { - t.Errorf("Expected GBHours %v, got %v", model.GBHours, result.GBHours) - } - if result.ImageTransformations != model.ImageTransformations { - t.Errorf("Expected ImageTransformations %v, got %v", model.ImageTransformations, result.ImageTransformations) - } - if result.AuthPhone != model.AuthPhone { - t.Errorf("Expected AuthPhone %v, got %v", model.AuthPhone, result.AuthPhone) - } - if result.BudgetLimit != model.BudgetLimit { - t.Errorf("Expected BudgetLimit %v, got %v", model.BudgetLimit, result.BudgetLimit) }} diff --git a/models/file.go b/models/file.go index 567cf3f5..d035fe60 100644 --- a/models/file.go +++ b/models/file.go @@ -26,6 +26,8 @@ type File struct { MimeType string `json:"mimeType"` // File original size in bytes. SizeOriginal int `json:"sizeOriginal"` + // File actual stored size in bytes after compression and/or encryption. + SizeActual int `json:"sizeActual"` // Total number of chunks available ChunksTotal int `json:"chunksTotal"` // Total number of chunks uploaded diff --git a/models/fileList_test.go b/models/fileList_test.go index 7e77e9d2..4c26cb11 100644 --- a/models/fileList_test.go +++ b/models/fileList_test.go @@ -6,7 +6,7 @@ import ( ) func TestFileListModel(t *testing.T) { - model := FileList{ Total: 5, Files: []File{File{ Id: "5e5ea5c16897e", BucketId: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Permissions: []string{"test"}, Name: "Pink.png", Signature: "5d529fd02b544198ae075bd57c1762bb", MimeType: "image/png", SizeOriginal: 17890, ChunksTotal: 17890, ChunksUploaded: 17890, Encryption: true, Compression: "gzip", }, + model := FileList{ Total: 5, Files: []File{File{ Id: "5e5ea5c16897e", BucketId: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Permissions: []string{"test"}, Name: "Pink.png", Signature: "5d529fd02b544198ae075bd57c1762bb", MimeType: "image/png", SizeOriginal: 17890, SizeActual: 12345, ChunksTotal: 17890, ChunksUploaded: 17890, Encryption: true, Compression: "gzip", }, }, } data, err := json.Marshal(model) diff --git a/models/file_test.go b/models/file_test.go index bb9997fe..c2dcf45b 100644 --- a/models/file_test.go +++ b/models/file_test.go @@ -6,7 +6,7 @@ import ( ) func TestFileModel(t *testing.T) { - model := File{ Id: "5e5ea5c16897e", BucketId: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Permissions: []string{"test"}, Name: "Pink.png", Signature: "5d529fd02b544198ae075bd57c1762bb", MimeType: "image/png", SizeOriginal: 17890, ChunksTotal: 17890, ChunksUploaded: 17890, Encryption: true, Compression: "gzip", } + model := File{ Id: "5e5ea5c16897e", BucketId: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Permissions: []string{"test"}, Name: "Pink.png", Signature: "5d529fd02b544198ae075bd57c1762bb", MimeType: "image/png", SizeOriginal: 17890, SizeActual: 12345, ChunksTotal: 17890, ChunksUploaded: 17890, Encryption: true, Compression: "gzip", } data, err := json.Marshal(model) if err != nil { @@ -42,6 +42,9 @@ func TestFileModel(t *testing.T) { if result.SizeOriginal != model.SizeOriginal { t.Errorf("Expected SizeOriginal %v, got %v", model.SizeOriginal, result.SizeOriginal) } + if result.SizeActual != model.SizeActual { + t.Errorf("Expected SizeActual %v, got %v", model.SizeActual, result.SizeActual) + } if result.ChunksTotal != model.ChunksTotal { t.Errorf("Expected ChunksTotal %v, got %v", model.ChunksTotal, result.ChunksTotal) } diff --git a/models/function.go b/models/function.go index 26b0359c..c0cfcccb 100644 --- a/models/function.go +++ b/models/function.go @@ -71,6 +71,12 @@ type Function struct { // silence mode, no comments will be posted on the repository pull or merge // requests ProviderSilentMode bool `json:"providerSilentMode"` + // List of branch name patterns that trigger automatic deployments. Supports + // glob wildcards. Empty list deploys on all branches. + ProviderBranches []string `json:"providerBranches"` + // List of file path patterns that trigger automatic deployments. Supports + // glob wildcards. Empty list deploys on all file changes. + ProviderPaths []string `json:"providerPaths"` // Machine specification for deployment builds. BuildSpecification string `json:"buildSpecification"` // Machine specification for executions. diff --git a/models/functionList_test.go b/models/functionList_test.go index 118d8f76..e7d41fca 100644 --- a/models/functionList_test.go +++ b/models/functionList_test.go @@ -7,7 +7,7 @@ import ( func TestFunctionListModel(t *testing.T) { model := FunctionList{ Total: 5, Functions: []Function{Function{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Execute: []string{"test"}, Name: "My Function", Enabled: true, Live: true, Logging: true, Runtime: "python-3.8", DeploymentRetention: 7, DeploymentId: "5e5ea5c16897e", DeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentId: "5e5ea5c16897e", LatestDeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentStatus: "ready", Scopes: []string{"test"}, Vars: []Variable{Variable{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Key: "API_KEY", Value: "myPa$$word1", Secret: true, ResourceType: "function", ResourceId: "myAwesomeFunction", }, - }, Events: []string{"test"}, Schedule: "5 4 * * *", Timeout: 300, Entrypoint: "index.js", Commands: "npm install", Version: "v2", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "functions/helloWorld", ProviderSilentMode: true, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", }, + }, Events: []string{"test"}, Schedule: "5 4 * * *", Timeout: 300, Entrypoint: "index.js", Commands: "npm install", Version: "v2", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "functions/helloWorld", ProviderSilentMode: true, ProviderBranches: []string{"test"}, ProviderPaths: []string{"test"}, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", }, }, } data, err := json.Marshal(model) diff --git a/models/function_test.go b/models/function_test.go index d4674274..f176f555 100644 --- a/models/function_test.go +++ b/models/function_test.go @@ -7,7 +7,7 @@ import ( func TestFunctionModel(t *testing.T) { model := Function{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Execute: []string{"test"}, Name: "My Function", Enabled: true, Live: true, Logging: true, Runtime: "python-3.8", DeploymentRetention: 7, DeploymentId: "5e5ea5c16897e", DeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentId: "5e5ea5c16897e", LatestDeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentStatus: "ready", Scopes: []string{"test"}, Vars: []Variable{Variable{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Key: "API_KEY", Value: "myPa$$word1", Secret: true, ResourceType: "function", ResourceId: "myAwesomeFunction", }, - }, Events: []string{"test"}, Schedule: "5 4 * * *", Timeout: 300, Entrypoint: "index.js", Commands: "npm install", Version: "v2", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "functions/helloWorld", ProviderSilentMode: true, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", } + }, Events: []string{"test"}, Schedule: "5 4 * * *", Timeout: 300, Entrypoint: "index.js", Commands: "npm install", Version: "v2", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "functions/helloWorld", ProviderSilentMode: true, ProviderBranches: []string{"test"}, ProviderPaths: []string{"test"}, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Amazon_test.go b/models/oAuth2Amazon_test.go index a5a1d57d..df059433 100644 --- a/models/oAuth2Amazon_test.go +++ b/models/oAuth2Amazon_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2AmazonModel(t *testing.T) { - model := OAuth2Amazon{ Id: "github", Enabled: true, ClientId: "amzn1.application-oa2-client.87400c00000000000000000000063d5b2", ClientSecret: "79ffe4000000000000000000000000000000000000000000000000000002de55", } + model := OAuth2Amazon{ Id: "github", Enabled: true, ClientId: "amzn1.application-oa2-client.87400c00000000000000000000063d5b2", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Auth0_test.go b/models/oAuth2Auth0_test.go index 07dada05..0225e9ff 100644 --- a/models/oAuth2Auth0_test.go +++ b/models/oAuth2Auth0_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2Auth0Model(t *testing.T) { - model := OAuth2Auth0{ Id: "github", Enabled: true, ClientId: "OaOkIA000000000000000000005KLSYq", ClientSecret: "zXz0000-00000000000000000000000000000-00000000000000000000PJafnF", Endpoint: "example.us.auth0.com", } + model := OAuth2Auth0{ Id: "github", Enabled: true, ClientId: "OaOkIA000000000000000000005KLSYq", ClientSecret: "your-oauth2-client-secret", Endpoint: "example.us.auth0.com", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Authentik_test.go b/models/oAuth2Authentik_test.go index aeefaeec..dfd3275b 100644 --- a/models/oAuth2Authentik_test.go +++ b/models/oAuth2Authentik_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2AuthentikModel(t *testing.T) { - model := OAuth2Authentik{ Id: "github", Enabled: true, ClientId: "dTKOPa0000000000000000000000000000e7G8hv", ClientSecret: "ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK", Endpoint: "example.authentik.com", } + model := OAuth2Authentik{ Id: "github", Enabled: true, ClientId: "dTKOPa0000000000000000000000000000e7G8hv", ClientSecret: "your-oauth2-client-secret", Endpoint: "example.authentik.com", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Autodesk_test.go b/models/oAuth2Autodesk_test.go index f8db242a..2a21fa57 100644 --- a/models/oAuth2Autodesk_test.go +++ b/models/oAuth2Autodesk_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2AutodeskModel(t *testing.T) { - model := OAuth2Autodesk{ Id: "github", Enabled: true, ClientId: "5zw90v00000000000000000000kVYXN7", ClientSecret: "7I000000000000MW", } + model := OAuth2Autodesk{ Id: "github", Enabled: true, ClientId: "5zw90v00000000000000000000kVYXN7", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Bitbucket_test.go b/models/oAuth2Bitbucket_test.go index 10af6b12..8e4f0b23 100644 --- a/models/oAuth2Bitbucket_test.go +++ b/models/oAuth2Bitbucket_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2BitbucketModel(t *testing.T) { - model := OAuth2Bitbucket{ Id: "github", Enabled: true, Key: "Knt70000000000ByRc", Secret: "NMfLZJ00000000000000000000TLQdDx", } + model := OAuth2Bitbucket{ Id: "github", Enabled: true, Key: "Knt70000000000ByRc", Secret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Bitly_test.go b/models/oAuth2Bitly_test.go index 387a23e5..e0ac6158 100644 --- a/models/oAuth2Bitly_test.go +++ b/models/oAuth2Bitly_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2BitlyModel(t *testing.T) { - model := OAuth2Bitly{ Id: "github", Enabled: true, ClientId: "d95151000000000000000000000000000067af9b", ClientSecret: "a13e250000000000000000000000000000d73095", } + model := OAuth2Bitly{ Id: "github", Enabled: true, ClientId: "d95151000000000000000000000000000067af9b", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Box_test.go b/models/oAuth2Box_test.go index 02ee9caf..1dedf78f 100644 --- a/models/oAuth2Box_test.go +++ b/models/oAuth2Box_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2BoxModel(t *testing.T) { - model := OAuth2Box{ Id: "github", Enabled: true, ClientId: "deglcs00000000000000000000x2og6y", ClientSecret: "OKM1f100000000000000000000eshEif", } + model := OAuth2Box{ Id: "github", Enabled: true, ClientId: "deglcs00000000000000000000x2og6y", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Dailymotion_test.go b/models/oAuth2Dailymotion_test.go index f5852c72..c2249895 100644 --- a/models/oAuth2Dailymotion_test.go +++ b/models/oAuth2Dailymotion_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2DailymotionModel(t *testing.T) { - model := OAuth2Dailymotion{ Id: "github", Enabled: true, ApiKey: "07a9000000000000067f", ApiSecret: "a399a90000000000000000000000000000d90639", } + model := OAuth2Dailymotion{ Id: "github", Enabled: true, ApiKey: "07a9000000000000067f", ApiSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Discord_test.go b/models/oAuth2Discord_test.go index d03aa3dd..8b419b6d 100644 --- a/models/oAuth2Discord_test.go +++ b/models/oAuth2Discord_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2DiscordModel(t *testing.T) { - model := OAuth2Discord{ Id: "github", Enabled: true, ClientId: "950722000000343754", ClientSecret: "YmPXnM000000000000000000002zFg5D", } + model := OAuth2Discord{ Id: "github", Enabled: true, ClientId: "950722000000343754", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Disqus_test.go b/models/oAuth2Disqus_test.go index 74985cbc..6b519b7a 100644 --- a/models/oAuth2Disqus_test.go +++ b/models/oAuth2Disqus_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2DisqusModel(t *testing.T) { - model := OAuth2Disqus{ Id: "github", Enabled: true, PublicKey: "cgegH70000000000000000000000000000000000000000000000000000Hr1nYX", SecretKey: "W7Bykj00000000000000000000000000000000000000000000000000003o43w9", } + model := OAuth2Disqus{ Id: "github", Enabled: true, PublicKey: "cgegH70000000000000000000000000000000000000000000000000000Hr1nYX", SecretKey: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Dropbox_test.go b/models/oAuth2Dropbox_test.go index 44d4d794..4084c46b 100644 --- a/models/oAuth2Dropbox_test.go +++ b/models/oAuth2Dropbox_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2DropboxModel(t *testing.T) { - model := OAuth2Dropbox{ Id: "github", Enabled: true, AppKey: "jl000000000009t", AppSecret: "g200000000000vw", } + model := OAuth2Dropbox{ Id: "github", Enabled: true, AppKey: "jl000000000009t", AppSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Etsy_test.go b/models/oAuth2Etsy_test.go index e42ee6a1..dc364122 100644 --- a/models/oAuth2Etsy_test.go +++ b/models/oAuth2Etsy_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2EtsyModel(t *testing.T) { - model := OAuth2Etsy{ Id: "github", Enabled: true, KeyString: "nsgzxh0000000000008j85a2", SharedSecret: "tp000000ru", } + model := OAuth2Etsy{ Id: "github", Enabled: true, KeyString: "nsgzxh0000000000008j85a2", SharedSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Facebook_test.go b/models/oAuth2Facebook_test.go index b3d5476f..fa6f631d 100644 --- a/models/oAuth2Facebook_test.go +++ b/models/oAuth2Facebook_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2FacebookModel(t *testing.T) { - model := OAuth2Facebook{ Id: "github", Enabled: true, AppId: "260600000007694", AppSecret: "2d0b2800000000000000000000d38af4", } + model := OAuth2Facebook{ Id: "github", Enabled: true, AppId: "260600000007694", AppSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Figma_test.go b/models/oAuth2Figma_test.go index 6765b0a3..db8d5b7c 100644 --- a/models/oAuth2Figma_test.go +++ b/models/oAuth2Figma_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2FigmaModel(t *testing.T) { - model := OAuth2Figma{ Id: "github", Enabled: true, ClientId: "byay5H0000000000VtiI40", ClientSecret: "yEpOYn0000000000000000004iIsU5", } + model := OAuth2Figma{ Id: "github", Enabled: true, ClientId: "byay5H0000000000VtiI40", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2FusionAuth_test.go b/models/oAuth2FusionAuth_test.go index f4acd5a7..8b4f458b 100644 --- a/models/oAuth2FusionAuth_test.go +++ b/models/oAuth2FusionAuth_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2FusionAuthModel(t *testing.T) { - model := OAuth2FusionAuth{ Id: "github", Enabled: true, ClientId: "b2222c00-0000-0000-0000-000000862097", ClientSecret: "Jx4s0C0000000000000000000000000000000wGqLsc", Endpoint: "example.fusionauth.io", } + model := OAuth2FusionAuth{ Id: "github", Enabled: true, ClientId: "b2222c00-0000-0000-0000-000000862097", ClientSecret: "your-oauth2-client-secret", Endpoint: "example.fusionauth.io", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Github_test.go b/models/oAuth2Github_test.go index d56c255d..b059302b 100644 --- a/models/oAuth2Github_test.go +++ b/models/oAuth2Github_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2GithubModel(t *testing.T) { - model := OAuth2Github{ Id: "github", Enabled: true, ClientId: "e4d87900000000540733", ClientSecret: "5e07c00000000000000000000000000000198bcc", } + model := OAuth2Github{ Id: "github", Enabled: true, ClientId: "e4d87900000000540733", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Gitlab_test.go b/models/oAuth2Gitlab_test.go index 6e9c90c4..698cd06d 100644 --- a/models/oAuth2Gitlab_test.go +++ b/models/oAuth2Gitlab_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2GitlabModel(t *testing.T) { - model := OAuth2Gitlab{ Id: "github", Enabled: true, ApplicationId: "d41ffe0000000000000000000000000000000000000000000000000000d5e252", Secret: "gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38", Endpoint: "https://gitlab.com", } + model := OAuth2Gitlab{ Id: "github", Enabled: true, ApplicationId: "d41ffe0000000000000000000000000000000000000000000000000000d5e252", Secret: "your-oauth2-client-secret", Endpoint: "https://gitlab.com", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Google_test.go b/models/oAuth2Google_test.go index 29b84051..6ca89e43 100644 --- a/models/oAuth2Google_test.go +++ b/models/oAuth2Google_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2GoogleModel(t *testing.T) { - model := OAuth2Google{ Id: "github", Enabled: true, ClientId: "120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com", ClientSecret: "example-google-client-secret", Prompt: []string{"test"}, } + model := OAuth2Google{ Id: "github", Enabled: true, ClientId: "120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com", ClientSecret: "your-oauth2-client-secret", Prompt: []string{"test"}, } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Keycloak_test.go b/models/oAuth2Keycloak_test.go index 50ca7e79..e13ddf4c 100644 --- a/models/oAuth2Keycloak_test.go +++ b/models/oAuth2Keycloak_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2KeycloakModel(t *testing.T) { - model := OAuth2Keycloak{ Id: "github", Enabled: true, ClientId: "appwrite-o0000000st-app", ClientSecret: "jdjrJd00000000000000000000HUsaZO", Endpoint: "keycloak.example.com", RealmName: "appwrite-realm", } + model := OAuth2Keycloak{ Id: "github", Enabled: true, ClientId: "appwrite-o0000000st-app", ClientSecret: "your-oauth2-client-secret", Endpoint: "keycloak.example.com", RealmName: "appwrite-realm", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Kick_test.go b/models/oAuth2Kick_test.go index 33e96f41..7766d64d 100644 --- a/models/oAuth2Kick_test.go +++ b/models/oAuth2Kick_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2KickModel(t *testing.T) { - model := OAuth2Kick{ Id: "github", Enabled: true, ClientId: "01KQ7C00000000000001MFHS32", ClientSecret: "34ac5600000000000000000000000000000000000000000000000000e830c8b", } + model := OAuth2Kick{ Id: "github", Enabled: true, ClientId: "01KQ7C00000000000001MFHS32", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Linkedin_test.go b/models/oAuth2Linkedin_test.go index b120b8ef..e1387f01 100644 --- a/models/oAuth2Linkedin_test.go +++ b/models/oAuth2Linkedin_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2LinkedinModel(t *testing.T) { - model := OAuth2Linkedin{ Id: "github", Enabled: true, ClientId: "770000000000dv", PrimaryClientSecret: "example-linkedin-client-secret", } + model := OAuth2Linkedin{ Id: "github", Enabled: true, ClientId: "770000000000dv", PrimaryClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Microsoft_test.go b/models/oAuth2Microsoft_test.go index 188dee22..6646a82e 100644 --- a/models/oAuth2Microsoft_test.go +++ b/models/oAuth2Microsoft_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2MicrosoftModel(t *testing.T) { - model := OAuth2Microsoft{ Id: "github", Enabled: true, ApplicationId: "00001111-aaaa-2222-bbbb-3333cccc4444", ApplicationSecret: "A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u", Tenant: "common", } + model := OAuth2Microsoft{ Id: "github", Enabled: true, ApplicationId: "00001111-aaaa-2222-bbbb-3333cccc4444", ApplicationSecret: "your-oauth2-client-secret", Tenant: "common", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Notion_test.go b/models/oAuth2Notion_test.go index 37602278..9b0b1ac7 100644 --- a/models/oAuth2Notion_test.go +++ b/models/oAuth2Notion_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2NotionModel(t *testing.T) { - model := OAuth2Notion{ Id: "github", Enabled: true, OauthClientId: "341d8700-0000-0000-0000-000000446ee3", OauthClientSecret: "secret_dLUr4b000000000000000000000000000000lFHAa9", } + model := OAuth2Notion{ Id: "github", Enabled: true, OauthClientId: "341d8700-0000-0000-0000-000000446ee3", OauthClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Oidc_test.go b/models/oAuth2Oidc_test.go index c9229d87..ec4962ad 100644 --- a/models/oAuth2Oidc_test.go +++ b/models/oAuth2Oidc_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2OidcModel(t *testing.T) { - model := OAuth2Oidc{ Id: "github", Enabled: true, ClientId: "qibI2x0000000000000000000000000006L2YFoG", ClientSecret: "Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV", WellKnownURL: "https://myoauth.com/.well-known/openid-configuration", AuthorizationURL: "https://myoauth.com/oauth2/authorize", TokenURL: "https://myoauth.com/oauth2/token", UserInfoURL: "https://myoauth.com/oauth2/userinfo", } + model := OAuth2Oidc{ Id: "github", Enabled: true, ClientId: "qibI2x0000000000000000000000000006L2YFoG", ClientSecret: "your-oauth2-client-secret", WellKnownURL: "https://myoauth.com/.well-known/openid-configuration", AuthorizationURL: "https://myoauth.com/oauth2/authorize", TokenURL: "https://myoauth.com/oauth2/token", UserInfoURL: "https://myoauth.com/oauth2/userinfo", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Okta_test.go b/models/oAuth2Okta_test.go index 46c5212d..22ab478b 100644 --- a/models/oAuth2Okta_test.go +++ b/models/oAuth2Okta_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2OktaModel(t *testing.T) { - model := OAuth2Okta{ Id: "github", Enabled: true, ClientId: "0oa00000000000000698", ClientSecret: "Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV", Domain: "trial-6400025.okta.com", AuthorizationServerId: "aus000000000000000h7z", } + model := OAuth2Okta{ Id: "github", Enabled: true, ClientId: "0oa00000000000000698", ClientSecret: "your-oauth2-client-secret", Domain: "trial-6400025.okta.com", AuthorizationServerId: "aus000000000000000h7z", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Paypal_test.go b/models/oAuth2Paypal_test.go index b3826177..910b1c17 100644 --- a/models/oAuth2Paypal_test.go +++ b/models/oAuth2Paypal_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2PaypalModel(t *testing.T) { - model := OAuth2Paypal{ Id: "github", Enabled: true, ClientId: "AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB", SecretKey: "EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp", } + model := OAuth2Paypal{ Id: "github", Enabled: true, ClientId: "AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB", SecretKey: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Podio_test.go b/models/oAuth2Podio_test.go index 2b20d03d..cabd8e69 100644 --- a/models/oAuth2Podio_test.go +++ b/models/oAuth2Podio_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2PodioModel(t *testing.T) { - model := OAuth2Podio{ Id: "github", Enabled: true, ClientId: "appwrite-oauth-test-app", ClientSecret: "Rn247T0000000000000000000000000000000000000000000000000000W2zWTN", } + model := OAuth2Podio{ Id: "github", Enabled: true, ClientId: "appwrite-oauth-test-app", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Salesforce_test.go b/models/oAuth2Salesforce_test.go index 6f9c818f..635907f2 100644 --- a/models/oAuth2Salesforce_test.go +++ b/models/oAuth2Salesforce_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2SalesforceModel(t *testing.T) { - model := OAuth2Salesforce{ Id: "github", Enabled: true, CustomerKey: "3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq", CustomerSecret: "3w000000000000e2", } + model := OAuth2Salesforce{ Id: "github", Enabled: true, CustomerKey: "3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq", CustomerSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Slack_test.go b/models/oAuth2Slack_test.go index 417079dc..a172c638 100644 --- a/models/oAuth2Slack_test.go +++ b/models/oAuth2Slack_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2SlackModel(t *testing.T) { - model := OAuth2Slack{ Id: "github", Enabled: true, ClientId: "23000000089.15000000000023", ClientSecret: "81656000000000000000000000f3d2fd", } + model := OAuth2Slack{ Id: "github", Enabled: true, ClientId: "23000000089.15000000000023", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Spotify_test.go b/models/oAuth2Spotify_test.go index 5c3ec029..71b898e8 100644 --- a/models/oAuth2Spotify_test.go +++ b/models/oAuth2Spotify_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2SpotifyModel(t *testing.T) { - model := OAuth2Spotify{ Id: "github", Enabled: true, ClientId: "6ec271000000000000000000009beace", ClientSecret: "db068a000000000000000000008b5b9f", } + model := OAuth2Spotify{ Id: "github", Enabled: true, ClientId: "6ec271000000000000000000009beace", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Stripe_test.go b/models/oAuth2Stripe_test.go index 3bda33de..5ffe5730 100644 --- a/models/oAuth2Stripe_test.go +++ b/models/oAuth2Stripe_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2StripeModel(t *testing.T) { - model := OAuth2Stripe{ Id: "github", Enabled: true, ClientId: "ca_UKibXX0000000000000000000006byvR", ApiSecretKey: "sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp", } + model := OAuth2Stripe{ Id: "github", Enabled: true, ClientId: "ca_UKibXX0000000000000000000006byvR", ApiSecretKey: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Tradeshift_test.go b/models/oAuth2Tradeshift_test.go index f7eec444..b879f8ec 100644 --- a/models/oAuth2Tradeshift_test.go +++ b/models/oAuth2Tradeshift_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2TradeshiftModel(t *testing.T) { - model := OAuth2Tradeshift{ Id: "github", Enabled: true, Oauth2ClientId: "appwrite-test-org.appwrite-test-app", Oauth2ClientSecret: "7cb52700-0000-0000-0000-000000ca5b83", } + model := OAuth2Tradeshift{ Id: "github", Enabled: true, Oauth2ClientId: "appwrite-test-org.appwrite-test-app", Oauth2ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Twitch_test.go b/models/oAuth2Twitch_test.go index ba5c231b..d1a5d913 100644 --- a/models/oAuth2Twitch_test.go +++ b/models/oAuth2Twitch_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2TwitchModel(t *testing.T) { - model := OAuth2Twitch{ Id: "github", Enabled: true, ClientId: "vvi0in000000000000000000ikmt9p", ClientSecret: "pmapue000000000000000000zylw3v", } + model := OAuth2Twitch{ Id: "github", Enabled: true, ClientId: "vvi0in000000000000000000ikmt9p", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2WordPress_test.go b/models/oAuth2WordPress_test.go index 726a697f..e075e47d 100644 --- a/models/oAuth2WordPress_test.go +++ b/models/oAuth2WordPress_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2WordPressModel(t *testing.T) { - model := OAuth2WordPress{ Id: "github", Enabled: true, ClientId: "130005", ClientSecret: "PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk", } + model := OAuth2WordPress{ Id: "github", Enabled: true, ClientId: "130005", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2X_test.go b/models/oAuth2X_test.go index e8b68fc1..0dc342ac 100644 --- a/models/oAuth2X_test.go +++ b/models/oAuth2X_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2XModel(t *testing.T) { - model := OAuth2X{ Id: "github", Enabled: true, CustomerKey: "slzZV0000000000000NFLaWT", SecretKey: "tkEPkp00000000000000000000000000000000000000FTxbI9", } + model := OAuth2X{ Id: "github", Enabled: true, CustomerKey: "slzZV0000000000000NFLaWT", SecretKey: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Yahoo_test.go b/models/oAuth2Yahoo_test.go index c0adc5e3..a438d539 100644 --- a/models/oAuth2Yahoo_test.go +++ b/models/oAuth2Yahoo_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2YahooModel(t *testing.T) { - model := OAuth2Yahoo{ Id: "github", Enabled: true, ClientId: "dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm", ClientSecret: "cf978f0000000000000000000000000000c5e2e9", } + model := OAuth2Yahoo{ Id: "github", Enabled: true, ClientId: "dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Yandex_test.go b/models/oAuth2Yandex_test.go index a6e15a7a..db174737 100644 --- a/models/oAuth2Yandex_test.go +++ b/models/oAuth2Yandex_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2YandexModel(t *testing.T) { - model := OAuth2Yandex{ Id: "github", Enabled: true, ClientId: "6a8a6a0000000000000000000091483c", ClientSecret: "bbf98500000000000000000000c75a63", } + model := OAuth2Yandex{ Id: "github", Enabled: true, ClientId: "6a8a6a0000000000000000000091483c", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Zoho_test.go b/models/oAuth2Zoho_test.go index 8265b406..847c454f 100644 --- a/models/oAuth2Zoho_test.go +++ b/models/oAuth2Zoho_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2ZohoModel(t *testing.T) { - model := OAuth2Zoho{ Id: "github", Enabled: true, ClientId: "1000.83C178000000000000000000RPNX0B", ClientSecret: "fb5cac000000000000000000000000000000a68f6e", } + model := OAuth2Zoho{ Id: "github", Enabled: true, ClientId: "1000.83C178000000000000000000RPNX0B", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/oAuth2Zoom_test.go b/models/oAuth2Zoom_test.go index fe4b7e35..02c315bd 100644 --- a/models/oAuth2Zoom_test.go +++ b/models/oAuth2Zoom_test.go @@ -6,7 +6,7 @@ import ( ) func TestOAuth2ZoomModel(t *testing.T) { - model := OAuth2Zoom{ Id: "github", Enabled: true, ClientId: "QMAC00000000000000w0AQ", ClientSecret: "GAWsG4000000000000000000007U01ON", } + model := OAuth2Zoom{ Id: "github", Enabled: true, ClientId: "QMAC00000000000000w0AQ", ClientSecret: "your-oauth2-client-secret", } data, err := json.Marshal(model) if err != nil { diff --git a/models/policyDenyAliasedEmail.go b/models/policyDenyAliasedEmail.go new file mode 100644 index 00000000..9ee54788 --- /dev/null +++ b/models/policyDenyAliasedEmail.go @@ -0,0 +1,35 @@ +package models + +import ( + "encoding/json" + "errors" +) + +// PolicyDenyAliasedEmail Model +type PolicyDenyAliasedEmail struct { + // Policy ID. + Id string `json:"$id"` + // Whether the deny aliased email policy is enabled. + Enabled bool `json:"enabled"` + + // Used by Decode() method + data []byte +} + +func (model PolicyDenyAliasedEmail) New(data []byte) *PolicyDenyAliasedEmail { + model.data = data + return &model +} + +func (model *PolicyDenyAliasedEmail) Decode(value interface{}) error { + if len(model.data) <= 0 { + return errors.New("method Decode() cannot be used on nested struct") + } + + err := json.Unmarshal(model.data, value) + if err != nil { + return err + } + + return nil +} \ No newline at end of file diff --git a/models/policyDenyAliasedEmail_test.go b/models/policyDenyAliasedEmail_test.go new file mode 100644 index 00000000..e081fe41 --- /dev/null +++ b/models/policyDenyAliasedEmail_test.go @@ -0,0 +1,26 @@ +package models + +import ( + "encoding/json" + "testing" +) + +func TestPolicyDenyAliasedEmailModel(t *testing.T) { + model := PolicyDenyAliasedEmail{ Id: "password-dictionary", Enabled: true, } + + data, err := json.Marshal(model) + if err != nil { + t.Fatal(err) + } + + var result PolicyDenyAliasedEmail + err = json.Unmarshal(data, &result) + if err != nil { + t.Fatal(err) + } + if result.Id != model.Id { + t.Errorf("Expected Id %v, got %v", model.Id, result.Id) + } + if result.Enabled != model.Enabled { + t.Errorf("Expected Enabled %v, got %v", model.Enabled, result.Enabled) + }} diff --git a/models/policyDenyDisposableEmail.go b/models/policyDenyDisposableEmail.go new file mode 100644 index 00000000..0121f93e --- /dev/null +++ b/models/policyDenyDisposableEmail.go @@ -0,0 +1,35 @@ +package models + +import ( + "encoding/json" + "errors" +) + +// PolicyDenyDisposableEmail Model +type PolicyDenyDisposableEmail struct { + // Policy ID. + Id string `json:"$id"` + // Whether the deny disposable email policy is enabled. + Enabled bool `json:"enabled"` + + // Used by Decode() method + data []byte +} + +func (model PolicyDenyDisposableEmail) New(data []byte) *PolicyDenyDisposableEmail { + model.data = data + return &model +} + +func (model *PolicyDenyDisposableEmail) Decode(value interface{}) error { + if len(model.data) <= 0 { + return errors.New("method Decode() cannot be used on nested struct") + } + + err := json.Unmarshal(model.data, value) + if err != nil { + return err + } + + return nil +} \ No newline at end of file diff --git a/models/policyDenyDisposableEmail_test.go b/models/policyDenyDisposableEmail_test.go new file mode 100644 index 00000000..a1c8d0c1 --- /dev/null +++ b/models/policyDenyDisposableEmail_test.go @@ -0,0 +1,26 @@ +package models + +import ( + "encoding/json" + "testing" +) + +func TestPolicyDenyDisposableEmailModel(t *testing.T) { + model := PolicyDenyDisposableEmail{ Id: "password-dictionary", Enabled: true, } + + data, err := json.Marshal(model) + if err != nil { + t.Fatal(err) + } + + var result PolicyDenyDisposableEmail + err = json.Unmarshal(data, &result) + if err != nil { + t.Fatal(err) + } + if result.Id != model.Id { + t.Errorf("Expected Id %v, got %v", model.Id, result.Id) + } + if result.Enabled != model.Enabled { + t.Errorf("Expected Enabled %v, got %v", model.Enabled, result.Enabled) + }} diff --git a/models/policyDenyFreeEmail.go b/models/policyDenyFreeEmail.go new file mode 100644 index 00000000..499d9b19 --- /dev/null +++ b/models/policyDenyFreeEmail.go @@ -0,0 +1,35 @@ +package models + +import ( + "encoding/json" + "errors" +) + +// PolicyDenyFreeEmail Model +type PolicyDenyFreeEmail struct { + // Policy ID. + Id string `json:"$id"` + // Whether the deny free email policy is enabled. + Enabled bool `json:"enabled"` + + // Used by Decode() method + data []byte +} + +func (model PolicyDenyFreeEmail) New(data []byte) *PolicyDenyFreeEmail { + model.data = data + return &model +} + +func (model *PolicyDenyFreeEmail) Decode(value interface{}) error { + if len(model.data) <= 0 { + return errors.New("method Decode() cannot be used on nested struct") + } + + err := json.Unmarshal(model.data, value) + if err != nil { + return err + } + + return nil +} \ No newline at end of file diff --git a/models/policyDenyFreeEmail_test.go b/models/policyDenyFreeEmail_test.go new file mode 100644 index 00000000..b96b2d10 --- /dev/null +++ b/models/policyDenyFreeEmail_test.go @@ -0,0 +1,26 @@ +package models + +import ( + "encoding/json" + "testing" +) + +func TestPolicyDenyFreeEmailModel(t *testing.T) { + model := PolicyDenyFreeEmail{ Id: "password-dictionary", Enabled: true, } + + data, err := json.Marshal(model) + if err != nil { + t.Fatal(err) + } + + var result PolicyDenyFreeEmail + err = json.Unmarshal(data, &result) + if err != nil { + t.Fatal(err) + } + if result.Id != model.Id { + t.Errorf("Expected Id %v, got %v", model.Id, result.Id) + } + if result.Enabled != model.Enabled { + t.Errorf("Expected Enabled %v, got %v", model.Enabled, result.Enabled) + }} diff --git a/models/presence.go b/models/presence.go index bf876234..ca66a9bc 100644 --- a/models/presence.go +++ b/models/presence.go @@ -24,6 +24,8 @@ type Presence struct { Source string `json:"source"` // Presence expiry date in ISO 8601 format. ExpiresAt string `json:"expiresAt"` + // Presence metadata. + Metadata interface{} `json:"metadata"` // Used by Decode() method data []byte @@ -34,7 +36,6 @@ func (model Presence) New(data []byte) *Presence { return &model } -// Use this method to get response in desired type func (model *Presence) Decode(value interface{}) error { if len(model.data) <= 0 { return errors.New("method Decode() cannot be used on nested struct") diff --git a/models/projectList.go b/models/projectList.go new file mode 100644 index 00000000..247b9eef --- /dev/null +++ b/models/projectList.go @@ -0,0 +1,35 @@ +package models + +import ( + "encoding/json" + "errors" +) + +// ProjectsList Model +type ProjectList struct { + // Total number of projects that matched your query. + Total int `json:"total"` + // List of projects. + Projects []Project `json:"projects"` + + // Used by Decode() method + data []byte +} + +func (model ProjectList) New(data []byte) *ProjectList { + model.data = data + return &model +} + +func (model *ProjectList) Decode(value interface{}) error { + if len(model.data) <= 0 { + return errors.New("method Decode() cannot be used on nested struct") + } + + err := json.Unmarshal(model.data, value) + if err != nil { + return err + } + + return nil +} \ No newline at end of file diff --git a/models/projectList_test.go b/models/projectList_test.go new file mode 100644 index 00000000..7e55d105 --- /dev/null +++ b/models/projectList_test.go @@ -0,0 +1,29 @@ +package models + +import ( + "encoding/json" + "testing" +) + +func TestProjectListModel(t *testing.T) { + model := ProjectList{ Total: 5, Projects: []Project{Project{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Name: "New Project", TeamId: "1592981250", DevKeys: []DevKey{DevKey{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Name: "Dev API Key", Expire: "2020-10-15T06:38:00.000+00:00", Secret: "919c2d18fb5d4...a2ae413da83346ad2", AccessedAt: "2020-10-15T06:38:00.000+00:00", Sdks: []string{"test"}, }, + }, SmtpEnabled: true, SmtpSenderName: "John Appwrite", SmtpSenderEmail: "john@appwrite.io", SmtpReplyToName: "Support Team", SmtpReplyToEmail: "support@appwrite.io", SmtpHost: "mail.appwrite.io", SmtpPort: 25, SmtpUsername: "emailuser", SmtpPassword: "string", SmtpSecure: "tls", PingCount: 1, PingedAt: "2020-10-15T06:38:00.000+00:00", Labels: []string{"test"}, Status: "active", AuthMethods: []ProjectAuthMethod{ProjectAuthMethod{ Id: "email-password", Enabled: true, }, + }, Services: []ProjectService{ProjectService{ Id: "sites", Enabled: true, }, + }, Protocols: []ProjectProtocol{ProjectProtocol{ Id: "graphql", Enabled: true, }, + }, Region: "fra", Blocks: []Block{Block{ CreatedAt: "2020-10-15T06:38:00.000+00:00", ResourceType: "project", ResourceId: "5e5ea5c16897e", ProjectName: "My Project", Region: "fra", OrganizationName: "Acme Inc.", OrganizationId: "5e5ea5c16897e", BillingPlan: "pro", }, + }, ConsoleAccessedAt: "2020-10-15T06:38:00.000+00:00", }, + }, } + + data, err := json.Marshal(model) + if err != nil { + t.Fatal(err) + } + + var result ProjectList + err = json.Unmarshal(data, &result) + if err != nil { + t.Fatal(err) + } + if result.Total != model.Total { + t.Errorf("Expected Total %v, got %v", model.Total, result.Total) + }} diff --git a/models/project_test.go b/models/project_test.go index 35da424f..c0bcf763 100644 --- a/models/project_test.go +++ b/models/project_test.go @@ -10,7 +10,7 @@ func TestProjectModel(t *testing.T) { }, SmtpEnabled: true, SmtpSenderName: "John Appwrite", SmtpSenderEmail: "john@appwrite.io", SmtpReplyToName: "Support Team", SmtpReplyToEmail: "support@appwrite.io", SmtpHost: "mail.appwrite.io", SmtpPort: 25, SmtpUsername: "emailuser", SmtpPassword: "string", SmtpSecure: "tls", PingCount: 1, PingedAt: "2020-10-15T06:38:00.000+00:00", Labels: []string{"test"}, Status: "active", AuthMethods: []ProjectAuthMethod{ProjectAuthMethod{ Id: "email-password", Enabled: true, }, }, Services: []ProjectService{ProjectService{ Id: "sites", Enabled: true, }, }, Protocols: []ProjectProtocol{ProjectProtocol{ Id: "graphql", Enabled: true, }, - }, Region: "fra", BillingLimits: BillingLimits{ Bandwidth: 5, Storage: 150, Users: 200000, Executions: 750000, GBHours: 100, ImageTransformations: 100, AuthPhone: 10, BudgetLimit: 100, }, Blocks: []Block{Block{ CreatedAt: "2020-10-15T06:38:00.000+00:00", ResourceType: "project", ResourceId: "5e5ea5c16897e", ProjectName: "My Project", Region: "fra", OrganizationName: "Acme Inc.", OrganizationId: "5e5ea5c16897e", BillingPlan: "pro", }, + }, Region: "fra", Blocks: []Block{Block{ CreatedAt: "2020-10-15T06:38:00.000+00:00", ResourceType: "project", ResourceId: "5e5ea5c16897e", ProjectName: "My Project", Region: "fra", OrganizationName: "Acme Inc.", OrganizationId: "5e5ea5c16897e", BillingPlan: "pro", }, }, ConsoleAccessedAt: "2020-10-15T06:38:00.000+00:00", } data, err := json.Marshal(model) diff --git a/models/site.go b/models/site.go index 542ec016..ebf56f7c 100644 --- a/models/site.go +++ b/models/site.go @@ -69,6 +69,12 @@ type Site struct { // silence mode, no comments will be posted on the repository pull or merge // requests ProviderSilentMode bool `json:"providerSilentMode"` + // List of branch name patterns that trigger automatic deployments. Supports + // glob wildcards. Empty list deploys on all branches. + ProviderBranches []string `json:"providerBranches"` + // List of file path patterns that trigger automatic deployments. Supports + // glob wildcards. Empty list deploys on all file changes. + ProviderPaths []string `json:"providerPaths"` // Machine specification for deployment builds. BuildSpecification string `json:"buildSpecification"` // Machine specification for SSR executions. diff --git a/models/siteList_test.go b/models/siteList_test.go index a7c44422..7470d967 100644 --- a/models/siteList_test.go +++ b/models/siteList_test.go @@ -7,7 +7,7 @@ import ( func TestSiteListModel(t *testing.T) { model := SiteList{ Total: 5, Sites: []Site{Site{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Name: "My Site", Enabled: true, Live: true, Logging: true, Framework: "react", DeploymentRetention: 7, DeploymentId: "5e5ea5c16897e", DeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", DeploymentScreenshotLight: "5e5ea5c16897e", DeploymentScreenshotDark: "5e5ea5c16897e", LatestDeploymentId: "5e5ea5c16897e", LatestDeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentStatus: "ready", Vars: []Variable{Variable{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Key: "API_KEY", Value: "myPa$$word1", Secret: true, ResourceType: "function", ResourceId: "myAwesomeFunction", }, - }, Timeout: 300, InstallCommand: "npm install", BuildCommand: "npm run build", StartCommand: "node custom-server.mjs", OutputDirectory: "build", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "sites/helloWorld", ProviderSilentMode: true, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", BuildRuntime: "node-22", Adapter: "static", FallbackFile: "index.html", }, + }, Timeout: 300, InstallCommand: "npm install", BuildCommand: "npm run build", StartCommand: "node custom-server.mjs", OutputDirectory: "build", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "sites/helloWorld", ProviderSilentMode: true, ProviderBranches: []string{"test"}, ProviderPaths: []string{"test"}, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", BuildRuntime: "node-22", Adapter: "static", FallbackFile: "index.html", }, }, } data, err := json.Marshal(model) diff --git a/models/site_test.go b/models/site_test.go index 661ae432..ae623183 100644 --- a/models/site_test.go +++ b/models/site_test.go @@ -7,7 +7,7 @@ import ( func TestSiteModel(t *testing.T) { model := Site{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Name: "My Site", Enabled: true, Live: true, Logging: true, Framework: "react", DeploymentRetention: 7, DeploymentId: "5e5ea5c16897e", DeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", DeploymentScreenshotLight: "5e5ea5c16897e", DeploymentScreenshotDark: "5e5ea5c16897e", LatestDeploymentId: "5e5ea5c16897e", LatestDeploymentCreatedAt: "2020-10-15T06:38:00.000+00:00", LatestDeploymentStatus: "ready", Vars: []Variable{Variable{ Id: "5e5ea5c16897e", CreatedAt: "2020-10-15T06:38:00.000+00:00", UpdatedAt: "2020-10-15T06:38:00.000+00:00", Key: "API_KEY", Value: "myPa$$word1", Secret: true, ResourceType: "function", ResourceId: "myAwesomeFunction", }, - }, Timeout: 300, InstallCommand: "npm install", BuildCommand: "npm run build", StartCommand: "node custom-server.mjs", OutputDirectory: "build", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "sites/helloWorld", ProviderSilentMode: true, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", BuildRuntime: "node-22", Adapter: "static", FallbackFile: "index.html", } + }, Timeout: 300, InstallCommand: "npm install", BuildCommand: "npm run build", StartCommand: "node custom-server.mjs", OutputDirectory: "build", InstallationId: "6m40at4ejk5h2u9s1hboo", ProviderRepositoryId: "appwrite", ProviderBranch: "main", ProviderRootDirectory: "sites/helloWorld", ProviderSilentMode: true, ProviderBranches: []string{"test"}, ProviderPaths: []string{"test"}, BuildSpecification: "s-1vcpu-512mb", RuntimeSpecification: "s-1vcpu-512mb", BuildRuntime: "node-22", Adapter: "static", FallbackFile: "index.html", } data, err := json.Marshal(model) if err != nil { diff --git a/models/usageGauge.go b/models/usageGauge.go index 4b1eea1b..02eb86cd 100644 --- a/models/usageGauge.go +++ b/models/usageGauge.go @@ -13,6 +13,10 @@ type UsageGauge struct { Value int `json:"value"` // The snapshot timestamp. Time string `json:"time"` + // The resource type. + ResourceType string `json:"resourceType"` + // The resource ID. + ResourceId string `json:"resourceId"` // Used by Decode() method data []byte diff --git a/models/usageGaugeList_test.go b/models/usageGaugeList_test.go index 7505d861..32a31c86 100644 --- a/models/usageGaugeList_test.go +++ b/models/usageGaugeList_test.go @@ -6,7 +6,7 @@ import ( ) func TestUsageGaugeListModel(t *testing.T) { - model := UsageGaugeList{ Total: 5, Gauges: []UsageGauge{UsageGauge{ Metric: "users", Value: 1500, Time: "2026-04-09T12:00:00.000+00:00", }, + model := UsageGaugeList{ Total: 5, Gauges: []UsageGauge{UsageGauge{ Metric: "users", Value: 1500, Time: "2026-04-09T12:00:00.000+00:00", ResourceType: "dedicatedDatabases", ResourceId: "production", }, }, } data, err := json.Marshal(model) diff --git a/models/usageGauge_test.go b/models/usageGauge_test.go index dad63401..06b5a1d1 100644 --- a/models/usageGauge_test.go +++ b/models/usageGauge_test.go @@ -6,7 +6,7 @@ import ( ) func TestUsageGaugeModel(t *testing.T) { - model := UsageGauge{ Metric: "users", Value: 1500, Time: "2026-04-09T12:00:00.000+00:00", } + model := UsageGauge{ Metric: "users", Value: 1500, Time: "2026-04-09T12:00:00.000+00:00", ResourceType: "dedicatedDatabases", ResourceId: "production", } data, err := json.Marshal(model) if err != nil { @@ -26,4 +26,10 @@ func TestUsageGaugeModel(t *testing.T) { } if result.Time != model.Time { t.Errorf("Expected Time %v, got %v", model.Time, result.Time) + } + if result.ResourceType != model.ResourceType { + t.Errorf("Expected ResourceType %v, got %v", model.ResourceType, result.ResourceType) + } + if result.ResourceId != model.ResourceId { + t.Errorf("Expected ResourceId %v, got %v", model.ResourceId, result.ResourceId) }} diff --git a/organization/organization.go b/organization/organization.go new file mode 100644 index 00000000..7f4f158d --- /dev/null +++ b/organization/organization.go @@ -0,0 +1,522 @@ +package organization + +import ( + "encoding/json" + "errors" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" + "strings" +) + +// Organization service +type Organization struct { + client client.Client +} + +func New(clt client.Client) *Organization { + return &Organization{ + client: clt, + } +} + +type ListKeysOptions struct { + Queries []string + Total bool + enabledSetters map[string]bool +} +func (options ListKeysOptions) New() *ListKeysOptions { + options.enabledSetters = map[string]bool{ + "Queries": false, + "Total": false, + } + return &options +} +type ListKeysOption func(*ListKeysOptions) +func (srv *Organization) WithListKeysQueries(v []string) ListKeysOption { + return func(o *ListKeysOptions) { + o.Queries = v + o.enabledSetters["Queries"] = true + } +} +func (srv *Organization) WithListKeysTotal(v bool) ListKeysOption { + return func(o *ListKeysOptions) { + o.Total = v + o.enabledSetters["Total"] = true + } +} + +// ListKeys get a list of all API keys from the current organization. +func (srv *Organization) ListKeys(optionalSetters ...ListKeysOption)(*models.KeyList, error) { + path := "/organization/keys" + options := ListKeysOptions{}.New() + for _, opt := range optionalSetters { + opt(options) + } + params := map[string]interface{}{} + if options.enabledSetters["Queries"] { + params["queries"] = options.Queries + } + if options.enabledSetters["Total"] { + params["total"] = options.Total + } + headers := map[string]interface{}{ + } + + resp, err := srv.client.Call("GET", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.KeyList{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.KeyList + parsed, ok := resp.Result.(models.KeyList) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} +type CreateKeyOptions struct { + Expire string + enabledSetters map[string]bool +} +func (options CreateKeyOptions) New() *CreateKeyOptions { + options.enabledSetters = map[string]bool{ + "Expire": false, + } + return &options +} +type CreateKeyOption func(*CreateKeyOptions) +func (srv *Organization) WithCreateKeyExpire(v string) CreateKeyOption { + return func(o *CreateKeyOptions) { + o.Expire = v + o.enabledSetters["Expire"] = true + } +} + +// CreateKey create a new organization API key. +func (srv *Organization) CreateKey(KeyId string, Name string, Scopes []string, optionalSetters ...CreateKeyOption)(*models.Key, error) { + path := "/organization/keys" + options := CreateKeyOptions{}.New() + for _, opt := range optionalSetters { + opt(options) + } + params := map[string]interface{}{} + params["keyId"] = KeyId + params["name"] = Name + params["scopes"] = Scopes + if options.enabledSetters["Expire"] { + params["expire"] = options.Expire + } + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("POST", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Key{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Key + parsed, ok := resp.Result.(models.Key) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} + +// GetKey get a key by its unique ID. This endpoint returns details about a +// specific API key in your organization including its scopes. +func (srv *Organization) GetKey(KeyId string)(*models.Key, error) { + r := strings.NewReplacer("{keyId}", KeyId) + path := r.Replace("/organization/keys/{keyId}") + params := map[string]interface{}{} + params["keyId"] = KeyId + headers := map[string]interface{}{ + } + + resp, err := srv.client.Call("GET", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Key{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Key + parsed, ok := resp.Result.(models.Key) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} +type UpdateKeyOptions struct { + Expire string + enabledSetters map[string]bool +} +func (options UpdateKeyOptions) New() *UpdateKeyOptions { + options.enabledSetters = map[string]bool{ + "Expire": false, + } + return &options +} +type UpdateKeyOption func(*UpdateKeyOptions) +func (srv *Organization) WithUpdateKeyExpire(v string) UpdateKeyOption { + return func(o *UpdateKeyOptions) { + o.Expire = v + o.enabledSetters["Expire"] = true + } +} + +// UpdateKey update a key by its unique ID. Use this endpoint to update the +// name, scopes, or expiration time of an API key. +func (srv *Organization) UpdateKey(KeyId string, Name string, Scopes []string, optionalSetters ...UpdateKeyOption)(*models.Key, error) { + r := strings.NewReplacer("{keyId}", KeyId) + path := r.Replace("/organization/keys/{keyId}") + options := UpdateKeyOptions{}.New() + for _, opt := range optionalSetters { + opt(options) + } + params := map[string]interface{}{} + params["keyId"] = KeyId + params["name"] = Name + params["scopes"] = Scopes + if options.enabledSetters["Expire"] { + params["expire"] = options.Expire + } + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("PUT", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Key{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Key + parsed, ok := resp.Result.(models.Key) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} + +// DeleteKey delete a key by its unique ID. Once deleted, the key can no +// longer be used to authenticate API calls. +func (srv *Organization) DeleteKey(KeyId string)(*interface{}, error) { + r := strings.NewReplacer("{keyId}", KeyId) + path := r.Replace("/organization/keys/{keyId}") + params := map[string]interface{}{} + params["keyId"] = KeyId + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("DELETE", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + var parsed interface{} + + err = json.Unmarshal(bytes, &parsed) + if err != nil { + return nil, err + } + return &parsed, nil + } + var parsed interface{} + parsed, ok := resp.Result.(interface{}) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} +type ListProjectsOptions struct { + Queries []string + Search string + Total bool + enabledSetters map[string]bool +} +func (options ListProjectsOptions) New() *ListProjectsOptions { + options.enabledSetters = map[string]bool{ + "Queries": false, + "Search": false, + "Total": false, + } + return &options +} +type ListProjectsOption func(*ListProjectsOptions) +func (srv *Organization) WithListProjectsQueries(v []string) ListProjectsOption { + return func(o *ListProjectsOptions) { + o.Queries = v + o.enabledSetters["Queries"] = true + } +} +func (srv *Organization) WithListProjectsSearch(v string) ListProjectsOption { + return func(o *ListProjectsOptions) { + o.Search = v + o.enabledSetters["Search"] = true + } +} +func (srv *Organization) WithListProjectsTotal(v bool) ListProjectsOption { + return func(o *ListProjectsOptions) { + o.Total = v + o.enabledSetters["Total"] = true + } +} + +// ListProjects get a list of all projects. You can use the query params to +// filter your results. +func (srv *Organization) ListProjects(optionalSetters ...ListProjectsOption)(*models.ProjectList, error) { + path := "/organization/projects" + options := ListProjectsOptions{}.New() + for _, opt := range optionalSetters { + opt(options) + } + params := map[string]interface{}{} + if options.enabledSetters["Queries"] { + params["queries"] = options.Queries + } + if options.enabledSetters["Search"] { + params["search"] = options.Search + } + if options.enabledSetters["Total"] { + params["total"] = options.Total + } + headers := map[string]interface{}{ + } + + resp, err := srv.client.Call("GET", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.ProjectList{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.ProjectList + parsed, ok := resp.Result.(models.ProjectList) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} +type CreateProjectOptions struct { + Region string + enabledSetters map[string]bool +} +func (options CreateProjectOptions) New() *CreateProjectOptions { + options.enabledSetters = map[string]bool{ + "Region": false, + } + return &options +} +type CreateProjectOption func(*CreateProjectOptions) +func (srv *Organization) WithCreateProjectRegion(v string) CreateProjectOption { + return func(o *CreateProjectOptions) { + o.Region = v + o.enabledSetters["Region"] = true + } +} + +// CreateProject create a new project. +func (srv *Organization) CreateProject(ProjectId string, Name string, optionalSetters ...CreateProjectOption)(*models.Project, error) { + path := "/organization/projects" + options := CreateProjectOptions{}.New() + for _, opt := range optionalSetters { + opt(options) + } + params := map[string]interface{}{} + params["projectId"] = ProjectId + params["name"] = Name + if options.enabledSetters["Region"] { + params["region"] = options.Region + } + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("POST", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Project{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Project + parsed, ok := resp.Result.(models.Project) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} + +// GetProject get a project. +func (srv *Organization) GetProject(ProjectId string)(*models.Project, error) { + r := strings.NewReplacer("{projectId}", ProjectId) + path := r.Replace("/organization/projects/{projectId}") + params := map[string]interface{}{} + params["projectId"] = ProjectId + headers := map[string]interface{}{ + } + + resp, err := srv.client.Call("GET", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Project{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Project + parsed, ok := resp.Result.(models.Project) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} + +// UpdateProject update a project by its unique ID. +func (srv *Organization) UpdateProject(ProjectId string, Name string)(*models.Project, error) { + r := strings.NewReplacer("{projectId}", ProjectId) + path := r.Replace("/organization/projects/{projectId}") + params := map[string]interface{}{} + params["projectId"] = ProjectId + params["name"] = Name + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("PATCH", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + parsed := models.Project{}.New(bytes) + + err = json.Unmarshal(bytes, parsed) + if err != nil { + return nil, err + } + + return parsed, nil + } + var parsed models.Project + parsed, ok := resp.Result.(models.Project) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} + +// DeleteProject delete a project by its unique ID. +func (srv *Organization) DeleteProject(ProjectId string)(*interface{}, error) { + r := strings.NewReplacer("{projectId}", ProjectId) + path := r.Replace("/organization/projects/{projectId}") + params := map[string]interface{}{} + params["projectId"] = ProjectId + headers := map[string]interface{}{ + "content-type": "application/json", + } + + resp, err := srv.client.Call("DELETE", path, headers, params) + if err != nil { + return nil, err + } + if strings.HasPrefix(resp.Type, "application/json") { + bytes := []byte(resp.Result.(string)) + + var parsed interface{} + + err = json.Unmarshal(bytes, &parsed) + if err != nil { + return nil, err + } + return &parsed, nil + } + var parsed interface{} + parsed, ok := resp.Result.(interface{}) + if !ok { + return nil, errors.New("unexpected response type") + } + return &parsed, nil + +} diff --git a/organization/organization_test.go b/organization/organization_test.go new file mode 100644 index 00000000..8e2a0471 --- /dev/null +++ b/organization/organization_test.go @@ -0,0 +1,568 @@ +package organization + +import ( + "net/http" + "net/http/httptest" + "testing" + + "github.com/appwrite/sdk-for-go/v5/client" +) + +func TestOrganization(t *testing.T) { + newTestClient := func(ts *httptest.Server) client.Client { + c := client.New() + c.Endpoint = ts.URL + c.Client = ts.Client() + return c + } + + t.Run("Test ListKeys", func(t *testing.T) { + mockResponse := ` +{ + "total": 5, + "keys": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "My API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "scopes": [], + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] + } + ] +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "GET" { + t.Errorf("Expected method GET, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.ListKeys() + if err != nil { + t.Errorf("Method ListKeys failed: %v", err) + } + }) + + t.Run("Test CreateKey", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "My API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "scopes": [], + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "POST" { + t.Errorf("Expected method POST, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.CreateKey("", "", []string{}) + if err != nil { + t.Errorf("Method CreateKey failed: %v", err) + } + }) + + t.Run("Test GetKey", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "My API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "scopes": [], + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "GET" { + t.Errorf("Expected method GET, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.GetKey("") + if err != nil { + t.Errorf("Method GetKey failed: %v", err) + } + }) + + t.Run("Test UpdateKey", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "My API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "scopes": [], + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "PUT" { + t.Errorf("Expected method PUT, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.UpdateKey("", "", []string{}) + if err != nil { + t.Errorf("Method UpdateKey failed: %v", err) + } + }) + + t.Run("Test DeleteKey", func(t *testing.T) { + mockResponse := ` +{ + "message": "success" +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "DELETE" { + t.Errorf("Expected method DELETE, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.DeleteKey("") + if err != nil { + t.Errorf("Method DeleteKey failed: %v", err) + } + }) + + t.Run("Test ListProjects", func(t *testing.T) { + mockResponse := ` +{ + "total": 5, + "projects": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "New Project", + "teamId": "1592981250", + "devKeys": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "Dev API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] + } + ], + "smtpEnabled": true, + "smtpSenderName": "John Appwrite", + "smtpSenderEmail": "john@appwrite.io", + "smtpReplyToName": "Support Team", + "smtpReplyToEmail": "support@appwrite.io", + "smtpHost": "mail.appwrite.io", + "smtpPort": 25, + "smtpUsername": "emailuser", + "smtpPassword": "string", + "smtpSecure": "tls", + "pingCount": 1, + "pingedAt": "2020-10-15T06:38:00.000+00:00", + "labels": [], + "status": "active", + "authMethods": [ + { + "$id": "email-password", + "enabled": true + } + ], + "services": [ + { + "$id": "sites", + "enabled": true + } + ], + "protocols": [ + { + "$id": "graphql", + "enabled": true + } + ], + "region": "fra", + "blocks": [ + { + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "resourceType": "project", + "resourceId": "5e5ea5c16897e", + "projectName": "My Project", + "region": "fra", + "organizationName": "Acme Inc.", + "organizationId": "5e5ea5c16897e", + "billingPlan": "pro" + } + ], + "consoleAccessedAt": "2020-10-15T06:38:00.000+00:00" + } + ] +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "GET" { + t.Errorf("Expected method GET, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.ListProjects() + if err != nil { + t.Errorf("Method ListProjects failed: %v", err) + } + }) + + t.Run("Test CreateProject", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "New Project", + "teamId": "1592981250", + "devKeys": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "Dev API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] + } + ], + "smtpEnabled": true, + "smtpSenderName": "John Appwrite", + "smtpSenderEmail": "john@appwrite.io", + "smtpReplyToName": "Support Team", + "smtpReplyToEmail": "support@appwrite.io", + "smtpHost": "mail.appwrite.io", + "smtpPort": 25, + "smtpUsername": "emailuser", + "smtpPassword": "string", + "smtpSecure": "tls", + "pingCount": 1, + "pingedAt": "2020-10-15T06:38:00.000+00:00", + "labels": [], + "status": "active", + "authMethods": [ + { + "$id": "email-password", + "enabled": true + } + ], + "services": [ + { + "$id": "sites", + "enabled": true + } + ], + "protocols": [ + { + "$id": "graphql", + "enabled": true + } + ], + "region": "fra", + "blocks": [ + { + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "resourceType": "project", + "resourceId": "5e5ea5c16897e", + "projectName": "My Project", + "region": "fra", + "organizationName": "Acme Inc.", + "organizationId": "5e5ea5c16897e", + "billingPlan": "pro" + } + ], + "consoleAccessedAt": "2020-10-15T06:38:00.000+00:00" +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "POST" { + t.Errorf("Expected method POST, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.CreateProject("", "") + if err != nil { + t.Errorf("Method CreateProject failed: %v", err) + } + }) + + t.Run("Test GetProject", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "New Project", + "teamId": "1592981250", + "devKeys": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "Dev API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] + } + ], + "smtpEnabled": true, + "smtpSenderName": "John Appwrite", + "smtpSenderEmail": "john@appwrite.io", + "smtpReplyToName": "Support Team", + "smtpReplyToEmail": "support@appwrite.io", + "smtpHost": "mail.appwrite.io", + "smtpPort": 25, + "smtpUsername": "emailuser", + "smtpPassword": "string", + "smtpSecure": "tls", + "pingCount": 1, + "pingedAt": "2020-10-15T06:38:00.000+00:00", + "labels": [], + "status": "active", + "authMethods": [ + { + "$id": "email-password", + "enabled": true + } + ], + "services": [ + { + "$id": "sites", + "enabled": true + } + ], + "protocols": [ + { + "$id": "graphql", + "enabled": true + } + ], + "region": "fra", + "blocks": [ + { + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "resourceType": "project", + "resourceId": "5e5ea5c16897e", + "projectName": "My Project", + "region": "fra", + "organizationName": "Acme Inc.", + "organizationId": "5e5ea5c16897e", + "billingPlan": "pro" + } + ], + "consoleAccessedAt": "2020-10-15T06:38:00.000+00:00" +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "GET" { + t.Errorf("Expected method GET, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.GetProject("") + if err != nil { + t.Errorf("Method GetProject failed: %v", err) + } + }) + + t.Run("Test UpdateProject", func(t *testing.T) { + mockResponse := ` +{ + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "New Project", + "teamId": "1592981250", + "devKeys": [ + { + "$id": "5e5ea5c16897e", + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "name": "Dev API Key", + "expire": "2020-10-15T06:38:00.000+00:00", + "secret": "919c2d18fb5d4...a2ae413da83346ad2", + "accessedAt": "2020-10-15T06:38:00.000+00:00", + "sdks": [] + } + ], + "smtpEnabled": true, + "smtpSenderName": "John Appwrite", + "smtpSenderEmail": "john@appwrite.io", + "smtpReplyToName": "Support Team", + "smtpReplyToEmail": "support@appwrite.io", + "smtpHost": "mail.appwrite.io", + "smtpPort": 25, + "smtpUsername": "emailuser", + "smtpPassword": "string", + "smtpSecure": "tls", + "pingCount": 1, + "pingedAt": "2020-10-15T06:38:00.000+00:00", + "labels": [], + "status": "active", + "authMethods": [ + { + "$id": "email-password", + "enabled": true + } + ], + "services": [ + { + "$id": "sites", + "enabled": true + } + ], + "protocols": [ + { + "$id": "graphql", + "enabled": true + } + ], + "region": "fra", + "blocks": [ + { + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "resourceType": "project", + "resourceId": "5e5ea5c16897e", + "projectName": "My Project", + "region": "fra", + "organizationName": "Acme Inc.", + "organizationId": "5e5ea5c16897e", + "billingPlan": "pro" + } + ], + "consoleAccessedAt": "2020-10-15T06:38:00.000+00:00" +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "PATCH" { + t.Errorf("Expected method PATCH, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.UpdateProject("", "") + if err != nil { + t.Errorf("Method UpdateProject failed: %v", err) + } + }) + + t.Run("Test DeleteProject", func(t *testing.T) { + mockResponse := ` +{ + "message": "success" +} +` + + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != "DELETE" { + t.Errorf("Expected method DELETE, got %s", r.Method) + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(mockResponse)) + })) + defer ts.Close() + + srv := New(newTestClient(ts)) + + _, err := srv.DeleteProject("") + if err != nil { + t.Errorf("Method DeleteProject failed: %v", err) + } + }) +} diff --git a/presences/presences.go b/presences/presences.go index 2d8c2560..e7d2bc59 100644 --- a/presences/presences.go +++ b/presences/presences.go @@ -3,8 +3,8 @@ package presences import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) @@ -215,7 +215,7 @@ func (srv *Presences) Upsert(PresenceId string, UserId string, Status string, op return &parsed, nil } -type UpdatePresenceOptions struct { +type UpdateOptions struct { Status string ExpiresAt string Metadata interface{} @@ -223,7 +223,7 @@ type UpdatePresenceOptions struct { Purge bool enabledSetters map[string]bool } -func (options UpdatePresenceOptions) New() *UpdatePresenceOptions { +func (options UpdateOptions) New() *UpdateOptions { options.enabledSetters = map[string]bool{ "Status": false, "ExpiresAt": false, @@ -233,44 +233,44 @@ func (options UpdatePresenceOptions) New() *UpdatePresenceOptions { } return &options } -type UpdatePresenceOption func(*UpdatePresenceOptions) -func (srv *Presences) WithUpdatePresenceStatus(v string) UpdatePresenceOption { - return func(o *UpdatePresenceOptions) { +type UpdateOption func(*UpdateOptions) +func (srv *Presences) WithUpdateStatus(v string) UpdateOption { + return func(o *UpdateOptions) { o.Status = v o.enabledSetters["Status"] = true } } -func (srv *Presences) WithUpdatePresenceExpiresAt(v string) UpdatePresenceOption { - return func(o *UpdatePresenceOptions) { +func (srv *Presences) WithUpdateExpiresAt(v string) UpdateOption { + return func(o *UpdateOptions) { o.ExpiresAt = v o.enabledSetters["ExpiresAt"] = true } } -func (srv *Presences) WithUpdatePresenceMetadata(v interface{}) UpdatePresenceOption { - return func(o *UpdatePresenceOptions) { +func (srv *Presences) WithUpdateMetadata(v interface{}) UpdateOption { + return func(o *UpdateOptions) { o.Metadata = v o.enabledSetters["Metadata"] = true } } -func (srv *Presences) WithUpdatePresencePermissions(v []string) UpdatePresenceOption { - return func(o *UpdatePresenceOptions) { +func (srv *Presences) WithUpdatePermissions(v []string) UpdateOption { + return func(o *UpdateOptions) { o.Permissions = v o.enabledSetters["Permissions"] = true } } -func (srv *Presences) WithUpdatePresencePurge(v bool) UpdatePresenceOption { - return func(o *UpdatePresenceOptions) { +func (srv *Presences) WithUpdatePurge(v bool) UpdateOption { + return func(o *UpdateOptions) { o.Purge = v o.enabledSetters["Purge"] = true } } -// UpdatePresence update a presence log by its unique ID. Using the patch -// method you can pass only specific fields that will get updated. -func (srv *Presences) UpdatePresence(PresenceId string, UserId string, optionalSetters ...UpdatePresenceOption)(*models.Presence, error) { +// Update update a presence log by its unique ID. Using the patch method you +// can pass only specific fields that will get updated. +func (srv *Presences) Update(PresenceId string, UserId string, optionalSetters ...UpdateOption)(*models.Presence, error) { r := strings.NewReplacer("{presenceId}", PresenceId) path := r.Replace("/presences/{presenceId}") - options := UpdatePresenceOptions{}.New() + options := UpdateOptions{}.New() for _, opt := range optionalSetters { opt(options) } diff --git a/presences/presences_test.go b/presences/presences_test.go index bc4ef0ca..651f5600 100644 --- a/presences/presences_test.go +++ b/presences/presences_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestPresences(t *testing.T) { @@ -114,7 +114,7 @@ func TestPresences(t *testing.T) { } }) - t.Run("Test UpdatePresence", func(t *testing.T) { + t.Run("Test Update", func(t *testing.T) { mockResponse := ` { "$id": "5e5ea5c16897e", @@ -139,9 +139,9 @@ func TestPresences(t *testing.T) { srv := New(newTestClient(ts)) - _, err := srv.UpdatePresence("", "") + _, err := srv.Update("", "") if err != nil { - t.Errorf("Method UpdatePresence failed: %v", err) + t.Errorf("Method Update failed: %v", err) } }) diff --git a/project/project.go b/project/project.go index a851df46..d3e0b502 100644 --- a/project/project.go +++ b/project/project.go @@ -3,8 +3,8 @@ package project import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "fmt" "strings" ) @@ -5814,6 +5814,30 @@ func (srv *Project) GetPolicy(PolicyId string)(models.Model, error) { return parsed, nil } + if fmt.Sprint(response["$id"]) == "deny-aliased-email" { + parsed := models.PolicyDenyAliasedEmail{}.New(bytes) + if err := json.Unmarshal(bytes, parsed); err != nil { + return nil, err + } + + return parsed, nil + } + if fmt.Sprint(response["$id"]) == "deny-disposable-email" { + parsed := models.PolicyDenyDisposableEmail{}.New(bytes) + if err := json.Unmarshal(bytes, parsed); err != nil { + return nil, err + } + + return parsed, nil + } + if fmt.Sprint(response["$id"]) == "deny-free-email" { + parsed := models.PolicyDenyFreeEmail{}.New(bytes) + if err := json.Unmarshal(bytes, parsed); err != nil { + return nil, err + } + + return parsed, nil + } return nil, errors.New("unable to match response to any expected response model") } diff --git a/project/project_test.go b/project/project_test.go index ebbd0c79..3e0b9836 100644 --- a/project/project_test.go +++ b/project/project_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" ) func TestProject(t *testing.T) { @@ -70,16 +70,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -194,16 +184,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -493,16 +473,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -718,7 +688,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "amzn1.application-oa2-client.87400c00000000000000000000063d5b2", - "clientSecret": "79ffe4000000000000000000000000000000000000000000000000000002de55" + "clientSecret": "your-oauth2-client-secret" } ` @@ -778,7 +748,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "OaOkIA000000000000000000005KLSYq", - "clientSecret": "zXz0000-00000000000000000000000000000-00000000000000000000PJafnF", + "clientSecret": "your-oauth2-client-secret", "endpoint": "example.us.auth0.com" } ` @@ -808,7 +778,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "dTKOPa0000000000000000000000000000e7G8hv", - "clientSecret": "ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK", + "clientSecret": "your-oauth2-client-secret", "endpoint": "example.authentik.com" } ` @@ -838,7 +808,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "5zw90v00000000000000000000kVYXN7", - "clientSecret": "7I000000000000MW" + "clientSecret": "your-oauth2-client-secret" } ` @@ -867,7 +837,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "key": "Knt70000000000ByRc", - "secret": "NMfLZJ00000000000000000000TLQdDx" + "secret": "your-oauth2-client-secret" } ` @@ -896,7 +866,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "d95151000000000000000000000000000067af9b", - "clientSecret": "a13e250000000000000000000000000000d73095" + "clientSecret": "your-oauth2-client-secret" } ` @@ -925,7 +895,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "deglcs00000000000000000000x2og6y", - "clientSecret": "OKM1f100000000000000000000eshEif" + "clientSecret": "your-oauth2-client-secret" } ` @@ -954,7 +924,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "apiKey": "07a9000000000000067f", - "apiSecret": "a399a90000000000000000000000000000d90639" + "apiSecret": "your-oauth2-client-secret" } ` @@ -983,7 +953,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "950722000000343754", - "clientSecret": "YmPXnM000000000000000000002zFg5D" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1012,7 +982,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "publicKey": "cgegH70000000000000000000000000000000000000000000000000000Hr1nYX", - "secretKey": "W7Bykj00000000000000000000000000000000000000000000000000003o43w9" + "secretKey": "your-oauth2-client-secret" } ` @@ -1041,7 +1011,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "appKey": "jl000000000009t", - "appSecret": "g200000000000vw" + "appSecret": "your-oauth2-client-secret" } ` @@ -1070,7 +1040,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "keyString": "nsgzxh0000000000008j85a2", - "sharedSecret": "tp000000ru" + "sharedSecret": "your-oauth2-client-secret" } ` @@ -1099,7 +1069,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "appId": "260600000007694", - "appSecret": "2d0b2800000000000000000000d38af4" + "appSecret": "your-oauth2-client-secret" } ` @@ -1128,7 +1098,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "byay5H0000000000VtiI40", - "clientSecret": "yEpOYn0000000000000000004iIsU5" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1157,7 +1127,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "b2222c00-0000-0000-0000-000000862097", - "clientSecret": "Jx4s0C0000000000000000000000000000000wGqLsc", + "clientSecret": "your-oauth2-client-secret", "endpoint": "example.fusionauth.io" } ` @@ -1187,7 +1157,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "e4d87900000000540733", - "clientSecret": "5e07c00000000000000000000000000000198bcc" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1216,7 +1186,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "applicationId": "d41ffe0000000000000000000000000000000000000000000000000000d5e252", - "secret": "gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38", + "secret": "your-oauth2-client-secret", "endpoint": "https://gitlab.com" } ` @@ -1246,7 +1216,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com", - "clientSecret": "example-google-client-secret", + "clientSecret": "your-oauth2-client-secret", "prompt": [] } ` @@ -1276,7 +1246,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "appwrite-o0000000st-app", - "clientSecret": "jdjrJd00000000000000000000HUsaZO", + "clientSecret": "your-oauth2-client-secret", "endpoint": "keycloak.example.com", "realmName": "appwrite-realm" } @@ -1307,7 +1277,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "01KQ7C00000000000001MFHS32", - "clientSecret": "34ac5600000000000000000000000000000000000000000000000000e830c8b" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1336,7 +1306,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "770000000000dv", - "primaryClientSecret": "example-linkedin-client-secret" + "primaryClientSecret": "your-oauth2-client-secret" } ` @@ -1365,7 +1335,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "applicationId": "00001111-aaaa-2222-bbbb-3333cccc4444", - "applicationSecret": "A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u", + "applicationSecret": "your-oauth2-client-secret", "tenant": "common" } ` @@ -1395,7 +1365,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "oauthClientId": "341d8700-0000-0000-0000-000000446ee3", - "oauthClientSecret": "secret_dLUr4b000000000000000000000000000000lFHAa9" + "oauthClientSecret": "your-oauth2-client-secret" } ` @@ -1424,7 +1394,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "qibI2x0000000000000000000000000006L2YFoG", - "clientSecret": "Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV", + "clientSecret": "your-oauth2-client-secret", "wellKnownURL": "https://myoauth.com/.well-known/openid-configuration", "authorizationURL": "https://myoauth.com/oauth2/authorize", "tokenURL": "https://myoauth.com/oauth2/token", @@ -1457,7 +1427,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "0oa00000000000000698", - "clientSecret": "Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV", + "clientSecret": "your-oauth2-client-secret", "domain": "trial-6400025.okta.com", "authorizationServerId": "aus000000000000000h7z" } @@ -1488,7 +1458,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB", - "secretKey": "EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp" + "secretKey": "your-oauth2-client-secret" } ` @@ -1517,7 +1487,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB", - "secretKey": "EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp" + "secretKey": "your-oauth2-client-secret" } ` @@ -1546,7 +1516,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "appwrite-oauth-test-app", - "clientSecret": "Rn247T0000000000000000000000000000000000000000000000000000W2zWTN" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1575,7 +1545,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "customerKey": "3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq", - "customerSecret": "3w000000000000e2" + "customerSecret": "your-oauth2-client-secret" } ` @@ -1604,7 +1574,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "23000000089.15000000000023", - "clientSecret": "81656000000000000000000000f3d2fd" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1633,7 +1603,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "6ec271000000000000000000009beace", - "clientSecret": "db068a000000000000000000008b5b9f" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1662,7 +1632,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "ca_UKibXX0000000000000000000006byvR", - "apiSecretKey": "sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp" + "apiSecretKey": "your-oauth2-client-secret" } ` @@ -1691,7 +1661,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "oauth2ClientId": "appwrite-test-org.appwrite-test-app", - "oauth2ClientSecret": "7cb52700-0000-0000-0000-000000ca5b83" + "oauth2ClientSecret": "your-oauth2-client-secret" } ` @@ -1720,7 +1690,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "oauth2ClientId": "appwrite-test-org.appwrite-test-app", - "oauth2ClientSecret": "7cb52700-0000-0000-0000-000000ca5b83" + "oauth2ClientSecret": "your-oauth2-client-secret" } ` @@ -1749,7 +1719,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "vvi0in000000000000000000ikmt9p", - "clientSecret": "pmapue000000000000000000zylw3v" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1778,7 +1748,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "130005", - "clientSecret": "PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1807,7 +1777,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "customerKey": "slzZV0000000000000NFLaWT", - "secretKey": "tkEPkp00000000000000000000000000000000000000FTxbI9" + "secretKey": "your-oauth2-client-secret" } ` @@ -1836,7 +1806,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm", - "clientSecret": "cf978f0000000000000000000000000000c5e2e9" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1865,7 +1835,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "6a8a6a0000000000000000000091483c", - "clientSecret": "bbf98500000000000000000000c75a63" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1894,7 +1864,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "1000.83C178000000000000000000RPNX0B", - "clientSecret": "fb5cac000000000000000000000000000000a68f6e" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1923,7 +1893,7 @@ func TestProject(t *testing.T) { "$id": "github", "enabled": true, "clientId": "QMAC00000000000000w0AQ", - "clientSecret": "GAWsG4000000000000000000007U01ON" + "clientSecret": "your-oauth2-client-secret" } ` @@ -1952,7 +1922,7 @@ func TestProject(t *testing.T) { "$id": "microsoft", "enabled": true, "applicationId": "00001111-aaaa-2222-bbbb-3333cccc4444", - "applicationSecret": "A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u", + "applicationSecret": "your-oauth2-client-secret", "tenant": "common" } ` @@ -2456,16 +2426,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -2554,16 +2514,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -2652,16 +2602,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -2750,16 +2690,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -2848,16 +2778,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -2946,16 +2866,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3044,16 +2954,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3142,16 +3042,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3240,16 +3130,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3338,16 +3218,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3436,16 +3306,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3534,16 +3394,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3582,12 +3432,8 @@ func TestProject(t *testing.T) { t.Run("Test GetPolicy", func(t *testing.T) { mockResponse := ` { - "$id": "membership-privacy", - "userId": true, - "userEmail": true, - "userPhone": true, - "userName": true, - "userMFA": true + "$id": "deny-free-email", + "enabled": true } ` @@ -3608,8 +3454,8 @@ func TestProject(t *testing.T) { if err != nil { t.Errorf("Method GetPolicy failed: %v", err) } - if _, ok := response.(*models.PolicyMembershipPrivacy); !ok { - t.Errorf("Expected response type *models.PolicyMembershipPrivacy, got %T", response) + if _, ok := response.(*models.PolicyDenyFreeEmail); !ok { + t.Errorf("Expected response type *models.PolicyDenyFreeEmail, got %T", response) } }) @@ -3666,16 +3512,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3764,16 +3600,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", @@ -3862,16 +3688,6 @@ func TestProject(t *testing.T) { } ], "region": "fra", - "billingLimits": { - "bandwidth": 5, - "storage": 150, - "users": 200000, - "executions": 750000, - "GBHours": 100, - "imageTransformations": 100, - "authPhone": 10, - "budgetLimit": 100 - }, "blocks": [ { "$createdAt": "2020-10-15T06:38:00.000+00:00", diff --git a/proxy/proxy.go b/proxy/proxy.go index f30b9ef0..5e565a61 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -3,8 +3,8 @@ package proxy import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/proxy/proxy_test.go b/proxy/proxy_test.go index 31194f16..16ee56b4 100644 --- a/proxy/proxy_test.go +++ b/proxy/proxy_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestProxy(t *testing.T) { diff --git a/sites/sites.go b/sites/sites.go index c9a2bb4c..c0c1f45a 100644 --- a/sites/sites.go +++ b/sites/sites.go @@ -3,9 +3,9 @@ package sites import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" - "github.com/appwrite/sdk-for-go/v4/file" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v5/file" "net/url" "fmt" "strings" @@ -116,6 +116,8 @@ type CreateOptions struct { ProviderBranch string ProviderSilentMode bool ProviderRootDirectory string + ProviderBranches []string + ProviderPaths []string BuildSpecification string RuntimeSpecification string DeploymentRetention int @@ -137,6 +139,8 @@ func (options CreateOptions) New() *CreateOptions { "ProviderBranch": false, "ProviderSilentMode": false, "ProviderRootDirectory": false, + "ProviderBranches": false, + "ProviderPaths": false, "BuildSpecification": false, "RuntimeSpecification": false, "DeploymentRetention": false, @@ -228,6 +232,18 @@ func (srv *Sites) WithCreateProviderRootDirectory(v string) CreateOption { o.enabledSetters["ProviderRootDirectory"] = true } } +func (srv *Sites) WithCreateProviderBranches(v []string) CreateOption { + return func(o *CreateOptions) { + o.ProviderBranches = v + o.enabledSetters["ProviderBranches"] = true + } +} +func (srv *Sites) WithCreateProviderPaths(v []string) CreateOption { + return func(o *CreateOptions) { + o.ProviderPaths = v + o.enabledSetters["ProviderPaths"] = true + } +} func (srv *Sites) WithCreateBuildSpecification(v string) CreateOption { return func(o *CreateOptions) { o.BuildSpecification = v @@ -301,6 +317,12 @@ func (srv *Sites) Create(SiteId string, Name string, Framework string, BuildRunt if options.enabledSetters["ProviderRootDirectory"] { params["providerRootDirectory"] = options.ProviderRootDirectory } + if options.enabledSetters["ProviderBranches"] { + params["providerBranches"] = options.ProviderBranches + } + if options.enabledSetters["ProviderPaths"] { + params["providerPaths"] = options.ProviderPaths + } if options.enabledSetters["BuildSpecification"] { params["buildSpecification"] = options.BuildSpecification } @@ -453,6 +475,8 @@ type UpdateOptions struct { ProviderBranch string ProviderSilentMode bool ProviderRootDirectory string + ProviderBranches []string + ProviderPaths []string BuildSpecification string RuntimeSpecification string DeploymentRetention int @@ -475,6 +499,8 @@ func (options UpdateOptions) New() *UpdateOptions { "ProviderBranch": false, "ProviderSilentMode": false, "ProviderRootDirectory": false, + "ProviderBranches": false, + "ProviderPaths": false, "BuildSpecification": false, "RuntimeSpecification": false, "DeploymentRetention": false, @@ -572,6 +598,18 @@ func (srv *Sites) WithUpdateProviderRootDirectory(v string) UpdateOption { o.enabledSetters["ProviderRootDirectory"] = true } } +func (srv *Sites) WithUpdateProviderBranches(v []string) UpdateOption { + return func(o *UpdateOptions) { + o.ProviderBranches = v + o.enabledSetters["ProviderBranches"] = true + } +} +func (srv *Sites) WithUpdateProviderPaths(v []string) UpdateOption { + return func(o *UpdateOptions) { + o.ProviderPaths = v + o.enabledSetters["ProviderPaths"] = true + } +} func (srv *Sites) WithUpdateBuildSpecification(v string) UpdateOption { return func(o *UpdateOptions) { o.BuildSpecification = v @@ -648,6 +686,12 @@ func (srv *Sites) Update(SiteId string, Name string, Framework string, optionalS if options.enabledSetters["ProviderRootDirectory"] { params["providerRootDirectory"] = options.ProviderRootDirectory } + if options.enabledSetters["ProviderBranches"] { + params["providerBranches"] = options.ProviderBranches + } + if options.enabledSetters["ProviderPaths"] { + params["providerPaths"] = options.ProviderPaths + } if options.enabledSetters["BuildSpecification"] { params["buildSpecification"] = options.BuildSpecification } diff --git a/sites/sites_test.go b/sites/sites_test.go index d9fb7b0c..0f4236e4 100644 --- a/sites/sites_test.go +++ b/sites/sites_test.go @@ -6,8 +6,8 @@ import ( "testing" "os" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/file") + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/file") func TestSites(t *testing.T) { tmpFile, err := os.CreateTemp("", "test") @@ -68,6 +68,8 @@ func TestSites(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "sites/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb", "buildRuntime": "node-22", @@ -138,6 +140,8 @@ func TestSites(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "sites/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb", "buildRuntime": "node-22", @@ -283,6 +287,8 @@ func TestSites(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "sites/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb", "buildRuntime": "node-22", @@ -351,6 +357,8 @@ func TestSites(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "sites/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb", "buildRuntime": "node-22", @@ -445,6 +453,8 @@ func TestSites(t *testing.T) { "providerBranch": "main", "providerRootDirectory": "sites/helloWorld", "providerSilentMode": true, + "providerBranches": [], + "providerPaths": [], "buildSpecification": "s-1vcpu-512mb", "runtimeSpecification": "s-1vcpu-512mb", "buildRuntime": "node-22", diff --git a/storage/storage.go b/storage/storage.go index ccbabcd4..911b0a49 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -3,9 +3,9 @@ package storage import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" - "github.com/appwrite/sdk-for-go/v4/file" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v5/file" "net/url" "fmt" "strings" diff --git a/storage/storage_test.go b/storage/storage_test.go index a42be23e..1cf6e7cd 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -6,8 +6,8 @@ import ( "testing" "os" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/file") + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/file") func TestStorage(t *testing.T) { tmpFile, err := os.CreateTemp("", "test") @@ -226,6 +226,7 @@ func TestStorage(t *testing.T) { "signature": "5d529fd02b544198ae075bd57c1762bb", "mimeType": "image/png", "sizeOriginal": 17890, + "sizeActual": 12345, "chunksTotal": 17890, "chunksUploaded": 17890, "encryption": true, @@ -266,6 +267,7 @@ func TestStorage(t *testing.T) { "signature": "5d529fd02b544198ae075bd57c1762bb", "mimeType": "image/png", "sizeOriginal": 17890, + "sizeActual": 12345, "chunksTotal": 17890, "chunksUploaded": 17890, "encryption": true, @@ -311,6 +313,7 @@ func TestStorage(t *testing.T) { "signature": "5d529fd02b544198ae075bd57c1762bb", "mimeType": "image/png", "sizeOriginal": 17890, + "sizeActual": 12345, "chunksTotal": 17890, "chunksUploaded": 17890, "encryption": true, @@ -349,6 +352,7 @@ func TestStorage(t *testing.T) { "signature": "5d529fd02b544198ae075bd57c1762bb", "mimeType": "image/png", "sizeOriginal": 17890, + "sizeActual": 12345, "chunksTotal": 17890, "chunksUploaded": 17890, "encryption": true, diff --git a/tablesdb/tables_db.go b/tablesdb/tables_db.go index be311448..bb4d10e9 100644 --- a/tablesdb/tables_db.go +++ b/tablesdb/tables_db.go @@ -3,8 +3,8 @@ package tablesdb import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "fmt" "strings" ) diff --git a/tablesdb/tables_db_test.go b/tablesdb/tables_db_test.go index dd32463f..fded5087 100644 --- a/tablesdb/tables_db_test.go +++ b/tablesdb/tables_db_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" ) func TestTablesDB(t *testing.T) { diff --git a/teams/teams.go b/teams/teams.go index ec54b6d0..62ca03f7 100644 --- a/teams/teams.go +++ b/teams/teams.go @@ -3,8 +3,8 @@ package teams import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/teams/teams_test.go b/teams/teams_test.go index fdd0e25e..3489ca41 100644 --- a/teams/teams_test.go +++ b/teams/teams_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestTeams(t *testing.T) { diff --git a/tokens/tokens.go b/tokens/tokens.go index 0bd23875..2d03ac10 100644 --- a/tokens/tokens.go +++ b/tokens/tokens.go @@ -3,8 +3,8 @@ package tokens import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/tokens/tokens_test.go b/tokens/tokens_test.go index 3d0756b0..c38f47b7 100644 --- a/tokens/tokens_test.go +++ b/tokens/tokens_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestTokens(t *testing.T) { diff --git a/usage/usage.go b/usage/usage.go index 1bdcbe32..17395b8a 100644 --- a/usage/usage.go +++ b/usage/usage.go @@ -3,8 +3,8 @@ package usage import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) @@ -125,9 +125,9 @@ func (srv *Usage) WithListGaugesTotal(v bool) ListGaugesOption { // ListGauges query usage gauge metrics (point-in-time resource snapshots) // from the usage database. Returns individual gauge snapshots with metric, -// value, and timestamp. Pass Query objects as JSON strings to filter, -// paginate, and order results. Supported query methods: equal, -// greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. +// value, timestamp, resourceType, and resourceId. Pass Query objects as JSON +// strings to filter, paginate, and order results. Supported query methods: +// equal, greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. // Supported filter attributes: metric, time. Use `orderDesc("time"), // limit(1)` to fetch the most recent snapshot. When no time filter is // supplied the endpoint defaults to the last 7 days. Default `limit(100)` is diff --git a/usage/usage_test.go b/usage/usage_test.go index abb5ef70..24310acf 100644 --- a/usage/usage_test.go +++ b/usage/usage_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestUsage(t *testing.T) { @@ -64,7 +64,9 @@ func TestUsage(t *testing.T) { { "metric": "users", "value": 1500, - "time": "2026-04-09T12:00:00.000+00:00" + "time": "2026-04-09T12:00:00.000+00:00", + "resourceType": "dedicatedDatabases", + "resourceId": "production" } ] } diff --git a/users/users.go b/users/users.go index 7e5dcee3..574549a7 100644 --- a/users/users.go +++ b/users/users.go @@ -3,8 +3,8 @@ package users import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/users/users_test.go b/users/users_test.go index ab335a66..29365618 100644 --- a/users/users_test.go +++ b/users/users_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestUsers(t *testing.T) { diff --git a/webhooks/webhooks.go b/webhooks/webhooks.go index 21a95354..463e5c6f 100644 --- a/webhooks/webhooks.go +++ b/webhooks/webhooks.go @@ -3,8 +3,8 @@ package webhooks import ( "encoding/json" "errors" - "github.com/appwrite/sdk-for-go/v4/client" - "github.com/appwrite/sdk-for-go/v4/models" + "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v5/models" "strings" ) diff --git a/webhooks/webhooks_test.go b/webhooks/webhooks_test.go index 82c250e1..9245157c 100644 --- a/webhooks/webhooks_test.go +++ b/webhooks/webhooks_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/appwrite/sdk-for-go/v4/client" + "github.com/appwrite/sdk-for-go/v5/client" ) func TestWebhooks(t *testing.T) {