altair-graphql-core
Version:
Several of the core logic for altair graphql client
75 lines • 2.75 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.accessTokenErrorResponseSchema = exports.accessTokenResponseSchema = void 0;
const v4_1 = require("zod/v4");
exports.accessTokenResponseSchema = (0, v4_1.object)({
/**
* The access token issued by the authorization server
*/
access_token: (0, v4_1.string)().meta({
description: 'The access token issued by the authorization server',
}),
/**
* The type of the token issued
*/
token_type: (0, v4_1.string)().meta({ description: 'The type of the token issued' }),
/**
* The exact value of the state parameter passed by the client in the authorization request
*/
state: (0, v4_1.string)().meta({
description: 'The exact value of the state parameter passed by the client in the authorization request',
}),
/**
* The lifetime in seconds of the access token
*/
expires_in: (0, v4_1.number)()
.meta({ description: 'The lifetime in seconds of the access token' })
.optional(),
/**
* The refresh token issued by the authorization server
*/
refresh_token: (0, v4_1.string)()
.meta({ description: 'The refresh token issued by the authorization server' })
.optional(),
/**
* The ID token issued by the authorization server
*/
id_token: (0, v4_1.string)()
.meta({ description: 'The ID token issued by the authorization server' })
.optional(),
/**
* The scopes granted by the access token
*/
scope: (0, v4_1.string)()
.meta({ description: 'The scopes granted by the access token' })
.optional(),
});
exports.accessTokenErrorResponseSchema = (0, v4_1.object)({
/**
* A single ASCII error code
*/
error: (0, v4_1.string)().meta({ description: 'A single ASCII error code' }),
/**
* The exact value of the state parameter passed by the client in the authorization request
*/
state: (0, v4_1.string)().meta({
description: 'The exact value of the state parameter passed by the client in the authorization request',
}),
/**
* Human-readable ASCII text providing additional information about the error
*/
error_description: (0, v4_1.string)()
.meta({
description: 'Human-readable ASCII text providing additional information about the error',
})
.optional(),
/**
* A URI identifying a human-readable web page with information about the error
*/
error_uri: (0, v4_1.string)()
.meta({
description: 'A URI identifying a human-readable web page with information about the error',
})
.optional(),
});
//# sourceMappingURL=schema.js.map