@dfns/sdk 0.4.1 → 0.4.2
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.
- package/baseAuthApi.d.ts +4 -2
- package/codegen/datamodel/Auth/types.d.ts +316 -1
- package/codegen/datamodel/Auth/types.js +33 -11
- package/codegen/datamodel/Foundations/types.d.ts +36 -0
- package/codegen/datamodel/Foundations/types.js +12 -4
- package/codegen/datamodel/Wallets/types.d.ts +6 -0
- package/codegen/datamodel/Wallets/types.js +12 -0
- package/dfnsApiClient.d.ts +3 -2
- package/dfnsApiClient.js +2 -2
- package/dfnsDelegatedApiClient.d.ts +2 -4
- package/dfnsDelegatedApiClient.js +2 -2
- package/generated/auth/client.d.ts +79 -0
- package/generated/auth/client.js +677 -0
- package/generated/auth/delegatedClient.d.ts +99 -0
- package/generated/auth/delegatedClient.js +1093 -0
- package/generated/auth/index.d.ts +3 -0
- package/generated/auth/index.js +19 -0
- package/generated/auth/types.d.ts +1983 -0
- package/generated/auth/types.js +2 -0
- package/generated/networks/types.d.ts +33 -7
- package/generated/permissions/types.d.ts +16 -26
- package/generated/wallets/types.d.ts +13 -1
- package/package.json +1 -1
- package/signer.d.ts +1 -2
- package/types/auth.d.ts +1 -0
- package/types/auth.js +17 -0
- package/utils/fetch.js +9 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthIdentityKind = exports.UserAuthKind = exports.AccessTokenKind = exports.ServerKind = exports.CredentialFactor = exports.FidoCredentialsTransportKind = exports.ApplicationKind = exports.AuthenticatorAttestationOptions = exports.AuthenticatorRequirementOptions = exports.UserKind = exports.CredentialKind = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
6
|
+
*/
|
|
5
7
|
var CredentialKind;
|
|
6
8
|
(function (CredentialKind) {
|
|
7
9
|
// FIXME: Missing documentation for Fido2
|
|
@@ -15,7 +17,9 @@ var CredentialKind;
|
|
|
15
17
|
// FIXME: Missing documentation for RecoveryKey
|
|
16
18
|
CredentialKind["RecoveryKey"] = "RecoveryKey";
|
|
17
19
|
})(CredentialKind || (exports.CredentialKind = CredentialKind = {}));
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
22
|
+
*/
|
|
19
23
|
var UserKind;
|
|
20
24
|
(function (UserKind) {
|
|
21
25
|
// FIXME: Missing documentation for CustomerEmployee
|
|
@@ -31,7 +35,9 @@ var UserKind;
|
|
|
31
35
|
// FIXME: Missing documentation for ServiceAccount
|
|
32
36
|
UserKind["ServiceAccount"] = "ServiceAccount";
|
|
33
37
|
})(UserKind || (exports.UserKind = UserKind = {}));
|
|
34
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
40
|
+
*/
|
|
35
41
|
var AuthenticatorRequirementOptions;
|
|
36
42
|
(function (AuthenticatorRequirementOptions) {
|
|
37
43
|
// FIXME: Missing documentation for required
|
|
@@ -41,7 +47,9 @@ var AuthenticatorRequirementOptions;
|
|
|
41
47
|
// FIXME: Missing documentation for discouraged
|
|
42
48
|
AuthenticatorRequirementOptions["discouraged"] = "discouraged";
|
|
43
49
|
})(AuthenticatorRequirementOptions || (exports.AuthenticatorRequirementOptions = AuthenticatorRequirementOptions = {}));
|
|
44
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
52
|
+
*/
|
|
45
53
|
var AuthenticatorAttestationOptions;
|
|
46
54
|
(function (AuthenticatorAttestationOptions) {
|
|
47
55
|
// FIXME: Missing documentation for none
|
|
@@ -53,7 +61,9 @@ var AuthenticatorAttestationOptions;
|
|
|
53
61
|
// FIXME: Missing documentation for enterprise
|
|
54
62
|
AuthenticatorAttestationOptions["enterprise"] = "enterprise";
|
|
55
63
|
})(AuthenticatorAttestationOptions || (exports.AuthenticatorAttestationOptions = AuthenticatorAttestationOptions = {}));
|
|
56
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
66
|
+
*/
|
|
57
67
|
var ApplicationKind;
|
|
58
68
|
(function (ApplicationKind) {
|
|
59
69
|
// FIXME: Missing documentation for ServerSideApplication
|
|
@@ -61,7 +71,9 @@ var ApplicationKind;
|
|
|
61
71
|
// FIXME: Missing documentation for ClientSideApplication
|
|
62
72
|
ApplicationKind["ClientSideApplication"] = "ClientSideApplication";
|
|
63
73
|
})(ApplicationKind || (exports.ApplicationKind = ApplicationKind = {}));
|
|
64
|
-
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
76
|
+
*/
|
|
65
77
|
var FidoCredentialsTransportKind;
|
|
66
78
|
(function (FidoCredentialsTransportKind) {
|
|
67
79
|
// FIXME: Missing documentation for usb
|
|
@@ -75,7 +87,9 @@ var FidoCredentialsTransportKind;
|
|
|
75
87
|
// FIXME: Missing documentation for hybrid
|
|
76
88
|
FidoCredentialsTransportKind["hybrid"] = "hybrid";
|
|
77
89
|
})(FidoCredentialsTransportKind || (exports.FidoCredentialsTransportKind = FidoCredentialsTransportKind = {}));
|
|
78
|
-
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
92
|
+
*/
|
|
79
93
|
var CredentialFactor;
|
|
80
94
|
(function (CredentialFactor) {
|
|
81
95
|
// FIXME: Missing documentation for first
|
|
@@ -85,7 +99,9 @@ var CredentialFactor;
|
|
|
85
99
|
// FIXME: Missing documentation for either
|
|
86
100
|
CredentialFactor["either"] = "either";
|
|
87
101
|
})(CredentialFactor || (exports.CredentialFactor = CredentialFactor = {}));
|
|
88
|
-
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
104
|
+
*/
|
|
89
105
|
var ServerKind;
|
|
90
106
|
(function (ServerKind) {
|
|
91
107
|
// FIXME: Missing documentation for Api
|
|
@@ -93,7 +109,9 @@ var ServerKind;
|
|
|
93
109
|
// FIXME: Missing documentation for Staff
|
|
94
110
|
ServerKind["Staff"] = "Staff";
|
|
95
111
|
})(ServerKind || (exports.ServerKind = ServerKind = {}));
|
|
96
|
-
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
114
|
+
*/
|
|
97
115
|
var AccessTokenKind;
|
|
98
116
|
(function (AccessTokenKind) {
|
|
99
117
|
// FIXME: Missing documentation for ServiceAccount
|
|
@@ -103,7 +121,9 @@ var AccessTokenKind;
|
|
|
103
121
|
// FIXME: Missing documentation for Application
|
|
104
122
|
AccessTokenKind["Application"] = "Application";
|
|
105
123
|
})(AccessTokenKind || (exports.AccessTokenKind = AccessTokenKind = {}));
|
|
106
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
126
|
+
*/
|
|
107
127
|
var UserAuthKind;
|
|
108
128
|
(function (UserAuthKind) {
|
|
109
129
|
// FIXME: Missing documentation for EndUser
|
|
@@ -113,7 +133,9 @@ var UserAuthKind;
|
|
|
113
133
|
// FIXME: Missing documentation for DfnsStaff
|
|
114
134
|
UserAuthKind["DfnsStaff"] = "DfnsStaff";
|
|
115
135
|
})(UserAuthKind || (exports.UserAuthKind = UserAuthKind = {}));
|
|
116
|
-
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
138
|
+
*/
|
|
117
139
|
var AuthIdentityKind;
|
|
118
140
|
(function (AuthIdentityKind) {
|
|
119
141
|
// FIXME: Missing documentation for DfnsStaffIdentity
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated to be deleted
|
|
3
|
+
*/
|
|
1
4
|
export type AssetPairPrice = {
|
|
2
5
|
pair: string;
|
|
3
6
|
dateUpdated: IsoDatetime;
|
|
@@ -9,26 +12,41 @@ export type AssetPairPrice = {
|
|
|
9
12
|
*/
|
|
10
13
|
id: EntityId;
|
|
11
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated to be deleted
|
|
17
|
+
*/
|
|
12
18
|
export type EmployeeInitiator = {
|
|
13
19
|
kind: InitiatorKind.Employee;
|
|
14
20
|
orgId: EntityId;
|
|
15
21
|
employeeId: EntityId;
|
|
16
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated to be deleted
|
|
25
|
+
*/
|
|
17
26
|
export type DfnsStaffInitiator = {
|
|
18
27
|
kind: InitiatorKind.DfnsStaff;
|
|
19
28
|
maintainerId: EntityId;
|
|
20
29
|
country: Countries;
|
|
21
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated to be deleted
|
|
33
|
+
*/
|
|
22
34
|
export type DfnsCustomerServiceInitiator = {
|
|
23
35
|
kind: InitiatorKind.DfnsCustomerService;
|
|
24
36
|
orgId: EntityId;
|
|
25
37
|
apiKeyId: EntityId;
|
|
26
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated to be deleted
|
|
41
|
+
*/
|
|
27
42
|
export type ApiKeyInitiator = {
|
|
28
43
|
kind: InitiatorKind.ApiKey;
|
|
29
44
|
orgId: EntityId;
|
|
30
45
|
apiKeyId: EntityId;
|
|
31
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated to be deleted
|
|
49
|
+
*/
|
|
32
50
|
export type OrgBelongingEntity = {
|
|
33
51
|
/**
|
|
34
52
|
* Multiple tags can be attached to an entity to categorise or otherwise mark it. For example tags could indicate risk (High, Medium, Low), departments (Trading, Sales, IT), purpose (Treasury, Hot, Deposits), and jurisdictions (US, EU, DE).
|
|
@@ -45,6 +63,9 @@ export type OrgBelongingEntity = {
|
|
|
45
63
|
*/
|
|
46
64
|
orgId: EntityId;
|
|
47
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated to be deleted
|
|
68
|
+
*/
|
|
48
69
|
export type BlockchainAddressInitiator = {
|
|
49
70
|
kind: InitiatorKind.BlockchainAddress;
|
|
50
71
|
address: string;
|
|
@@ -63,7 +84,13 @@ export type Email = string;
|
|
|
63
84
|
export type Epoch = number;
|
|
64
85
|
export type BlockchainAddress = string;
|
|
65
86
|
export type IntegerPositiveStrict = number;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated to be deleted
|
|
89
|
+
*/
|
|
66
90
|
export type Initiator = EmployeeInitiator | DfnsStaffInitiator | DfnsCustomerServiceInitiator | ApiKeyInitiator | BlockchainAddressInitiator;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated to be deleted
|
|
93
|
+
*/
|
|
67
94
|
export declare enum Countries {
|
|
68
95
|
AF = "AF",
|
|
69
96
|
AL = "AL",
|
|
@@ -314,6 +341,9 @@ export type CountriesMetadata = {
|
|
|
314
341
|
name: string;
|
|
315
342
|
};
|
|
316
343
|
export declare const COUNTRIES_DATA: Record<Countries, CountriesMetadata>;
|
|
344
|
+
/**
|
|
345
|
+
* @deprecated to be deleted
|
|
346
|
+
*/
|
|
317
347
|
export declare enum AssetSymbol {
|
|
318
348
|
ADA = "ADA",
|
|
319
349
|
ALGO = "ALGO",
|
|
@@ -9700,6 +9730,9 @@ export type AssetSymbolMetadata = {
|
|
|
9700
9730
|
smallestUnitDecimal: number;
|
|
9701
9731
|
};
|
|
9702
9732
|
export declare const ASSET_SYMBOL_DATA: Record<AssetSymbol, AssetSymbolMetadata>;
|
|
9733
|
+
/**
|
|
9734
|
+
* @deprecated to be deleted
|
|
9735
|
+
*/
|
|
9703
9736
|
export declare enum InitiatorKind {
|
|
9704
9737
|
Employee = "Employee",
|
|
9705
9738
|
DfnsCustomerService = "DfnsCustomerService",
|
|
@@ -9707,6 +9740,9 @@ export declare enum InitiatorKind {
|
|
|
9707
9740
|
ApiKey = "ApiKey",
|
|
9708
9741
|
BlockchainAddress = "BlockchainAddress"
|
|
9709
9742
|
}
|
|
9743
|
+
/**
|
|
9744
|
+
* @deprecated to be deleted
|
|
9745
|
+
*/
|
|
9710
9746
|
export declare enum IdentityIssuer {
|
|
9711
9747
|
Dfns = "Dfns",
|
|
9712
9748
|
Auth0 = "Auth0"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BLOCKCHAIN_NETWORK_DATA = exports.BlockchainNetwork = exports.IdentityIssuer = exports.InitiatorKind = exports.ASSET_SYMBOL_DATA = exports.AssetSymbol = exports.COUNTRIES_DATA = exports.Countries = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated to be deleted
|
|
6
|
+
*/
|
|
5
7
|
var Countries;
|
|
6
8
|
(function (Countries) {
|
|
7
9
|
//Afghanistan
|
|
@@ -1227,7 +1229,9 @@ exports.COUNTRIES_DATA = {
|
|
|
1227
1229
|
name: `Åland Islands`,
|
|
1228
1230
|
},
|
|
1229
1231
|
};
|
|
1230
|
-
|
|
1232
|
+
/**
|
|
1233
|
+
* @deprecated to be deleted
|
|
1234
|
+
*/
|
|
1231
1235
|
var AssetSymbol;
|
|
1232
1236
|
(function (AssetSymbol) {
|
|
1233
1237
|
//Cardano native currency
|
|
@@ -57507,7 +57511,9 @@ exports.ASSET_SYMBOL_DATA = {
|
|
|
57507
57511
|
smallestUnitDecimal: 9,
|
|
57508
57512
|
},
|
|
57509
57513
|
};
|
|
57510
|
-
|
|
57514
|
+
/**
|
|
57515
|
+
* @deprecated to be deleted
|
|
57516
|
+
*/
|
|
57511
57517
|
var InitiatorKind;
|
|
57512
57518
|
(function (InitiatorKind) {
|
|
57513
57519
|
// FIXME: Missing documentation for Employee
|
|
@@ -57521,7 +57527,9 @@ var InitiatorKind;
|
|
|
57521
57527
|
// FIXME: Missing documentation for BlockchainAddress
|
|
57522
57528
|
InitiatorKind["BlockchainAddress"] = "BlockchainAddress";
|
|
57523
57529
|
})(InitiatorKind || (exports.InitiatorKind = InitiatorKind = {}));
|
|
57524
|
-
|
|
57530
|
+
/**
|
|
57531
|
+
* @deprecated to be deleted
|
|
57532
|
+
*/
|
|
57525
57533
|
var IdentityIssuer;
|
|
57526
57534
|
(function (IdentityIssuer) {
|
|
57527
57535
|
// FIXME: Missing documentation for Dfns
|
|
@@ -758,17 +758,22 @@ export declare enum BlockchainNetwork {
|
|
|
758
758
|
BitcoinTestnet3 = "BitcoinTestnet3",
|
|
759
759
|
Bsc = "Bsc",
|
|
760
760
|
BscTestnet = "BscTestnet",
|
|
761
|
+
Cardano = "Cardano",
|
|
762
|
+
CardanoPreprod = "CardanoPreprod",
|
|
761
763
|
Ethereum = "Ethereum",
|
|
762
764
|
EthereumGoerli = "EthereumGoerli",
|
|
763
765
|
EthereumSepolia = "EthereumSepolia",
|
|
764
766
|
FantomOpera = "FantomOpera",
|
|
765
767
|
FantomTestnet = "FantomTestnet",
|
|
768
|
+
Kusama = "Kusama",
|
|
766
769
|
Litecoin = "Litecoin",
|
|
767
770
|
LitecoinTestnet = "LitecoinTestnet",
|
|
768
771
|
Optimism = "Optimism",
|
|
769
772
|
OptimismGoerli = "OptimismGoerli",
|
|
770
773
|
OptimismSepolia = "OptimismSepolia",
|
|
774
|
+
Polkadot = "Polkadot",
|
|
771
775
|
Polygon = "Polygon",
|
|
776
|
+
PolygonAmoy = "PolygonAmoy",
|
|
772
777
|
PolygonMumbai = "PolygonMumbai",
|
|
773
778
|
Solana = "Solana",
|
|
774
779
|
SolanaDevnet = "SolanaDevnet",
|
|
@@ -776,6 +781,7 @@ export declare enum BlockchainNetwork {
|
|
|
776
781
|
TezosGhostnet = "TezosGhostnet",
|
|
777
782
|
Tron = "Tron",
|
|
778
783
|
TronNile = "TronNile",
|
|
784
|
+
Westend = "Westend",
|
|
779
785
|
XrpLedger = "XrpLedger",
|
|
780
786
|
XrpLedgerTestnet = "XrpLedgerTestnet",
|
|
781
787
|
KeyECDSA = "KeyECDSA",
|
|
@@ -232,6 +232,10 @@ var BlockchainNetwork;
|
|
|
232
232
|
BlockchainNetwork["Bsc"] = "Bsc";
|
|
233
233
|
// FIXME: Missing documentation for BscTestnet
|
|
234
234
|
BlockchainNetwork["BscTestnet"] = "BscTestnet";
|
|
235
|
+
// FIXME: Missing documentation for Cardano
|
|
236
|
+
BlockchainNetwork["Cardano"] = "Cardano";
|
|
237
|
+
// FIXME: Missing documentation for CardanoPreprod
|
|
238
|
+
BlockchainNetwork["CardanoPreprod"] = "CardanoPreprod";
|
|
235
239
|
// FIXME: Missing documentation for Ethereum
|
|
236
240
|
BlockchainNetwork["Ethereum"] = "Ethereum";
|
|
237
241
|
// FIXME: Missing documentation for EthereumGoerli
|
|
@@ -242,6 +246,8 @@ var BlockchainNetwork;
|
|
|
242
246
|
BlockchainNetwork["FantomOpera"] = "FantomOpera";
|
|
243
247
|
// FIXME: Missing documentation for FantomTestnet
|
|
244
248
|
BlockchainNetwork["FantomTestnet"] = "FantomTestnet";
|
|
249
|
+
// FIXME: Missing documentation for Kusama
|
|
250
|
+
BlockchainNetwork["Kusama"] = "Kusama";
|
|
245
251
|
// FIXME: Missing documentation for Litecoin
|
|
246
252
|
BlockchainNetwork["Litecoin"] = "Litecoin";
|
|
247
253
|
// FIXME: Missing documentation for LitecoinTestnet
|
|
@@ -252,8 +258,12 @@ var BlockchainNetwork;
|
|
|
252
258
|
BlockchainNetwork["OptimismGoerli"] = "OptimismGoerli";
|
|
253
259
|
// FIXME: Missing documentation for OptimismSepolia
|
|
254
260
|
BlockchainNetwork["OptimismSepolia"] = "OptimismSepolia";
|
|
261
|
+
// FIXME: Missing documentation for Polkadot
|
|
262
|
+
BlockchainNetwork["Polkadot"] = "Polkadot";
|
|
255
263
|
// FIXME: Missing documentation for Polygon
|
|
256
264
|
BlockchainNetwork["Polygon"] = "Polygon";
|
|
265
|
+
// FIXME: Missing documentation for PolygonAmoy
|
|
266
|
+
BlockchainNetwork["PolygonAmoy"] = "PolygonAmoy";
|
|
257
267
|
// FIXME: Missing documentation for PolygonMumbai
|
|
258
268
|
BlockchainNetwork["PolygonMumbai"] = "PolygonMumbai";
|
|
259
269
|
// FIXME: Missing documentation for Solana
|
|
@@ -268,6 +278,8 @@ var BlockchainNetwork;
|
|
|
268
278
|
BlockchainNetwork["Tron"] = "Tron";
|
|
269
279
|
// FIXME: Missing documentation for TronNile
|
|
270
280
|
BlockchainNetwork["TronNile"] = "TronNile";
|
|
281
|
+
// FIXME: Missing documentation for Westend
|
|
282
|
+
BlockchainNetwork["Westend"] = "Westend";
|
|
271
283
|
// FIXME: Missing documentation for XrpLedger
|
|
272
284
|
BlockchainNetwork["XrpLedger"] = "XrpLedger";
|
|
273
285
|
// FIXME: Missing documentation for XrpLedgerTestnet
|
package/dfnsApiClient.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
2
|
import { AssetsClient } from './codegen/Assets';
|
|
3
|
-
import { AuthClient } from './
|
|
3
|
+
import { AuthClient } from './generated/auth';
|
|
4
4
|
import { CallbacksClient } from './codegen/Callbacks';
|
|
5
5
|
import { PublicKeysClient } from './codegen/PublicKeys';
|
|
6
6
|
import { NetworksClient } from './generated/networks';
|
|
@@ -11,7 +11,8 @@ import { WalletsClient } from './generated/wallets';
|
|
|
11
11
|
import { WebhooksClient } from './generated/webhooks';
|
|
12
12
|
import { CredentialSigner } from './signer';
|
|
13
13
|
export type DfnsApiClientOptions = DfnsBaseApiOptions & {
|
|
14
|
-
|
|
14
|
+
/** Needs to be specified to use any endpoint that required User Action Signing flow */
|
|
15
|
+
signer?: CredentialSigner;
|
|
15
16
|
};
|
|
16
17
|
export declare class DfnsApiClient {
|
|
17
18
|
private apiOptions;
|
package/dfnsApiClient.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DfnsApiClient = void 0;
|
|
4
4
|
const Assets_1 = require("./codegen/Assets");
|
|
5
|
-
const
|
|
5
|
+
const auth_1 = require("./generated/auth");
|
|
6
6
|
const Callbacks_1 = require("./codegen/Callbacks");
|
|
7
7
|
const PublicKeys_1 = require("./codegen/PublicKeys");
|
|
8
8
|
const networks_1 = require("./generated/networks");
|
|
@@ -19,7 +19,7 @@ class DfnsApiClient {
|
|
|
19
19
|
return new Assets_1.AssetsClient(this.apiOptions);
|
|
20
20
|
}
|
|
21
21
|
get auth() {
|
|
22
|
-
return new
|
|
22
|
+
return new auth_1.AuthClient(this.apiOptions);
|
|
23
23
|
}
|
|
24
24
|
get callbacks() {
|
|
25
25
|
return new Callbacks_1.CallbacksClient(this.apiOptions);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
2
|
import { DelegatedAssetsClient } from './codegen/Assets';
|
|
3
|
-
import { DelegatedAuthClient } from './
|
|
3
|
+
import { DelegatedAuthClient } from './generated/auth';
|
|
4
4
|
import { DelegatedCallbacksClient } from './codegen/Callbacks';
|
|
5
5
|
import { DelegatedPublicKeysClient } from './codegen/PublicKeys';
|
|
6
6
|
import { DelegatedNetworksClient } from './generated/networks';
|
|
@@ -9,9 +9,7 @@ import { DelegatedPoliciesClient } from './generated/policies';
|
|
|
9
9
|
import { DelegatedSignersClient } from './generated/signers';
|
|
10
10
|
import { DelegatedWalletsClient } from './generated/wallets';
|
|
11
11
|
import { DelegatedWebhooksClient } from './generated/webhooks';
|
|
12
|
-
export type DfnsDelegatedApiClientOptions = DfnsBaseApiOptions
|
|
13
|
-
authToken: string;
|
|
14
|
-
};
|
|
12
|
+
export type DfnsDelegatedApiClientOptions = DfnsBaseApiOptions;
|
|
15
13
|
export declare class DfnsDelegatedApiClient {
|
|
16
14
|
private apiOptions;
|
|
17
15
|
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DfnsDelegatedApiClient = void 0;
|
|
4
4
|
const Assets_1 = require("./codegen/Assets");
|
|
5
|
-
const
|
|
5
|
+
const auth_1 = require("./generated/auth");
|
|
6
6
|
const Callbacks_1 = require("./codegen/Callbacks");
|
|
7
7
|
const PublicKeys_1 = require("./codegen/PublicKeys");
|
|
8
8
|
const networks_1 = require("./generated/networks");
|
|
@@ -19,7 +19,7 @@ class DfnsDelegatedApiClient {
|
|
|
19
19
|
return new Assets_1.DelegatedAssetsClient(this.apiOptions);
|
|
20
20
|
}
|
|
21
21
|
get auth() {
|
|
22
|
-
return new
|
|
22
|
+
return new auth_1.DelegatedAuthClient(this.apiOptions);
|
|
23
23
|
}
|
|
24
24
|
get callbacks() {
|
|
25
25
|
return new Callbacks_1.DelegatedCallbacksClient(this.apiOptions);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DfnsApiClientOptions } from '../../dfnsApiClient';
|
|
2
|
+
import * as T from './types';
|
|
3
|
+
export declare class AuthClient {
|
|
4
|
+
private apiOptions;
|
|
5
|
+
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
|
+
activateApplication(request: T.ActivateApplicationRequest): Promise<T.ActivateApplicationResponse>;
|
|
7
|
+
activateCredential(request: T.ActivateCredentialRequest): Promise<T.ActivateCredentialResponse>;
|
|
8
|
+
activatePersonalAccessToken(request: T.ActivatePersonalAccessTokenRequest): Promise<T.ActivatePersonalAccessTokenResponse>;
|
|
9
|
+
activateServiceAccount(request: T.ActivateServiceAccountRequest): Promise<T.ActivateServiceAccountResponse>;
|
|
10
|
+
activateUser(request: T.ActivateUserRequest): Promise<T.ActivateUserResponse>;
|
|
11
|
+
archiveApplication(request: T.ArchiveApplicationRequest): Promise<T.ArchiveApplicationResponse>;
|
|
12
|
+
archivePersonalAccessToken(request: T.ArchivePersonalAccessTokenRequest): Promise<T.ArchivePersonalAccessTokenResponse>;
|
|
13
|
+
archiveServiceAccount(request: T.ArchiveServiceAccountRequest): Promise<T.ArchiveServiceAccountResponse>;
|
|
14
|
+
archiveUser(request: T.ArchiveUserRequest): Promise<T.ArchiveUserResponse>;
|
|
15
|
+
createApplication(request: T.CreateApplicationRequest): Promise<T.CreateApplicationResponse>;
|
|
16
|
+
createCredential(request: T.CreateCredentialRequest): Promise<T.CreateCredentialResponse>;
|
|
17
|
+
/** @deprecated, use createCredential instead */
|
|
18
|
+
createUserCredential(request: T.CreateCredentialRequest): Promise<T.CreateCredentialResponse>;
|
|
19
|
+
createCredentialChallenge(request: T.CreateCredentialChallengeRequest): Promise<T.CreateCredentialChallengeResponse>;
|
|
20
|
+
/** @deprecated, use createCredentialChallenge instead */
|
|
21
|
+
createUserCredentialChallenge(request: T.CreateCredentialChallengeRequest): Promise<T.CreateCredentialChallengeResponse>;
|
|
22
|
+
createCredentialChallengeWithCode(request: T.CreateCredentialChallengeWithCodeRequest): Promise<T.CreateCredentialChallengeWithCodeResponse>;
|
|
23
|
+
createCredentialCode(request: T.CreateCredentialCodeRequest): Promise<T.CreateCredentialCodeResponse>;
|
|
24
|
+
createCredentialWithCode(request: T.CreateCredentialWithCodeRequest): Promise<T.CreateCredentialWithCodeResponse>;
|
|
25
|
+
createDelegatedRecoveryChallenge(request: T.CreateDelegatedRecoveryChallengeRequest): Promise<T.CreateDelegatedRecoveryChallengeResponse>;
|
|
26
|
+
/** @deprecated, use createDelegatedRecoveryChallenge instead */
|
|
27
|
+
createDelegatedUserRecovery(request: T.CreateDelegatedRecoveryChallengeRequest): Promise<T.CreateDelegatedRecoveryChallengeResponse>;
|
|
28
|
+
createDelegatedRegistrationChallenge(request: T.CreateDelegatedRegistrationChallengeRequest): Promise<T.CreateDelegatedRegistrationChallengeResponse>;
|
|
29
|
+
/** @deprecated, use createDelegatedRegistrationChallenge instead */
|
|
30
|
+
createDelegatedUserRegistration(request: T.CreateDelegatedRegistrationChallengeRequest): Promise<T.CreateDelegatedRegistrationChallengeResponse>;
|
|
31
|
+
createLoginChallenge(request: T.CreateLoginChallengeRequest): Promise<T.CreateLoginChallengeResponse>;
|
|
32
|
+
createPersonalAccessToken(request: T.CreatePersonalAccessTokenRequest): Promise<T.CreatePersonalAccessTokenResponse>;
|
|
33
|
+
createRecoveryChallenge(request: T.CreateRecoveryChallengeRequest): Promise<T.CreateRecoveryChallengeResponse>;
|
|
34
|
+
createRegistrationChallenge(request: T.CreateRegistrationChallengeRequest): Promise<T.CreateRegistrationChallengeResponse>;
|
|
35
|
+
createServiceAccount(request: T.CreateServiceAccountRequest): Promise<T.CreateServiceAccountResponse>;
|
|
36
|
+
createUser(request: T.CreateUserRequest): Promise<T.CreateUserResponse>;
|
|
37
|
+
createUserActionChallenge(request: T.CreateUserActionChallengeRequest): Promise<T.CreateUserActionChallengeResponse>;
|
|
38
|
+
/** @deprecated, use createUserActionChallenge instead */
|
|
39
|
+
createUserActionSignatureChallenge(request: T.CreateUserActionChallengeRequest): Promise<T.CreateUserActionChallengeResponse>;
|
|
40
|
+
createUserActionSignature(request: T.CreateUserActionSignatureRequest): Promise<T.CreateUserActionSignatureResponse>;
|
|
41
|
+
deactivateApplication(request: T.DeactivateApplicationRequest): Promise<T.DeactivateApplicationResponse>;
|
|
42
|
+
deactivateCredential(request: T.DeactivateCredentialRequest): Promise<T.DeactivateCredentialResponse>;
|
|
43
|
+
deactivatePersonalAccessToken(request: T.DeactivatePersonalAccessTokenRequest): Promise<T.DeactivatePersonalAccessTokenResponse>;
|
|
44
|
+
deactivateServiceAccount(request: T.DeactivateServiceAccountRequest): Promise<T.DeactivateServiceAccountResponse>;
|
|
45
|
+
deactivateUser(request: T.DeactivateUserRequest): Promise<T.DeactivateUserResponse>;
|
|
46
|
+
delegatedLogin(request: T.DelegatedLoginRequest): Promise<T.DelegatedLoginResponse>;
|
|
47
|
+
/** @deprecated, use delegatedLogin instead */
|
|
48
|
+
createDelegatedUserLogin(request: T.DelegatedLoginRequest): Promise<T.DelegatedLoginResponse>;
|
|
49
|
+
getApplication(request: T.GetApplicationRequest): Promise<T.GetApplicationResponse>;
|
|
50
|
+
getPersonalAccessToken(request: T.GetPersonalAccessTokenRequest): Promise<T.GetPersonalAccessTokenResponse>;
|
|
51
|
+
getServiceAccount(request: T.GetServiceAccountRequest): Promise<T.GetServiceAccountResponse>;
|
|
52
|
+
getUser(request: T.GetUserRequest): Promise<T.GetUserResponse>;
|
|
53
|
+
listApplications(): Promise<T.ListApplicationsResponse>;
|
|
54
|
+
listAvailableOrgs(request: T.ListAvailableOrgsRequest): Promise<T.ListAvailableOrgsResponse>;
|
|
55
|
+
listCredentials(): Promise<T.ListCredentialsResponse>;
|
|
56
|
+
/** @deprecated, use listCredentials instead */
|
|
57
|
+
listUserCredentials(): Promise<T.ListCredentialsResponse>;
|
|
58
|
+
listPersonalAccessTokens(): Promise<T.ListPersonalAccessTokensResponse>;
|
|
59
|
+
listServiceAccounts(): Promise<T.ListServiceAccountsResponse>;
|
|
60
|
+
listUsers(request?: T.ListUsersRequest): Promise<T.ListUsersResponse>;
|
|
61
|
+
login(request: T.LoginRequest): Promise<T.LoginResponse>;
|
|
62
|
+
logout(): Promise<T.LogoutResponse>;
|
|
63
|
+
recover(request: T.RecoverRequest): Promise<T.RecoverResponse>;
|
|
64
|
+
/** @deprecated, use recover instead */
|
|
65
|
+
createUserRecovery(request: T.RecoverRequest): Promise<T.RecoverResponse>;
|
|
66
|
+
recreateDelegatedRegistrationChallenge(request: T.RecreateDelegatedRegistrationChallengeRequest): Promise<T.RecreateDelegatedRegistrationChallengeResponse>;
|
|
67
|
+
/** @deprecated, use recreateDelegatedRegistrationChallenge instead */
|
|
68
|
+
restartDelegatedUserRegistration(request: T.RecreateDelegatedRegistrationChallengeRequest): Promise<T.RecreateDelegatedRegistrationChallengeResponse>;
|
|
69
|
+
register(request: T.RegisterRequest): Promise<T.RegisterResponse>;
|
|
70
|
+
/** @deprecated, use register instead */
|
|
71
|
+
createUserRegistration(request: T.RegisterRequest): Promise<T.RegisterResponse>;
|
|
72
|
+
registerEndUser(request: T.RegisterEndUserRequest): Promise<T.RegisterEndUserResponse>;
|
|
73
|
+
resendRegistrationCode(request: T.ResendRegistrationCodeRequest): Promise<T.ResendRegistrationCodeResponse>;
|
|
74
|
+
sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
|
|
75
|
+
updateApplication(request: T.UpdateApplicationRequest): Promise<T.UpdateApplicationResponse>;
|
|
76
|
+
updatePersonalAccessToken(request: T.UpdatePersonalAccessTokenRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
|
|
77
|
+
updateServiceAccount(request: T.UpdateServiceAccountRequest): Promise<T.UpdateServiceAccountResponse>;
|
|
78
|
+
updateUser(request: T.UpdateUserRequest): Promise<T.UpdateUserResponse>;
|
|
79
|
+
}
|