/** * application/vnd.oada.well-known.oada-configuration.1+json * @example * ```json * { * "well_known_version": "1.0.0", * "oada_base_uri": "https://oada.example.com", * "authorization_endpoint": "https://oada.example.com/auth", * "token_endpoint": "https://oada.example.com/token", * "registration_endpoint": "https://oada.example.com/register", * "token_endpoint_auth_signing_alg_values_supported": [ * "RS256" * ], * "scopes_supported": [ * { * "name": "oada.all.1", * "read+write": true * } * ] * } * ``` * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./oada/oada-configuration/v1.schema.json of @oada/formats * and run `$ yarn build` to regenerate this file. * * @packageDocumentation */ /** * `$id` of the source schema * @see {@link https://formats.openag.io/oada/oada-configuration/v1.schema.json} */ export declare const $id = "https://formats.openag.io/oada/oada-configuration/v1.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/oada/oada-configuration/v1.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/oada/oada-configuration/v1.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly description: "application/vnd.oada.well-known.oada-configuration.1+json"; readonly required: readonly ["oada_base_uri", "authorization_endpoint", "token_endpoint", "registration_endpoint", "token_endpoint_auth_signing_alg_values_supported"]; readonly additionalProperties: true; readonly properties: { readonly oada_base_uri: { readonly type: "string"; readonly pattern: "^https://.*"; }; readonly authorization_endpoint: { readonly type: "string"; readonly pattern: "^https://.*"; }; readonly token_endpoint: { readonly type: "string"; readonly pattern: "^https://.*"; }; readonly registration_endpoint: { readonly type: "string"; readonly pattern: "^https://.*"; }; readonly token_endpoint_auth_signing_alg_values_supported: { readonly type: "array"; readonly minItems: 1; readonly uniqueItems: true; readonly items: { readonly type: "string"; }; }; }; readonly type: "object"; readonly examples: readonly [{ readonly well_known_version: "1.0.0"; readonly oada_base_uri: "https://oada.example.com"; readonly authorization_endpoint: "https://oada.example.com/auth"; readonly token_endpoint: "https://oada.example.com/token"; readonly registration_endpoint: "https://oada.example.com/register"; readonly token_endpoint_auth_signing_alg_values_supported: readonly ["RS256"]; readonly scopes_supported: readonly [{ readonly name: "oada.all.1"; readonly 'read+write': true; }]; }]; }; /** * Returns true if `val` is a @type `V1Schema`, false otherwise */ export declare function is(val: unknown): val is V1Schema; /** * Asserts that `val` is a @type `V1Schema` */ export declare function assert(val: unknown): asserts val is V1Schema; /** * application/vnd.oada.well-known.oada-configuration.1+json * @example * ```json * { * "well_known_version": "1.0.0", * "oada_base_uri": "https://oada.example.com", * "authorization_endpoint": "https://oada.example.com/auth", * "token_endpoint": "https://oada.example.com/token", * "registration_endpoint": "https://oada.example.com/register", * "token_endpoint_auth_signing_alg_values_supported": [ * "RS256" * ], * "scopes_supported": [ * { * "name": "oada.all.1", * "read+write": true * } * ] * } * ``` * */ export default V1Schema; /** * application/vnd.oada.well-known.oada-configuration.1+json */ export interface V1Schema { oada_base_uri: string; authorization_endpoint: string; token_endpoint: string; registration_endpoint: string; /** * @minItems 1 */ token_endpoint_auth_signing_alg_values_supported: [string, ...string[]]; [k: string]: unknown; }