appwrite-utils
Version:
114 lines (113 loc) • 4.67 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 IdentityListJsonSchema = {
"$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 identities that matched your query."
},
"identities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"$id": {
"type": "string",
"x-example": "5e5ea5c16897e",
"description": "Identity ID."
},
"$createdAt": {
"type": "string",
"x-example": "2020-10-15T06:38:00.000+00:00",
"description": "Identity creation date in ISO 8601 format."
},
"$updatedAt": {
"type": "string",
"x-example": "2020-10-15T06:38:00.000+00:00",
"description": "Identity update date in ISO 8601 format."
},
"userId": {
"type": "string",
"x-example": "5e5bb8c16897e",
"description": "User ID."
},
"provider": {
"type": "string",
"x-example": "email",
"description": "Identity Provider."
},
"providerUid": {
"type": "string",
"x-example": "5e5bb8c16897e",
"description": "ID of the User in the Identity Provider."
},
"providerEmail": {
"type": "string",
"x-example": "user@example.com",
"description": "Email of the User in the Identity Provider."
},
"providerAccessToken": {
"type": "string",
"x-example": "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3",
"description": "Identity Provider Access Token."
},
"providerAccessTokenExpiry": {
"type": "string",
"x-example": "2020-10-15T06:38:00.000+00:00",
"description": "The date of when the access token expires in ISO 8601 format."
},
"providerRefreshToken": {
"type": "string",
"x-example": "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3",
"description": "Identity Provider Refresh Token."
}
},
"required": [
"$id",
"$createdAt",
"$updatedAt",
"userId",
"provider",
"providerUid",
"providerEmail",
"providerAccessToken",
"providerAccessTokenExpiry",
"providerRefreshToken"
],
"additionalProperties": {},
"example": {
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"userId": "5e5bb8c16897e",
"provider": "email",
"providerUid": "5e5bb8c16897e",
"providerEmail": "user@example.com",
"providerAccessToken": "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3",
"providerAccessTokenExpiry": "2020-10-15T06:38:00.000+00:00",
"providerRefreshToken": "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3"
},
"description": "Identity"
},
"x-example": "",
"description": "List of identities."
}
},
"required": [
"total",
"identities"
],
"additionalProperties": {},
"example": {
"total": 5,
"identities": ""
},
"description": "Identities List"
};
export const IdentityListSchema = z.fromJSONSchema(IdentityListJsonSchema);