@dynamic-labs/sdk-api-core 0.0.629 → 0.0.630

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-core",
3
- "version": "0.0.629",
3
+ "version": "0.0.630",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2013,6 +2013,66 @@ class SDKApi extends runtime.BaseAPI {
2013
2013
  return yield response.value();
2014
2014
  });
2015
2015
  }
2016
+ /**
2017
+ * Get the access token for a user OAuth account
2018
+ */
2019
+ getEndUserOauthAccessTokenRaw(requestParameters, initOverrides) {
2020
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2021
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2022
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessToken.');
2023
+ }
2024
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2025
+ throw new runtime.RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessToken.');
2026
+ }
2027
+ const queryParameters = {};
2028
+ const headerParameters = {};
2029
+ const response = yield this.request({
2030
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2031
+ method: 'GET',
2032
+ headers: headerParameters,
2033
+ query: queryParameters,
2034
+ }, initOverrides);
2035
+ return new runtime.VoidApiResponse(response);
2036
+ });
2037
+ }
2038
+ /**
2039
+ * Get the access token for a user OAuth account
2040
+ */
2041
+ getEndUserOauthAccessToken(requestParameters, initOverrides) {
2042
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2043
+ yield this.getEndUserOauthAccessTokenRaw(requestParameters, initOverrides);
2044
+ });
2045
+ }
2046
+ /**
2047
+ * Options call for this endpoint
2048
+ */
2049
+ getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides) {
2050
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2051
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2052
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2053
+ }
2054
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2055
+ throw new runtime.RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2056
+ }
2057
+ const queryParameters = {};
2058
+ const headerParameters = {};
2059
+ const response = yield this.request({
2060
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2061
+ method: 'OPTIONS',
2062
+ headers: headerParameters,
2063
+ query: queryParameters,
2064
+ }, initOverrides);
2065
+ return new runtime.VoidApiResponse(response);
2066
+ });
2067
+ }
2068
+ /**
2069
+ * Options call for this endpoint
2070
+ */
2071
+ getEndUserOauthAccessTokenOptions(requestParameters, initOverrides) {
2072
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2073
+ yield this.getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides);
2074
+ });
2075
+ }
2016
2076
  /**
2017
2077
  * Get the environment\'s settings
2018
2078
  */
@@ -215,6 +215,14 @@ export interface GetEmbeddedWalletPasscodeOptionRequest {
215
215
  export interface GetEmbeddedWalletsDeleteRequestRequest {
216
216
  environmentId: string;
217
217
  }
218
+ export interface GetEndUserOauthAccessTokenRequest {
219
+ environmentId: string;
220
+ oauthAccountId: string;
221
+ }
222
+ export interface GetEndUserOauthAccessTokenOptionsRequest {
223
+ environmentId: string;
224
+ oauthAccountId: string;
225
+ }
218
226
  export interface GetEnvironmentSettingsRequest {
219
227
  environmentId: string;
220
228
  sdkVersion?: string;
@@ -1163,6 +1171,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1163
1171
  * Generates the turnkey request body for a user\'s delete wallets request
1164
1172
  */
1165
1173
  getEmbeddedWalletsDeleteRequest(requestParameters: GetEmbeddedWalletsDeleteRequestRequest, initOverrides?: RequestInit): Promise<TurnkeyDeleteEmbeddedWalletsRequestBody>;
1174
+ /**
1175
+ * Get the access token for a user OAuth account
1176
+ */
1177
+ getEndUserOauthAccessTokenRaw(requestParameters: GetEndUserOauthAccessTokenRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1178
+ /**
1179
+ * Get the access token for a user OAuth account
1180
+ */
1181
+ getEndUserOauthAccessToken(requestParameters: GetEndUserOauthAccessTokenRequest, initOverrides?: RequestInit): Promise<void>;
1182
+ /**
1183
+ * Options call for this endpoint
1184
+ */
1185
+ getEndUserOauthAccessTokenOptionsRaw(requestParameters: GetEndUserOauthAccessTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1186
+ /**
1187
+ * Options call for this endpoint
1188
+ */
1189
+ getEndUserOauthAccessTokenOptions(requestParameters: GetEndUserOauthAccessTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1166
1190
  /**
1167
1191
  * Get the environment\'s settings
1168
1192
  */
@@ -2009,6 +2009,66 @@ class SDKApi extends BaseAPI {
2009
2009
  return yield response.value();
2010
2010
  });
2011
2011
  }
2012
+ /**
2013
+ * Get the access token for a user OAuth account
2014
+ */
2015
+ getEndUserOauthAccessTokenRaw(requestParameters, initOverrides) {
2016
+ return __awaiter(this, void 0, void 0, function* () {
2017
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2018
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessToken.');
2019
+ }
2020
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2021
+ throw new RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessToken.');
2022
+ }
2023
+ const queryParameters = {};
2024
+ const headerParameters = {};
2025
+ const response = yield this.request({
2026
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2027
+ method: 'GET',
2028
+ headers: headerParameters,
2029
+ query: queryParameters,
2030
+ }, initOverrides);
2031
+ return new VoidApiResponse(response);
2032
+ });
2033
+ }
2034
+ /**
2035
+ * Get the access token for a user OAuth account
2036
+ */
2037
+ getEndUserOauthAccessToken(requestParameters, initOverrides) {
2038
+ return __awaiter(this, void 0, void 0, function* () {
2039
+ yield this.getEndUserOauthAccessTokenRaw(requestParameters, initOverrides);
2040
+ });
2041
+ }
2042
+ /**
2043
+ * Options call for this endpoint
2044
+ */
2045
+ getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides) {
2046
+ return __awaiter(this, void 0, void 0, function* () {
2047
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2048
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2049
+ }
2050
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2051
+ throw new RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2052
+ }
2053
+ const queryParameters = {};
2054
+ const headerParameters = {};
2055
+ const response = yield this.request({
2056
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2057
+ method: 'OPTIONS',
2058
+ headers: headerParameters,
2059
+ query: queryParameters,
2060
+ }, initOverrides);
2061
+ return new VoidApiResponse(response);
2062
+ });
2063
+ }
2064
+ /**
2065
+ * Options call for this endpoint
2066
+ */
2067
+ getEndUserOauthAccessTokenOptions(requestParameters, initOverrides) {
2068
+ return __awaiter(this, void 0, void 0, function* () {
2069
+ yield this.getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides);
2070
+ });
2071
+ }
2012
2072
  /**
2013
2073
  * Get the environment\'s settings
2014
2074
  */