mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Merge pull request #9274 from appwrite/update-specs
Update: Latest sdk specs
This commit is contained in:
commit
64567ffd04
9 changed files with 228 additions and 18 deletions
|
|
@ -6361,6 +6361,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
|
||||||
|
|
@ -25157,6 +25157,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
@ -35706,6 +35707,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databasesReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databasesWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"databases": {
|
"databases": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of databases per period.",
|
"description": "Aggregated number of databases per period.",
|
||||||
|
|
@ -35737,6 +35750,22 @@
|
||||||
"$ref": "#\/components\/schemas\/metric"
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -35745,10 +35774,14 @@
|
||||||
"collectionsTotal",
|
"collectionsTotal",
|
||||||
"documentsTotal",
|
"documentsTotal",
|
||||||
"storageTotal",
|
"storageTotal",
|
||||||
|
"databasesReadsTotal",
|
||||||
|
"databasesWritesTotal",
|
||||||
"databases",
|
"databases",
|
||||||
"collections",
|
"collections",
|
||||||
"documents",
|
"documents",
|
||||||
"storage"
|
"storage",
|
||||||
|
"databasesReads",
|
||||||
|
"databasesWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usageDatabase": {
|
"usageDatabase": {
|
||||||
|
|
@ -35778,6 +35811,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databaseReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databaseWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"collections": {
|
"collections": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of collections per period.",
|
"description": "Aggregated number of collections per period.",
|
||||||
|
|
@ -35801,6 +35846,22 @@
|
||||||
"$ref": "#\/components\/schemas\/metric"
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databaseReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databaseWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -35808,9 +35869,13 @@
|
||||||
"collectionsTotal",
|
"collectionsTotal",
|
||||||
"documentsTotal",
|
"documentsTotal",
|
||||||
"storageTotal",
|
"storageTotal",
|
||||||
|
"databaseReadsTotal",
|
||||||
|
"databaseWritesTotal",
|
||||||
"collections",
|
"collections",
|
||||||
"documents",
|
"documents",
|
||||||
"storage"
|
"storage",
|
||||||
|
"databaseReads",
|
||||||
|
"databaseWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usageCollection": {
|
"usageCollection": {
|
||||||
|
|
@ -36405,6 +36470,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databasesReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databasesWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"requests": {
|
"requests": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of requests per period.",
|
"description": "Aggregated number of requests per period.",
|
||||||
|
|
@ -36504,6 +36581,22 @@
|
||||||
"$ref": "#\/components\/schemas\/metricBreakdown"
|
"$ref": "#\/components\/schemas\/metricBreakdown"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#\/components\/schemas\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -36519,6 +36612,8 @@
|
||||||
"bucketsTotal",
|
"bucketsTotal",
|
||||||
"executionsMbSecondsTotal",
|
"executionsMbSecondsTotal",
|
||||||
"buildsMbSecondsTotal",
|
"buildsMbSecondsTotal",
|
||||||
|
"databasesReadsTotal",
|
||||||
|
"databasesWritesTotal",
|
||||||
"requests",
|
"requests",
|
||||||
"network",
|
"network",
|
||||||
"users",
|
"users",
|
||||||
|
|
@ -36531,7 +36626,9 @@
|
||||||
"functionsStorageBreakdown",
|
"functionsStorageBreakdown",
|
||||||
"authPhoneTotal",
|
"authPhoneTotal",
|
||||||
"authPhoneEstimate",
|
"authPhoneEstimate",
|
||||||
"authPhoneCountryBreakdown"
|
"authPhoneCountryBreakdown",
|
||||||
|
"databasesReads",
|
||||||
|
"databasesWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"headers": {
|
"headers": {
|
||||||
|
|
|
||||||
|
|
@ -17577,6 +17577,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
|
||||||
|
|
@ -6560,6 +6560,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
|
||||||
|
|
@ -25633,6 +25633,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
@ -36243,6 +36244,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databasesReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databasesWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"databases": {
|
"databases": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of databases per period.",
|
"description": "Aggregated number of databases per period.",
|
||||||
|
|
@ -36278,6 +36291,24 @@
|
||||||
"$ref": "#\/definitions\/metric"
|
"$ref": "#\/definitions\/metric"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -36286,10 +36317,14 @@
|
||||||
"collectionsTotal",
|
"collectionsTotal",
|
||||||
"documentsTotal",
|
"documentsTotal",
|
||||||
"storageTotal",
|
"storageTotal",
|
||||||
|
"databasesReadsTotal",
|
||||||
|
"databasesWritesTotal",
|
||||||
"databases",
|
"databases",
|
||||||
"collections",
|
"collections",
|
||||||
"documents",
|
"documents",
|
||||||
"storage"
|
"storage",
|
||||||
|
"databasesReads",
|
||||||
|
"databasesWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usageDatabase": {
|
"usageDatabase": {
|
||||||
|
|
@ -36319,6 +36354,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databaseReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databaseWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"collections": {
|
"collections": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of collections per period.",
|
"description": "Aggregated number of collections per period.",
|
||||||
|
|
@ -36345,6 +36392,24 @@
|
||||||
"$ref": "#\/definitions\/metric"
|
"$ref": "#\/definitions\/metric"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databaseReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databaseWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -36352,9 +36417,13 @@
|
||||||
"collectionsTotal",
|
"collectionsTotal",
|
||||||
"documentsTotal",
|
"documentsTotal",
|
||||||
"storageTotal",
|
"storageTotal",
|
||||||
|
"databaseReadsTotal",
|
||||||
|
"databaseWritesTotal",
|
||||||
"collections",
|
"collections",
|
||||||
"documents",
|
"documents",
|
||||||
"storage"
|
"storage",
|
||||||
|
"databaseReads",
|
||||||
|
"databaseWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usageCollection": {
|
"usageCollection": {
|
||||||
|
|
@ -36976,6 +37045,18 @@
|
||||||
"x-example": 0,
|
"x-example": 0,
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"databasesReadsTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases reads.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"databasesWritesTotal": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of databases writes.",
|
||||||
|
"x-example": 0,
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"requests": {
|
"requests": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Aggregated number of requests per period.",
|
"description": "Aggregated number of requests per period.",
|
||||||
|
|
@ -37086,6 +37167,24 @@
|
||||||
"$ref": "#\/definitions\/metricBreakdown"
|
"$ref": "#\/definitions\/metricBreakdown"
|
||||||
},
|
},
|
||||||
"x-example": []
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesReads": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database reads.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
|
},
|
||||||
|
"databasesWrites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An array of aggregated number of database writes.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#\/definitions\/metric"
|
||||||
|
},
|
||||||
|
"x-example": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -37101,6 +37200,8 @@
|
||||||
"bucketsTotal",
|
"bucketsTotal",
|
||||||
"executionsMbSecondsTotal",
|
"executionsMbSecondsTotal",
|
||||||
"buildsMbSecondsTotal",
|
"buildsMbSecondsTotal",
|
||||||
|
"databasesReadsTotal",
|
||||||
|
"databasesWritesTotal",
|
||||||
"requests",
|
"requests",
|
||||||
"network",
|
"network",
|
||||||
"users",
|
"users",
|
||||||
|
|
@ -37113,7 +37214,9 @@
|
||||||
"functionsStorageBreakdown",
|
"functionsStorageBreakdown",
|
||||||
"authPhoneTotal",
|
"authPhoneTotal",
|
||||||
"authPhoneEstimate",
|
"authPhoneEstimate",
|
||||||
"authPhoneCountryBreakdown"
|
"authPhoneCountryBreakdown",
|
||||||
|
"databasesReads",
|
||||||
|
"databasesWrites"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"headers": {
|
"headers": {
|
||||||
|
|
|
||||||
|
|
@ -18034,6 +18034,7 @@
|
||||||
"gif",
|
"gif",
|
||||||
"png",
|
"png",
|
||||||
"webp",
|
"webp",
|
||||||
|
"heic",
|
||||||
"avif"
|
"avif"
|
||||||
],
|
],
|
||||||
"x-enum-name": "ImageFormat",
|
"x-enum-name": "ImageFormat",
|
||||||
|
|
|
||||||
|
|
@ -70,14 +70,16 @@ class UsageDatabase extends Model
|
||||||
->addRule('databaseReads', [
|
->addRule('databaseReads', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database reads.',
|
'description' => 'An array of aggregated number of database reads.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
->addRule('databaseWrites', [
|
->addRule('databaseWrites', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database writes.',
|
'description' => 'An array of aggregated number of database writes.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,14 +83,16 @@ class UsageDatabases extends Model
|
||||||
->addRule('databasesReads', [
|
->addRule('databasesReads', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database reads.',
|
'description' => 'An array of aggregated number of database reads.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
->addRule('databasesWrites', [
|
->addRule('databasesWrites', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database writes.',
|
'description' => 'An array of aggregated number of database writes.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,14 +186,16 @@ class UsageProject extends Model
|
||||||
->addRule('databasesReads', [
|
->addRule('databasesReads', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database reads.',
|
'description' => 'An array of aggregated number of database reads.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
->addRule('databasesWrites', [
|
->addRule('databasesWrites', [
|
||||||
'type' => Response::MODEL_METRIC,
|
'type' => Response::MODEL_METRIC,
|
||||||
'description' => 'An array of aggregated number of database writes.',
|
'description' => 'An array of aggregated number of database writes.',
|
||||||
'default' => 0,
|
'default' => [],
|
||||||
'example' => 0,
|
'example' => [],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue