@dynamic-labs/sdk-api 0.0.761 → 0.0.763
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +40 -0
- package/src/apis/SDKApi.d.ts +13 -1
- package/src/apis/SDKApi.js +40 -0
- package/src/apis/WaasApi.cjs +38 -4
- package/src/apis/WaasApi.d.ts +17 -5
- package/src/apis/WaasApi.js +38 -4
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/DeleteUserPasskeyRequest.cjs +43 -0
- package/src/models/DeleteUserPasskeyRequest.d.ts +27 -0
- package/src/models/DeleteUserPasskeyRequest.js +37 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +3 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +4 -1
- package/src/models/UnprocessableEntityErrorCode.js +3 -0
- package/src/models/WaasPolicyCreateRequest.cjs +2 -2
- package/src/models/WaasPolicyCreateRequest.d.ts +2 -2
- package/src/models/WaasPolicyCreateRequest.js +2 -2
- package/src/models/WaasPolicyDeleteRequest.cjs +43 -0
- package/src/models/WaasPolicyDeleteRequest.d.ts +27 -0
- package/src/models/WaasPolicyDeleteRequest.js +37 -0
- package/src/models/WaasPolicyResponse.cjs +3 -0
- package/src/models/WaasPolicyResponse.d.ts +6 -0
- package/src/models/WaasPolicyResponse.js +3 -0
- package/src/models/WaasPolicyRule.cjs +2 -0
- package/src/models/WaasPolicyRule.d.ts +6 -0
- package/src/models/WaasPolicyRule.js +2 -0
- package/src/models/WaasPolicyUpdateRequest.cjs +2 -2
- package/src/models/WaasPolicyUpdateRequest.d.ts +2 -2
- package/src/models/WaasPolicyUpdateRequest.js +2 -2
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -55,6 +55,7 @@ require('../models/CustomHostnameUsageEnum.cjs');
|
|
|
55
55
|
require('../models/CustomHostnameVerificationType.cjs');
|
|
56
56
|
require('../models/DnsRecordType.cjs');
|
|
57
57
|
var DeleteEmbeddedWalletsRequest = require('../models/DeleteEmbeddedWalletsRequest.cjs');
|
|
58
|
+
var DeleteUserPasskeyRequest = require('../models/DeleteUserPasskeyRequest.cjs');
|
|
58
59
|
require('../models/TimeUnitEnum.cjs');
|
|
59
60
|
var EmailProviderResponse = require('../models/EmailProviderResponse.cjs');
|
|
60
61
|
var EmailVerificationCreateRequest = require('../models/EmailVerificationCreateRequest.cjs');
|
|
@@ -1482,6 +1483,45 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1482
1483
|
yield this.deleteMfaDeviceRaw(requestParameters, initOverrides);
|
|
1483
1484
|
});
|
|
1484
1485
|
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Delete a passkey
|
|
1488
|
+
*/
|
|
1489
|
+
deletePasskeyRaw(requestParameters, initOverrides) {
|
|
1490
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1491
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1492
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deletePasskey.');
|
|
1493
|
+
}
|
|
1494
|
+
if (requestParameters.deleteUserPasskeyRequest === null || requestParameters.deleteUserPasskeyRequest === undefined) {
|
|
1495
|
+
throw new runtime.RequiredError('deleteUserPasskeyRequest', 'Required parameter requestParameters.deleteUserPasskeyRequest was null or undefined when calling deletePasskey.');
|
|
1496
|
+
}
|
|
1497
|
+
const queryParameters = {};
|
|
1498
|
+
const headerParameters = {};
|
|
1499
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1500
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1501
|
+
const token = this.configuration.accessToken;
|
|
1502
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1503
|
+
if (tokenString) {
|
|
1504
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
const response = yield this.request({
|
|
1508
|
+
path: `/sdk/{environmentId}/users/passkeys`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1509
|
+
method: 'DELETE',
|
|
1510
|
+
headers: headerParameters,
|
|
1511
|
+
query: queryParameters,
|
|
1512
|
+
body: DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON(requestParameters.deleteUserPasskeyRequest),
|
|
1513
|
+
}, initOverrides);
|
|
1514
|
+
return new runtime.VoidApiResponse(response);
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Delete a passkey
|
|
1519
|
+
*/
|
|
1520
|
+
deletePasskey(requestParameters, initOverrides) {
|
|
1521
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1522
|
+
yield this.deletePasskeyRaw(requestParameters, initOverrides);
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1485
1525
|
/**
|
|
1486
1526
|
* Set a global wallet connection as disconnected
|
|
1487
1527
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaEmailDeviceOptionsRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -155,6 +155,10 @@ export interface DeleteMfaDeviceRequest {
|
|
|
155
155
|
mfaDeviceId: string;
|
|
156
156
|
xMfaAuthToken: string;
|
|
157
157
|
}
|
|
158
|
+
export interface DeletePasskeyRequest {
|
|
159
|
+
environmentId: string;
|
|
160
|
+
deleteUserPasskeyRequest: DeleteUserPasskeyRequest;
|
|
161
|
+
}
|
|
158
162
|
export interface DisconnectGlobalWalletConnectionRequest {
|
|
159
163
|
environmentId: string;
|
|
160
164
|
globalWalletConnectionId: string;
|
|
@@ -1210,6 +1214,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1210
1214
|
* Delete a device (if not default device)
|
|
1211
1215
|
*/
|
|
1212
1216
|
deleteMfaDevice(requestParameters: DeleteMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Delete a passkey
|
|
1219
|
+
*/
|
|
1220
|
+
deletePasskeyRaw(requestParameters: DeletePasskeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Delete a passkey
|
|
1223
|
+
*/
|
|
1224
|
+
deletePasskey(requestParameters: DeletePasskeyRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1213
1225
|
/**
|
|
1214
1226
|
* Set a global wallet connection as disconnected
|
|
1215
1227
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -51,6 +51,7 @@ import '../models/CustomHostnameUsageEnum.js';
|
|
|
51
51
|
import '../models/CustomHostnameVerificationType.js';
|
|
52
52
|
import '../models/DnsRecordType.js';
|
|
53
53
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
54
|
+
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
54
55
|
import '../models/TimeUnitEnum.js';
|
|
55
56
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
56
57
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
@@ -1478,6 +1479,45 @@ class SDKApi extends BaseAPI {
|
|
|
1478
1479
|
yield this.deleteMfaDeviceRaw(requestParameters, initOverrides);
|
|
1479
1480
|
});
|
|
1480
1481
|
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Delete a passkey
|
|
1484
|
+
*/
|
|
1485
|
+
deletePasskeyRaw(requestParameters, initOverrides) {
|
|
1486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1487
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1488
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deletePasskey.');
|
|
1489
|
+
}
|
|
1490
|
+
if (requestParameters.deleteUserPasskeyRequest === null || requestParameters.deleteUserPasskeyRequest === undefined) {
|
|
1491
|
+
throw new RequiredError('deleteUserPasskeyRequest', 'Required parameter requestParameters.deleteUserPasskeyRequest was null or undefined when calling deletePasskey.');
|
|
1492
|
+
}
|
|
1493
|
+
const queryParameters = {};
|
|
1494
|
+
const headerParameters = {};
|
|
1495
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1497
|
+
const token = this.configuration.accessToken;
|
|
1498
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1499
|
+
if (tokenString) {
|
|
1500
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
const response = yield this.request({
|
|
1504
|
+
path: `/sdk/{environmentId}/users/passkeys`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1505
|
+
method: 'DELETE',
|
|
1506
|
+
headers: headerParameters,
|
|
1507
|
+
query: queryParameters,
|
|
1508
|
+
body: DeleteUserPasskeyRequestToJSON(requestParameters.deleteUserPasskeyRequest),
|
|
1509
|
+
}, initOverrides);
|
|
1510
|
+
return new VoidApiResponse(response);
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Delete a passkey
|
|
1515
|
+
*/
|
|
1516
|
+
deletePasskey(requestParameters, initOverrides) {
|
|
1517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1518
|
+
yield this.deletePasskeyRaw(requestParameters, initOverrides);
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1481
1521
|
/**
|
|
1482
1522
|
* Set a global wallet connection as disconnected
|
|
1483
1523
|
*/
|
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -84,6 +84,7 @@ var WaasAuthenticateResponse = require('../models/WaasAuthenticateResponse.cjs')
|
|
|
84
84
|
var WaasDelegateSignMessageRequest = require('../models/WaasDelegateSignMessageRequest.cjs');
|
|
85
85
|
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
86
86
|
var WaasPolicyCreateRequest = require('../models/WaasPolicyCreateRequest.cjs');
|
|
87
|
+
var WaasPolicyDeleteRequest = require('../models/WaasPolicyDeleteRequest.cjs');
|
|
87
88
|
var WaasPolicyResponse = require('../models/WaasPolicyResponse.cjs');
|
|
88
89
|
require('../models/WaasPolicyRuleType.cjs');
|
|
89
90
|
var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
|
|
@@ -129,7 +130,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
129
130
|
});
|
|
130
131
|
}
|
|
131
132
|
/**
|
|
132
|
-
* Create a new WAAS policy for an environment
|
|
133
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
133
134
|
*/
|
|
134
135
|
createWaasPolicyRaw(requestParameters, initOverrides) {
|
|
135
136
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -153,7 +154,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
156
|
/**
|
|
156
|
-
* Create a new WAAS policy for an environment
|
|
157
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
157
158
|
*/
|
|
158
159
|
createWaasPolicy(requestParameters, initOverrides) {
|
|
159
160
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -197,6 +198,39 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
197
198
|
return yield response.value();
|
|
198
199
|
});
|
|
199
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Delete a WAAS policy rule by ruleId
|
|
203
|
+
*/
|
|
204
|
+
deleteWaasPolicyRaw(requestParameters, initOverrides) {
|
|
205
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
207
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasPolicy.');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters.waasPolicyDeleteRequest === null || requestParameters.waasPolicyDeleteRequest === undefined) {
|
|
210
|
+
throw new runtime.RequiredError('waasPolicyDeleteRequest', 'Required parameter requestParameters.waasPolicyDeleteRequest was null or undefined when calling deleteWaasPolicy.');
|
|
211
|
+
}
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
const response = yield this.request({
|
|
216
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
217
|
+
method: 'DELETE',
|
|
218
|
+
headers: headerParameters,
|
|
219
|
+
query: queryParameters,
|
|
220
|
+
body: WaasPolicyDeleteRequest.WaasPolicyDeleteRequestToJSON(requestParameters.waasPolicyDeleteRequest),
|
|
221
|
+
}, initOverrides);
|
|
222
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyResponse.WaasPolicyResponseFromJSON(jsonValue));
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Delete a WAAS policy rule by ruleId
|
|
227
|
+
*/
|
|
228
|
+
deleteWaasPolicy(requestParameters, initOverrides) {
|
|
229
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
const response = yield this.deleteWaasPolicyRaw(requestParameters, initOverrides);
|
|
231
|
+
return yield response.value();
|
|
232
|
+
});
|
|
233
|
+
}
|
|
200
234
|
/**
|
|
201
235
|
* Get the WAAS policy for an environment
|
|
202
236
|
*/
|
|
@@ -226,7 +260,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
226
260
|
});
|
|
227
261
|
}
|
|
228
262
|
/**
|
|
229
|
-
* Update the WAAS policy for an environment
|
|
263
|
+
* Update the WAAS policy for an environment by ruleId
|
|
230
264
|
*/
|
|
231
265
|
updateWaasPolicyRaw(requestParameters, initOverrides) {
|
|
232
266
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -250,7 +284,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
250
284
|
});
|
|
251
285
|
}
|
|
252
286
|
/**
|
|
253
|
-
* Update the WAAS policy for an environment
|
|
287
|
+
* Update the WAAS policy for an environment by ruleId
|
|
254
288
|
*/
|
|
255
289
|
updateWaasPolicy(requestParameters, initOverrides) {
|
|
256
290
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
|
|
13
|
+
import { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -23,6 +23,10 @@ export interface DelegatedSignMessageRequest {
|
|
|
23
23
|
walletId: string;
|
|
24
24
|
waasDelegateSignMessageRequest: WaasDelegateSignMessageRequest;
|
|
25
25
|
}
|
|
26
|
+
export interface DeleteWaasPolicyRequest {
|
|
27
|
+
environmentId: string;
|
|
28
|
+
waasPolicyDeleteRequest: WaasPolicyDeleteRequest;
|
|
29
|
+
}
|
|
26
30
|
export interface GetWaasPolicyRequest {
|
|
27
31
|
environmentId: string;
|
|
28
32
|
}
|
|
@@ -43,11 +47,11 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
43
47
|
*/
|
|
44
48
|
authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<WaasAuthenticateResponse>;
|
|
45
49
|
/**
|
|
46
|
-
* Create a new WAAS policy for an environment
|
|
50
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
47
51
|
*/
|
|
48
52
|
createWaasPolicyRaw(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
49
53
|
/**
|
|
50
|
-
* Create a new WAAS policy for an environment
|
|
54
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
51
55
|
*/
|
|
52
56
|
createWaasPolicy(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
53
57
|
/**
|
|
@@ -58,6 +62,14 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
58
62
|
* Sign a message with a delegated waas account
|
|
59
63
|
*/
|
|
60
64
|
delegatedSignMessage(requestParameters: DelegatedSignMessageRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Delete a WAAS policy rule by ruleId
|
|
67
|
+
*/
|
|
68
|
+
deleteWaasPolicyRaw(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
69
|
+
/**
|
|
70
|
+
* Delete a WAAS policy rule by ruleId
|
|
71
|
+
*/
|
|
72
|
+
deleteWaasPolicy(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
61
73
|
/**
|
|
62
74
|
* Get the WAAS policy for an environment
|
|
63
75
|
*/
|
|
@@ -67,11 +79,11 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
67
79
|
*/
|
|
68
80
|
getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
69
81
|
/**
|
|
70
|
-
* Update the WAAS policy for an environment
|
|
82
|
+
* Update the WAAS policy for an environment by ruleId
|
|
71
83
|
*/
|
|
72
84
|
updateWaasPolicyRaw(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
73
85
|
/**
|
|
74
|
-
* Update the WAAS policy for an environment
|
|
86
|
+
* Update the WAAS policy for an environment by ruleId
|
|
75
87
|
*/
|
|
76
88
|
updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
77
89
|
}
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -80,6 +80,7 @@ import { WaasAuthenticateResponseFromJSON } from '../models/WaasAuthenticateResp
|
|
|
80
80
|
import { WaasDelegateSignMessageRequestToJSON } from '../models/WaasDelegateSignMessageRequest.js';
|
|
81
81
|
import '../models/WaasPolicyConstraintCondition.js';
|
|
82
82
|
import { WaasPolicyCreateRequestToJSON } from '../models/WaasPolicyCreateRequest.js';
|
|
83
|
+
import { WaasPolicyDeleteRequestToJSON } from '../models/WaasPolicyDeleteRequest.js';
|
|
83
84
|
import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
|
|
84
85
|
import '../models/WaasPolicyRuleType.js';
|
|
85
86
|
import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
|
|
@@ -125,7 +126,7 @@ class WaasApi extends BaseAPI {
|
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
|
-
* Create a new WAAS policy for an environment
|
|
129
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
129
130
|
*/
|
|
130
131
|
createWaasPolicyRaw(requestParameters, initOverrides) {
|
|
131
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -149,7 +150,7 @@ class WaasApi extends BaseAPI {
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
/**
|
|
152
|
-
* Create a new WAAS policy for an environment
|
|
153
|
+
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
153
154
|
*/
|
|
154
155
|
createWaasPolicy(requestParameters, initOverrides) {
|
|
155
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -193,6 +194,39 @@ class WaasApi extends BaseAPI {
|
|
|
193
194
|
return yield response.value();
|
|
194
195
|
});
|
|
195
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Delete a WAAS policy rule by ruleId
|
|
199
|
+
*/
|
|
200
|
+
deleteWaasPolicyRaw(requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
203
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasPolicy.');
|
|
204
|
+
}
|
|
205
|
+
if (requestParameters.waasPolicyDeleteRequest === null || requestParameters.waasPolicyDeleteRequest === undefined) {
|
|
206
|
+
throw new RequiredError('waasPolicyDeleteRequest', 'Required parameter requestParameters.waasPolicyDeleteRequest was null or undefined when calling deleteWaasPolicy.');
|
|
207
|
+
}
|
|
208
|
+
const queryParameters = {};
|
|
209
|
+
const headerParameters = {};
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
const response = yield this.request({
|
|
212
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
213
|
+
method: 'DELETE',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
body: WaasPolicyDeleteRequestToJSON(requestParameters.waasPolicyDeleteRequest),
|
|
217
|
+
}, initOverrides);
|
|
218
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyResponseFromJSON(jsonValue));
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Delete a WAAS policy rule by ruleId
|
|
223
|
+
*/
|
|
224
|
+
deleteWaasPolicy(requestParameters, initOverrides) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
const response = yield this.deleteWaasPolicyRaw(requestParameters, initOverrides);
|
|
227
|
+
return yield response.value();
|
|
228
|
+
});
|
|
229
|
+
}
|
|
196
230
|
/**
|
|
197
231
|
* Get the WAAS policy for an environment
|
|
198
232
|
*/
|
|
@@ -222,7 +256,7 @@ class WaasApi extends BaseAPI {
|
|
|
222
256
|
});
|
|
223
257
|
}
|
|
224
258
|
/**
|
|
225
|
-
* Update the WAAS policy for an environment
|
|
259
|
+
* Update the WAAS policy for an environment by ruleId
|
|
226
260
|
*/
|
|
227
261
|
updateWaasPolicyRaw(requestParameters, initOverrides) {
|
|
228
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -246,7 +280,7 @@ class WaasApi extends BaseAPI {
|
|
|
246
280
|
});
|
|
247
281
|
}
|
|
248
282
|
/**
|
|
249
|
-
* Update the WAAS policy for an environment
|
|
283
|
+
* Update the WAAS policy for an environment by ruleId
|
|
250
284
|
*/
|
|
251
285
|
updateWaasPolicy(requestParameters, initOverrides) {
|
|
252
286
|
return __awaiter(this, void 0, void 0, function* () {
|
package/src/index.cjs
CHANGED
|
@@ -142,6 +142,7 @@ var DeeplinkUrlResponse = require('./models/DeeplinkUrlResponse.cjs');
|
|
|
142
142
|
var DeeplinkUrlsResponse = require('./models/DeeplinkUrlsResponse.cjs');
|
|
143
143
|
var DelegateOwnershipRequest = require('./models/DelegateOwnershipRequest.cjs');
|
|
144
144
|
var DeleteEmbeddedWalletsRequest = require('./models/DeleteEmbeddedWalletsRequest.cjs');
|
|
145
|
+
var DeleteUserPasskeyRequest = require('./models/DeleteUserPasskeyRequest.cjs');
|
|
145
146
|
var DnsRecordType = require('./models/DnsRecordType.cjs');
|
|
146
147
|
var Duration = require('./models/Duration.cjs');
|
|
147
148
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
@@ -529,6 +530,7 @@ var WaasDelegateSignMessageRequest = require('./models/WaasDelegateSignMessageRe
|
|
|
529
530
|
var WaasPolicyArgumentConstraint = require('./models/WaasPolicyArgumentConstraint.cjs');
|
|
530
531
|
var WaasPolicyConstraintCondition = require('./models/WaasPolicyConstraintCondition.cjs');
|
|
531
532
|
var WaasPolicyCreateRequest = require('./models/WaasPolicyCreateRequest.cjs');
|
|
533
|
+
var WaasPolicyDeleteRequest = require('./models/WaasPolicyDeleteRequest.cjs');
|
|
532
534
|
var WaasPolicyResponse = require('./models/WaasPolicyResponse.cjs');
|
|
533
535
|
var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
|
|
534
536
|
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
@@ -978,6 +980,9 @@ exports.DelegateOwnershipRequestToJSON = DelegateOwnershipRequest.DelegateOwners
|
|
|
978
980
|
exports.DeleteEmbeddedWalletsRequestFromJSON = DeleteEmbeddedWalletsRequest.DeleteEmbeddedWalletsRequestFromJSON;
|
|
979
981
|
exports.DeleteEmbeddedWalletsRequestFromJSONTyped = DeleteEmbeddedWalletsRequest.DeleteEmbeddedWalletsRequestFromJSONTyped;
|
|
980
982
|
exports.DeleteEmbeddedWalletsRequestToJSON = DeleteEmbeddedWalletsRequest.DeleteEmbeddedWalletsRequestToJSON;
|
|
983
|
+
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSON;
|
|
984
|
+
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSONTyped;
|
|
985
|
+
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON;
|
|
981
986
|
Object.defineProperty(exports, 'DnsRecordType', {
|
|
982
987
|
enumerable: true,
|
|
983
988
|
get: function () { return DnsRecordType.DnsRecordType; }
|
|
@@ -2371,6 +2376,9 @@ exports.WaasPolicyConstraintConditionToJSON = WaasPolicyConstraintCondition.Waas
|
|
|
2371
2376
|
exports.WaasPolicyCreateRequestFromJSON = WaasPolicyCreateRequest.WaasPolicyCreateRequestFromJSON;
|
|
2372
2377
|
exports.WaasPolicyCreateRequestFromJSONTyped = WaasPolicyCreateRequest.WaasPolicyCreateRequestFromJSONTyped;
|
|
2373
2378
|
exports.WaasPolicyCreateRequestToJSON = WaasPolicyCreateRequest.WaasPolicyCreateRequestToJSON;
|
|
2379
|
+
exports.WaasPolicyDeleteRequestFromJSON = WaasPolicyDeleteRequest.WaasPolicyDeleteRequestFromJSON;
|
|
2380
|
+
exports.WaasPolicyDeleteRequestFromJSONTyped = WaasPolicyDeleteRequest.WaasPolicyDeleteRequestFromJSONTyped;
|
|
2381
|
+
exports.WaasPolicyDeleteRequestToJSON = WaasPolicyDeleteRequest.WaasPolicyDeleteRequestToJSON;
|
|
2374
2382
|
exports.WaasPolicyResponseFromJSON = WaasPolicyResponse.WaasPolicyResponseFromJSON;
|
|
2375
2383
|
exports.WaasPolicyResponseFromJSONTyped = WaasPolicyResponse.WaasPolicyResponseFromJSONTyped;
|
|
2376
2384
|
exports.WaasPolicyResponseToJSON = WaasPolicyResponse.WaasPolicyResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -138,6 +138,7 @@ export { DeeplinkUrlResponseFromJSON, DeeplinkUrlResponseFromJSONTyped, Deeplink
|
|
|
138
138
|
export { DeeplinkUrlsResponseFromJSON, DeeplinkUrlsResponseFromJSONTyped, DeeplinkUrlsResponseToJSON } from './models/DeeplinkUrlsResponse.js';
|
|
139
139
|
export { DelegateOwnershipRequestFromJSON, DelegateOwnershipRequestFromJSONTyped, DelegateOwnershipRequestToJSON } from './models/DelegateOwnershipRequest.js';
|
|
140
140
|
export { DeleteEmbeddedWalletsRequestFromJSON, DeleteEmbeddedWalletsRequestFromJSONTyped, DeleteEmbeddedWalletsRequestToJSON } from './models/DeleteEmbeddedWalletsRequest.js';
|
|
141
|
+
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON } from './models/DeleteUserPasskeyRequest.js';
|
|
141
142
|
export { DnsRecordType, DnsRecordTypeFromJSON, DnsRecordTypeFromJSONTyped, DnsRecordTypeToJSON } from './models/DnsRecordType.js';
|
|
142
143
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
143
144
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
@@ -525,6 +526,7 @@ export { WaasDelegateSignMessageRequestFromJSON, WaasDelegateSignMessageRequestF
|
|
|
525
526
|
export { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintFromJSONTyped, WaasPolicyArgumentConstraintToJSON } from './models/WaasPolicyArgumentConstraint.js';
|
|
526
527
|
export { WaasPolicyConstraintCondition, WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionFromJSONTyped, WaasPolicyConstraintConditionToJSON } from './models/WaasPolicyConstraintCondition.js';
|
|
527
528
|
export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped, WaasPolicyCreateRequestToJSON } from './models/WaasPolicyCreateRequest.js';
|
|
529
|
+
export { WaasPolicyDeleteRequestFromJSON, WaasPolicyDeleteRequestFromJSONTyped, WaasPolicyDeleteRequestToJSON } from './models/WaasPolicyDeleteRequest.js';
|
|
528
530
|
export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicyResponseToJSON } from './models/WaasPolicyResponse.js';
|
|
529
531
|
export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJSON } from './models/WaasPolicyRule.js';
|
|
530
532
|
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function DeleteUserPasskeyRequestFromJSON(json) {
|
|
19
|
+
return DeleteUserPasskeyRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function DeleteUserPasskeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'passkeyId': json['passkeyId'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function DeleteUserPasskeyRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'passkeyId': value.passkeyId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequestFromJSON;
|
|
42
|
+
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequestFromJSONTyped;
|
|
43
|
+
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeleteUserPasskeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteUserPasskeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteUserPasskeyRequest
|
|
22
|
+
*/
|
|
23
|
+
passkeyId: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function DeleteUserPasskeyRequestFromJSON(json: any): DeleteUserPasskeyRequest;
|
|
26
|
+
export declare function DeleteUserPasskeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteUserPasskeyRequest;
|
|
27
|
+
export declare function DeleteUserPasskeyRequestToJSON(value?: DeleteUserPasskeyRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function DeleteUserPasskeyRequestFromJSON(json) {
|
|
15
|
+
return DeleteUserPasskeyRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function DeleteUserPasskeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'passkeyId': json['passkeyId'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function DeleteUserPasskeyRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'passkeyId': value.passkeyId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON };
|
|
@@ -138,6 +138,9 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
138
138
|
UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
|
|
139
139
|
UnprocessableEntityErrorCode["InvalidMetadataValue"] = "invalid_metadata_value";
|
|
140
140
|
UnprocessableEntityErrorCode["MaxPasskeysPerUser"] = "max_passkeys_per_user";
|
|
141
|
+
UnprocessableEntityErrorCode["PasskeyNotFound"] = "passkey_not_found";
|
|
142
|
+
UnprocessableEntityErrorCode["CannotDeletePasskeyLinkedToEmbeddedWallet"] = "cannot_delete_passkey_linked_to_embedded_wallet";
|
|
143
|
+
UnprocessableEntityErrorCode["CannotDeleteLastSignInVerifiedCredential"] = "cannot_delete_last_sign_in_verified_credential";
|
|
141
144
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
142
145
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
143
146
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -130,7 +130,10 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
130
130
|
WalletServiceConnectionError = "wallet_service_connection_error",
|
|
131
131
|
NoGlobalWalletFound = "no_global_wallet_found",
|
|
132
132
|
InvalidMetadataValue = "invalid_metadata_value",
|
|
133
|
-
MaxPasskeysPerUser = "max_passkeys_per_user"
|
|
133
|
+
MaxPasskeysPerUser = "max_passkeys_per_user",
|
|
134
|
+
PasskeyNotFound = "passkey_not_found",
|
|
135
|
+
CannotDeletePasskeyLinkedToEmbeddedWallet = "cannot_delete_passkey_linked_to_embedded_wallet",
|
|
136
|
+
CannotDeleteLastSignInVerifiedCredential = "cannot_delete_last_sign_in_verified_credential"
|
|
134
137
|
}
|
|
135
138
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
136
139
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -134,6 +134,9 @@ var UnprocessableEntityErrorCode;
|
|
|
134
134
|
UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
|
|
135
135
|
UnprocessableEntityErrorCode["InvalidMetadataValue"] = "invalid_metadata_value";
|
|
136
136
|
UnprocessableEntityErrorCode["MaxPasskeysPerUser"] = "max_passkeys_per_user";
|
|
137
|
+
UnprocessableEntityErrorCode["PasskeyNotFound"] = "passkey_not_found";
|
|
138
|
+
UnprocessableEntityErrorCode["CannotDeletePasskeyLinkedToEmbeddedWallet"] = "cannot_delete_passkey_linked_to_embedded_wallet";
|
|
139
|
+
UnprocessableEntityErrorCode["CannotDeleteLastSignInVerifiedCredential"] = "cannot_delete_last_sign_in_verified_credential";
|
|
137
140
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
138
141
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
139
142
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -13,7 +13,7 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'
|
|
16
|
+
'rulesToAdd': (json['rulesToAdd'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function WaasPolicyCreateRequestToJSON(value) {
|
|
@@ -24,7 +24,7 @@ function WaasPolicyCreateRequestToJSON(value) {
|
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'
|
|
27
|
+
'rulesToAdd': (value.rulesToAdd.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -17,11 +17,11 @@ import { WaasPolicyRule } from './WaasPolicyRule';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasPolicyCreateRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Array of rules
|
|
20
|
+
* Array of rules to add to the policy, will create policy if it doesn't exist
|
|
21
21
|
* @type {Array<WaasPolicyRule>}
|
|
22
22
|
* @memberof WaasPolicyCreateRequest
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
rulesToAdd: Array<WaasPolicyRule>;
|
|
25
25
|
}
|
|
26
26
|
export declare function WaasPolicyCreateRequestFromJSON(json: any): WaasPolicyCreateRequest;
|
|
27
27
|
export declare function WaasPolicyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyCreateRequest;
|
|
@@ -9,7 +9,7 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'
|
|
12
|
+
'rulesToAdd': (json['rulesToAdd'].map(WaasPolicyRuleFromJSON)),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
function WaasPolicyCreateRequestToJSON(value) {
|
|
@@ -20,7 +20,7 @@ function WaasPolicyCreateRequestToJSON(value) {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
-
'
|
|
23
|
+
'rulesToAdd': (value.rulesToAdd.map(WaasPolicyRuleToJSON)),
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function WaasPolicyDeleteRequestFromJSON(json) {
|
|
19
|
+
return WaasPolicyDeleteRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasPolicyDeleteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'ruleIdsToDelete': json['ruleIdsToDelete'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function WaasPolicyDeleteRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ruleIdsToDelete': value.ruleIdsToDelete,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.WaasPolicyDeleteRequestFromJSON = WaasPolicyDeleteRequestFromJSON;
|
|
42
|
+
exports.WaasPolicyDeleteRequestFromJSONTyped = WaasPolicyDeleteRequestFromJSONTyped;
|
|
43
|
+
exports.WaasPolicyDeleteRequestToJSON = WaasPolicyDeleteRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasPolicyDeleteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasPolicyDeleteRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Array of rule IDs to delete from the policy
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof WaasPolicyDeleteRequest
|
|
22
|
+
*/
|
|
23
|
+
ruleIdsToDelete: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
export declare function WaasPolicyDeleteRequestFromJSON(json: any): WaasPolicyDeleteRequest;
|
|
26
|
+
export declare function WaasPolicyDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyDeleteRequest;
|
|
27
|
+
export declare function WaasPolicyDeleteRequestToJSON(value?: WaasPolicyDeleteRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function WaasPolicyDeleteRequestFromJSON(json) {
|
|
15
|
+
return WaasPolicyDeleteRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasPolicyDeleteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'ruleIdsToDelete': json['ruleIdsToDelete'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function WaasPolicyDeleteRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'ruleIdsToDelete': value.ruleIdsToDelete,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { WaasPolicyDeleteRequestFromJSON, WaasPolicyDeleteRequestFromJSONTyped, WaasPolicyDeleteRequestToJSON };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
@@ -13,6 +14,7 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
return json;
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
17
|
+
'message': !runtime.exists(json, 'message') ? undefined : json['message'],
|
|
16
18
|
'policyId': json['policyId'],
|
|
17
19
|
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
18
20
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -28,6 +30,7 @@ function WaasPolicyResponseToJSON(value) {
|
|
|
28
30
|
return null;
|
|
29
31
|
}
|
|
30
32
|
return {
|
|
33
|
+
'message': value.message,
|
|
31
34
|
'policyId': value.policyId,
|
|
32
35
|
'projectEnvironmentId': value.projectEnvironmentId,
|
|
33
36
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -16,6 +16,12 @@ import { WaasPolicyRule } from './WaasPolicyRule';
|
|
|
16
16
|
* @interface WaasPolicyResponse
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasPolicyResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Message describing the operation result
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WaasPolicyResponse
|
|
23
|
+
*/
|
|
24
|
+
message?: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -9,6 +10,7 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
10
|
return json;
|
|
10
11
|
}
|
|
11
12
|
return {
|
|
13
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
12
14
|
'policyId': json['policyId'],
|
|
13
15
|
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
14
16
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -24,6 +26,7 @@ function WaasPolicyResponseToJSON(value) {
|
|
|
24
26
|
return null;
|
|
25
27
|
}
|
|
26
28
|
return {
|
|
29
|
+
'message': value.message,
|
|
27
30
|
'policyId': value.policyId,
|
|
28
31
|
'projectEnvironmentId': value.projectEnvironmentId,
|
|
29
32
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -17,6 +17,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
return json;
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
|
+
'ruleId': json['ruleId'],
|
|
20
21
|
'name': json['name'],
|
|
21
22
|
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
22
23
|
'address': json['address'],
|
|
@@ -36,6 +37,7 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
36
37
|
return null;
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
40
|
+
'ruleId': value.ruleId,
|
|
39
41
|
'name': value.name,
|
|
40
42
|
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
41
43
|
'address': value.address,
|
|
@@ -19,6 +19,12 @@ import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
|
|
|
19
19
|
* @interface WaasPolicyRule
|
|
20
20
|
*/
|
|
21
21
|
export interface WaasPolicyRule {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WaasPolicyRule
|
|
26
|
+
*/
|
|
27
|
+
ruleId: string;
|
|
22
28
|
/**
|
|
23
29
|
* Human-readable name for the rule
|
|
24
30
|
* @type {string}
|
|
@@ -13,6 +13,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
+
'ruleId': json['ruleId'],
|
|
16
17
|
'name': json['name'],
|
|
17
18
|
'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
18
19
|
'address': json['address'],
|
|
@@ -32,6 +33,7 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
32
33
|
return null;
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
36
|
+
'ruleId': value.ruleId,
|
|
35
37
|
'name': value.name,
|
|
36
38
|
'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
37
39
|
'address': value.address,
|
|
@@ -13,7 +13,7 @@ function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'
|
|
16
|
+
'rulesToUpdate': (json['rulesToUpdate'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function WaasPolicyUpdateRequestToJSON(value) {
|
|
@@ -24,7 +24,7 @@ function WaasPolicyUpdateRequestToJSON(value) {
|
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'
|
|
27
|
+
'rulesToUpdate': (value.rulesToUpdate.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -17,11 +17,11 @@ import { WaasPolicyRule } from './WaasPolicyRule';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasPolicyUpdateRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Array of rules
|
|
20
|
+
* Array of rules to update in the policy
|
|
21
21
|
* @type {Array<WaasPolicyRule>}
|
|
22
22
|
* @memberof WaasPolicyUpdateRequest
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
rulesToUpdate: Array<WaasPolicyRule>;
|
|
25
25
|
}
|
|
26
26
|
export declare function WaasPolicyUpdateRequestFromJSON(json: any): WaasPolicyUpdateRequest;
|
|
27
27
|
export declare function WaasPolicyUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyUpdateRequest;
|
|
@@ -9,7 +9,7 @@ function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'
|
|
12
|
+
'rulesToUpdate': (json['rulesToUpdate'].map(WaasPolicyRuleFromJSON)),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
function WaasPolicyUpdateRequestToJSON(value) {
|
|
@@ -20,7 +20,7 @@ function WaasPolicyUpdateRequestToJSON(value) {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
-
'
|
|
23
|
+
'rulesToUpdate': (value.rulesToUpdate.map(WaasPolicyRuleToJSON)),
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export * from './DeeplinkUrlResponse';
|
|
|
101
101
|
export * from './DeeplinkUrlsResponse';
|
|
102
102
|
export * from './DelegateOwnershipRequest';
|
|
103
103
|
export * from './DeleteEmbeddedWalletsRequest';
|
|
104
|
+
export * from './DeleteUserPasskeyRequest';
|
|
104
105
|
export * from './DnsRecordType';
|
|
105
106
|
export * from './Duration';
|
|
106
107
|
export * from './DynamicJwt';
|
|
@@ -488,6 +489,7 @@ export * from './WaasDelegateSignMessageRequest';
|
|
|
488
489
|
export * from './WaasPolicyArgumentConstraint';
|
|
489
490
|
export * from './WaasPolicyConstraintCondition';
|
|
490
491
|
export * from './WaasPolicyCreateRequest';
|
|
492
|
+
export * from './WaasPolicyDeleteRequest';
|
|
491
493
|
export * from './WaasPolicyResponse';
|
|
492
494
|
export * from './WaasPolicyRule';
|
|
493
495
|
export * from './WaasPolicyRuleType';
|