@dynamic-labs/sdk-api 0.0.464 → 0.0.466
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 +123 -0
- package/src/apis/SDKApi.d.ts +44 -0
- package/src/apis/SDKApi.js +123 -0
- package/src/models/ExternalAuth.d.ts +5 -5
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -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
|
|
@@ -3221,6 +3283,67 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3221
3283
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3222
3284
|
});
|
|
3223
3285
|
}
|
|
3286
|
+
/**
|
|
3287
|
+
* Check that session is valid
|
|
3288
|
+
*/
|
|
3289
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3290
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3291
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3292
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3293
|
+
}
|
|
3294
|
+
const queryParameters = {};
|
|
3295
|
+
const headerParameters = {};
|
|
3296
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3297
|
+
const token = this.configuration.accessToken;
|
|
3298
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3299
|
+
if (tokenString) {
|
|
3300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
const response = yield this.request({
|
|
3304
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3305
|
+
method: 'GET',
|
|
3306
|
+
headers: headerParameters,
|
|
3307
|
+
query: queryParameters,
|
|
3308
|
+
}, initOverrides);
|
|
3309
|
+
return new runtime.VoidApiResponse(response);
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* Check that session is valid
|
|
3314
|
+
*/
|
|
3315
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3316
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3317
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3318
|
+
});
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* Options call for this endpoint
|
|
3322
|
+
*/
|
|
3323
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3324
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3325
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3326
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3327
|
+
}
|
|
3328
|
+
const queryParameters = {};
|
|
3329
|
+
const headerParameters = {};
|
|
3330
|
+
const response = yield this.request({
|
|
3331
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3332
|
+
method: 'OPTIONS',
|
|
3333
|
+
headers: headerParameters,
|
|
3334
|
+
query: queryParameters,
|
|
3335
|
+
}, initOverrides);
|
|
3336
|
+
return new runtime.VoidApiResponse(response);
|
|
3337
|
+
});
|
|
3338
|
+
}
|
|
3339
|
+
/**
|
|
3340
|
+
* Options call for this endpoint
|
|
3341
|
+
*/
|
|
3342
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3343
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3344
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3345
|
+
});
|
|
3346
|
+
}
|
|
3224
3347
|
/**
|
|
3225
3348
|
* Options call for this endpoint
|
|
3226
3349
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -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;
|
|
@@ -362,6 +368,12 @@ export interface SelectUserWalletRequest {
|
|
|
362
368
|
export interface SelectUserWalletOptionsRequest {
|
|
363
369
|
environmentId: string;
|
|
364
370
|
}
|
|
371
|
+
export interface SessionCheckRequest {
|
|
372
|
+
environmentId: string;
|
|
373
|
+
}
|
|
374
|
+
export interface SessionCheckOptionsRequest {
|
|
375
|
+
environmentId: string;
|
|
376
|
+
}
|
|
365
377
|
export interface SessionKeyOptionsRequest {
|
|
366
378
|
environmentId: string;
|
|
367
379
|
}
|
|
@@ -635,6 +647,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
635
647
|
/**
|
|
636
648
|
*/
|
|
637
649
|
eventsOptions(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
650
|
+
/**
|
|
651
|
+
* Endpoint to sign-in using a token issued by an external auth provider
|
|
652
|
+
*/
|
|
653
|
+
externalAuthSigninRaw(requestParameters: ExternalAuthSigninRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
654
|
+
/**
|
|
655
|
+
* Endpoint to sign-in using a token issued by an external auth provider
|
|
656
|
+
*/
|
|
657
|
+
externalAuthSignin(requestParameters: ExternalAuthSigninRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
658
|
+
/**
|
|
659
|
+
* Options call for this endpoint
|
|
660
|
+
*/
|
|
661
|
+
externalAuthSigninOptionsRaw(requestParameters: ExternalAuthSigninOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
662
|
+
/**
|
|
663
|
+
* Options call for this endpoint
|
|
664
|
+
*/
|
|
665
|
+
externalAuthSigninOptions(requestParameters: ExternalAuthSigninOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
638
666
|
/**
|
|
639
667
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
640
668
|
* Farcaster provider SignIn endpoint
|
|
@@ -1253,6 +1281,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1253
1281
|
* Options call for this endpoint
|
|
1254
1282
|
*/
|
|
1255
1283
|
selectUserWalletOptions(requestParameters: SelectUserWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Check that session is valid
|
|
1286
|
+
*/
|
|
1287
|
+
sessionCheckRaw(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Check that session is valid
|
|
1290
|
+
*/
|
|
1291
|
+
sessionCheck(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Options call for this endpoint
|
|
1294
|
+
*/
|
|
1295
|
+
sessionCheckOptionsRaw(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Options call for this endpoint
|
|
1298
|
+
*/
|
|
1299
|
+
sessionCheckOptions(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1256
1300
|
/**
|
|
1257
1301
|
* Options call for this endpoint
|
|
1258
1302
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -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
|
|
@@ -3217,6 +3279,67 @@ class SDKApi extends BaseAPI {
|
|
|
3217
3279
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3218
3280
|
});
|
|
3219
3281
|
}
|
|
3282
|
+
/**
|
|
3283
|
+
* Check that session is valid
|
|
3284
|
+
*/
|
|
3285
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3287
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3288
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3289
|
+
}
|
|
3290
|
+
const queryParameters = {};
|
|
3291
|
+
const headerParameters = {};
|
|
3292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3293
|
+
const token = this.configuration.accessToken;
|
|
3294
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3295
|
+
if (tokenString) {
|
|
3296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
const response = yield this.request({
|
|
3300
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3301
|
+
method: 'GET',
|
|
3302
|
+
headers: headerParameters,
|
|
3303
|
+
query: queryParameters,
|
|
3304
|
+
}, initOverrides);
|
|
3305
|
+
return new VoidApiResponse(response);
|
|
3306
|
+
});
|
|
3307
|
+
}
|
|
3308
|
+
/**
|
|
3309
|
+
* Check that session is valid
|
|
3310
|
+
*/
|
|
3311
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3313
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
/**
|
|
3317
|
+
* Options call for this endpoint
|
|
3318
|
+
*/
|
|
3319
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3321
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3322
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3323
|
+
}
|
|
3324
|
+
const queryParameters = {};
|
|
3325
|
+
const headerParameters = {};
|
|
3326
|
+
const response = yield this.request({
|
|
3327
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3328
|
+
method: 'OPTIONS',
|
|
3329
|
+
headers: headerParameters,
|
|
3330
|
+
query: queryParameters,
|
|
3331
|
+
}, initOverrides);
|
|
3332
|
+
return new VoidApiResponse(response);
|
|
3333
|
+
});
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* Options call for this endpoint
|
|
3337
|
+
*/
|
|
3338
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3340
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3341
|
+
});
|
|
3342
|
+
}
|
|
3220
3343
|
/**
|
|
3221
3344
|
* Options call for this endpoint
|
|
3222
3345
|
*/
|
|
@@ -26,25 +26,25 @@ export interface ExternalAuth {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ExternalAuth
|
|
28
28
|
*/
|
|
29
|
-
iss?: string;
|
|
29
|
+
iss?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ExternalAuth
|
|
34
34
|
*/
|
|
35
|
-
aud?:
|
|
35
|
+
aud?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ExternalAuth
|
|
40
40
|
*/
|
|
41
|
-
jwksUrl?: string;
|
|
41
|
+
jwksUrl?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ExternalAuth
|
|
46
46
|
*/
|
|
47
|
-
cookieName?: string;
|
|
47
|
+
cookieName?: string | null;
|
|
48
48
|
}
|
|
49
49
|
export declare function ExternalAuthFromJSON(json: any): ExternalAuth;
|
|
50
50
|
export declare function ExternalAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalAuth;
|