Merge remote-tracking branch 'origin/1.8.x' into feat-csv-export

This commit is contained in:
Jake Barnby 2025-09-23 19:17:49 +12:00
commit 97c5705447
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
37 changed files with 1787 additions and 335 deletions

View file

@ -226,7 +226,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '9.1.0',
'version' => '10.0.0',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,

View file

@ -11393,12 +11393,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -11412,7 +11423,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},

View file

@ -46461,7 +46461,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46549,7 +46557,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46639,7 +46655,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46729,7 +46753,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46802,7 +46834,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46882,7 +46922,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46972,7 +47020,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47052,7 +47108,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47132,7 +47196,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47212,7 +47284,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47320,7 +47400,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47399,7 +47487,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47490,7 +47586,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -48965,7 +49069,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -52191,7 +52302,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -52219,11 +52337,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -52249,6 +52362,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -52276,12 +52394,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -52305,12 +52423,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -52356,12 +52474,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -52375,7 +52504,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},
@ -53312,7 +53441,16 @@
"type": {
"type": "string",
"description": "Platform type. Possible values are: web, flutter-web, flutter-ios, flutter-android, ios, android, and unity.",
"x-example": "web"
"x-example": "web",
"enum": [
"web",
"flutter-web",
"flutter-ios",
"flutter-android",
"ios",
"android",
"unity"
]
},
"key": {
"type": "string",
@ -53327,7 +53465,7 @@
"hostname": {
"type": "string",
"description": "Web app hostname. Empty string for other platforms.",
"x-example": true
"x-example": "app.example.com"
},
"httpUser": {
"type": "string",
@ -53360,7 +53498,7 @@
"type": "web",
"key": "com.company.appname",
"store": "",
"hostname": true,
"hostname": "app.example.com",
"httpUser": "username",
"httpPass": "password"
}
@ -53613,8 +53751,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -53661,8 +53804,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -55827,7 +55975,11 @@
"deploymentResourceType": {
"type": "string",
"description": "Type of deployment. Possible values are \"function\", \"site\". Used if rule's type is \"deployment\".",
"x-example": "function"
"x-example": "function",
"enum": [
"function",
"site"
]
},
"deploymentResourceId": {
"type": "string",
@ -55837,12 +55989,18 @@
"deploymentVcsProviderBranch": {
"type": "string",
"description": "Name of Git branch that updates rule. Used if type is \"deployment\"",
"x-example": "function"
"x-example": "main"
},
"status": {
"type": "string",
"description": "Domain verification status. Possible values are \"created\", \"verifying\", \"verified\" and \"unverified\"",
"x-example": "verified"
"x-example": "verified",
"enum": [
"created",
"verifying",
"verified",
"unverified"
]
},
"logs": {
"type": "string",
@ -55884,7 +56042,7 @@
"deploymentId": "n3u9feiwmf",
"deploymentResourceType": "function",
"deploymentResourceId": "n3u9feiwmf",
"deploymentVcsProviderBranch": "function",
"deploymentVcsProviderBranch": "main",
"status": "verified",
"logs": "HTTP challegne failed.",
"renewAt": "datetime"
@ -56391,7 +56549,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -35331,7 +35331,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35419,7 +35427,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35509,7 +35525,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35599,7 +35623,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35672,7 +35704,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35752,7 +35792,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35842,7 +35890,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35922,7 +35978,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36002,7 +36066,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36082,7 +36154,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36190,7 +36270,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36269,7 +36357,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36360,7 +36456,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -37835,7 +37939,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -40272,7 +40383,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -40300,11 +40418,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -40330,6 +40443,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -40357,12 +40475,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -40386,12 +40504,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -40437,12 +40555,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -40456,7 +40585,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},
@ -40810,8 +40939,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -40858,8 +40992,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -41324,7 +41463,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -11393,12 +11393,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -11412,7 +11423,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},

View file

@ -46461,7 +46461,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46549,7 +46557,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46639,7 +46655,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46729,7 +46753,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46802,7 +46834,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46882,7 +46922,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46972,7 +47020,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47052,7 +47108,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47132,7 +47196,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47212,7 +47284,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47320,7 +47400,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47399,7 +47487,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47490,7 +47586,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -48965,7 +49069,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -52191,7 +52302,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -52219,11 +52337,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -52249,6 +52362,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -52276,12 +52394,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -52305,12 +52423,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -52356,12 +52474,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -52375,7 +52504,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},
@ -53312,7 +53441,16 @@
"type": {
"type": "string",
"description": "Platform type. Possible values are: web, flutter-web, flutter-ios, flutter-android, ios, android, and unity.",
"x-example": "web"
"x-example": "web",
"enum": [
"web",
"flutter-web",
"flutter-ios",
"flutter-android",
"ios",
"android",
"unity"
]
},
"key": {
"type": "string",
@ -53327,7 +53465,7 @@
"hostname": {
"type": "string",
"description": "Web app hostname. Empty string for other platforms.",
"x-example": true
"x-example": "app.example.com"
},
"httpUser": {
"type": "string",
@ -53360,7 +53498,7 @@
"type": "web",
"key": "com.company.appname",
"store": "",
"hostname": true,
"hostname": "app.example.com",
"httpUser": "username",
"httpPass": "password"
}
@ -53613,8 +53751,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -53661,8 +53804,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -55827,7 +55975,11 @@
"deploymentResourceType": {
"type": "string",
"description": "Type of deployment. Possible values are \"function\", \"site\". Used if rule's type is \"deployment\".",
"x-example": "function"
"x-example": "function",
"enum": [
"function",
"site"
]
},
"deploymentResourceId": {
"type": "string",
@ -55837,12 +55989,18 @@
"deploymentVcsProviderBranch": {
"type": "string",
"description": "Name of Git branch that updates rule. Used if type is \"deployment\"",
"x-example": "function"
"x-example": "main"
},
"status": {
"type": "string",
"description": "Domain verification status. Possible values are \"created\", \"verifying\", \"verified\" and \"unverified\"",
"x-example": "verified"
"x-example": "verified",
"enum": [
"created",
"verifying",
"verified",
"unverified"
]
},
"logs": {
"type": "string",
@ -55884,7 +56042,7 @@
"deploymentId": "n3u9feiwmf",
"deploymentResourceType": "function",
"deploymentResourceId": "n3u9feiwmf",
"deploymentVcsProviderBranch": "function",
"deploymentVcsProviderBranch": "main",
"status": "verified",
"logs": "HTTP challegne failed.",
"renewAt": "datetime"
@ -56391,7 +56549,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -35331,7 +35331,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35419,7 +35427,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35509,7 +35525,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35599,7 +35623,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35672,7 +35704,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35752,7 +35792,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35842,7 +35890,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35922,7 +35978,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36002,7 +36066,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36082,7 +36154,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36190,7 +36270,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36269,7 +36357,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36360,7 +36456,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -37835,7 +37939,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -40272,7 +40383,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -40300,11 +40418,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -40330,6 +40443,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -40357,12 +40475,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -40386,12 +40504,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -40437,12 +40555,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -40456,7 +40585,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"$ref": "#\/components\/schemas\/headers"
},
@ -40810,8 +40939,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -40858,8 +40992,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -41324,7 +41463,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -11392,12 +11392,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -11411,7 +11422,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"

View file

@ -46398,7 +46398,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46486,7 +46494,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46576,7 +46592,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46666,7 +46690,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46739,7 +46771,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46819,7 +46859,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46909,7 +46957,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46989,7 +47045,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47069,7 +47133,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47149,7 +47221,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47257,7 +47337,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47336,7 +47424,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47427,7 +47523,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -48903,7 +49007,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -52139,7 +52250,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -52167,11 +52285,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -52197,6 +52310,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -52224,12 +52342,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -52253,12 +52371,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -52304,12 +52422,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -52323,7 +52452,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"
@ -53268,7 +53397,16 @@
"type": {
"type": "string",
"description": "Platform type. Possible values are: web, flutter-web, flutter-ios, flutter-android, ios, android, and unity.",
"x-example": "web"
"x-example": "web",
"enum": [
"web",
"flutter-web",
"flutter-ios",
"flutter-android",
"ios",
"android",
"unity"
]
},
"key": {
"type": "string",
@ -53283,7 +53421,7 @@
"hostname": {
"type": "string",
"description": "Web app hostname. Empty string for other platforms.",
"x-example": true
"x-example": "app.example.com"
},
"httpUser": {
"type": "string",
@ -53316,7 +53454,7 @@
"type": "web",
"key": "com.company.appname",
"store": "",
"hostname": true,
"hostname": "app.example.com",
"httpUser": "username",
"httpPass": "password"
}
@ -53569,8 +53707,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -53617,8 +53760,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -55874,7 +56022,11 @@
"deploymentResourceType": {
"type": "string",
"description": "Type of deployment. Possible values are \"function\", \"site\". Used if rule's type is \"deployment\".",
"x-example": "function"
"x-example": "function",
"enum": [
"function",
"site"
]
},
"deploymentResourceId": {
"type": "string",
@ -55884,12 +56036,18 @@
"deploymentVcsProviderBranch": {
"type": "string",
"description": "Name of Git branch that updates rule. Used if type is \"deployment\"",
"x-example": "function"
"x-example": "main"
},
"status": {
"type": "string",
"description": "Domain verification status. Possible values are \"created\", \"verifying\", \"verified\" and \"unverified\"",
"x-example": "verified"
"x-example": "verified",
"enum": [
"created",
"verifying",
"verified",
"unverified"
]
},
"logs": {
"type": "string",
@ -55931,7 +56089,7 @@
"deploymentId": "n3u9feiwmf",
"deploymentResourceType": "function",
"deploymentResourceId": "n3u9feiwmf",
"deploymentVcsProviderBranch": "function",
"deploymentVcsProviderBranch": "main",
"status": "verified",
"logs": "HTTP challegne failed.",
"renewAt": "datetime"
@ -56440,7 +56598,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -35359,7 +35359,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35447,7 +35455,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35537,7 +35553,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35627,7 +35651,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35700,7 +35732,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35780,7 +35820,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35870,7 +35918,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35950,7 +36006,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36030,7 +36094,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36110,7 +36182,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36218,7 +36298,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36297,7 +36385,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36388,7 +36484,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -37864,7 +37968,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -40307,7 +40418,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -40335,11 +40453,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -40365,6 +40478,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -40392,12 +40510,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -40421,12 +40539,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -40472,12 +40590,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -40491,7 +40620,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"
@ -40847,8 +40976,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -40895,8 +41029,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -41363,7 +41502,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -11392,12 +11392,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -11411,7 +11422,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"

View file

@ -46398,7 +46398,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46486,7 +46494,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46576,7 +46592,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46666,7 +46690,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46739,7 +46771,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46819,7 +46859,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46909,7 +46957,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -46989,7 +47045,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47069,7 +47133,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47149,7 +47221,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47257,7 +47337,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47336,7 +47424,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -47427,7 +47523,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -48903,7 +49007,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -52139,7 +52250,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -52167,11 +52285,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -52197,6 +52310,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -52224,12 +52342,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -52253,12 +52371,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -52304,12 +52422,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -52323,7 +52452,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"
@ -53268,7 +53397,16 @@
"type": {
"type": "string",
"description": "Platform type. Possible values are: web, flutter-web, flutter-ios, flutter-android, ios, android, and unity.",
"x-example": "web"
"x-example": "web",
"enum": [
"web",
"flutter-web",
"flutter-ios",
"flutter-android",
"ios",
"android",
"unity"
]
},
"key": {
"type": "string",
@ -53283,7 +53421,7 @@
"hostname": {
"type": "string",
"description": "Web app hostname. Empty string for other platforms.",
"x-example": true
"x-example": "app.example.com"
},
"httpUser": {
"type": "string",
@ -53316,7 +53454,7 @@
"type": "web",
"key": "com.company.appname",
"store": "",
"hostname": true,
"hostname": "app.example.com",
"httpUser": "username",
"httpPass": "password"
}
@ -53569,8 +53707,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -53617,8 +53760,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -55874,7 +56022,11 @@
"deploymentResourceType": {
"type": "string",
"description": "Type of deployment. Possible values are \"function\", \"site\". Used if rule's type is \"deployment\".",
"x-example": "function"
"x-example": "function",
"enum": [
"function",
"site"
]
},
"deploymentResourceId": {
"type": "string",
@ -55884,12 +56036,18 @@
"deploymentVcsProviderBranch": {
"type": "string",
"description": "Name of Git branch that updates rule. Used if type is \"deployment\"",
"x-example": "function"
"x-example": "main"
},
"status": {
"type": "string",
"description": "Domain verification status. Possible values are \"created\", \"verifying\", \"verified\" and \"unverified\"",
"x-example": "verified"
"x-example": "verified",
"enum": [
"created",
"verifying",
"verified",
"unverified"
]
},
"logs": {
"type": "string",
@ -55931,7 +56089,7 @@
"deploymentId": "n3u9feiwmf",
"deploymentResourceType": "function",
"deploymentResourceId": "n3u9feiwmf",
"deploymentVcsProviderBranch": "function",
"deploymentVcsProviderBranch": "main",
"status": "verified",
"logs": "HTTP challegne failed.",
"renewAt": "datetime"
@ -56440,7 +56598,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -35359,7 +35359,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35447,7 +35455,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35537,7 +35553,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35627,7 +35651,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35700,7 +35732,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35780,7 +35820,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35870,7 +35918,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -35950,7 +36006,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36030,7 +36094,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36110,7 +36182,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36218,7 +36298,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36297,7 +36385,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -36388,7 +36484,15 @@
"status": {
"type": "string",
"description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
],
"x-enum-name": "AttributeStatus"
},
"error": {
"type": "string",
@ -37864,7 +37968,14 @@
"status": {
"type": "string",
"description": "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`",
"x-example": "available"
"x-example": "available",
"enum": [
"available",
"processing",
"deleting",
"stuck",
"failed"
]
},
"error": {
"type": "string",
@ -40307,7 +40418,14 @@
"status": {
"type": "string",
"description": "The deployment status. Possible values are \"waiting\", \"processing\", \"building\", \"ready\", and \"failed\".",
"x-example": "ready"
"x-example": "ready",
"enum": [
"waiting",
"processing",
"building",
"ready",
"failed"
]
},
"buildLogs": {
"type": "string",
@ -40335,11 +40453,6 @@
"description": "The url of the vcs provider repository",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerCommitHash": {
"type": "string",
"description": "The commit hash of the vcs commit",
@ -40365,6 +40478,11 @@
"description": "The url of the vcs commit",
"x-example": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb"
},
"providerBranch": {
"type": "string",
"description": "The branch of the vcs repository",
"x-example": "0.7.x"
},
"providerBranchUrl": {
"type": "string",
"description": "The branch of the vcs repository",
@ -40392,12 +40510,12 @@
"providerRepositoryName",
"providerRepositoryOwner",
"providerRepositoryUrl",
"providerBranch",
"providerCommitHash",
"providerCommitAuthorUrl",
"providerCommitAuthor",
"providerCommitMessage",
"providerCommitUrl",
"providerBranch",
"providerBranchUrl"
],
"example": {
@ -40421,12 +40539,12 @@
"providerRepositoryName": "database",
"providerRepositoryOwner": "utopia",
"providerRepositoryUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function",
"providerBranch": "0.7.x",
"providerCommitHash": "7c3f25d",
"providerCommitAuthorUrl": "https:\/\/github.com\/vermakhushboo",
"providerCommitAuthor": "Khushboo Verma",
"providerCommitMessage": "Update index.js",
"providerCommitUrl": "https:\/\/github.com\/vermakhushboo\/g4-node-function\/commit\/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb",
"providerBranch": "0.7.x",
"providerBranchUrl": "https:\/\/github.com\/vermakhushboo\/appwrite\/tree\/0.7.x"
}
},
@ -40472,12 +40590,23 @@
"trigger": {
"type": "string",
"description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.",
"x-example": "http"
"x-example": "http",
"enum": [
"http",
"schedule",
"event"
]
},
"status": {
"type": "string",
"description": "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.",
"x-example": "processing"
"x-example": "processing",
"enum": [
"waiting",
"processing",
"completed",
"failed"
]
},
"requestMethod": {
"type": "string",
@ -40491,7 +40620,7 @@
},
"requestHeaders": {
"type": "array",
"description": "HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"description": "HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.",
"items": {
"type": "object",
"$ref": "#\/definitions\/headers"
@ -40847,8 +40976,13 @@
},
"status": {
"type": "string",
"description": "Antivirus status. Possible values can are: `disabled`, `offline`, `online`",
"x-example": "online"
"description": "Antivirus status. Possible values are: `disabled`, `offline`, `online`",
"x-example": "online",
"enum": [
"disabled",
"offline",
"online"
]
}
},
"required": [
@ -40895,8 +41029,13 @@
},
"status": {
"type": "string",
"description": "Service status. Possible values can are: `pass`, `fail`",
"x-example": "pass"
"description": "Service status. Possible values are: `pass`, `fail`",
"x-example": "pass",
"enum": [
"pass",
"fail"
],
"x-enum-name": "HealthStatus"
}
},
"required": [
@ -41363,7 +41502,14 @@
"status": {
"type": "string",
"description": "Status of delivery.",
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed."
"x-example": "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",
"enum": [
"draft",
"processing",
"scheduled",
"sent",
"failed"
]
}
},
"required": [

View file

@ -3102,7 +3102,7 @@ App::post('/v1/messaging/messages/email')
case MessageStatus::SCHEDULED:
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),
@ -3244,7 +3244,7 @@ App::post('/v1/messaging/messages/sms')
case MessageStatus::SCHEDULED:
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),
@ -3462,7 +3462,7 @@ App::post('/v1/messaging/messages/push')
case MessageStatus::SCHEDULED:
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),
@ -3863,7 +3863,7 @@ App::patch('/v1/messaging/messages/email/:messageId')
if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) {
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),
@ -4084,7 +4084,7 @@ App::patch('/v1/messaging/messages/sms/:messageId')
if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) {
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),
@ -4258,7 +4258,7 @@ App::patch('/v1/messaging/messages/push/:messageId')
if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) {
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'message',
'resourceType' => SCHEDULE_RESOURCE_TYPE_MESSAGE,
'resourceId' => $message->getId(),
'resourceInternalId' => $message->getSequence(),
'resourceUpdatedAt' => DateTime::now(),

View file

@ -262,7 +262,6 @@ const METRIC_SITES_ID_INBOUND = 'sites.{siteInternalId}.inbound';
const METRIC_SITES_ID_OUTBOUND = 'sites.{siteInternalId}.outbound';
// Resource types
const RESOURCE_TYPE_PROJECTS = 'projects';
const RESOURCE_TYPE_FUNCTIONS = 'functions';
const RESOURCE_TYPE_SITES = 'sites';
@ -272,10 +271,15 @@ const RESOURCE_TYPE_PROVIDERS = 'providers';
const RESOURCE_TYPE_TOPICS = 'topics';
const RESOURCE_TYPE_SUBSCRIBERS = 'subscribers';
const RESOURCE_TYPE_MESSAGES = 'messages';
const RESOURCE_TYPE_EXECUTIONS = 'executions';
// Resource types for Tokens
const TOKENS_RESOURCE_TYPE_FILES = 'files';
const TOKENS_RESOURCE_TYPE_SITES = 'sites';
const TOKENS_RESOURCE_TYPE_FUNCTIONS = 'functions';
const TOKENS_RESOURCE_TYPE_DATABASES = 'databases';
// Resource types for Schedules
const SCHEDULE_RESOURCE_TYPE_EXECUTION = 'execution';
const SCHEDULE_RESOURCE_TYPE_FUNCTION = 'function';
const SCHEDULE_RESOURCE_TYPE_MESSAGE = 'message';

View file

@ -1,5 +1,14 @@
# Change Log
## 10.0.0
* **Breaking:** Removed Avatars CLI command and all related subcommands; corresponding examples deleted
* **Feat:** Geo defaults now accept coordinate arrays for Databases and Tables DB, with automatic normalization
* **Feat:** Pull command skips deprecated resources by default and shows clearer totals/messages
* **Feat:** Updated CLI descriptions: Databases marked legacy; added tables-db, projects, and project
* Fix TypeScript type generation now quotes invalid property names to produce valid typings
* Update documentation: Removed Avatars CLI examples and updated help text to reflect new geo defaults and terminology
## 8.3.0
* **Feat:** Add support for `appwrite.config.json` file

View file

@ -58,7 +58,8 @@ class Mapper
'json' => Types::json(),
'none' => Types::json(),
'any' => Types::json(),
'array' => Types::json()
'array' => Types::json(),
'enum' => Type::string()
];
foreach ($defaults as $type => $default) {
@ -452,6 +453,7 @@ class Mapper
'ip' => static::model("{$prefix}Ip"),
default => static::model("{$prefix}String"),
},
'enum' => static::model("{$prefix}String"), // TODO: Add enum type (breaking change if added)
'integer' => static::model("{$prefix}Integer"),
'double' => static::model("{$prefix}Float"),
'boolean' => static::model("{$prefix}Boolean"),

View file

@ -730,8 +730,8 @@ class V19 extends Migration
if (empty($document->getAttribute('scheduleId', null))) {
$schedule = $this->dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'function',
'region' => $this->project->getAttribute('region'),
'resourceType' => SCHEDULE_RESOURCE_TYPE_FUNCTION,
'resourceId' => $document->getId(),
'resourceInternalId' => $document->getSequence(),
'resourceUpdatedAt' => DateTime::now(),

View file

@ -11,7 +11,6 @@ use Appwrite\Extend\Exception;
use Appwrite\Extend\Exception as AppwriteException;
use Appwrite\Functions\Validator\Headers;
use Appwrite\Platform\Modules\Compute\Base;
use Appwrite\Platform\Tasks\ScheduleExecutions;
use Appwrite\SDK\AuthType;
use Appwrite\SDK\ContentType;
use Appwrite\SDK\Method;
@ -313,7 +312,7 @@ class Create extends Base
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => ScheduleExecutions::getSupportedResource(),
'resourceType' => SCHEDULE_RESOURCE_TYPE_EXECUTION,
'resourceId' => $execution->getId(),
'resourceInternalId' => $execution->getSequence(),
'resourceUpdatedAt' => DateTime::now(),

View file

@ -5,7 +5,6 @@ namespace Appwrite\Platform\Modules\Functions\Http\Executions;
use Appwrite\Event\Event;
use Appwrite\Extend\Exception;
use Appwrite\Platform\Modules\Compute\Base;
use Appwrite\Platform\Tasks\ScheduleExecutions;
use Appwrite\SDK\AuthType;
use Appwrite\SDK\ContentType;
use Appwrite\SDK\Method;
@ -100,7 +99,7 @@ class Delete extends Base
if ($status === 'scheduled') {
$schedule = $dbForPlatform->findOne('schedules', [
Query::equal('resourceId', [$execution->getId()]),
Query::equal('resourceType', [ScheduleExecutions::getSupportedResource()]),
Query::equal('resourceType', [SCHEDULE_RESOURCE_TYPE_EXECUTION]),
Query::equal('active', [true]),
]);

View file

@ -235,7 +235,7 @@ class Create extends Base
$schedule = Authorization::skip(
fn () => $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => 'function',
'resourceType' => SCHEDULE_RESOURCE_TYPE_FUNCTION,
'resourceId' => $function->getId(),
'resourceInternalId' => $function->getSequence(),
'resourceUpdatedAt' => DateTime::now(),

View file

@ -6,6 +6,12 @@ use Appwrite\Event\Func;
use Swoole\Coroutine as Co;
use Utopia\Database\Database;
/**
* ScheduleExecutions
*
* Handles delayed executions by processing one-time scheduled tasks
* that are executed at a specific future time.
*/
class ScheduleExecutions extends ScheduleBase
{
public const UPDATE_TIMER = 3; // seconds
@ -18,12 +24,12 @@ class ScheduleExecutions extends ScheduleBase
public static function getSupportedResource(): string
{
return 'execution';
return SCHEDULE_RESOURCE_TYPE_EXECUTION;
}
public static function getCollectionId(): string
{
return 'executions';
return RESOURCE_TYPE_EXECUTIONS;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void

View file

@ -7,8 +7,13 @@ use Cron\CronExpression;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\DateTime;
use Utopia\Pools\Group;
/**
* ScheduleFunctions
*
* Handles cron job related executions by processing cron expressions
* and scheduling function executions based on recurring schedules.
*/
class ScheduleFunctions extends ScheduleBase
{
public const UPDATE_TIMER = 10; // seconds
@ -23,12 +28,12 @@ class ScheduleFunctions extends ScheduleBase
public static function getSupportedResource(): string
{
return 'function';
return SCHEDULE_RESOURCE_TYPE_FUNCTION;
}
public static function getCollectionId(): string
{
return 'functions';
return RESOURCE_TYPE_FUNCTIONS;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void

View file

@ -17,12 +17,12 @@ class ScheduleMessages extends ScheduleBase
public static function getSupportedResource(): string
{
return 'message';
return SCHEDULE_RESOURCE_TYPE_MESSAGE;
}
public static function getCollectionId(): string
{
return 'messages';
return RESOURCE_TYPE_MESSAGES;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void

View file

@ -112,7 +112,7 @@ abstract class Format
return $this->params[$key] ?? $default;
}
protected function getEnumName(string $service, string $method, string $param): ?string
protected function getRequestEnumName(string $service, string $method, string $param): ?string
{
/* `$service` is `$namespace` */
switch ($service) {
@ -450,7 +450,7 @@ abstract class Format
return null;
}
public function getEnumKeys(string $service, string $method, string $param): array
public function getRequestEnumKeys(string $service, string $method, string $param): array
{
$values = [];
switch ($service) {
@ -543,6 +543,97 @@ abstract class Format
return $values;
}
public function getResponseEnumName(string $model, string $param): ?string
{
switch ($model) {
case 'attributeString':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeInteger':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeFloat':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeBoolean':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeEmail':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeEnum':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeIp':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeUrl':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeDatetime':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeRelationship':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributePoint':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributeLine':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'attributePolygon':
switch ($param) {
case 'status':
return 'AttributeStatus';
}
break;
case 'healthStatus':
switch ($param) {
case 'status':
return 'HealthStatus';
}
break;
}
return null;
}
protected function getNestedModels(Model $model, array &$usedModels): void
{
foreach ($model->getRules() as $rule) {

View file

@ -9,6 +9,7 @@ use Appwrite\SDK\Response;
use Appwrite\SDK\Specification\Format;
use Appwrite\Template\Template;
use Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response\Model\Any;
use Utopia\Database\Database;
use Utopia\Database\Helpers\Permission;
use Utopia\Database\Helpers\Role;
@ -559,8 +560,8 @@ class OpenAPI3 extends Format
if ($allowed) {
$node['schema']['enum'] = $validator->getList();
$node['schema']['x-enum-name'] = $this->getEnumName($sdk->getNamespace() ?? '', $methodName, $name);
$node['schema']['x-enum-keys'] = $this->getEnumKeys($sdk->getNamespace() ?? '', $methodName, $name);
$node['schema']['x-enum-name'] = $this->getRequestEnumName($sdk->getNamespace() ?? '', $methodName, $name);
$node['schema']['x-enum-keys'] = $this->getRequestEnumKeys($sdk->getNamespace() ?? '', $methodName, $name);
}
if ($validator->getType() === 'integer') {
$node['format'] = 'int32';
@ -682,6 +683,10 @@ class OpenAPI3 extends Format
$type = 'string';
break;
case 'enum':
$type = 'string';
break;
case 'json':
$type = 'object';
$output['components']['schemas'][$model->getType()]['properties'][$name]['additionalProperties'] = true;
@ -770,11 +775,27 @@ class OpenAPI3 extends Format
if ($items) {
$output['components']['schemas'][$model->getType()]['properties'][$name]['items'] = $items;
}
if ($rule['type'] === 'enum' && !empty($rule['enum'])) {
if ($rule['array']) {
$output['components']['schemas'][$model->getType()]['properties'][$name]['items']['enum'] = $rule['enum'];
$enumName = $this->getResponseEnumName($model->getType(), $name);
if ($enumName) {
$output['components']['schemas'][$model->getType()]['properties'][$name]['items']['x-enum-name'] = $enumName;
}
} else {
$output['components']['schemas'][$model->getType()]['properties'][$name]['enum'] = $rule['enum'];
$enumName = $this->getResponseEnumName($model->getType(), $name);
if ($enumName) {
$output['components']['schemas'][$model->getType()]['properties'][$name]['x-enum-name'] = $enumName;
}
}
}
if (!in_array($name, $required)) {
$output['components']['schemas'][$model->getType()]['properties'][$name]['nullable'] = true;
}
}
/** @var Any $model */
if ($model->isAny() && !empty($model->getSampleData())) {
$examples = array_merge($examples, $model->getSampleData());
}

View file

@ -9,6 +9,7 @@ use Appwrite\SDK\Response;
use Appwrite\SDK\Specification\Format;
use Appwrite\Template\Template;
use Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response\Model\Any;
use Utopia\Database\Database;
use Utopia\Database\Helpers\Permission;
use Utopia\Database\Helpers\Role;
@ -565,8 +566,8 @@ class Swagger2 extends Format
if ($allowed && $validator->getType() === 'string') {
$node['enum'] = $validator->getList();
$node['x-enum-name'] = $this->getEnumName($namespace, $methodName, $name);
$node['x-enum-keys'] = $this->getEnumKeys($namespace, $methodName, $name);
$node['x-enum-name'] = $this->getRequestEnumName($namespace, $methodName, $name);
$node['x-enum-keys'] = $this->getRequestEnumKeys($namespace, $methodName, $name);
}
if ($validator->getType() === 'integer') {
@ -690,6 +691,10 @@ class Swagger2 extends Format
$type = 'string';
break;
case 'enum':
$type = 'string';
break;
case 'json':
$type = 'object';
break;
@ -792,11 +797,27 @@ class Swagger2 extends Format
if ($items) {
$output['definitions'][$model->getType()]['properties'][$name]['items'] = $items;
}
if ($rule['type'] === 'enum' && !empty($rule['enum'])) {
if ($rule['array']) {
$output['definitions'][$model->getType()]['properties'][$name]['items']['enum'] = $rule['enum'];
$enumName = $this->getResponseEnumName($model->getType(), $name);
if ($enumName) {
$output['definitions'][$model->getType()]['properties'][$name]['items']['x-enum-name'] = $enumName;
}
} else {
$output['definitions'][$model->getType()]['properties'][$name]['enum'] = $rule['enum'];
$enumName = $this->getResponseEnumName($model->getType(), $name);
if ($enumName) {
$output['definitions'][$model->getType()]['properties'][$name]['x-enum-name'] = $enumName;
}
}
}
if (!in_array($name, $required)) {
$output['definitions'][$model->getType()]['properties'][$name]['x-nullable'] = true;
}
}
/** @var Any $model */
if ($model->isAny() && !empty($model->getSampleData())) {
$examples = array_merge($examples, $model->getSampleData());
}

View file

@ -16,6 +16,7 @@ abstract class Model
public const TYPE_RELATIONSHIP = 'relationship';
public const TYPE_PAYLOAD = 'payload';
public const TYPE_ARRAY = 'array';
public const TYPE_ENUM = 'enum';
/**
* @var bool

View file

@ -23,10 +23,11 @@ class Attribute extends Model
'example' => 'string',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`',
'default' => '',
'example' => 'available',
'enum' => ['available', 'processing', 'deleting', 'stuck', 'failed'],
])
->addRule('error', [
'type' => self::TYPE_STRING,

View file

@ -95,10 +95,11 @@ class Deployment extends Model
'example' => '5e5ea5c16897e',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".',
'default' => '',
'example' => 'ready',
'enum' => ['waiting', 'processing', 'building', 'ready', 'failed'],
])
->addRule('buildLogs', [
'type' => self::TYPE_STRING,
@ -130,12 +131,6 @@ class Deployment extends Model
'default' => '',
'example' => 'https://github.com/vermakhushboo/g4-node-function',
])
->addRule('providerBranch', [
'type' => self::TYPE_STRING,
'description' => 'The branch name of the vcs provider repository',
'default' => '',
'example' => 'main',
])
->addRule('providerCommitHash', [
'type' => self::TYPE_STRING,
'description' => 'The commit hash of the vcs commit',

View file

@ -52,16 +52,18 @@ class Execution extends Model
'example' => '5e5ea5c16897e',
])
->addRule('trigger', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.',
'default' => '',
'example' => 'http',
'enum' => ['http', 'schedule', 'event'],
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.',
'default' => '',
'example' => 'processing',
'enum' => ['waiting', 'processing', 'completed', 'failed'],
])
->addRule('requestMethod', [
'type' => self::TYPE_STRING,
@ -77,7 +79,7 @@ class Execution extends Model
])
->addRule('requestHeaders', [
'type' => Response::MODEL_HEADERS,
'description' => 'HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.',
'description' => 'HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.',
'default' => [],
'example' => [['Content-Type' => 'application/json']],
'array' => true,

View file

@ -17,10 +17,11 @@ class HealthAntivirus extends Model
'example' => '1.0.0',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'description' => 'Antivirus status. Possible values can are: `disabled`, `offline`, `online`',
'type' => self::TYPE_ENUM,
'description' => 'Antivirus status. Possible values are: `disabled`, `offline`, `online`',
'default' => '',
'example' => 'online',
'enum' => ['disabled', 'offline', 'online'],
])
;
}

View file

@ -23,10 +23,11 @@ class HealthStatus extends Model
'example' => 128,
])
->addRule('status', [
'type' => self::TYPE_STRING,
'description' => 'Service status. Possible values can are: `pass`, `fail`',
'type' => self::TYPE_ENUM,
'description' => 'Service status. Possible values are: `pass`, `fail`',
'default' => '',
'example' => 'pass',
'enum' => ['pass', 'fail'],
])
;
}

View file

@ -41,10 +41,11 @@ class Index extends Model
'example' => 'primary',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`',
'default' => '',
'example' => 'available',
'enum' => ['available', 'processing', 'deleting', 'stuck', 'failed'],
])
->addRule('error', [
'type' => self::TYPE_STRING,

View file

@ -34,6 +34,7 @@ class Message extends Model
'description' => 'Message provider type.',
'default' => '',
'example' => MESSAGE_TYPE_EMAIL,
'enum' => [MESSAGE_TYPE_EMAIL, MESSAGE_TYPE_SMS, MESSAGE_TYPE_PUSH],
])
->addRule('topics', [
'type' => self::TYPE_STRING,
@ -50,7 +51,7 @@ class Message extends Model
'example' => ['5e5ea5c16897e'],
])
->addRule('targets', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Target IDs set as recipients.',
'default' => '',
'array' => true,
@ -94,10 +95,11 @@ class Message extends Model
],
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Status of delivery.',
'default' => 'draft',
'example' => 'Message status can be one of the following: draft, processing, scheduled, sent, or failed.',
'enum' => ['draft', 'processing', 'scheduled', 'sent', 'failed'],
]);
}

View file

@ -40,10 +40,11 @@ class Platform extends Model
'example' => 'My Web App',
])
->addRule('type', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Platform type. Possible values are: web, flutter-web, flutter-ios, flutter-android, ios, android, and unity.',
'default' => '',
'example' => 'web',
'enum' => ['web', 'flutter-web', 'flutter-ios', 'flutter-android', 'ios', 'android', 'unity'],
])
->addRule('key', [
'type' => self::TYPE_STRING,
@ -60,7 +61,7 @@ class Platform extends Model
'type' => self::TYPE_STRING,
'description' => 'Web app hostname. Empty string for other platforms.',
'default' => '',
'example' => true,
'example' => 'app.example.com',
])
->addRule('httpUser', [
'type' => self::TYPE_STRING,

View file

@ -55,7 +55,7 @@ class Rule extends Model
->addRule('redirectStatusCode', [
'type' => self::TYPE_INTEGER,
'description' => 'Status code to apply during redirect. Used if type is "redirect"',
'default' => '',
'default' => 301,
'example' => 301,
])
->addRule('deploymentId', [
@ -65,10 +65,11 @@ class Rule extends Model
'example' => 'n3u9feiwmf',
])
->addRule('deploymentResourceType', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Type of deployment. Possible values are "function", "site". Used if rule\'s type is "deployment".',
'default' => '',
'example' => 'function',
'enum' => ['function', 'site'],
])
->addRule('deploymentResourceId', [
'type' => self::TYPE_STRING,
@ -80,13 +81,14 @@ class Rule extends Model
'type' => self::TYPE_STRING,
'description' => 'Name of Git branch that updates rule. Used if type is "deployment"',
'default' => '',
'example' => 'function',
'example' => 'main',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'type' => self::TYPE_ENUM,
'description' => 'Domain verification status. Possible values are "created", "verifying", "verified" and "unverified"',
'default' => false,
'default' => 'created',
'example' => 'verified',
'enum' => ['created', 'verifying', 'verified', 'unverified'],
])
->addRule('logs', [
'type' => self::TYPE_STRING,