// Copyright Abridged, Inc. 2023,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'; import {ApiEndpoint} from './api-endpoint.model.js'; /** * The model class is generated from OpenAPI schema - Scope * Scope */ @model({name: 'Scope'}) export class Scope { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) id: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) group?: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', }, }) description: string; /** * */ @property.array(ApiEndpoint, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/ApiEndpoint', }, }, }) endpoints?: ApiEndpoint[]; } export interface ScopeRelations { // describe navigational properties here } export type ScopeWithRelations = Scope & ScopeRelations;