// 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 {MiniAppManifest} from './mini-app-manifest.model.js'; /** * The model class is generated from OpenAPI schema - DiscordActionMetadata * DiscordActionMetadata */ @model({name: 'DiscordActionMetadata'}) export class DiscordActionMetadata { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) signatureType?: string; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/MiniAppManifest', }, }) manifest?: MiniAppManifest; /** * */ @property({ jsonSchema: { type: 'array', items: { type: 'object', }, }, }) applicationCommands?: {}[]; /** * */ @property({ jsonSchema: { type: 'array', items: { type: 'object', properties: { type: { type: 'number', enum: [2, 3, 5, 4], }, nameOrIdPattern: { type: 'string', }, }, }, }, }) supportedInteractions?: { type?: 2 | 3 | 5 | 4; nameOrIdPattern?: string; }[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) requiredContext?: string[]; } export interface DiscordActionMetadataRelations { // describe navigational properties here } export type DiscordActionMetadataWithRelations = DiscordActionMetadata & DiscordActionMetadataRelations;