Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/sdk-api

Package Overview
Dependencies
Maintainers
2
Versions
551
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/sdk-api - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

src/models/EnvironmentData.d.ts

2

package.json
{
"name": "@dynamic-labs/sdk-api",
"version": "0.0.23",
"version": "0.0.24",
"author": "Dynamic Labs",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -13,3 +13,6 @@ /**

import * as runtime from '../runtime';
import { NonceResponse, ProjectSettings, UserFields, VerifyRequest, VerifyResponse } from '../models';
import { EnvironmentDataResponse, NonceResponse, ProjectSettings, UserFields, VerifyRequest, VerifyResponse } from '../models';
export interface GetEnvironmentDataRequest {
environmentId: string;
}
export interface GetEnvironmentSettingsRequest {

@@ -34,2 +37,10 @@ environmentId: string;

/**
* Get the environment\'s data
*/
getEnvironmentDataRaw(requestParameters: GetEnvironmentDataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<EnvironmentDataResponse>>;
/**
* Get the environment\'s data
*/
getEnvironmentData(requestParameters: GetEnvironmentDataRequest, initOverrides?: RequestInit): Promise<EnvironmentDataResponse>;
/**
* Get the environment\'s settings

@@ -36,0 +47,0 @@ */

@@ -56,2 +56,30 @@ "use strict";

/**
* Get the environment\'s data
*/
getEnvironmentDataRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEnvironmentData.');
}
const queryParameters = {};
const headerParameters = {};
const response = yield this.request({
path: `/sdk/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EnvironmentDataResponseFromJSON)(jsonValue));
});
}
/**
* Get the environment\'s data
*/
getEnvironmentData(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getEnvironmentDataRaw(requestParameters, initOverrides);
return yield response.value();
});
}
/**
* Get the environment\'s settings

@@ -58,0 +86,0 @@ */

@@ -9,2 +9,3 @@ export * from './BadRequest';

export * from './CreateTokenResponseAllOfToken';
export * from './EnvironmentDataResponse';
export * from './EnvironmentEnum';

@@ -11,0 +12,0 @@ export * from './EnvironmentsResponse';

@@ -27,2 +27,3 @@ "use strict";

__exportStar(require("./CreateTokenResponseAllOfToken"), exports);
__exportStar(require("./EnvironmentDataResponse"), exports);
__exportStar(require("./EnvironmentEnum"), exports);

@@ -29,0 +30,0 @@ __exportStar(require("./EnvironmentsResponse"), exports);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc