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.15 to 0.0.16

2

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

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

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

import * as runtime from '../runtime';
import { KeyResponse, ProjectSettings } from '../models';
import { KeyResponse, ProjectEnvironment, ProjectSettings } from '../models';
export interface DeleteEnvironmentByIdRequest {
environmentId: string;
}
export interface GetEnvironmentByIdRequest {
environmentId: string;
}
export interface GetKeysForEnvironmentRequest {

@@ -27,2 +33,18 @@ environmentId: string;

/**
* Deletes an environment by ID
*/
deleteEnvironmentByIdRaw(requestParameters: DeleteEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* Deletes an environment by ID
*/
deleteEnvironmentById(requestParameters: DeleteEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<void>;
/**
* Find an environment by ID
*/
getEnvironmentByIdRaw(requestParameters: GetEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ProjectEnvironment>>;
/**
* Find an environment by ID
*/
getEnvironmentById(requestParameters: GetEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<ProjectEnvironment>;
/**
* Get keys for an environment given environmentId

@@ -29,0 +51,0 @@ */

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

/**
* Deletes an environment by ID
*/
deleteEnvironmentByIdRaw(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 deleteEnvironmentById.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/environments/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
});
}
/**
* Deletes an environment by ID
*/
deleteEnvironmentById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
yield this.deleteEnvironmentByIdRaw(requestParameters, initOverrides);
});
}
/**
* Find an environment by ID
*/
getEnvironmentByIdRaw(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 getEnvironmentById.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/environments/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ProjectEnvironmentFromJSON)(jsonValue));
});
}
/**
* Find an environment by ID
*/
getEnvironmentById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getEnvironmentByIdRaw(requestParameters, initOverrides);
return yield response.value();
});
}
/**
* Get keys for an environment given environmentId

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

@@ -21,2 +21,5 @@ /**

}
export interface GetOrganizationInvitesByOrganizationIdRequest {
organizationId: string;
}
export interface UpdateInviteRequest {

@@ -47,2 +50,10 @@ inviteId: string;

/**
* Fetches all the Invites the belong to the organization
*/
getOrganizationInvitesByOrganizationIdRaw(requestParameters: GetOrganizationInvitesByOrganizationIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InvitesResponse>>;
/**
* Fetches all the Invites the belong to the organization
*/
getOrganizationInvitesByOrganizationId(requestParameters: GetOrganizationInvitesByOrganizationIdRequest, initOverrides?: RequestInit): Promise<InvitesResponse>;
/**
* Update invite for user (accept/reject)

@@ -49,0 +60,0 @@ */

@@ -133,2 +133,37 @@ "use strict";

/**
* Fetches all the Invites the belong to the organization
*/
getOrganizationInvitesByOrganizationIdRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationInvitesByOrganizationId.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/organizations/{organizationId}/invites`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.InvitesResponseFromJSON)(jsonValue));
});
}
/**
* Fetches all the Invites the belong to the organization
*/
getOrganizationInvitesByOrganizationId(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getOrganizationInvitesByOrganizationIdRaw(requestParameters, initOverrides);
return yield response.value();
});
}
/**
* Update invite for user (accept/reject)

@@ -135,0 +170,0 @@ */

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

import * as runtime from '../runtime';
import { OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
import { Organization, OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
export interface CreateOrganizationRequest {
organizationRequest: OrganizationRequest;
}
export interface DeleteOrganizationByIdRequest {
organizationId: string;
}
export interface GetOrganizationByIdRequest {
organizationId: string;
}
/**

@@ -31,2 +37,18 @@ *

/**
* Deletes an organization by ID
*/
deleteOrganizationByIdRaw(requestParameters: DeleteOrganizationByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* Deletes an organization by ID
*/
deleteOrganizationById(requestParameters: DeleteOrganizationByIdRequest, initOverrides?: RequestInit): Promise<void>;
/**
* Find an organization by ID
*/
getOrganizationByIdRaw(requestParameters: GetOrganizationByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Organization>>;
/**
* Find an organization by ID
*/
getOrganizationById(requestParameters: GetOrganizationByIdRequest, initOverrides?: RequestInit): Promise<Organization>;
/**
* Fetches all the active organizations that the user has access to

@@ -33,0 +55,0 @@ */

@@ -93,2 +93,71 @@ "use strict";

/**
* Deletes an organization by ID
*/
deleteOrganizationByIdRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling deleteOrganizationById.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
});
}
/**
* Deletes an organization by ID
*/
deleteOrganizationById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
yield this.deleteOrganizationByIdRaw(requestParameters, initOverrides);
});
}
/**
* Find an organization by ID
*/
getOrganizationByIdRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationById.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OrganizationFromJSON)(jsonValue));
});
}
/**
* Find an organization by ID
*/
getOrganizationById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getOrganizationByIdRaw(requestParameters, initOverrides);
return yield response.value();
});
}
/**
* Fetches all the active organizations that the user has access to

@@ -95,0 +164,0 @@ */

@@ -18,2 +18,5 @@ /**

}
export interface DeleteProjectByIdRequest {
projectId: string;
}
export interface GetProjectByIdRequest {

@@ -38,2 +41,10 @@ projectId: string;

/**
* Deletes a project by ID
*/
deleteProjectByIdRaw(requestParameters: DeleteProjectByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* Deletes a project by ID
*/
deleteProjectById(requestParameters: DeleteProjectByIdRequest, initOverrides?: RequestInit): Promise<void>;
/**
* Get project and its by projectId

@@ -40,0 +51,0 @@ */

@@ -96,2 +96,36 @@ "use strict";

/**
* Deletes a project by ID
*/
deleteProjectByIdRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProjectById.');
}
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
});
}
/**
* Deletes a project by ID
*/
deleteProjectById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
yield this.deleteProjectByIdRaw(requestParameters, initOverrides);
});
}
/**
* Get project and its by projectId

@@ -98,0 +132,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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