@dynamic-labs/sdk-api-core 0.0.454 → 0.0.456
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 +66 -0
- package/src/apis/SDKApi.d.ts +25 -0
- package/src/apis/SDKApi.js +66 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -849,6 +849,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
849
849
|
yield this.farcasterSignInOptionsRaw(requestParameters, initOverrides);
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
854
|
+
* Farcaster provider Verify endpoint
|
|
855
|
+
*/
|
|
856
|
+
farcasterVerifyRaw(requestParameters, initOverrides) {
|
|
857
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
858
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
859
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerify.');
|
|
860
|
+
}
|
|
861
|
+
const queryParameters = {};
|
|
862
|
+
const headerParameters = {};
|
|
863
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
864
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
865
|
+
const token = this.configuration.accessToken;
|
|
866
|
+
const tokenString = yield token("bearerAuth", []);
|
|
867
|
+
if (tokenString) {
|
|
868
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
const response = yield this.request({
|
|
872
|
+
path: `/sdk/{environmentId}/farcaster/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
873
|
+
method: 'POST',
|
|
874
|
+
headers: headerParameters,
|
|
875
|
+
query: queryParameters,
|
|
876
|
+
body: FarcasterSignInRequest.FarcasterSignInRequestToJSON(requestParameters.farcasterSignInRequest),
|
|
877
|
+
}, initOverrides);
|
|
878
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
883
|
+
* Farcaster provider Verify endpoint
|
|
884
|
+
*/
|
|
885
|
+
farcasterVerify(requestParameters, initOverrides) {
|
|
886
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
887
|
+
const response = yield this.farcasterVerifyRaw(requestParameters, initOverrides);
|
|
888
|
+
return yield response.value();
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Options call for this endpoint
|
|
893
|
+
*/
|
|
894
|
+
farcasterVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
895
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
896
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
897
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerifyOptions.');
|
|
898
|
+
}
|
|
899
|
+
const queryParameters = {};
|
|
900
|
+
const headerParameters = {};
|
|
901
|
+
const response = yield this.request({
|
|
902
|
+
path: `/sdk/{environmentId}/farcaster/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
903
|
+
method: 'OPTIONS',
|
|
904
|
+
headers: headerParameters,
|
|
905
|
+
query: queryParameters,
|
|
906
|
+
}, initOverrides);
|
|
907
|
+
return new runtime.VoidApiResponse(response);
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Options call for this endpoint
|
|
912
|
+
*/
|
|
913
|
+
farcasterVerifyOptions(requestParameters, initOverrides) {
|
|
914
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
yield this.farcasterVerifyOptionsRaw(requestParameters, initOverrides);
|
|
916
|
+
});
|
|
917
|
+
}
|
|
852
918
|
/**
|
|
853
919
|
* Get the token balances for an account
|
|
854
920
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -94,6 +94,13 @@ export interface FarcasterSignInOperationRequest {
|
|
|
94
94
|
export interface FarcasterSignInOptionsRequest {
|
|
95
95
|
environmentId: string;
|
|
96
96
|
}
|
|
97
|
+
export interface FarcasterVerifyRequest {
|
|
98
|
+
environmentId: string;
|
|
99
|
+
farcasterSignInRequest?: FarcasterSignInRequest;
|
|
100
|
+
}
|
|
101
|
+
export interface FarcasterVerifyOptionsRequest {
|
|
102
|
+
environmentId: string;
|
|
103
|
+
}
|
|
97
104
|
export interface GetAccountBalancesRequest {
|
|
98
105
|
environmentId: string;
|
|
99
106
|
chainName: GetAccountBalancesChainNameEnum;
|
|
@@ -639,6 +646,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
639
646
|
* Options call for this endpoint
|
|
640
647
|
*/
|
|
641
648
|
farcasterSignInOptions(requestParameters: FarcasterSignInOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
649
|
+
/**
|
|
650
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
651
|
+
* Farcaster provider Verify endpoint
|
|
652
|
+
*/
|
|
653
|
+
farcasterVerifyRaw(requestParameters: FarcasterVerifyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
654
|
+
/**
|
|
655
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
656
|
+
* Farcaster provider Verify endpoint
|
|
657
|
+
*/
|
|
658
|
+
farcasterVerify(requestParameters: FarcasterVerifyRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
659
|
+
/**
|
|
660
|
+
* Options call for this endpoint
|
|
661
|
+
*/
|
|
662
|
+
farcasterVerifyOptionsRaw(requestParameters: FarcasterVerifyOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
663
|
+
/**
|
|
664
|
+
* Options call for this endpoint
|
|
665
|
+
*/
|
|
666
|
+
farcasterVerifyOptions(requestParameters: FarcasterVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
642
667
|
/**
|
|
643
668
|
* Get the token balances for an account
|
|
644
669
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -845,6 +845,72 @@ class SDKApi extends BaseAPI {
|
|
|
845
845
|
yield this.farcasterSignInOptionsRaw(requestParameters, initOverrides);
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
850
|
+
* Farcaster provider Verify endpoint
|
|
851
|
+
*/
|
|
852
|
+
farcasterVerifyRaw(requestParameters, initOverrides) {
|
|
853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
854
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
855
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerify.');
|
|
856
|
+
}
|
|
857
|
+
const queryParameters = {};
|
|
858
|
+
const headerParameters = {};
|
|
859
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
860
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
861
|
+
const token = this.configuration.accessToken;
|
|
862
|
+
const tokenString = yield token("bearerAuth", []);
|
|
863
|
+
if (tokenString) {
|
|
864
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
const response = yield this.request({
|
|
868
|
+
path: `/sdk/{environmentId}/farcaster/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
869
|
+
method: 'POST',
|
|
870
|
+
headers: headerParameters,
|
|
871
|
+
query: queryParameters,
|
|
872
|
+
body: FarcasterSignInRequestToJSON(requestParameters.farcasterSignInRequest),
|
|
873
|
+
}, initOverrides);
|
|
874
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Farcaster Verify endpoint to exchange SIWF data
|
|
879
|
+
* Farcaster provider Verify endpoint
|
|
880
|
+
*/
|
|
881
|
+
farcasterVerify(requestParameters, initOverrides) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
const response = yield this.farcasterVerifyRaw(requestParameters, initOverrides);
|
|
884
|
+
return yield response.value();
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Options call for this endpoint
|
|
889
|
+
*/
|
|
890
|
+
farcasterVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
892
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
893
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerifyOptions.');
|
|
894
|
+
}
|
|
895
|
+
const queryParameters = {};
|
|
896
|
+
const headerParameters = {};
|
|
897
|
+
const response = yield this.request({
|
|
898
|
+
path: `/sdk/{environmentId}/farcaster/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
899
|
+
method: 'OPTIONS',
|
|
900
|
+
headers: headerParameters,
|
|
901
|
+
query: queryParameters,
|
|
902
|
+
}, initOverrides);
|
|
903
|
+
return new VoidApiResponse(response);
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Options call for this endpoint
|
|
908
|
+
*/
|
|
909
|
+
farcasterVerifyOptions(requestParameters, initOverrides) {
|
|
910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
911
|
+
yield this.farcasterVerifyOptionsRaw(requestParameters, initOverrides);
|
|
912
|
+
});
|
|
913
|
+
}
|
|
848
914
|
/**
|
|
849
915
|
* Get the token balances for an account
|
|
850
916
|
*/
|
|
@@ -97,6 +97,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
97
97
|
UnprocessableEntityErrorCode["CannotSwitchToUnique"] = "cannot_switch_to_unique";
|
|
98
98
|
UnprocessableEntityErrorCode["CustomFieldDataNotUnique"] = "custom_field_data_not_unique";
|
|
99
99
|
UnprocessableEntityErrorCode["MetadataSizeExceeded"] = "metadata_size_exceeded";
|
|
100
|
+
UnprocessableEntityErrorCode["InvalidCustomHostname"] = "invalid_custom_hostname";
|
|
100
101
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
101
102
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
102
103
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -89,7 +89,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
89
89
|
UnableToFetchBalances = "unable_to_fetch_balances",
|
|
90
90
|
CannotSwitchToUnique = "cannot_switch_to_unique",
|
|
91
91
|
CustomFieldDataNotUnique = "custom_field_data_not_unique",
|
|
92
|
-
MetadataSizeExceeded = "metadata_size_exceeded"
|
|
92
|
+
MetadataSizeExceeded = "metadata_size_exceeded",
|
|
93
|
+
InvalidCustomHostname = "invalid_custom_hostname"
|
|
93
94
|
}
|
|
94
95
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
95
96
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -93,6 +93,7 @@ var UnprocessableEntityErrorCode;
|
|
|
93
93
|
UnprocessableEntityErrorCode["CannotSwitchToUnique"] = "cannot_switch_to_unique";
|
|
94
94
|
UnprocessableEntityErrorCode["CustomFieldDataNotUnique"] = "custom_field_data_not_unique";
|
|
95
95
|
UnprocessableEntityErrorCode["MetadataSizeExceeded"] = "metadata_size_exceeded";
|
|
96
|
+
UnprocessableEntityErrorCode["InvalidCustomHostname"] = "invalid_custom_hostname";
|
|
96
97
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
97
98
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
98
99
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|