@dynamic-labs/sdk-api 0.0.817 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.817",
3
+ "version": "0.0.818",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -3914,6 +3914,76 @@ class SDKApi extends runtime.BaseAPI {
3914
3914
  return yield response.value();
3915
3915
  });
3916
3916
  }
3917
+ /**
3918
+ * 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.
3919
+ * Fetch a single WaaS wallet with verified credentials
3920
+ */
3921
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
3922
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3923
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3924
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3925
+ }
3926
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3927
+ throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3928
+ }
3929
+ const queryParameters = {};
3930
+ const headerParameters = {};
3931
+ if (this.configuration && this.configuration.accessToken) {
3932
+ const token = this.configuration.accessToken;
3933
+ const tokenString = yield token("bearerAuth", []);
3934
+ if (tokenString) {
3935
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3936
+ }
3937
+ }
3938
+ const response = yield this.request({
3939
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3940
+ method: 'GET',
3941
+ headers: headerParameters,
3942
+ query: queryParameters,
3943
+ }, initOverrides);
3944
+ return new runtime.JSONApiResponse(response, (jsonValue) => SdkUser.SdkUserFromJSON(jsonValue));
3945
+ });
3946
+ }
3947
+ /**
3948
+ * 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.
3949
+ * Fetch a single WaaS wallet with verified credentials
3950
+ */
3951
+ getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
3952
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3953
+ const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
3954
+ return yield response.value();
3955
+ });
3956
+ }
3957
+ /**
3958
+ * Options call for this endpoint
3959
+ */
3960
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
3961
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3962
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3963
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3964
+ }
3965
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3966
+ throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3967
+ }
3968
+ const queryParameters = {};
3969
+ const headerParameters = {};
3970
+ const response = yield this.request({
3971
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3972
+ method: 'OPTIONS',
3973
+ headers: headerParameters,
3974
+ query: queryParameters,
3975
+ }, initOverrides);
3976
+ return new runtime.VoidApiResponse(response);
3977
+ });
3978
+ }
3979
+ /**
3980
+ * Options call for this endpoint
3981
+ */
3982
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
3983
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3984
+ yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
3985
+ });
3986
+ }
3917
3987
  /**
3918
3988
  * Options call for this endpoint
3919
3989
  */
@@ -434,6 +434,14 @@ export interface GetUserMfaMethodsRequest {
434
434
  export interface GetUserPasskeysRequest {
435
435
  environmentId: string;
436
436
  }
437
+ export interface GetWaasWalletWithVerifiedCredentialsRequest {
438
+ environmentId: string;
439
+ walletAddress: string;
440
+ }
441
+ export interface GetWaasWalletWithVerifiedCredentialsOptionsRequest {
442
+ environmentId: string;
443
+ walletAddress: string;
444
+ }
437
445
  export interface GlobalWalletConnectionsOptionsRequest {
438
446
  environmentId: string;
439
447
  }
@@ -1839,6 +1847,24 @@ export declare class SDKApi extends runtime.BaseAPI {
1839
1847
  * Gets passkey data associated with a user
1840
1848
  */
1841
1849
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
1850
+ /**
1851
+ * 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.
1852
+ * Fetch a single WaaS wallet with verified credentials
1853
+ */
1854
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SdkUser>>;
1855
+ /**
1856
+ * 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.
1857
+ * Fetch a single WaaS wallet with verified credentials
1858
+ */
1859
+ getWaasWalletWithVerifiedCredentials(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<SdkUser>;
1860
+ /**
1861
+ * Options call for this endpoint
1862
+ */
1863
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1864
+ /**
1865
+ * Options call for this endpoint
1866
+ */
1867
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1842
1868
  /**
1843
1869
  * Options call for this endpoint
1844
1870
  */
@@ -3910,6 +3910,76 @@ class SDKApi extends BaseAPI {
3910
3910
  return yield response.value();
3911
3911
  });
3912
3912
  }
3913
+ /**
3914
+ * 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.
3915
+ * Fetch a single WaaS wallet with verified credentials
3916
+ */
3917
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
3918
+ return __awaiter(this, void 0, void 0, function* () {
3919
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3920
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3921
+ }
3922
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3923
+ throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3924
+ }
3925
+ const queryParameters = {};
3926
+ const headerParameters = {};
3927
+ if (this.configuration && this.configuration.accessToken) {
3928
+ const token = this.configuration.accessToken;
3929
+ const tokenString = yield token("bearerAuth", []);
3930
+ if (tokenString) {
3931
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3932
+ }
3933
+ }
3934
+ const response = yield this.request({
3935
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3936
+ method: 'GET',
3937
+ headers: headerParameters,
3938
+ query: queryParameters,
3939
+ }, initOverrides);
3940
+ return new JSONApiResponse(response, (jsonValue) => SdkUserFromJSON(jsonValue));
3941
+ });
3942
+ }
3943
+ /**
3944
+ * 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.
3945
+ * Fetch a single WaaS wallet with verified credentials
3946
+ */
3947
+ getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
3948
+ return __awaiter(this, void 0, void 0, function* () {
3949
+ const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
3950
+ return yield response.value();
3951
+ });
3952
+ }
3953
+ /**
3954
+ * Options call for this endpoint
3955
+ */
3956
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
3957
+ return __awaiter(this, void 0, void 0, function* () {
3958
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3959
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3960
+ }
3961
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3962
+ throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3963
+ }
3964
+ const queryParameters = {};
3965
+ const headerParameters = {};
3966
+ const response = yield this.request({
3967
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3968
+ method: 'OPTIONS',
3969
+ headers: headerParameters,
3970
+ query: queryParameters,
3971
+ }, initOverrides);
3972
+ return new VoidApiResponse(response);
3973
+ });
3974
+ }
3975
+ /**
3976
+ * Options call for this endpoint
3977
+ */
3978
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
3979
+ return __awaiter(this, void 0, void 0, function* () {
3980
+ yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
3981
+ });
3982
+ }
3913
3983
  /**
3914
3984
  * Options call for this endpoint
3915
3985
  */