Gathering detailed insights and metrics for mongodb-stitch-api-client
Gathering detailed insights and metrics for mongodb-stitch-api-client
Gathering detailed insights and metrics for mongodb-stitch-api-client
Gathering detailed insights and metrics for mongodb-stitch-api-client
npm install mongodb-stitch-api-client
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
137 Commits
2 Forks
1 Watchers
15 Branches
2 Contributors
Updated on May 29, 2025
Latest Version
1.49.0
Package Id
mongodb-stitch-api-client@1.49.0
Unpacked Size
97.36 kB
Size
14.08 kB
File Count
31
NPM Version
6.14.16
Node Version
12.22.12
Published on
Jan 30, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
A mongdb stitch api client for nodejs.
npm install mongodb-stitch-api-client
The basic syntax is:
1const getClient = require("mongodb-stitch-api-client"); 2 3const {trigger, application} = getClient({ 4 "publicKey": "some public key", 5 "privateKey": "some private key", 6 "baseUrl": "https://stitch.mongodb.com/api/admin/v3.0", 7 "projectId": "some project/group id", 8 "appId": "some stitch appId" // Optional when you are creating app using Application 9}); 10 11await trigger.getAll(); 12const createApplication = await application.create({"name": "myFirstStitchApp", "deployment_model": "LOCAL", "location": "IE"}); 13
npm test
Following entities are currently supported
Promise
Creates the stitch application
Kind: instance method of Application
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Default | Description |
---|---|---|---|
body | Object | Object that contains stitch application details. | |
[productType] | string | standard | Optional product type. standard or atlas |
Promise
Returns all applications
Kind: instance method of Application
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Default | Description |
---|---|---|---|
[productType] | string | standard | Optional product type. standard or atlas |
Promise
Returns a single application as per app Id
Kind: instance method of Application
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
appId | string | Application Id |
Promise
Deletes a single application as per app Id
Kind: instance method of Application
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
appId | string | Application Id |
Promise
Creates the service
Kind: instance method of Service
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
body | Object | Object that contains stitch service details. |
Promise
Updates the service
Kind: instance method of Service
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | Service Id. |
body | Object | Object that contains stitch service details. |
Promise
Returns all services
Kind: instance method of Service
Returns: Promise
- - promise which resolves on success and rejects on error
Promise
Returns single service as per service Id
Kind: instance method of Service
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | Service Id |
Promise
Deletes single service as per service Id
Kind: instance method of Service
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | Service Id |
Promise
Creates the trigger
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
body | Object | Object that contains stitch trigger details. |
Promise
Updates the trigger
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
triggerId | string | Service Id. |
body | Object | Object that contains stitch trigger details. |
Promise
Resumes the trigger
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
triggerId | string | Service Id. |
useResumeToken | bool | Whether to use resume token for restarting trigger. Default is true. |
Promise
Returns all triggers
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Promise
Returns single trigger as per trigger Id
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
triggerId | string | Trigger Id |
Promise
Deletes single trigger as per trigger Id
Kind: instance method of Trigger
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
triggerId | string | Trigger Id |
Promise
Returns the bearer token as per public key and private key
Kind: instance method of Token
Returns: Promise
- - promise which resolves on success and rejects on error
Promise
Creates the function
Kind: instance method of StitchFunction
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
body | Object | Object that contains stitch functions details. |
Promise
Updates the function
Kind: instance method of StitchFunction
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
functionId | string | Service Id. |
body | Object | Object that contains stitch function details. |
Promise
Returns all functions
Kind: instance method of StitchFunction
Returns: Promise
- - promise which resolves on success and rejects on error
Promise
Returns single function as per function Id
Kind: instance method of StitchFunction
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
functionId | string | function Id |
Promise
Deletes single function as per function Id
Kind: instance method of StitchFunction
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
functionId | string | function Id |
Promise
Creates the rule
Kind: instance method of Rule
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
body | Object | Object that contains stitch rules details. |
Promise
Updates the rule
Kind: instance method of Rule
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
ruleId | string | Service Id. |
body | Object | Object that contains stitch rule details. |
Promise
Returns all rules
Kind: instance method of Rule
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
Promise
Returns single rule as per rule Id
Kind: instance method of Rule
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
ruleId | string | rule Id |
Promise
Deletes single rule as per rule Id
Kind: instance method of Rule
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
ruleId | string | rule Id |
Promise
Returns all the logs as per options passed
Kind: instance method of Log
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Default | Description |
---|---|---|---|
[options] | object | {} | Options having parameter which will be passed as query string |
Promise
Set the allowed HTTP origins from which Stitch should allow requests.
Kind: instance method of Security
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
body | Object | Object that contains allowed http origins |
Promise
List the allowed HTTP origins from which Stitch should allow requests.
Kind: instance method of Security
Returns: Promise
- - promise which resolves on success and rejects on error
Promise
Send a confirmation email.
Kind: instance method of Email
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
string | Email address. |
Promise
Confirm a pending user.
Kind: instance method of Email
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
string | Email address. |
Promise
Re-runs a pending user’s confirmation workflow.
Kind: instance method of Email
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
string | Email address. |
Promise
Creates the webhook
Kind: instance method of Webhook
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
body | Object | Object that contains stitch webhooks details. |
Promise
Updates the webhook
Kind: instance method of Webhook
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
webhookId | string | Service Id. |
body | Object | Object that contains stitch webhook details. |
Promise
Returns all webhooks
Kind: instance method of Webhook
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
Promise
Returns single webhook as per webhook Id
Kind: instance method of Webhook
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
webhookId | string | webhook Id |
Promise
Deletes single webhook as per webhook Id
Kind: instance method of Webhook
Returns: Promise
- - promise which resolves on success and rejects on error
Param | Type | Description |
---|---|---|
serviceId | string | service id |
webhookId | string | webhook Id |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More