libs/invite/src/dto/invite-node.dto.ts
Entity that describes the elements that a node needs to get access to a network.
Properties |
endpoint |
Type : string
|
Decorators :
@ApiProperty({description: 'Url of the node endpoint'})
|
Defined in libs/invite/src/dto/invite-node.dto.ts:27
|
Endpoint where the secret code was generated |
id |
Type : string
|
Decorators :
@ApiProperty({description: 'id of the did'})
|
Defined in libs/invite/src/dto/invite-node.dto.ts:13
|
Unique id that should be used for the did. |
secret |
Type : string
|
Decorators :
@ApiProperty({description: 'Secret token'})
|
Defined in libs/invite/src/dto/invite-node.dto.ts:20
|
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;
}