@dynamic-labs/sdk-api-core 0.0.816 → 0.0.818
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 +70 -0
- package/src/apis/SDKApi.d.ts +26 -0
- package/src/apis/SDKApi.js +70 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -3807,6 +3807,76 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3807
3807
|
return yield response.value();
|
|
3808
3808
|
});
|
|
3809
3809
|
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
3812
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
3813
|
+
*/
|
|
3814
|
+
getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
|
|
3815
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3816
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3817
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
|
|
3818
|
+
}
|
|
3819
|
+
if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
|
|
3820
|
+
throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
|
|
3821
|
+
}
|
|
3822
|
+
const queryParameters = {};
|
|
3823
|
+
const headerParameters = {};
|
|
3824
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3825
|
+
const token = this.configuration.accessToken;
|
|
3826
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3827
|
+
if (tokenString) {
|
|
3828
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
const response = yield this.request({
|
|
3832
|
+
path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
|
|
3833
|
+
method: 'GET',
|
|
3834
|
+
headers: headerParameters,
|
|
3835
|
+
query: queryParameters,
|
|
3836
|
+
}, initOverrides);
|
|
3837
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SdkUser.SdkUserFromJSON(jsonValue));
|
|
3838
|
+
});
|
|
3839
|
+
}
|
|
3840
|
+
/**
|
|
3841
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
3842
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
3843
|
+
*/
|
|
3844
|
+
getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
|
|
3845
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3846
|
+
const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
|
|
3847
|
+
return yield response.value();
|
|
3848
|
+
});
|
|
3849
|
+
}
|
|
3850
|
+
/**
|
|
3851
|
+
* Options call for this endpoint
|
|
3852
|
+
*/
|
|
3853
|
+
getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
|
|
3854
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3855
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3856
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
|
|
3857
|
+
}
|
|
3858
|
+
if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
|
|
3859
|
+
throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
|
|
3860
|
+
}
|
|
3861
|
+
const queryParameters = {};
|
|
3862
|
+
const headerParameters = {};
|
|
3863
|
+
const response = yield this.request({
|
|
3864
|
+
path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
|
|
3865
|
+
method: 'OPTIONS',
|
|
3866
|
+
headers: headerParameters,
|
|
3867
|
+
query: queryParameters,
|
|
3868
|
+
}, initOverrides);
|
|
3869
|
+
return new runtime.VoidApiResponse(response);
|
|
3870
|
+
});
|
|
3871
|
+
}
|
|
3872
|
+
/**
|
|
3873
|
+
* Options call for this endpoint
|
|
3874
|
+
*/
|
|
3875
|
+
getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
|
|
3876
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3877
|
+
yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
|
|
3878
|
+
});
|
|
3879
|
+
}
|
|
3810
3880
|
/**
|
|
3811
3881
|
* Options call for this endpoint
|
|
3812
3882
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -429,6 +429,14 @@ export interface GetUserMfaMethodsRequest {
|
|
|
429
429
|
export interface GetUserPasskeysRequest {
|
|
430
430
|
environmentId: string;
|
|
431
431
|
}
|
|
432
|
+
export interface GetWaasWalletWithVerifiedCredentialsRequest {
|
|
433
|
+
environmentId: string;
|
|
434
|
+
walletAddress: string;
|
|
435
|
+
}
|
|
436
|
+
export interface GetWaasWalletWithVerifiedCredentialsOptionsRequest {
|
|
437
|
+
environmentId: string;
|
|
438
|
+
walletAddress: string;
|
|
439
|
+
}
|
|
432
440
|
export interface GlobalWalletConnectionsOptionsRequest {
|
|
433
441
|
environmentId: string;
|
|
434
442
|
}
|
|
@@ -1810,6 +1818,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1810
1818
|
* Gets passkey data associated with a user
|
|
1811
1819
|
*/
|
|
1812
1820
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
1821
|
+
/**
|
|
1822
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
1823
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
1824
|
+
*/
|
|
1825
|
+
getWaasWalletWithVerifiedCredentialsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SdkUser>>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
1828
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
1829
|
+
*/
|
|
1830
|
+
getWaasWalletWithVerifiedCredentials(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<SdkUser>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Options call for this endpoint
|
|
1833
|
+
*/
|
|
1834
|
+
getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Options call for this endpoint
|
|
1837
|
+
*/
|
|
1838
|
+
getWaasWalletWithVerifiedCredentialsOptions(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1813
1839
|
/**
|
|
1814
1840
|
* Options call for this endpoint
|
|
1815
1841
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -3803,6 +3803,76 @@ class SDKApi extends BaseAPI {
|
|
|
3803
3803
|
return yield response.value();
|
|
3804
3804
|
});
|
|
3805
3805
|
}
|
|
3806
|
+
/**
|
|
3807
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
3808
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
3809
|
+
*/
|
|
3810
|
+
getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
|
|
3811
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3812
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3813
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
|
|
3814
|
+
}
|
|
3815
|
+
if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
|
|
3816
|
+
throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
|
|
3817
|
+
}
|
|
3818
|
+
const queryParameters = {};
|
|
3819
|
+
const headerParameters = {};
|
|
3820
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3821
|
+
const token = this.configuration.accessToken;
|
|
3822
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3823
|
+
if (tokenString) {
|
|
3824
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
const response = yield this.request({
|
|
3828
|
+
path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
|
|
3829
|
+
method: 'GET',
|
|
3830
|
+
headers: headerParameters,
|
|
3831
|
+
query: queryParameters,
|
|
3832
|
+
}, initOverrides);
|
|
3833
|
+
return new JSONApiResponse(response, (jsonValue) => SdkUserFromJSON(jsonValue));
|
|
3834
|
+
});
|
|
3835
|
+
}
|
|
3836
|
+
/**
|
|
3837
|
+
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
3838
|
+
* Fetch a single WaaS wallet with verified credentials
|
|
3839
|
+
*/
|
|
3840
|
+
getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
|
|
3841
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3842
|
+
const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
|
|
3843
|
+
return yield response.value();
|
|
3844
|
+
});
|
|
3845
|
+
}
|
|
3846
|
+
/**
|
|
3847
|
+
* Options call for this endpoint
|
|
3848
|
+
*/
|
|
3849
|
+
getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
|
|
3850
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3851
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3852
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
|
|
3853
|
+
}
|
|
3854
|
+
if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
|
|
3855
|
+
throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
|
|
3856
|
+
}
|
|
3857
|
+
const queryParameters = {};
|
|
3858
|
+
const headerParameters = {};
|
|
3859
|
+
const response = yield this.request({
|
|
3860
|
+
path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
|
|
3861
|
+
method: 'OPTIONS',
|
|
3862
|
+
headers: headerParameters,
|
|
3863
|
+
query: queryParameters,
|
|
3864
|
+
}, initOverrides);
|
|
3865
|
+
return new VoidApiResponse(response);
|
|
3866
|
+
});
|
|
3867
|
+
}
|
|
3868
|
+
/**
|
|
3869
|
+
* Options call for this endpoint
|
|
3870
|
+
*/
|
|
3871
|
+
getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
|
|
3872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3873
|
+
yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3806
3876
|
/**
|
|
3807
3877
|
* Options call for this endpoint
|
|
3808
3878
|
*/
|