// Copyright Abridged, Inc. 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 {PkpAuthMethod} from './pkp-auth-method.model.js'; /** * The model class is generated from OpenAPI schema - PkpItem * PkpItem */ @model({name: 'PkpItem'}) export class PkpItem { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) ethAddress?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) publicKey?: string; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) permittedActions?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) permittedAddresses?: string[]; /** * */ @property.array(PkpAuthMethod, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/PkpAuthMethod', }, }, }) permittedAuthMethods?: PkpAuthMethod[]; } export interface PkpItemRelations { // describe navigational properties here } export type PkpItemWithRelations = PkpItem & PkpItemRelations;