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