// Copyright Abridged, Inc. 2021,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; /** * The model class is generated from OpenAPI schema - AuthorizationCodeRequest * AuthorizationCodeRequest */ @model({name: 'AuthorizationCodeRequest'}) export class AuthorizationCodeRequest { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) scope?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) client_id?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) client_secret?: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', enum: ['authorization_code'], }, }) grant_type: 'authorization_code'; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) code: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) code_verifier?: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) redirect_uri: string; } export interface AuthorizationCodeRequestRelations { // describe navigational properties here } export type AuthorizationCodeRequestWithRelations = AuthorizationCodeRequest & AuthorizationCodeRequestRelations;