appwrite-utils
Version:
125 lines (124 loc) • 4.63 kB
JavaScript
// AUTO-GENERATED from Appwrite OpenAPI spec at main. DO NOT EDIT.
// Source: https://github.com/appwrite/appwrite/tree/main/app/config/specs
import { z } from "zod";
const ProviderListJsonSchema = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"x-example": 5,
"description": "Total number of providers that matched your query."
},
"providers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"$id": {
"type": "string",
"x-example": "5e5ea5c16897e",
"description": "Provider ID."
},
"$createdAt": {
"type": "string",
"x-example": "2020-10-15T06:38:00.000+00:00",
"description": "Provider creation time in ISO 8601 format."
},
"$updatedAt": {
"type": "string",
"x-example": "2020-10-15T06:38:00.000+00:00",
"description": "Provider update date in ISO 8601 format."
},
"name": {
"type": "string",
"x-example": "Mailgun",
"description": "The name for the provider instance."
},
"provider": {
"type": "string",
"x-example": "mailgun",
"description": "The name of the provider service."
},
"enabled": {
"type": "boolean",
"x-example": true,
"description": "Is provider enabled?"
},
"type": {
"type": "string",
"x-example": "sms",
"description": "Type of provider."
},
"credentials": {
"type": "object",
"properties": {},
"additionalProperties": {},
"x-example": {
"key": "123456789"
},
"description": "Provider credentials."
},
"options": {
"anyOf": [
{
"type": "object",
"properties": {},
"additionalProperties": {}
},
{
"type": "null"
}
],
"x-example": {
"from": "sender-email@mydomain"
},
"description": "Provider options."
}
},
"required": [
"$id",
"$createdAt",
"$updatedAt",
"name",
"provider",
"enabled",
"type",
"credentials"
],
"additionalProperties": {},
"example": {
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"name": "Mailgun",
"provider": "mailgun",
"enabled": true,
"type": "sms",
"credentials": {
"key": "123456789"
},
"options": {
"from": "sender-email@mydomain"
}
},
"description": "Provider"
},
"x-example": "",
"description": "List of providers."
}
},
"required": [
"total",
"providers"
],
"additionalProperties": {},
"example": {
"total": 5,
"providers": ""
},
"description": "Provider list"
};
export const ProviderListSchema = z.fromJSONSchema(ProviderListJsonSchema);