@xoxno/types 1.0.386 → 1.0.387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SEP-10 Web Authentication challenge response.
|
|
3
|
+
*
|
|
4
|
+
* The server returns an unsigned (server-signed only) Stellar transaction
|
|
5
|
+
* envelope that the client must countersign with the user's secret key.
|
|
6
|
+
* The countersigned XDR is then sent back via POST /user/login as
|
|
7
|
+
* `data.signedXdr` for verification.
|
|
8
|
+
*
|
|
9
|
+
* Spec: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md
|
|
10
|
+
*/
|
|
11
|
+
export declare class StellarChallengeResponseDto {
|
|
12
|
+
transaction: string;
|
|
13
|
+
networkPassphrase: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StellarChallengeResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* SEP-10 Web Authentication challenge response.
|
|
17
|
+
*
|
|
18
|
+
* The server returns an unsigned (server-signed only) Stellar transaction
|
|
19
|
+
* envelope that the client must countersign with the user's secret key.
|
|
20
|
+
* The countersigned XDR is then sent back via POST /user/login as
|
|
21
|
+
* `data.signedXdr` for verification.
|
|
22
|
+
*
|
|
23
|
+
* Spec: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md
|
|
24
|
+
*/
|
|
25
|
+
class StellarChallengeResponseDto {
|
|
26
|
+
}
|
|
27
|
+
exports.StellarChallengeResponseDto = StellarChallengeResponseDto;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Base64-encoded Stellar transaction envelope XDR, server-signed',
|
|
31
|
+
}),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], StellarChallengeResponseDto.prototype, "transaction", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Stellar network passphrase this challenge is valid on (client must match)',
|
|
38
|
+
example: 'Test SDF Network ; September 2015',
|
|
39
|
+
}),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], StellarChallengeResponseDto.prototype, "networkPassphrase", void 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export * from './cosmos-db/documents/user/user-settings.doc';
|
|
|
119
119
|
export * from './cosmos-db/paginated-responses';
|
|
120
120
|
export * from './entities/airdrop/airdrop.dto';
|
|
121
121
|
export * from './entities/auth/login-request.dto';
|
|
122
|
+
export * from './entities/auth/stellar-challenge.dto';
|
|
122
123
|
export * from './entities/bober-battle/game-type';
|
|
123
124
|
export * from './entities/delegation-data/delegation-data-output';
|
|
124
125
|
export * from './entities/delegation-data/provider-data';
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,7 @@ __exportStar(require("./cosmos-db/documents/user/user-settings.doc"), exports);
|
|
|
135
135
|
__exportStar(require("./cosmos-db/paginated-responses"), exports);
|
|
136
136
|
__exportStar(require("./entities/airdrop/airdrop.dto"), exports);
|
|
137
137
|
__exportStar(require("./entities/auth/login-request.dto"), exports);
|
|
138
|
+
__exportStar(require("./entities/auth/stellar-challenge.dto"), exports);
|
|
138
139
|
__exportStar(require("./entities/bober-battle/game-type"), exports);
|
|
139
140
|
__exportStar(require("./entities/delegation-data/delegation-data-output"), exports);
|
|
140
141
|
__exportStar(require("./entities/delegation-data/provider-data"), exports);
|