@dynamic-labs/sdk-api 0.0.464 → 0.0.465

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.464",
3
+ "version": "0.0.465",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -810,6 +810,68 @@ class SDKApi extends runtime.BaseAPI {
810
810
  yield this.eventsOptionsRaw(requestParameters, initOverrides);
811
811
  });
812
812
  }
813
+ /**
814
+ * Endpoint to sign-in using a token issued by an external auth provider
815
+ */
816
+ externalAuthSigninRaw(requestParameters, initOverrides) {
817
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
818
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
819
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSignin.');
820
+ }
821
+ const queryParameters = {};
822
+ const headerParameters = {};
823
+ if (this.configuration && this.configuration.accessToken) {
824
+ const token = this.configuration.accessToken;
825
+ const tokenString = yield token("bearerAuth", []);
826
+ if (tokenString) {
827
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
828
+ }
829
+ }
830
+ const response = yield this.request({
831
+ path: `/sdk/{environmentId}/externalAuth/signin`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
832
+ method: 'POST',
833
+ headers: headerParameters,
834
+ query: queryParameters,
835
+ }, initOverrides);
836
+ return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
837
+ });
838
+ }
839
+ /**
840
+ * Endpoint to sign-in using a token issued by an external auth provider
841
+ */
842
+ externalAuthSignin(requestParameters, initOverrides) {
843
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
844
+ const response = yield this.externalAuthSigninRaw(requestParameters, initOverrides);
845
+ return yield response.value();
846
+ });
847
+ }
848
+ /**
849
+ * Options call for this endpoint
850
+ */
851
+ externalAuthSigninOptionsRaw(requestParameters, initOverrides) {
852
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
853
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
854
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSigninOptions.');
855
+ }
856
+ const queryParameters = {};
857
+ const headerParameters = {};
858
+ const response = yield this.request({
859
+ path: `/sdk/{environmentId}/externalAuth/signin`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
860
+ method: 'OPTIONS',
861
+ headers: headerParameters,
862
+ query: queryParameters,
863
+ }, initOverrides);
864
+ return new runtime.VoidApiResponse(response);
865
+ });
866
+ }
867
+ /**
868
+ * Options call for this endpoint
869
+ */
870
+ externalAuthSigninOptions(requestParameters, initOverrides) {
871
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
872
+ yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
873
+ });
874
+ }
813
875
  /**
814
876
  * Farcaster SignIn endpoint to exchange SIWF data
815
877
  * Farcaster provider SignIn endpoint
@@ -87,6 +87,12 @@ export interface EmbeddedWalletExportOptionsRequest {
87
87
  export interface EventsOptionsRequest {
88
88
  environmentId: string;
89
89
  }
90
+ export interface ExternalAuthSigninRequest {
91
+ environmentId: string;
92
+ }
93
+ export interface ExternalAuthSigninOptionsRequest {
94
+ environmentId: string;
95
+ }
90
96
  export interface FarcasterSignInOperationRequest {
91
97
  environmentId: string;
92
98
  farcasterSignInRequest?: FarcasterSignInRequest;
@@ -635,6 +641,22 @@ export declare class SDKApi extends runtime.BaseAPI {
635
641
  /**
636
642
  */
637
643
  eventsOptions(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
644
+ /**
645
+ * Endpoint to sign-in using a token issued by an external auth provider
646
+ */
647
+ externalAuthSigninRaw(requestParameters: ExternalAuthSigninRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
648
+ /**
649
+ * Endpoint to sign-in using a token issued by an external auth provider
650
+ */
651
+ externalAuthSignin(requestParameters: ExternalAuthSigninRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
652
+ /**
653
+ * Options call for this endpoint
654
+ */
655
+ externalAuthSigninOptionsRaw(requestParameters: ExternalAuthSigninOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
656
+ /**
657
+ * Options call for this endpoint
658
+ */
659
+ externalAuthSigninOptions(requestParameters: ExternalAuthSigninOptionsRequest, initOverrides?: RequestInit): Promise<void>;
638
660
  /**
639
661
  * Farcaster SignIn endpoint to exchange SIWF data
640
662
  * Farcaster provider SignIn endpoint
@@ -806,6 +806,68 @@ class SDKApi extends BaseAPI {
806
806
  yield this.eventsOptionsRaw(requestParameters, initOverrides);
807
807
  });
808
808
  }
809
+ /**
810
+ * Endpoint to sign-in using a token issued by an external auth provider
811
+ */
812
+ externalAuthSigninRaw(requestParameters, initOverrides) {
813
+ return __awaiter(this, void 0, void 0, function* () {
814
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
815
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSignin.');
816
+ }
817
+ const queryParameters = {};
818
+ const headerParameters = {};
819
+ if (this.configuration && this.configuration.accessToken) {
820
+ const token = this.configuration.accessToken;
821
+ const tokenString = yield token("bearerAuth", []);
822
+ if (tokenString) {
823
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
824
+ }
825
+ }
826
+ const response = yield this.request({
827
+ path: `/sdk/{environmentId}/externalAuth/signin`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
828
+ method: 'POST',
829
+ headers: headerParameters,
830
+ query: queryParameters,
831
+ }, initOverrides);
832
+ return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
833
+ });
834
+ }
835
+ /**
836
+ * Endpoint to sign-in using a token issued by an external auth provider
837
+ */
838
+ externalAuthSignin(requestParameters, initOverrides) {
839
+ return __awaiter(this, void 0, void 0, function* () {
840
+ const response = yield this.externalAuthSigninRaw(requestParameters, initOverrides);
841
+ return yield response.value();
842
+ });
843
+ }
844
+ /**
845
+ * Options call for this endpoint
846
+ */
847
+ externalAuthSigninOptionsRaw(requestParameters, initOverrides) {
848
+ return __awaiter(this, void 0, void 0, function* () {
849
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
850
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSigninOptions.');
851
+ }
852
+ const queryParameters = {};
853
+ const headerParameters = {};
854
+ const response = yield this.request({
855
+ path: `/sdk/{environmentId}/externalAuth/signin`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
856
+ method: 'OPTIONS',
857
+ headers: headerParameters,
858
+ query: queryParameters,
859
+ }, initOverrides);
860
+ return new VoidApiResponse(response);
861
+ });
862
+ }
863
+ /**
864
+ * Options call for this endpoint
865
+ */
866
+ externalAuthSigninOptions(requestParameters, initOverrides) {
867
+ return __awaiter(this, void 0, void 0, function* () {
868
+ yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
869
+ });
870
+ }
809
871
  /**
810
872
  * Farcaster SignIn endpoint to exchange SIWF data
811
873
  * Farcaster provider SignIn endpoint