mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
ci: console sdk previews (#8990)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: "Console SDK Preview"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'app/config/specs/*-latest-console.json'
|
||||
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
name: Setup & Build Console SDK
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Load and Start Appwrite
|
||||
run: |
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
docker compose exec appwrite sdks --platform=console --sdk=web --version=latest --git=no
|
||||
sudo chown -R $USER:$USER ./app/sdks/console-web
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Build and Publish SDK
|
||||
working-directory: ./app/sdks/console-web
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
npx pkg-pr-new publish --comment=update
|
||||
@@ -16,3 +16,4 @@ dev/yasd_init.php
|
||||
.phpunit.result.cache
|
||||
Makefile
|
||||
appwrite.json
|
||||
/.zed/
|
||||
@@ -239,7 +239,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -556,7 +556,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -624,7 +624,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -711,7 +711,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -774,7 +774,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -850,7 +850,7 @@
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -928,7 +928,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -981,7 +981,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1032,7 +1032,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1083,7 +1083,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -5082,9 +5082,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "string",
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"x-example": null
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
@@ -5368,7 +5368,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"tags": [
|
||||
"locale"
|
||||
@@ -6268,7 +6268,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"tags": [
|
||||
"storage"
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -591,7 +591,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -658,7 +658,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -744,7 +744,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -806,7 +806,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -882,7 +882,7 @@
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -959,7 +959,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1011,7 +1011,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1061,7 +1061,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1111,7 +1111,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -4452,7 +4452,7 @@
|
||||
},
|
||||
"\/console\/assistant": {
|
||||
"post": {
|
||||
"summary": "Ask Query",
|
||||
"summary": "Ask query",
|
||||
"operationId": "assistantChat",
|
||||
"tags": [
|
||||
"assistant"
|
||||
@@ -11052,9 +11052,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "string",
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"x-example": null
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
@@ -13257,7 +13257,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"tags": [
|
||||
"locale"
|
||||
@@ -18060,7 +18060,7 @@
|
||||
},
|
||||
"\/migrations": {
|
||||
"get": {
|
||||
"summary": "List Migrations",
|
||||
"summary": "List migrations",
|
||||
"operationId": "migrationsList",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18136,7 +18136,7 @@
|
||||
},
|
||||
"\/migrations\/appwrite": {
|
||||
"post": {
|
||||
"summary": "Migrate Appwrite Data",
|
||||
"summary": "Migrate Appwrite data",
|
||||
"operationId": "migrationsCreateAppwriteMigration",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18226,7 +18226,7 @@
|
||||
},
|
||||
"\/migrations\/appwrite\/report": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Appwrite Data",
|
||||
"summary": "Generate a report on Appwrite data",
|
||||
"operationId": "migrationsGetAppwriteReport",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18321,7 +18321,7 @@
|
||||
},
|
||||
"\/migrations\/firebase": {
|
||||
"post": {
|
||||
"summary": "Migrate Firebase Data (Service Account)",
|
||||
"summary": "Migrate Firebase data (Service Account)",
|
||||
"operationId": "migrationsCreateFirebaseMigration",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18399,7 +18399,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/deauthorize": {
|
||||
"get": {
|
||||
"summary": "Revoke Appwrite's authorization to access Firebase Projects",
|
||||
"summary": "Revoke Appwrite's authorization to access Firebase projects",
|
||||
"operationId": "migrationsDeleteFirebaseAuth",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18442,7 +18442,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/oauth": {
|
||||
"post": {
|
||||
"summary": "Migrate Firebase Data (OAuth)",
|
||||
"summary": "Migrate Firebase data (OAuth)",
|
||||
"operationId": "migrationsCreateFirebaseOAuthMigration",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18520,7 +18520,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/projects": {
|
||||
"get": {
|
||||
"summary": "List Firebase Projects",
|
||||
"summary": "List Firebase projects",
|
||||
"operationId": "migrationsListFirebaseProjects",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18570,7 +18570,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/report": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Firebase Data",
|
||||
"summary": "Generate a report on Firebase data",
|
||||
"operationId": "migrationsGetFirebaseReport",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18644,7 +18644,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/report\/oauth": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Firebase Data using OAuth",
|
||||
"summary": "Generate a report on Firebase data using OAuth",
|
||||
"operationId": "migrationsGetFirebaseReportOAuth",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18718,7 +18718,7 @@
|
||||
},
|
||||
"\/migrations\/nhost": {
|
||||
"post": {
|
||||
"summary": "Migrate NHost Data",
|
||||
"summary": "Migrate NHost data",
|
||||
"operationId": "migrationsCreateNHostMigration",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -18966,7 +18966,7 @@
|
||||
},
|
||||
"\/migrations\/supabase": {
|
||||
"post": {
|
||||
"summary": "Migrate Supabase Data",
|
||||
"summary": "Migrate Supabase data",
|
||||
"operationId": "migrationsCreateSupabaseMigration",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -19199,7 +19199,7 @@
|
||||
},
|
||||
"\/migrations\/{migrationId}": {
|
||||
"get": {
|
||||
"summary": "Get Migration",
|
||||
"summary": "Get migration",
|
||||
"operationId": "migrationsGet",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -19259,7 +19259,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Retry Migration",
|
||||
"summary": "Retry migration",
|
||||
"operationId": "migrationsRetry",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -19319,7 +19319,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Migration",
|
||||
"summary": "Delete migration",
|
||||
"operationId": "migrationsDelete",
|
||||
"tags": [
|
||||
"migrations"
|
||||
@@ -19464,7 +19464,7 @@
|
||||
},
|
||||
"\/project\/variables": {
|
||||
"get": {
|
||||
"summary": "List Variables",
|
||||
"summary": "List variables",
|
||||
"operationId": "projectListVariables",
|
||||
"tags": [
|
||||
"project"
|
||||
@@ -19512,7 +19512,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create Variable",
|
||||
"summary": "Create variable",
|
||||
"operationId": "projectCreateVariable",
|
||||
"tags": [
|
||||
"project"
|
||||
@@ -19587,7 +19587,7 @@
|
||||
},
|
||||
"\/project\/variables\/{variableId}": {
|
||||
"get": {
|
||||
"summary": "Get Variable",
|
||||
"summary": "Get variable",
|
||||
"operationId": "projectGetVariable",
|
||||
"tags": [
|
||||
"project"
|
||||
@@ -19647,7 +19647,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Update Variable",
|
||||
"summary": "Update variable",
|
||||
"operationId": "projectUpdateVariable",
|
||||
"tags": [
|
||||
"project"
|
||||
@@ -19731,7 +19731,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Variable",
|
||||
"summary": "Delete variable",
|
||||
"operationId": "projectDeleteVariable",
|
||||
"tags": [
|
||||
"project"
|
||||
@@ -24640,7 +24640,7 @@
|
||||
},
|
||||
"\/proxy\/rules": {
|
||||
"get": {
|
||||
"summary": "List Rules",
|
||||
"summary": "List rules",
|
||||
"operationId": "proxyListRules",
|
||||
"tags": [
|
||||
"proxy"
|
||||
@@ -24714,7 +24714,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create Rule",
|
||||
"summary": "Create rule",
|
||||
"operationId": "proxyCreateRule",
|
||||
"tags": [
|
||||
"proxy"
|
||||
@@ -24800,7 +24800,7 @@
|
||||
},
|
||||
"\/proxy\/rules\/{ruleId}": {
|
||||
"get": {
|
||||
"summary": "Get Rule",
|
||||
"summary": "Get rule",
|
||||
"operationId": "proxyGetRule",
|
||||
"tags": [
|
||||
"proxy"
|
||||
@@ -24860,7 +24860,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Rule",
|
||||
"summary": "Delete rule",
|
||||
"operationId": "proxyDeleteRule",
|
||||
"tags": [
|
||||
"proxy"
|
||||
@@ -24915,7 +24915,7 @@
|
||||
},
|
||||
"\/proxy\/rules\/{ruleId}\/verification": {
|
||||
"patch": {
|
||||
"summary": "Update Rule Verification Status",
|
||||
"summary": "Update rule verification status",
|
||||
"operationId": "proxyUpdateRuleVerification",
|
||||
"tags": [
|
||||
"proxy"
|
||||
@@ -25791,7 +25791,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"tags": [
|
||||
"storage"
|
||||
@@ -27842,7 +27842,7 @@
|
||||
},
|
||||
"\/users\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "usersListIdentities",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -29141,7 +29141,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/authenticators\/{type}": {
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "usersDeleteMfaAuthenticator",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -29219,7 +29219,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "usersListMfaFactors",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -29282,7 +29282,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "usersGetMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -29343,7 +29343,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "usersUpdateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -29404,7 +29404,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "usersCreateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -30182,7 +30182,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets": {
|
||||
"get": {
|
||||
"summary": "List User Targets",
|
||||
"summary": "List user targets",
|
||||
"operationId": "usersListTargets",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -30257,7 +30257,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create User Target",
|
||||
"summary": "Create user target",
|
||||
"operationId": "usersCreateTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -30369,7 +30369,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets\/{targetId}": {
|
||||
"get": {
|
||||
"summary": "Get User Target",
|
||||
"summary": "Get user target",
|
||||
"operationId": "usersGetTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -30441,7 +30441,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update User target",
|
||||
"summary": "Update user target",
|
||||
"operationId": "usersUpdateTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -30854,7 +30854,7 @@
|
||||
},
|
||||
"\/vcs\/github\/installations\/{installationId}\/providerRepositories": {
|
||||
"get": {
|
||||
"summary": "List Repositories",
|
||||
"summary": "List repositories",
|
||||
"operationId": "vcsListRepositories",
|
||||
"tags": [
|
||||
"vcs"
|
||||
@@ -31084,7 +31084,7 @@
|
||||
},
|
||||
"\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": {
|
||||
"get": {
|
||||
"summary": "List Repository Branches",
|
||||
"summary": "List repository branches",
|
||||
"operationId": "vcsListRepositoryBranches",
|
||||
"tags": [
|
||||
"vcs"
|
||||
@@ -31547,7 +31547,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Installation",
|
||||
"summary": "Delete installation",
|
||||
"operationId": "vcsDeleteInstallation",
|
||||
"tags": [
|
||||
"vcs"
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -562,7 +562,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -631,7 +631,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -719,7 +719,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -783,7 +783,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -859,7 +859,7 @@
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -938,7 +938,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -992,7 +992,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1044,7 +1044,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -1096,7 +1096,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"account"
|
||||
@@ -9939,9 +9939,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "string",
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"x-example": null
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
@@ -12097,7 +12097,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"tags": [
|
||||
"locale"
|
||||
@@ -17789,7 +17789,7 @@
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"tags": [
|
||||
"storage"
|
||||
@@ -19645,7 +19645,7 @@
|
||||
},
|
||||
"\/users\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "usersListIdentities",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -20885,7 +20885,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/authenticators\/{type}": {
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "usersDeleteMfaAuthenticator",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -20964,7 +20964,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "usersListMfaFactors",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -21028,7 +21028,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "usersGetMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -21090,7 +21090,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "usersUpdateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -21152,7 +21152,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "usersCreateMfaRecoveryCodes",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -21941,7 +21941,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets": {
|
||||
"get": {
|
||||
"summary": "List User Targets",
|
||||
"summary": "List user targets",
|
||||
"operationId": "usersListTargets",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -22017,7 +22017,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create User Target",
|
||||
"summary": "Create user target",
|
||||
"operationId": "usersCreateTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -22130,7 +22130,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets\/{targetId}": {
|
||||
"get": {
|
||||
"summary": "Get User Target",
|
||||
"summary": "Get user target",
|
||||
"operationId": "usersGetTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
@@ -22203,7 +22203,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update User target",
|
||||
"summary": "Update user target",
|
||||
"operationId": "usersUpdateTarget",
|
||||
"tags": [
|
||||
"users"
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -619,7 +619,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -687,7 +687,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -773,7 +773,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -838,7 +838,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -917,7 +917,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -994,7 +994,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1049,7 +1049,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1102,7 +1102,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1155,7 +1155,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -5167,7 +5167,7 @@
|
||||
"summary": "Create execution",
|
||||
"operationId": "functionsCreateExecution",
|
||||
"consumes": [
|
||||
"multipart\/form-data"
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [
|
||||
"multipart\/form-data"
|
||||
@@ -5226,65 +5226,59 @@
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"required": false,
|
||||
"type": "payload",
|
||||
"default": "",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "async",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"x-example": false,
|
||||
"default": false,
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<PATH>",
|
||||
"default": "\/",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "method",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": [],
|
||||
"default": "POST",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "headers",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"required": false,
|
||||
"type": "object",
|
||||
"default": [],
|
||||
"x-example": "{}",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "scheduledAt",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"in": "formData"
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"default": "",
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"default": false,
|
||||
"x-example": false
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"default": "\/",
|
||||
"x-example": "<PATH>"
|
||||
},
|
||||
"method": {
|
||||
"type": "string",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"default": "POST",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": []
|
||||
},
|
||||
"headers": {
|
||||
"type": "object",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
},
|
||||
"scheduledAt": {
|
||||
"type": "string",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"default": null,
|
||||
"x-example": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5573,7 +5567,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -6476,7 +6470,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -670,7 +670,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -737,7 +737,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -822,7 +822,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -886,7 +886,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -965,7 +965,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1041,7 +1041,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1095,7 +1095,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1147,7 +1147,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1199,7 +1199,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -4637,7 +4637,7 @@
|
||||
},
|
||||
"\/console\/assistant": {
|
||||
"post": {
|
||||
"summary": "Ask Query",
|
||||
"summary": "Ask query",
|
||||
"operationId": "assistantChat",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -11131,7 +11131,7 @@
|
||||
"summary": "Create execution",
|
||||
"operationId": "functionsCreateExecution",
|
||||
"consumes": [
|
||||
"multipart\/form-data"
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [
|
||||
"multipart\/form-data"
|
||||
@@ -11190,65 +11190,59 @@
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"required": false,
|
||||
"type": "payload",
|
||||
"default": "",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "async",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"x-example": false,
|
||||
"default": false,
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<PATH>",
|
||||
"default": "\/",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "method",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": [],
|
||||
"default": "POST",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "headers",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"required": false,
|
||||
"type": "object",
|
||||
"default": [],
|
||||
"x-example": "{}",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "scheduledAt",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"in": "formData"
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"default": "",
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"default": false,
|
||||
"x-example": false
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"default": "\/",
|
||||
"x-example": "<PATH>"
|
||||
},
|
||||
"method": {
|
||||
"type": "string",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"default": "POST",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": []
|
||||
},
|
||||
"headers": {
|
||||
"type": "object",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
},
|
||||
"scheduledAt": {
|
||||
"type": "string",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"default": null,
|
||||
"x-example": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -13464,7 +13458,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18494,7 +18488,7 @@
|
||||
},
|
||||
"\/migrations": {
|
||||
"get": {
|
||||
"summary": "List Migrations",
|
||||
"summary": "List migrations",
|
||||
"operationId": "migrationsList",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18569,7 +18563,7 @@
|
||||
},
|
||||
"\/migrations\/appwrite": {
|
||||
"post": {
|
||||
"summary": "Migrate Appwrite Data",
|
||||
"summary": "Migrate Appwrite data",
|
||||
"operationId": "migrationsCreateAppwriteMigration",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18665,7 +18659,7 @@
|
||||
},
|
||||
"\/migrations\/appwrite\/report": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Appwrite Data",
|
||||
"summary": "Generate a report on Appwrite data",
|
||||
"operationId": "migrationsGetAppwriteReport",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18755,7 +18749,7 @@
|
||||
},
|
||||
"\/migrations\/firebase": {
|
||||
"post": {
|
||||
"summary": "Migrate Firebase Data (Service Account)",
|
||||
"summary": "Migrate Firebase data (Service Account)",
|
||||
"operationId": "migrationsCreateFirebaseMigration",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18837,7 +18831,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/deauthorize": {
|
||||
"get": {
|
||||
"summary": "Revoke Appwrite's authorization to access Firebase Projects",
|
||||
"summary": "Revoke Appwrite's authorization to access Firebase projects",
|
||||
"operationId": "migrationsDeleteFirebaseAuth",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18889,7 +18883,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/oauth": {
|
||||
"post": {
|
||||
"summary": "Migrate Firebase Data (OAuth)",
|
||||
"summary": "Migrate Firebase data (OAuth)",
|
||||
"operationId": "migrationsCreateFirebaseOAuthMigration",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18971,7 +18965,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/projects": {
|
||||
"get": {
|
||||
"summary": "List Firebase Projects",
|
||||
"summary": "List Firebase projects",
|
||||
"operationId": "migrationsListFirebaseProjects",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19023,7 +19017,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/report": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Firebase Data",
|
||||
"summary": "Generate a report on Firebase data",
|
||||
"operationId": "migrationsGetFirebaseReport",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19096,7 +19090,7 @@
|
||||
},
|
||||
"\/migrations\/firebase\/report\/oauth": {
|
||||
"get": {
|
||||
"summary": "Generate a report on Firebase Data using OAuth",
|
||||
"summary": "Generate a report on Firebase data using OAuth",
|
||||
"operationId": "migrationsGetFirebaseReportOAuth",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19169,7 +19163,7 @@
|
||||
},
|
||||
"\/migrations\/nhost": {
|
||||
"post": {
|
||||
"summary": "Migrate NHost Data",
|
||||
"summary": "Migrate NHost data",
|
||||
"operationId": "migrationsCreateNHostMigration",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19414,7 +19408,7 @@
|
||||
},
|
||||
"\/migrations\/supabase": {
|
||||
"post": {
|
||||
"summary": "Migrate Supabase Data",
|
||||
"summary": "Migrate Supabase data",
|
||||
"operationId": "migrationsCreateSupabaseMigration",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19645,7 +19639,7 @@
|
||||
},
|
||||
"\/migrations\/{migrationId}": {
|
||||
"get": {
|
||||
"summary": "Get Migration",
|
||||
"summary": "Get migration",
|
||||
"operationId": "migrationsGet",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19705,7 +19699,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Retry Migration",
|
||||
"summary": "Retry migration",
|
||||
"operationId": "migrationsRetry",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19765,7 +19759,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Migration",
|
||||
"summary": "Delete migration",
|
||||
"operationId": "migrationsDelete",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19908,7 +19902,7 @@
|
||||
},
|
||||
"\/project\/variables": {
|
||||
"get": {
|
||||
"summary": "List Variables",
|
||||
"summary": "List variables",
|
||||
"operationId": "projectListVariables",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -19958,7 +19952,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create Variable",
|
||||
"summary": "Create variable",
|
||||
"operationId": "projectCreateVariable",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -20037,7 +20031,7 @@
|
||||
},
|
||||
"\/project\/variables\/{variableId}": {
|
||||
"get": {
|
||||
"summary": "Get Variable",
|
||||
"summary": "Get variable",
|
||||
"operationId": "projectGetVariable",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -20097,7 +20091,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Update Variable",
|
||||
"summary": "Update variable",
|
||||
"operationId": "projectUpdateVariable",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -20181,7 +20175,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Variable",
|
||||
"summary": "Delete variable",
|
||||
"operationId": "projectDeleteVariable",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -25101,7 +25095,7 @@
|
||||
},
|
||||
"\/proxy\/rules": {
|
||||
"get": {
|
||||
"summary": "List Rules",
|
||||
"summary": "List rules",
|
||||
"operationId": "proxyListRules",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -25174,7 +25168,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create Rule",
|
||||
"summary": "Create rule",
|
||||
"operationId": "proxyCreateRule",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -25265,7 +25259,7 @@
|
||||
},
|
||||
"\/proxy\/rules\/{ruleId}": {
|
||||
"get": {
|
||||
"summary": "Get Rule",
|
||||
"summary": "Get rule",
|
||||
"operationId": "proxyGetRule",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -25325,7 +25319,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Rule",
|
||||
"summary": "Delete rule",
|
||||
"operationId": "proxyDeleteRule",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -25382,7 +25376,7 @@
|
||||
},
|
||||
"\/proxy\/rules\/{ruleId}\/verification": {
|
||||
"patch": {
|
||||
"summary": "Update Rule Verification Status",
|
||||
"summary": "Update rule verification status",
|
||||
"operationId": "proxyUpdateRuleVerification",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -26265,7 +26259,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -28324,7 +28318,7 @@
|
||||
},
|
||||
"\/users\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "usersListIdentities",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -29661,7 +29655,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/authenticators\/{type}": {
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "usersDeleteMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -29737,7 +29731,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "usersListMfaFactors",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -29800,7 +29794,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "usersGetMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -29861,7 +29855,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "usersUpdateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -29922,7 +29916,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "usersCreateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -30697,7 +30691,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets": {
|
||||
"get": {
|
||||
"summary": "List User Targets",
|
||||
"summary": "List user targets",
|
||||
"operationId": "usersListTargets",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -30771,7 +30765,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create User Target",
|
||||
"summary": "Create user target",
|
||||
"operationId": "usersCreateTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -30886,7 +30880,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets\/{targetId}": {
|
||||
"get": {
|
||||
"summary": "Get User Target",
|
||||
"summary": "Get user target",
|
||||
"operationId": "usersGetTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -30956,7 +30950,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update User target",
|
||||
"summary": "Update user target",
|
||||
"operationId": "usersUpdateTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -31368,7 +31362,7 @@
|
||||
},
|
||||
"\/vcs\/github\/installations\/{installationId}\/providerRepositories": {
|
||||
"get": {
|
||||
"summary": "List Repositories",
|
||||
"summary": "List repositories",
|
||||
"operationId": "vcsListRepositories",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -31594,7 +31588,7 @@
|
||||
},
|
||||
"\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": {
|
||||
"get": {
|
||||
"summary": "List Repository Branches",
|
||||
"summary": "List repository branches",
|
||||
"operationId": "vcsListRepositoryBranches",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -32046,7 +32040,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Installation",
|
||||
"summary": "Delete installation",
|
||||
"operationId": "vcsDeleteInstallation",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
|
||||
@@ -310,7 +310,7 @@
|
||||
},
|
||||
"\/account\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "accountListIdentities",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -640,7 +640,7 @@
|
||||
},
|
||||
"\/account\/mfa\/authenticators\/{type}": {
|
||||
"post": {
|
||||
"summary": "Create Authenticator",
|
||||
"summary": "Create authenticator",
|
||||
"operationId": "accountCreateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -709,7 +709,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Verify Authenticator",
|
||||
"summary": "Verify authenticator",
|
||||
"operationId": "accountUpdateMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -796,7 +796,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "accountDeleteMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -862,7 +862,7 @@
|
||||
},
|
||||
"\/account\/mfa\/challenge": {
|
||||
"post": {
|
||||
"summary": "Create MFA Challenge",
|
||||
"summary": "Create MFA challenge",
|
||||
"operationId": "accountCreateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -941,7 +941,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Create MFA Challenge (confirmation)",
|
||||
"summary": "Create MFA challenge (confirmation)",
|
||||
"operationId": "accountUpdateMfaChallenge",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1019,7 +1019,7 @@
|
||||
},
|
||||
"\/account\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "accountListMfaFactors",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1075,7 +1075,7 @@
|
||||
},
|
||||
"\/account\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "accountGetMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1129,7 +1129,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "accountCreateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -1183,7 +1183,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "accountUpdateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -10022,7 +10022,7 @@
|
||||
"summary": "Create execution",
|
||||
"operationId": "functionsCreateExecution",
|
||||
"consumes": [
|
||||
"multipart\/form-data"
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [
|
||||
"multipart\/form-data"
|
||||
@@ -10083,65 +10083,59 @@
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"required": false,
|
||||
"type": "payload",
|
||||
"default": "",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "async",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"x-example": false,
|
||||
"default": false,
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<PATH>",
|
||||
"default": "\/",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "method",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": [],
|
||||
"default": "POST",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "headers",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"required": false,
|
||||
"type": "object",
|
||||
"default": [],
|
||||
"x-example": "{}",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"name": "scheduledAt",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"in": "formData"
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"body": {
|
||||
"type": "object",
|
||||
"description": "HTTP body of execution. Default value is empty string.",
|
||||
"default": "",
|
||||
"x-example": "{}"
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
"description": "Execute code in the background. Default value is false.",
|
||||
"default": false,
|
||||
"x-example": false
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "HTTP path of execution. Path can include query params. Default value is \/",
|
||||
"default": "\/",
|
||||
"x-example": "<PATH>"
|
||||
},
|
||||
"method": {
|
||||
"type": "string",
|
||||
"description": "HTTP method of execution. Default value is GET.",
|
||||
"default": "POST",
|
||||
"x-example": "GET",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE",
|
||||
"OPTIONS"
|
||||
],
|
||||
"x-enum-name": "ExecutionMethod",
|
||||
"x-enum-keys": []
|
||||
},
|
||||
"headers": {
|
||||
"type": "object",
|
||||
"description": "HTTP headers of execution. Defaults to empty.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
},
|
||||
"scheduledAt": {
|
||||
"type": "string",
|
||||
"description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.",
|
||||
"default": null,
|
||||
"x-example": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -12312,7 +12306,7 @@
|
||||
},
|
||||
"\/locale\/codes": {
|
||||
"get": {
|
||||
"summary": "List Locale Codes",
|
||||
"summary": "List locale codes",
|
||||
"operationId": "localeListCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -18238,7 +18232,7 @@
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete File",
|
||||
"summary": "Delete file",
|
||||
"operationId": "storageDeleteFile",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -20105,7 +20099,7 @@
|
||||
},
|
||||
"\/users\/identities": {
|
||||
"get": {
|
||||
"summary": "List Identities",
|
||||
"summary": "List identities",
|
||||
"operationId": "usersListIdentities",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -21383,7 +21377,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/authenticators\/{type}": {
|
||||
"delete": {
|
||||
"summary": "Delete Authenticator",
|
||||
"summary": "Delete authenticator",
|
||||
"operationId": "usersDeleteMfaAuthenticator",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -21460,7 +21454,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/factors": {
|
||||
"get": {
|
||||
"summary": "List Factors",
|
||||
"summary": "List factors",
|
||||
"operationId": "usersListMfaFactors",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -21524,7 +21518,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/mfa\/recovery-codes": {
|
||||
"get": {
|
||||
"summary": "Get MFA Recovery Codes",
|
||||
"summary": "Get MFA recovery codes",
|
||||
"operationId": "usersGetMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -21586,7 +21580,7 @@
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"summary": "Regenerate MFA Recovery Codes",
|
||||
"summary": "Regenerate MFA recovery codes",
|
||||
"operationId": "usersUpdateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -21648,7 +21642,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Create MFA Recovery Codes",
|
||||
"summary": "Create MFA recovery codes",
|
||||
"operationId": "usersCreateMfaRecoveryCodes",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -22434,7 +22428,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets": {
|
||||
"get": {
|
||||
"summary": "List User Targets",
|
||||
"summary": "List user targets",
|
||||
"operationId": "usersListTargets",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -22509,7 +22503,7 @@
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create User Target",
|
||||
"summary": "Create user target",
|
||||
"operationId": "usersCreateTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -22625,7 +22619,7 @@
|
||||
},
|
||||
"\/users\/{userId}\/targets\/{targetId}": {
|
||||
"get": {
|
||||
"summary": "Get User Target",
|
||||
"summary": "Get user target",
|
||||
"operationId": "usersGetTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
@@ -22696,7 +22690,7 @@
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update User target",
|
||||
"summary": "Update user target",
|
||||
"operationId": "usersUpdateTarget",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@
|
||||
"utopia-php/cache": "0.10.*",
|
||||
"utopia-php/cli": "0.15.*",
|
||||
"utopia-php/config": "0.2.*",
|
||||
"utopia-php/database": "0.53.*",
|
||||
"utopia-php/database": "0.53.4",
|
||||
"utopia-php/domains": "0.5.*",
|
||||
"utopia-php/dsn": "0.2.1",
|
||||
"utopia-php/framework": "0.33.*",
|
||||
|
||||
Generated
+1958
-406
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,9 @@ use Appwrite\Spec\Swagger2;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Platform\Action;
|
||||
use Utopia\Validator\Nullable;
|
||||
use Utopia\Validator\Text;
|
||||
use Utopia\Validator\WhiteList;
|
||||
|
||||
class SDKs extends Action
|
||||
{
|
||||
@@ -37,23 +40,35 @@ class SDKs extends Action
|
||||
{
|
||||
$this
|
||||
->desc('Generate Appwrite SDKs')
|
||||
->callback(fn () => $this->action());
|
||||
->param('platform', null, new Nullable(new Text(256)), 'Selected Platform', optional: true)
|
||||
->param('sdk', null, new Nullable(new Text(256)), 'Selected SDK', optional:true)
|
||||
->param('version', null, new Nullable(new Text(256)), 'Selected SDK', optional:true)
|
||||
->param('git', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we use git push?', optional: true)
|
||||
->param('production', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we push to production?', optional:true)
|
||||
->param('message', null, new Nullable(new Text(256)), 'Commit Message', optional:true)
|
||||
->callback([$this, 'action']);
|
||||
}
|
||||
|
||||
public function action(): void
|
||||
public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message)
|
||||
{
|
||||
$platforms = Config::getParam('platforms');
|
||||
$selectedPlatform = Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):');
|
||||
$selectedSDK = \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
||||
$version = Console::confirm('Choose an Appwrite version');
|
||||
$git = (Console::confirm('Should we use git push? (yes/no)') == 'yes');
|
||||
$production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false;
|
||||
$message = ($git) ? Console::confirm('Please enter your commit message:') : '';
|
||||
$selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):');
|
||||
$selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
||||
$version ??= Console::confirm('Choose an Appwrite version');
|
||||
|
||||
$git ??= Console::confirm('Should we use git push? (yes/no)');
|
||||
$git = $git === 'yes';
|
||||
|
||||
if ($git) {
|
||||
$production ??= Console::confirm('Type "Appwrite" to push code to production git repos');
|
||||
$production = $production === 'Appwrite';
|
||||
$message ??= Console::confirm('Please enter your commit message:');
|
||||
}
|
||||
|
||||
if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', '1.6.x', 'latest'])) {
|
||||
throw new \Exception('Unknown version given');
|
||||
}
|
||||
|
||||
$platforms = Config::getParam('platforms');
|
||||
foreach ($platforms as $key => $platform) {
|
||||
if ($selectedPlatform !== $key && $selectedPlatform !== '*') {
|
||||
continue;
|
||||
|
||||
@@ -323,6 +323,7 @@ class OpenAPI3 extends Format
|
||||
case 'Utopia\Validator\JSON':
|
||||
case 'Utopia\Validator\Mock':
|
||||
case 'Utopia\Validator\Assoc':
|
||||
case 'Appwrite\Functions\Validator\Payload':
|
||||
$param['default'] = (empty($param['default'])) ? new \stdClass() : $param['default'];
|
||||
$node['schema']['type'] = 'object';
|
||||
$node['schema']['x-example'] = '{}';
|
||||
|
||||
@@ -336,6 +336,7 @@ class Swagger2 extends Format
|
||||
case 'Utopia\Validator\JSON':
|
||||
case 'Utopia\Validator\Mock':
|
||||
case 'Utopia\Validator\Assoc':
|
||||
case 'Appwrite\Functions\Validator\Payload':
|
||||
$node['type'] = 'object';
|
||||
$node['default'] = (empty($param['default'])) ? new \stdClass() : $param['default'];
|
||||
$node['x-example'] = '{}';
|
||||
|
||||
Reference in New Issue
Block a user