// 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 - ClientApplication * ClientApplication */ @model({name: 'ClientApplication'}) export class ClientApplication { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) id?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdTime?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) pk?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) sk?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) classifier?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) classifierGroup?: string; /** * Status of request */ @property({ required: true, jsonSchema: { type: 'string', description: 'Status of request', }, }) status: string; /** * */ @property({ jsonSchema: { type: 'array', items: { type: 'object', description: 'Actions by user on request', }, }, }) actions?: {}[]; /** * */ @property({ jsonSchema: { type: 'string', }, }) name?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) email?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tenant?: string; /** * Feedback from user */ @property({ jsonSchema: { type: 'string', description: 'Feedback from user', }, }) feedback?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) secret?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) clientSecret?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) clientSecretHash?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) url?: string; /** * */ @property({ jsonSchema: { type: 'string', enum: ['confidential', 'public', 'apiKey'], }, }) clientType?: 'confidential' | 'public' | 'apiKey'; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) redirectUris?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) allowedGrantTypes?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) allowedScopes?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) disallowedScopes?: string[]; /** * */ @property({ jsonSchema: { type: 'string', }, }) apiKey?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) apiKeyHash?: string; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) allowedOrigins?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) allowedReferrers?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) allowedIpAddresses?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) subscribeEvents?: string[]; /** * */ @property({ jsonSchema: { type: 'string', }, }) webhookUrl?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) icon?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdByName?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdById?: string; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', description: 'Requested oAuth2 scopes', }, }, }) requestedScopes?: string[]; } export interface ClientApplicationRelations { // describe navigational properties here } export type ClientApplicationWithRelations = ClientApplication & ClientApplicationRelations;