// Copyright Abridged, Inc. 2022,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 {AuthenticationExtensionsClientOutputsModel} from './authentication-extensions-client-outputs.model.js'; /** * The model class is generated from OpenAPI schema - DeviceCredential * DeviceCredential */ @model({name: 'DeviceCredential'}) export class DeviceCredential { 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; /** * */ @property({ jsonSchema: { type: 'string', }, }) rpID?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) name?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) credentialPublicKey?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) credentialDeviceType?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) authenticatorAttachment?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) credentialID?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) devicePublicKey?: string; /** * */ @property({ jsonSchema: { type: 'number', }, }) counter?: number; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) transports?: string[]; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/AuthenticationExtensionsClientOutputsModel', }, }) clientExtensionResults?: AuthenticationExtensionsClientOutputsModel; /** * */ @property({ jsonSchema: { type: 'boolean', }, }) userVerified?: boolean; /** * */ @property({ jsonSchema: { type: 'string', }, }) userAgent?: string; } export interface DeviceCredentialRelations { // describe navigational properties here } export type DeviceCredentialWithRelations = DeviceCredential & DeviceCredentialRelations;