File

libs/invite/src/dto/invite-node.dto.ts

Description

Entity that describes the elements that a node needs to get access to a network.

Index

Properties

Properties

endpoint
Type : string
Decorators :
@ApiProperty({description: 'Url of the node endpoint'})
@IsString()

Endpoint where the secret code was generated

id
Type : string
Decorators :
@ApiProperty({description: 'id of the did'})
@IsString()

Unique id that should be used for the did.

secret
Type : string
Decorators :
@ApiProperty({description: 'Secret token'})
@IsString()

Secret that is required for authentication.

import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

/**
 * Entity that describes the elements that a node needs to get access to a network.
 */
export class InviteNode {
  /**
   * Unique id that should be used for the did.
   */
  @ApiProperty({ description: 'id of the did' })
  @IsString()
  id!: string;

  /**
   * Secret that is required for authentication.
   */
  @ApiProperty({ description: 'Secret token' })
  @IsString()
  secret!: string;

  /**
   * Endpoint where the secret code was generated
   */
  @ApiProperty({ description: 'Url of the node endpoint' })
  @IsString()
  endpoint!: string;
}

results matching ""

    No results matching ""