Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@adobe/aio-lib-console
Advanced tools
$ npm install @adobe/aio-lib-console
const sdk = require('@adobe/aio-lib-console')
async function sdkTest() {
//initialize sdk
const client = await sdk.init('x-api-key', '<valid auth token>')
}
const sdk = require('@adobe/aio-lib-console')
async function sdkTest() {
// initialize sdk
const client = await sdk.init('x-api-key', '<valid auth token>')
// call methods
try {
// get... something
const result = await client.getOrganizations()
console.log(result)
} catch (e) {
console.error(e)
}
}
This class provides methods to call your CoreConsoleAPI APIs.
Before calling any method, initialize the instance by calling the init
method on it
with valid values for apiKey and accessToken
Promise.<CoreConsoleAPI>
Returns a Promise that resolves with a new CoreConsoleAPI object
object
object
object
This class provides methods to call your CoreConsoleAPI APIs.
Before calling any method, initialize the instance by calling the init
method on it
with valid values for apiKey and accessToken
Kind: global class
Promise.<CoreConsoleAPI>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<Response>
Promise.<CoreConsoleAPI>
Initializes a CoreConsoleAPI object and returns it
Kind: instance method of CoreConsoleAPI
Returns: Promise.<CoreConsoleAPI>
- a CoreConsoleAPI object
Param | Type | Default | Description |
---|---|---|---|
accessToken | string | the access token corresponding to an integration or user token | |
apiKey | string | api key to access the Developer Console | |
[env] | string | "prod" | the server environment ('prod' or 'stage') |
Promise.<Response>
Get all Projects in an Organization
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
Promise.<Response>
Create a new Project in an Organization
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectDetails | ProjectDetails | Project details including name, title, who_created, description and type |
Promise.<Response>
Get all Workspaces for a Project
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
Promise.<Response>
Delete a Project
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
Promise.<Response>
Edit a Project
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
projectDetails | ProjectDetails | Project details including name, title, who_created, description and type |
Promise.<Response>
Get a Project by ID
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
Promise.<Response>
Download the Workspace Configuration File (json)
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
Promise.<Response>
Create a new Workspace
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceDetails | WorkspaceDetails | Workspace details including name, title, who_created, description, type and quotaRule |
Promise.<Response>
Edit a Workspace
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
workspaceDetails | WorkspaceDetails | Workspace details including name, title, who_created, description, type and quotaRule |
Promise.<Response>
Get a Workspace by ID
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
Promise.<Response>
Delete a Workspace
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
Promise.<Response>
Get all Integrations for a Workspace
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
Promise.<Response>
Create a new Enterprise Integration
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
certificate | Buffer | Certificate |
name | string | Integration name |
description | string | Integration description |
Promise.<Response>
Create a new AdobeID Integration
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
integrationDetails | IntegrationDetails | Integration details |
Promise.<Response>
Subscribe an Integration to Services
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
integrationType | string | Integration type (adobeid, analytics or entp) |
integrationId | string | Integration ID |
serviceInfo | object | Information about the services like SDK Codes, licenseConfig and roles |
Promise.<Response>
Get the Workspace for an Integration
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
integrationId | string | Integration ID |
Promise.<Response>
Get the Project of a Workspace
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
workspaceId | string | Workspace ID |
Promise.<Response>
Delete an Integration
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Param | Type | Description |
---|---|---|
organizationId | string | Organization ID |
projectId | string | Project ID |
workspaceId | string | Workspace ID |
integrationType | string | Integration type (adobeid, analytics or entp) |
integrationId | string | Integration ID |
Promise.<Response>
Get all Organizations
Kind: instance method of CoreConsoleAPI
Returns: Promise.<Response>
- the response
Promise.<CoreConsoleAPI>
Returns a Promise that resolves with a new CoreConsoleAPI object
Kind: global function
Returns: Promise.<CoreConsoleAPI>
- a Promise with a CoreConsoleAPI object
Param | Type | Default | Description |
---|---|---|---|
accessToken | string | the access token corresponding to an integration or user token | |
apiKey | string | api key to access the Developer Console | |
[env] | string | "prod" | the server environment ('prod' or 'stage') |
object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | string | Name |
title | string | Title |
[who_created] | string | Creator name |
description | string | Description |
type | string | Type |
object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | string | Name |
[title] | string | Title |
[who_created] | string | Creator name |
description | string | Description |
[type] | string | Type |
[quotaRule] | string | quotaRule |
object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | string | Name |
description | string | Description |
[platform] | string | Platform |
[urlScheme] | string | url scheme |
[redirectUriList] | object | List of redirect URIs |
[defaultRedirectUri] | string | Default redirect URI |
[domain] | string | domain |
[approvalInfo] | object | approvalInfo |
LOG_LEVEL=debug <your_call_here>
Prepend the LOG_LEVEL
environment variable and debug
value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.
Contributions are welcome! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
FAQs
Adobe I/O Lib for the Developer Console
The npm package @adobe/aio-lib-console receives a total of 2,941 weekly downloads. As such, @adobe/aio-lib-console popularity was classified as popular.
We found that @adobe/aio-lib-console demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.