@dynamic-labs/sdk-api 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",
3
- "version": "0.0.629",
3
+ "version": "0.0.630",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2031,6 +2031,66 @@ class SDKApi extends runtime.BaseAPI {
2031
2031
  return yield response.value();
2032
2032
  });
2033
2033
  }
2034
+ /**
2035
+ * Get the access token for a user OAuth account
2036
+ */
2037
+ getEndUserOauthAccessTokenRaw(requestParameters, initOverrides) {
2038
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2039
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2040
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessToken.');
2041
+ }
2042
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2043
+ throw new runtime.RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessToken.');
2044
+ }
2045
+ const queryParameters = {};
2046
+ const headerParameters = {};
2047
+ const response = yield this.request({
2048
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2049
+ method: 'GET',
2050
+ headers: headerParameters,
2051
+ query: queryParameters,
2052
+ }, initOverrides);
2053
+ return new runtime.VoidApiResponse(response);
2054
+ });
2055
+ }
2056
+ /**
2057
+ * Get the access token for a user OAuth account
2058
+ */
2059
+ getEndUserOauthAccessToken(requestParameters, initOverrides) {
2060
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2061
+ yield this.getEndUserOauthAccessTokenRaw(requestParameters, initOverrides);
2062
+ });
2063
+ }
2064
+ /**
2065
+ * Options call for this endpoint
2066
+ */
2067
+ getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides) {
2068
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2069
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2070
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2071
+ }
2072
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2073
+ throw new runtime.RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2074
+ }
2075
+ const queryParameters = {};
2076
+ const headerParameters = {};
2077
+ const response = yield this.request({
2078
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2079
+ method: 'OPTIONS',
2080
+ headers: headerParameters,
2081
+ query: queryParameters,
2082
+ }, initOverrides);
2083
+ return new runtime.VoidApiResponse(response);
2084
+ });
2085
+ }
2086
+ /**
2087
+ * Options call for this endpoint
2088
+ */
2089
+ getEndUserOauthAccessTokenOptions(requestParameters, initOverrides) {
2090
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2091
+ yield this.getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides);
2092
+ });
2093
+ }
2034
2094
  /**
2035
2095
  * Get the environment\'s settings
2036
2096
  */
@@ -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
  */
@@ -2027,6 +2027,66 @@ class SDKApi extends BaseAPI {
2027
2027
  return yield response.value();
2028
2028
  });
2029
2029
  }
2030
+ /**
2031
+ * Get the access token for a user OAuth account
2032
+ */
2033
+ getEndUserOauthAccessTokenRaw(requestParameters, initOverrides) {
2034
+ return __awaiter(this, void 0, void 0, function* () {
2035
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2036
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessToken.');
2037
+ }
2038
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2039
+ throw new RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessToken.');
2040
+ }
2041
+ const queryParameters = {};
2042
+ const headerParameters = {};
2043
+ const response = yield this.request({
2044
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2045
+ method: 'GET',
2046
+ headers: headerParameters,
2047
+ query: queryParameters,
2048
+ }, initOverrides);
2049
+ return new VoidApiResponse(response);
2050
+ });
2051
+ }
2052
+ /**
2053
+ * Get the access token for a user OAuth account
2054
+ */
2055
+ getEndUserOauthAccessToken(requestParameters, initOverrides) {
2056
+ return __awaiter(this, void 0, void 0, function* () {
2057
+ yield this.getEndUserOauthAccessTokenRaw(requestParameters, initOverrides);
2058
+ });
2059
+ }
2060
+ /**
2061
+ * Options call for this endpoint
2062
+ */
2063
+ getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides) {
2064
+ return __awaiter(this, void 0, void 0, function* () {
2065
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2066
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2067
+ }
2068
+ if (requestParameters.oauthAccountId === null || requestParameters.oauthAccountId === undefined) {
2069
+ throw new RequiredError('oauthAccountId', 'Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessTokenOptions.');
2070
+ }
2071
+ const queryParameters = {};
2072
+ const headerParameters = {};
2073
+ const response = yield this.request({
2074
+ path: `/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"oauthAccountId"}}`, encodeURIComponent(String(requestParameters.oauthAccountId))),
2075
+ method: 'OPTIONS',
2076
+ headers: headerParameters,
2077
+ query: queryParameters,
2078
+ }, initOverrides);
2079
+ return new VoidApiResponse(response);
2080
+ });
2081
+ }
2082
+ /**
2083
+ * Options call for this endpoint
2084
+ */
2085
+ getEndUserOauthAccessTokenOptions(requestParameters, initOverrides) {
2086
+ return __awaiter(this, void 0, void 0, function* () {
2087
+ yield this.getEndUserOauthAccessTokenOptionsRaw(requestParameters, initOverrides);
2088
+ });
2089
+ }
2030
2090
  /**
2031
2091
  * Get the environment\'s settings
2032
2092
  */