Spaces:
Runtime error
Runtime error
Added node.js AI Mastering module
#21
by isururana - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
- .gitattributes +2 -0
- masteringModule/.gitignore +81 -0
- masteringModule/main.js +85 -0
- masteringModule/node_modules/.bin/mime +3 -0
- masteringModule/node_modules/.bin/mime.cmd +3 -0
- masteringModule/node_modules/.bin/mime.ps1 +3 -0
- masteringModule/node_modules/.package-lock.json +303 -0
- masteringModule/node_modules/aimastering/.idea/aimastering-js.iml +9 -0
- masteringModule/node_modules/aimastering/.idea/misc.xml +6 -0
- masteringModule/node_modules/aimastering/.idea/modules.xml +8 -0
- masteringModule/node_modules/aimastering/.idea/vcs.xml +6 -0
- masteringModule/node_modules/aimastering/.idea/workspace.xml +51 -0
- masteringModule/node_modules/aimastering/.swagger-codegen-ignore +23 -0
- masteringModule/node_modules/aimastering/.swagger-codegen/VERSION +1 -0
- masteringModule/node_modules/aimastering/.travis.yml +7 -0
- masteringModule/node_modules/aimastering/README.md +222 -0
- masteringModule/node_modules/aimastering/docs/AccessToken.md +8 -0
- masteringModule/node_modules/aimastering/docs/AccessTokenApi.md +54 -0
- masteringModule/node_modules/aimastering/docs/AmazonSubscription.md +23 -0
- masteringModule/node_modules/aimastering/docs/AmazonSubscriptionApi.md +54 -0
- masteringModule/node_modules/aimastering/docs/AnonymizedMastering.md +107 -0
- masteringModule/node_modules/aimastering/docs/Audio.md +33 -0
- masteringModule/node_modules/aimastering/docs/AudioAnalysis.md +10 -0
- masteringModule/node_modules/aimastering/docs/AudioApi.md +369 -0
- masteringModule/node_modules/aimastering/docs/AudioDownloadToken.md +9 -0
- masteringModule/node_modules/aimastering/docs/Config.md +11 -0
- masteringModule/node_modules/aimastering/docs/ConfigApi.md +54 -0
- masteringModule/node_modules/aimastering/docs/ConfigAuth0.md +10 -0
- masteringModule/node_modules/aimastering/docs/ConfigPaypal.md +9 -0
- masteringModule/node_modules/aimastering/docs/ConfigStripe.md +8 -0
- masteringModule/node_modules/aimastering/docs/ConfigVersion.md +8 -0
- masteringModule/node_modules/aimastering/docs/ExternalSearchApi.md +63 -0
- masteringModule/node_modules/aimastering/docs/ExternalSearchResult.md +9 -0
- masteringModule/node_modules/aimastering/docs/ExternalSearchResultItunes.md +18 -0
- masteringModule/node_modules/aimastering/docs/ExternalSearchResultYoutube.md +15 -0
- masteringModule/node_modules/aimastering/docs/GroupBuyStatistics.md +8 -0
- masteringModule/node_modules/aimastering/docs/JWT.md +7 -0
- masteringModule/node_modules/aimastering/docs/Kpi.md +7 -0
- masteringModule/node_modules/aimastering/docs/LibraryAudio.md +42 -0
- masteringModule/node_modules/aimastering/docs/LibraryAudioAnalysis.md +10 -0
- masteringModule/node_modules/aimastering/docs/LibraryAudioApi.md +371 -0
- masteringModule/node_modules/aimastering/docs/LibraryAudioLike.md +10 -0
- masteringModule/node_modules/aimastering/docs/Mastering.md +150 -0
- masteringModule/node_modules/aimastering/docs/MasteringApi.md +594 -0
- masteringModule/node_modules/aimastering/docs/Payment.md +25 -0
- masteringModule/node_modules/aimastering/docs/PaymentApi.md +220 -0
- masteringModule/node_modules/aimastering/docs/PaymentCustomer.md +11 -0
- masteringModule/node_modules/aimastering/docs/PaymentCustomerApi.md +54 -0
- masteringModule/node_modules/aimastering/docs/Plan.md +32 -0
- masteringModule/node_modules/aimastering/docs/PlanApi.md +54 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
video/test_video.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
video/test_video.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
masteringModule/output.wav filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
masteringModule/test.wav filter=lfs diff=lfs merge=lfs -text
|
masteringModule/.gitignore
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by https://www.gitignore.io/api/node
|
| 2 |
+
|
| 3 |
+
### Node ###
|
| 4 |
+
# Logs
|
| 5 |
+
logs
|
| 6 |
+
*.log
|
| 7 |
+
npm-debug.log*
|
| 8 |
+
yarn-debug.log*
|
| 9 |
+
yarn-error.log*
|
| 10 |
+
|
| 11 |
+
# Runtime data
|
| 12 |
+
pids
|
| 13 |
+
*.pid
|
| 14 |
+
*.seed
|
| 15 |
+
*.pid.lock
|
| 16 |
+
|
| 17 |
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
| 18 |
+
lib-cov
|
| 19 |
+
|
| 20 |
+
# Coverage directory used by tools like istanbul
|
| 21 |
+
coverage
|
| 22 |
+
|
| 23 |
+
# nyc test coverage
|
| 24 |
+
.nyc_output
|
| 25 |
+
|
| 26 |
+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
| 27 |
+
.grunt
|
| 28 |
+
|
| 29 |
+
# Bower dependency directory (https://bower.io/)
|
| 30 |
+
bower_components
|
| 31 |
+
|
| 32 |
+
# node-waf configuration
|
| 33 |
+
.lock-wscript
|
| 34 |
+
|
| 35 |
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
| 36 |
+
build/Release
|
| 37 |
+
|
| 38 |
+
# Dependency directories
|
| 39 |
+
node_modules/
|
| 40 |
+
jspm_packages/
|
| 41 |
+
|
| 42 |
+
# TypeScript v1 declaration files
|
| 43 |
+
typings/
|
| 44 |
+
|
| 45 |
+
# Optional npm cache directory
|
| 46 |
+
.npm
|
| 47 |
+
|
| 48 |
+
# Optional eslint cache
|
| 49 |
+
.eslintcache
|
| 50 |
+
|
| 51 |
+
# Optional REPL history
|
| 52 |
+
.node_repl_history
|
| 53 |
+
|
| 54 |
+
# Output of 'npm pack'
|
| 55 |
+
*.tgz
|
| 56 |
+
|
| 57 |
+
# Yarn Integrity file
|
| 58 |
+
.yarn-integrity
|
| 59 |
+
|
| 60 |
+
# dotenv environment variables file
|
| 61 |
+
.env
|
| 62 |
+
|
| 63 |
+
# parcel-bundler cache (https://parceljs.org/)
|
| 64 |
+
.cache
|
| 65 |
+
|
| 66 |
+
# next.js build output
|
| 67 |
+
.next
|
| 68 |
+
|
| 69 |
+
# nuxt.js build output
|
| 70 |
+
.nuxt
|
| 71 |
+
|
| 72 |
+
# vuepress build output
|
| 73 |
+
.vuepress/dist
|
| 74 |
+
|
| 75 |
+
# Serverless directories
|
| 76 |
+
.serverless
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
# End of https://www.gitignore.io/api/node
|
| 80 |
+
|
| 81 |
+
/output.wav
|
masteringModule/main.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const fs = require("fs");
|
| 2 |
+
const _ = require("lodash");
|
| 3 |
+
const Aimastering = require('aimastering');
|
| 4 |
+
const program = require('commander');
|
| 5 |
+
const srs = require('secure-random-string');
|
| 6 |
+
|
| 7 |
+
// parse command line arguments
|
| 8 |
+
program
|
| 9 |
+
.option('-i, --input <s>', 'Input audio file path')
|
| 10 |
+
.option('-o, --output <s>', 'Output audio file path')
|
| 11 |
+
.parse(process.argv);
|
| 12 |
+
if (program.input.length === 0) {
|
| 13 |
+
program.help();
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
// Call API with promise interface
|
| 17 |
+
const callApiDeferred = async function (api, method) {
|
| 18 |
+
const apiArgments = Array.prototype.slice.call(arguments, 2);
|
| 19 |
+
|
| 20 |
+
return new Promise((resolve, reject) => {
|
| 21 |
+
const callback = (error, data, response) => {
|
| 22 |
+
if (error) {
|
| 23 |
+
reject(error, response);
|
| 24 |
+
} else {
|
| 25 |
+
resolve(data, response);
|
| 26 |
+
}
|
| 27 |
+
};
|
| 28 |
+
const args = _.flatten([
|
| 29 |
+
apiArgments,
|
| 30 |
+
callback
|
| 31 |
+
]);
|
| 32 |
+
|
| 33 |
+
method.apply(api, args);
|
| 34 |
+
});
|
| 35 |
+
};
|
| 36 |
+
|
| 37 |
+
const sleep = async function (ms) {
|
| 38 |
+
return new Promise((resolve) => {
|
| 39 |
+
setTimeout(resolve, ms);
|
| 40 |
+
});
|
| 41 |
+
};
|
| 42 |
+
|
| 43 |
+
const main = async function () {
|
| 44 |
+
// configure API client
|
| 45 |
+
const client = Aimastering.ApiClient.instance;
|
| 46 |
+
const bearer = client.authentications['bearer'];
|
| 47 |
+
// bearer.apiKey = process.env.AIMASTERING_ACCESS_TOKEN;
|
| 48 |
+
|
| 49 |
+
// API key must be 'guest_' + [arbitrary string]
|
| 50 |
+
// Unless the API key is leaked, the data will not be visible to others.
|
| 51 |
+
bearer.apiKey = 'guest_' + srs({length: 32})
|
| 52 |
+
|
| 53 |
+
// create api
|
| 54 |
+
const audioApi = new Aimastering.AudioApi(client);
|
| 55 |
+
const masteringApi = new Aimastering.MasteringApi(client);
|
| 56 |
+
|
| 57 |
+
// upload input audio
|
| 58 |
+
const inputAudioData = fs.createReadStream(program.input);
|
| 59 |
+
const inputAudio = await callApiDeferred(audioApi, audioApi.createAudio, {
|
| 60 |
+
'file': inputAudioData,
|
| 61 |
+
});
|
| 62 |
+
console.error(inputAudio);
|
| 63 |
+
|
| 64 |
+
// start mastering
|
| 65 |
+
let mastering = await callApiDeferred(masteringApi, masteringApi.createMastering, inputAudio.id, {
|
| 66 |
+
'mode': 'default',
|
| 67 |
+
});
|
| 68 |
+
console.error(mastering);
|
| 69 |
+
|
| 70 |
+
// wait for the mastering completion
|
| 71 |
+
while (mastering.status === 'waiting' || mastering.status === 'processing') {
|
| 72 |
+
mastering = await callApiDeferred(masteringApi, masteringApi.getMastering, mastering.id);
|
| 73 |
+
console.error('waiting for the mastering completion progression: '
|
| 74 |
+
+ (100 * mastering.progression).toFixed() + '%');
|
| 75 |
+
await sleep(5000);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
// download output audio
|
| 79 |
+
const outputAudioData = await callApiDeferred(audioApi, audioApi.downloadAudio, mastering.output_audio_id);
|
| 80 |
+
fs.writeFileSync(program.output, outputAudioData);
|
| 81 |
+
|
| 82 |
+
console.error('the output file was written to ' + program.output);
|
| 83 |
+
};
|
| 84 |
+
|
| 85 |
+
main();
|
masteringModule/node_modules/.bin/mime
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35c181f94e140d910d2bf4c5c4a2cb084cf76b19a2e6aff6b4b9e93dbe6f3c32
|
| 3 |
+
size 290
|
masteringModule/node_modules/.bin/mime.cmd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd5ca2f059e780c0a4b1aa9cdd6edc7dc10413d30bf51ad537adbd428e5e7a16
|
| 3 |
+
size 316
|
masteringModule/node_modules/.bin/mime.ps1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a43d8b7d57dbbb21f2f98c331970d011177fa1c6be327aa0dbb84c1ad01e9201
|
| 3 |
+
size 769
|
masteringModule/node_modules/.package-lock.json
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "tutorial-node",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"node_modules/aimastering": {
|
| 8 |
+
"version": "1.1.0",
|
| 9 |
+
"resolved": "https://registry.npmjs.org/aimastering/-/aimastering-1.1.0.tgz",
|
| 10 |
+
"integrity": "sha512-cxHG3nGu5E3wUDLJ8veQXSby0yVV0ZkapYrC44HC+LPmqTxbB/58w+b/uQ3i/EJQqr8JS6kVhZ6nqOUbuuJBhw==",
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"superagent": "3.5.2"
|
| 13 |
+
}
|
| 14 |
+
},
|
| 15 |
+
"node_modules/asynckit": {
|
| 16 |
+
"version": "0.4.0",
|
| 17 |
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
| 18 |
+
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
| 19 |
+
},
|
| 20 |
+
"node_modules/call-bind": {
|
| 21 |
+
"version": "1.0.2",
|
| 22 |
+
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
| 23 |
+
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
| 24 |
+
"dependencies": {
|
| 25 |
+
"function-bind": "^1.1.1",
|
| 26 |
+
"get-intrinsic": "^1.0.2"
|
| 27 |
+
},
|
| 28 |
+
"funding": {
|
| 29 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"node_modules/combined-stream": {
|
| 33 |
+
"version": "1.0.8",
|
| 34 |
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
| 35 |
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
| 36 |
+
"dependencies": {
|
| 37 |
+
"delayed-stream": "~1.0.0"
|
| 38 |
+
},
|
| 39 |
+
"engines": {
|
| 40 |
+
"node": ">= 0.8"
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"node_modules/commander": {
|
| 44 |
+
"version": "2.17.1",
|
| 45 |
+
"resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
|
| 46 |
+
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg=="
|
| 47 |
+
},
|
| 48 |
+
"node_modules/component-emitter": {
|
| 49 |
+
"version": "1.3.0",
|
| 50 |
+
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
| 51 |
+
"integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
|
| 52 |
+
},
|
| 53 |
+
"node_modules/cookiejar": {
|
| 54 |
+
"version": "2.1.2",
|
| 55 |
+
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz",
|
| 56 |
+
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA=="
|
| 57 |
+
},
|
| 58 |
+
"node_modules/core-util-is": {
|
| 59 |
+
"version": "1.0.2",
|
| 60 |
+
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
| 61 |
+
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
|
| 62 |
+
},
|
| 63 |
+
"node_modules/debug": {
|
| 64 |
+
"version": "2.6.9",
|
| 65 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 66 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 67 |
+
"dependencies": {
|
| 68 |
+
"ms": "2.0.0"
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"node_modules/delayed-stream": {
|
| 72 |
+
"version": "1.0.0",
|
| 73 |
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
| 74 |
+
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
|
| 75 |
+
"engines": {
|
| 76 |
+
"node": ">=0.4.0"
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"node_modules/extend": {
|
| 80 |
+
"version": "3.0.2",
|
| 81 |
+
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
|
| 82 |
+
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
|
| 83 |
+
},
|
| 84 |
+
"node_modules/form-data": {
|
| 85 |
+
"version": "2.5.1",
|
| 86 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
|
| 87 |
+
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
|
| 88 |
+
"dependencies": {
|
| 89 |
+
"asynckit": "^0.4.0",
|
| 90 |
+
"combined-stream": "^1.0.6",
|
| 91 |
+
"mime-types": "^2.1.12"
|
| 92 |
+
},
|
| 93 |
+
"engines": {
|
| 94 |
+
"node": ">= 0.12"
|
| 95 |
+
}
|
| 96 |
+
},
|
| 97 |
+
"node_modules/formidable": {
|
| 98 |
+
"version": "1.2.2",
|
| 99 |
+
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.2.tgz",
|
| 100 |
+
"integrity": "sha512-V8gLm+41I/8kguQ4/o1D3RIHRmhYFG4pnNyonvua+40rqcEmT4+V71yaZ3B457xbbgCsCfjSPi65u/W6vK1U5Q==",
|
| 101 |
+
"deprecated": "Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau",
|
| 102 |
+
"funding": {
|
| 103 |
+
"url": "https://ko-fi.com/tunnckoCore/commissions"
|
| 104 |
+
}
|
| 105 |
+
},
|
| 106 |
+
"node_modules/function-bind": {
|
| 107 |
+
"version": "1.1.1",
|
| 108 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
| 109 |
+
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
|
| 110 |
+
},
|
| 111 |
+
"node_modules/get-intrinsic": {
|
| 112 |
+
"version": "1.1.1",
|
| 113 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
|
| 114 |
+
"integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
|
| 115 |
+
"dependencies": {
|
| 116 |
+
"function-bind": "^1.1.1",
|
| 117 |
+
"has": "^1.0.3",
|
| 118 |
+
"has-symbols": "^1.0.1"
|
| 119 |
+
},
|
| 120 |
+
"funding": {
|
| 121 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"node_modules/has": {
|
| 125 |
+
"version": "1.0.3",
|
| 126 |
+
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
| 127 |
+
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
| 128 |
+
"dependencies": {
|
| 129 |
+
"function-bind": "^1.1.1"
|
| 130 |
+
},
|
| 131 |
+
"engines": {
|
| 132 |
+
"node": ">= 0.4.0"
|
| 133 |
+
}
|
| 134 |
+
},
|
| 135 |
+
"node_modules/has-symbols": {
|
| 136 |
+
"version": "1.0.2",
|
| 137 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
|
| 138 |
+
"integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==",
|
| 139 |
+
"engines": {
|
| 140 |
+
"node": ">= 0.4"
|
| 141 |
+
},
|
| 142 |
+
"funding": {
|
| 143 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
"node_modules/inherits": {
|
| 147 |
+
"version": "2.0.4",
|
| 148 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 149 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
| 150 |
+
},
|
| 151 |
+
"node_modules/isarray": {
|
| 152 |
+
"version": "1.0.0",
|
| 153 |
+
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
| 154 |
+
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
| 155 |
+
},
|
| 156 |
+
"node_modules/lodash": {
|
| 157 |
+
"version": "4.17.21",
|
| 158 |
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 159 |
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
| 160 |
+
},
|
| 161 |
+
"node_modules/methods": {
|
| 162 |
+
"version": "1.1.2",
|
| 163 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 164 |
+
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
|
| 165 |
+
"engines": {
|
| 166 |
+
"node": ">= 0.6"
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
"node_modules/mime": {
|
| 170 |
+
"version": "1.6.0",
|
| 171 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 172 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 173 |
+
"bin": {
|
| 174 |
+
"mime": "cli.js"
|
| 175 |
+
},
|
| 176 |
+
"engines": {
|
| 177 |
+
"node": ">=4"
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
+
"node_modules/mime-db": {
|
| 181 |
+
"version": "1.49.0",
|
| 182 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz",
|
| 183 |
+
"integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==",
|
| 184 |
+
"engines": {
|
| 185 |
+
"node": ">= 0.6"
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"node_modules/mime-types": {
|
| 189 |
+
"version": "2.1.32",
|
| 190 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz",
|
| 191 |
+
"integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==",
|
| 192 |
+
"dependencies": {
|
| 193 |
+
"mime-db": "1.49.0"
|
| 194 |
+
},
|
| 195 |
+
"engines": {
|
| 196 |
+
"node": ">= 0.6"
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
"node_modules/ms": {
|
| 200 |
+
"version": "2.0.0",
|
| 201 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 202 |
+
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
| 203 |
+
},
|
| 204 |
+
"node_modules/object-inspect": {
|
| 205 |
+
"version": "1.11.0",
|
| 206 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz",
|
| 207 |
+
"integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==",
|
| 208 |
+
"funding": {
|
| 209 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 210 |
+
}
|
| 211 |
+
},
|
| 212 |
+
"node_modules/process-nextick-args": {
|
| 213 |
+
"version": "2.0.1",
|
| 214 |
+
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
| 215 |
+
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
| 216 |
+
},
|
| 217 |
+
"node_modules/qs": {
|
| 218 |
+
"version": "6.10.1",
|
| 219 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.10.1.tgz",
|
| 220 |
+
"integrity": "sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==",
|
| 221 |
+
"dependencies": {
|
| 222 |
+
"side-channel": "^1.0.4"
|
| 223 |
+
},
|
| 224 |
+
"engines": {
|
| 225 |
+
"node": ">=0.6"
|
| 226 |
+
},
|
| 227 |
+
"funding": {
|
| 228 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"node_modules/readable-stream": {
|
| 232 |
+
"version": "2.3.7",
|
| 233 |
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
| 234 |
+
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
| 235 |
+
"dependencies": {
|
| 236 |
+
"core-util-is": "~1.0.0",
|
| 237 |
+
"inherits": "~2.0.3",
|
| 238 |
+
"isarray": "~1.0.0",
|
| 239 |
+
"process-nextick-args": "~2.0.0",
|
| 240 |
+
"safe-buffer": "~5.1.1",
|
| 241 |
+
"string_decoder": "~1.1.1",
|
| 242 |
+
"util-deprecate": "~1.0.1"
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
"node_modules/safe-buffer": {
|
| 246 |
+
"version": "5.1.2",
|
| 247 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
| 248 |
+
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
| 249 |
+
},
|
| 250 |
+
"node_modules/secure-random-string": {
|
| 251 |
+
"version": "1.1.3",
|
| 252 |
+
"resolved": "https://registry.npmjs.org/secure-random-string/-/secure-random-string-1.1.3.tgz",
|
| 253 |
+
"integrity": "sha512-298HxkJJp5mjpPhxDsN26S/2JmMaUIrQ4PxDI/F4fXKRBTOKendQ5i6JCkc+a8F8koLh0vdfwSCw8+RJkY7N6A=="
|
| 254 |
+
},
|
| 255 |
+
"node_modules/side-channel": {
|
| 256 |
+
"version": "1.0.4",
|
| 257 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
| 258 |
+
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
| 259 |
+
"dependencies": {
|
| 260 |
+
"call-bind": "^1.0.0",
|
| 261 |
+
"get-intrinsic": "^1.0.2",
|
| 262 |
+
"object-inspect": "^1.9.0"
|
| 263 |
+
},
|
| 264 |
+
"funding": {
|
| 265 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 266 |
+
}
|
| 267 |
+
},
|
| 268 |
+
"node_modules/string_decoder": {
|
| 269 |
+
"version": "1.1.1",
|
| 270 |
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
| 271 |
+
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
| 272 |
+
"dependencies": {
|
| 273 |
+
"safe-buffer": "~5.1.0"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"node_modules/superagent": {
|
| 277 |
+
"version": "3.5.2",
|
| 278 |
+
"resolved": "https://registry.npmjs.org/superagent/-/superagent-3.5.2.tgz",
|
| 279 |
+
"integrity": "sha1-M2GjlxVnUEw1EGOr6q4PqiPb8/g=",
|
| 280 |
+
"deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.",
|
| 281 |
+
"dependencies": {
|
| 282 |
+
"component-emitter": "^1.2.0",
|
| 283 |
+
"cookiejar": "^2.0.6",
|
| 284 |
+
"debug": "^2.2.0",
|
| 285 |
+
"extend": "^3.0.0",
|
| 286 |
+
"form-data": "^2.1.1",
|
| 287 |
+
"formidable": "^1.1.1",
|
| 288 |
+
"methods": "^1.1.1",
|
| 289 |
+
"mime": "^1.3.4",
|
| 290 |
+
"qs": "^6.1.0",
|
| 291 |
+
"readable-stream": "^2.0.5"
|
| 292 |
+
},
|
| 293 |
+
"engines": {
|
| 294 |
+
"node": ">= 0.12"
|
| 295 |
+
}
|
| 296 |
+
},
|
| 297 |
+
"node_modules/util-deprecate": {
|
| 298 |
+
"version": "1.0.2",
|
| 299 |
+
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
| 300 |
+
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
|
| 301 |
+
}
|
| 302 |
+
}
|
| 303 |
+
}
|
masteringModule/node_modules/aimastering/.idea/aimastering-js.iml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<module type="JAVA_MODULE" version="4">
|
| 3 |
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
| 4 |
+
<exclude-output />
|
| 5 |
+
<content url="file://$MODULE_DIR$" />
|
| 6 |
+
<orderEntry type="inheritedJdk" />
|
| 7 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
| 8 |
+
</component>
|
| 9 |
+
</module>
|
masteringModule/node_modules/aimastering/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="JavaScriptSettings">
|
| 4 |
+
<option name="languageLevel" value="ES6" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
masteringModule/node_modules/aimastering/.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectModuleManager">
|
| 4 |
+
<modules>
|
| 5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/aimastering-js.iml" filepath="$PROJECT_DIR$/.idea/aimastering-js.iml" />
|
| 6 |
+
</modules>
|
| 7 |
+
</component>
|
| 8 |
+
</project>
|
masteringModule/node_modules/aimastering/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="VcsDirectoryMappings">
|
| 4 |
+
<mapping directory="" vcs="Git" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
masteringModule/node_modules/aimastering/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ChangeListManager">
|
| 4 |
+
<list default="true" id="aa8c9a03-b831-4f5c-b8ab-ec91a4d12348" name="Default Changelist" comment="" />
|
| 5 |
+
<option name="SHOW_DIALOG" value="false" />
|
| 6 |
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
| 7 |
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
| 8 |
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
| 9 |
+
</component>
|
| 10 |
+
<component name="ComposerSettings">
|
| 11 |
+
<execution>
|
| 12 |
+
<executable />
|
| 13 |
+
</execution>
|
| 14 |
+
</component>
|
| 15 |
+
<component name="Git.Settings">
|
| 16 |
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
| 17 |
+
</component>
|
| 18 |
+
<component name="ProjectId" id="1wvCpQUVTa7VyIrQ3sYp9Lp0Oau" />
|
| 19 |
+
<component name="ProjectViewState">
|
| 20 |
+
<option name="hideEmptyMiddlePackages" value="true" />
|
| 21 |
+
<option name="showExcludedFiles" value="true" />
|
| 22 |
+
<option name="showLibraryContents" value="true" />
|
| 23 |
+
</component>
|
| 24 |
+
<component name="PropertiesComponent">
|
| 25 |
+
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
| 26 |
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
| 27 |
+
<property name="aspect.path.notification.shown" value="true" />
|
| 28 |
+
<property name="go.import.settings.migrated" value="true" />
|
| 29 |
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
| 30 |
+
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
| 31 |
+
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
| 32 |
+
<property name="nodejs_package_manager_path" value="npm" />
|
| 33 |
+
</component>
|
| 34 |
+
<component name="SvnConfiguration">
|
| 35 |
+
<configuration />
|
| 36 |
+
</component>
|
| 37 |
+
<component name="TaskManager">
|
| 38 |
+
<task active="true" id="Default" summary="Default task">
|
| 39 |
+
<changelist id="aa8c9a03-b831-4f5c-b8ab-ec91a4d12348" name="Default Changelist" comment="" />
|
| 40 |
+
<created>1629329857311</created>
|
| 41 |
+
<option name="number" value="Default" />
|
| 42 |
+
<option name="presentableId" value="Default" />
|
| 43 |
+
<updated>1629329857311</updated>
|
| 44 |
+
<workItem from="1629329860012" duration="576000" />
|
| 45 |
+
</task>
|
| 46 |
+
<servers />
|
| 47 |
+
</component>
|
| 48 |
+
<component name="TypeScriptGeneratedFilesManager">
|
| 49 |
+
<option name="version" value="1" />
|
| 50 |
+
</component>
|
| 51 |
+
</project>
|
masteringModule/node_modules/aimastering/.swagger-codegen-ignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Swagger Codegen Ignore
|
| 2 |
+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
| 3 |
+
|
| 4 |
+
# Use this file to prevent files from being overwritten by the generator.
|
| 5 |
+
# The patterns follow closely to .gitignore or .dockerignore.
|
| 6 |
+
|
| 7 |
+
# As an example, the C# client generator defines ApiClient.cs.
|
| 8 |
+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
| 9 |
+
#ApiClient.cs
|
| 10 |
+
|
| 11 |
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
| 12 |
+
#foo/*/qux
|
| 13 |
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
| 14 |
+
|
| 15 |
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
| 16 |
+
#foo/**/qux
|
| 17 |
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
| 18 |
+
|
| 19 |
+
# You can also negate patterns with an exclamation (!).
|
| 20 |
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
| 21 |
+
#docs/*.md
|
| 22 |
+
# Then explicitly reverse the ignore rule for a single file:
|
| 23 |
+
#!docs/README.md
|
masteringModule/node_modules/aimastering/.swagger-codegen/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2.3.1
|
masteringModule/node_modules/aimastering/.travis.yml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
language: node_js
|
| 2 |
+
node_js:
|
| 3 |
+
- "6"
|
| 4 |
+
- "6.1"
|
| 5 |
+
- "5"
|
| 6 |
+
- "5.11"
|
| 7 |
+
|
masteringModule/node_modules/aimastering/README.md
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# aimastering
|
| 2 |
+
|
| 3 |
+
Aimastering - JavaScript client for aimastering
|
| 4 |
+
This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
|
| 5 |
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
| 6 |
+
|
| 7 |
+
- API version: 1.0.0
|
| 8 |
+
- Package version: 1.1.0
|
| 9 |
+
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
|
| 10 |
+
|
| 11 |
+
## Installation
|
| 12 |
+
|
| 13 |
+
### For [Node.js](https://nodejs.org/)
|
| 14 |
+
|
| 15 |
+
#### npm
|
| 16 |
+
|
| 17 |
+
To publish the library as a [npm](https://www.npmjs.com/),
|
| 18 |
+
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
| 19 |
+
|
| 20 |
+
Then install it via:
|
| 21 |
+
|
| 22 |
+
```shell
|
| 23 |
+
npm install aimastering --save
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
##### Local development
|
| 27 |
+
|
| 28 |
+
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
|
| 29 |
+
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
|
| 30 |
+
|
| 31 |
+
```shell
|
| 32 |
+
npm install
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:
|
| 36 |
+
|
| 37 |
+
```shell
|
| 38 |
+
npm link
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Finally, switch to the directory you want to use your aimastering from, and run:
|
| 42 |
+
|
| 43 |
+
```shell
|
| 44 |
+
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
You should now be able to `require('aimastering')` in javascript files from the directory you ran the last
|
| 48 |
+
command above from.
|
| 49 |
+
|
| 50 |
+
#### git
|
| 51 |
+
#
|
| 52 |
+
If the library is hosted at a git repository, e.g.
|
| 53 |
+
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
| 54 |
+
then install it via:
|
| 55 |
+
|
| 56 |
+
```shell
|
| 57 |
+
npm install GIT_USER_ID/GIT_REPO_ID --save
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
### For browser
|
| 61 |
+
|
| 62 |
+
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
|
| 63 |
+
the above steps with Node.js and installing browserify with `npm install -g browserify`,
|
| 64 |
+
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually
|
| 65 |
+
use this library):
|
| 66 |
+
|
| 67 |
+
```shell
|
| 68 |
+
browserify main.js > bundle.js
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Then include *bundle.js* in the HTML pages.
|
| 72 |
+
|
| 73 |
+
### Webpack Configuration
|
| 74 |
+
|
| 75 |
+
Using Webpack you may encounter the following error: "Module not found: Error:
|
| 76 |
+
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
| 77 |
+
the following section to your webpack config:
|
| 78 |
+
|
| 79 |
+
```javascript
|
| 80 |
+
module: {
|
| 81 |
+
rules: [
|
| 82 |
+
{
|
| 83 |
+
parser: {
|
| 84 |
+
amd: false
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## Getting Started
|
| 92 |
+
|
| 93 |
+
Please follow the [installation](#installation) instruction and execute the following JS code:
|
| 94 |
+
|
| 95 |
+
```javascript
|
| 96 |
+
var Aimastering = require('aimastering');
|
| 97 |
+
|
| 98 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 99 |
+
|
| 100 |
+
// Configure API key authorization: bearer
|
| 101 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 102 |
+
bearer.apiKey = "YOUR API KEY"
|
| 103 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 104 |
+
//bearer.apiKeyPrefix['Authorization'] = "Token"
|
| 105 |
+
|
| 106 |
+
var api = new Aimastering.AccessTokenApi()
|
| 107 |
+
|
| 108 |
+
var callback = function(error, data, response) {
|
| 109 |
+
if (error) {
|
| 110 |
+
console.error(error);
|
| 111 |
+
} else {
|
| 112 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 113 |
+
}
|
| 114 |
+
};
|
| 115 |
+
api.createAccessToken(callback);
|
| 116 |
+
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## Documentation for API Endpoints
|
| 120 |
+
|
| 121 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 122 |
+
|
| 123 |
+
Class | Method | HTTP request | Description
|
| 124 |
+
------------ | ------------- | ------------- | -------------
|
| 125 |
+
*Aimastering.AccessTokenApi* | [**createAccessToken**](docs/AccessTokenApi.md#createAccessToken) | **POST** /access_tokens | Create an API access token.
|
| 126 |
+
*Aimastering.AmazonSubscriptionApi* | [**listAmazonSubscriptions**](docs/AmazonSubscriptionApi.md#listAmazonSubscriptions) | **GET** /amazon_subscriptions | Get all accessable amazon subscriptions.
|
| 127 |
+
*Aimastering.AudioApi* | [**createAudio**](docs/AudioApi.md#createAudio) | **POST** /audios | Create a new audio.
|
| 128 |
+
*Aimastering.AudioApi* | [**downloadAudio**](docs/AudioApi.md#downloadAudio) | **GET** /audios/{id}/download | Download an audio data by id.
|
| 129 |
+
*Aimastering.AudioApi* | [**downloadAudioByToken**](docs/AudioApi.md#downloadAudioByToken) | **GET** /audios/download_by_token | Download an audio data by audio_download_token.
|
| 130 |
+
*Aimastering.AudioApi* | [**getAudio**](docs/AudioApi.md#getAudio) | **GET** /audios/{id} | Get an audio by id.
|
| 131 |
+
*Aimastering.AudioApi* | [**getAudioAnalysis**](docs/AudioApi.md#getAudioAnalysis) | **GET** /audios/{id}/analysis | Get an audio analysis by id.
|
| 132 |
+
*Aimastering.AudioApi* | [**getAudioDownloadToken**](docs/AudioApi.md#getAudioDownloadToken) | **GET** /audios/{id}/download_token | Get an audio download token by id.
|
| 133 |
+
*Aimastering.AudioApi* | [**listAudios**](docs/AudioApi.md#listAudios) | **GET** /audios | Get all audios accessable.
|
| 134 |
+
*Aimastering.ConfigApi* | [**getConfig**](docs/ConfigApi.md#getConfig) | **GET** /config | Get config.
|
| 135 |
+
*Aimastering.ExternalSearchApi* | [**searchExternal**](docs/ExternalSearchApi.md#searchExternal) | **GET** /external_search | Search external music and get name, url, thumbnails, etc.
|
| 136 |
+
*Aimastering.LibraryAudioApi* | [**createLibraryAudio**](docs/LibraryAudioApi.md#createLibraryAudio) | **POST** /library_audios | Create a new library audio.
|
| 137 |
+
*Aimastering.LibraryAudioApi* | [**createLibraryAudioLike**](docs/LibraryAudioApi.md#createLibraryAudioLike) | **POST** /library_audios/{id}/like | Create a new library audio like.
|
| 138 |
+
*Aimastering.LibraryAudioApi* | [**deleteLibraryAudio**](docs/LibraryAudioApi.md#deleteLibraryAudio) | **DELETE** /library_audios/{id} | Delete library audio.
|
| 139 |
+
*Aimastering.LibraryAudioApi* | [**getLibraryAudio**](docs/LibraryAudioApi.md#getLibraryAudio) | **GET** /library_audios/{id} | Get a library audio by id.
|
| 140 |
+
*Aimastering.LibraryAudioApi* | [**getLibraryAudioAnalysis**](docs/LibraryAudioApi.md#getLibraryAudioAnalysis) | **GET** /library_audios/{id}/analysis | Get a library audio analysis by id.
|
| 141 |
+
*Aimastering.LibraryAudioApi* | [**listLibraryAudios**](docs/LibraryAudioApi.md#listLibraryAudios) | **GET** /library_audios | Get all library audios accessable.
|
| 142 |
+
*Aimastering.LibraryAudioApi* | [**updateLibraryAudio**](docs/LibraryAudioApi.md#updateLibraryAudio) | **PUT** /library_audios/{id} | Update library audio.
|
| 143 |
+
*Aimastering.MasteringApi* | [**cancelMastering**](docs/MasteringApi.md#cancelMastering) | **PUT** /masterings/{id}/cancel | Cancel a mastering by id.
|
| 144 |
+
*Aimastering.MasteringApi* | [**createMastering**](docs/MasteringApi.md#createMastering) | **POST** /masterings | Create a new mastering.
|
| 145 |
+
*Aimastering.MasteringApi* | [**deleteMastering**](docs/MasteringApi.md#deleteMastering) | **DELETE** /masterings/{id} | Delete mastering.
|
| 146 |
+
*Aimastering.MasteringApi* | [**freeUnlockMastering**](docs/MasteringApi.md#freeUnlockMastering) | **PUT** /masterings/{id}/free_unlock | Free unlock a mastering by id.
|
| 147 |
+
*Aimastering.MasteringApi* | [**getMastering**](docs/MasteringApi.md#getMastering) | **GET** /masterings/{id} | Get a mastering by id.
|
| 148 |
+
*Aimastering.MasteringApi* | [**getMasteringUnlockProduct**](docs/MasteringApi.md#getMasteringUnlockProduct) | **GET** /masterings/{id}/unlock_product | Review a mastering by id.
|
| 149 |
+
*Aimastering.MasteringApi* | [**listMasterings**](docs/MasteringApi.md#listMasterings) | **GET** /masterings | Get all accessable masterings.
|
| 150 |
+
*Aimastering.MasteringApi* | [**publishMastering**](docs/MasteringApi.md#publishMastering) | **POST** /masterings/{id}/publish | Publish a mastering by id.
|
| 151 |
+
*Aimastering.MasteringApi* | [**reviewMastering**](docs/MasteringApi.md#reviewMastering) | **PUT** /masterings/{id}/review | Review a mastering by id.
|
| 152 |
+
*Aimastering.MasteringApi* | [**updateMastering**](docs/MasteringApi.md#updateMastering) | **PUT** /masterings/{id} | Update a mastering.
|
| 153 |
+
*Aimastering.PaymentApi* | [**createPayment**](docs/PaymentApi.md#createPayment) | **POST** /payments | Create a new payment.
|
| 154 |
+
*Aimastering.PaymentApi* | [**executePayment**](docs/PaymentApi.md#executePayment) | **PUT** /payments/{id}/execute | Execute a payment by id.
|
| 155 |
+
*Aimastering.PaymentApi* | [**getPayment**](docs/PaymentApi.md#getPayment) | **GET** /payments/{id} | Get a payment by id.
|
| 156 |
+
*Aimastering.PaymentApi* | [**listPayments**](docs/PaymentApi.md#listPayments) | **GET** /payments | Get all accessable payments.
|
| 157 |
+
*Aimastering.PaymentCustomerApi* | [**getDefaultPaymentCustomer**](docs/PaymentCustomerApi.md#getDefaultPaymentCustomer) | **GET** /payment_customers/default | Get a default payment customer.
|
| 158 |
+
*Aimastering.PlanApi* | [**listPlans**](docs/PlanApi.md#listPlans) | **GET** /plans | Get all accessable plans.
|
| 159 |
+
*Aimastering.SpSubscriptionApi* | [**createSpSubscription**](docs/SpSubscriptionApi.md#createSpSubscription) | **POST** /sp_subscriptions | Create a new smartphone subscription.
|
| 160 |
+
*Aimastering.SpSubscriptionApi* | [**listSpSubscriptions**](docs/SpSubscriptionApi.md#listSpSubscriptions) | **GET** /sp_subscriptions | Get all accessable smartphone subscriptions.
|
| 161 |
+
*Aimastering.StatisticsApi* | [**getGroupBuyStatistics**](docs/StatisticsApi.md#getGroupBuyStatistics) | **GET** /statistics/group_buy | Get group buy statistics.
|
| 162 |
+
*Aimastering.StatisticsApi* | [**listAnonymizedMasterings**](docs/StatisticsApi.md#listAnonymizedMasterings) | **GET** /statistics/anonymized_masterings | Get anonymized masterings.
|
| 163 |
+
*Aimastering.StatisticsApi* | [**listKpis**](docs/StatisticsApi.md#listKpis) | **GET** /statistics/kpis | Get KPIs.
|
| 164 |
+
*Aimastering.SubscriptionApi* | [**cancelSubscription**](docs/SubscriptionApi.md#cancelSubscription) | **PUT** /subscriptions/{id}/cancel | Cancel a subscription by id.
|
| 165 |
+
*Aimastering.SubscriptionApi* | [**cancelSubscriptionCancellation**](docs/SubscriptionApi.md#cancelSubscriptionCancellation) | **PUT** /subscriptions/{id}/cancel_cancellation | Cancel the subscription cancellation by id.
|
| 166 |
+
*Aimastering.SubscriptionApi* | [**createSubscription**](docs/SubscriptionApi.md#createSubscription) | **POST** /subscriptions | Create a new subscription.
|
| 167 |
+
*Aimastering.SubscriptionApi* | [**getSubscription**](docs/SubscriptionApi.md#getSubscription) | **GET** /subscriptions/{id} | Get a subscription by id.
|
| 168 |
+
*Aimastering.SubscriptionApi* | [**listSubscriptions**](docs/SubscriptionApi.md#listSubscriptions) | **GET** /subscriptions | Get all accessable subscriptions.
|
| 169 |
+
*Aimastering.UserApi* | [**getSelf**](docs/UserApi.md#getSelf) | **GET** /users/self | Get self user.
|
| 170 |
+
*Aimastering.UserApi* | [**notifyRegistration**](docs/UserApi.md#notifyRegistration) | **PUT** /users/self/notify_registration | Notify user is registered.
|
| 171 |
+
*Aimastering.UserApi* | [**sendInvitation**](docs/UserApi.md#sendInvitation) | **POST** /users/self/send_invitation | Send invitation.
|
| 172 |
+
*Aimastering.UserApi* | [**updateSelf**](docs/UserApi.md#updateSelf) | **PUT** /users/self | Update self user.
|
| 173 |
+
*Aimastering.VideoApi* | [**downloadVideo**](docs/VideoApi.md#downloadVideo) | **GET** /videos/{id}/download | Download an video data by id.
|
| 174 |
+
*Aimastering.VideoApi* | [**downloadVideoByToken**](docs/VideoApi.md#downloadVideoByToken) | **GET** /videos/download_by_token | Download an video data by video_download_token.
|
| 175 |
+
*Aimastering.VideoApi* | [**getVideo**](docs/VideoApi.md#getVideo) | **GET** /videos/{id} | Get an video by id.
|
| 176 |
+
*Aimastering.VideoApi* | [**getVideoDownloadToken**](docs/VideoApi.md#getVideoDownloadToken) | **GET** /videos/{id}/download_token | Get an video download token by id.
|
| 177 |
+
*Aimastering.VideoApi* | [**listVideos**](docs/VideoApi.md#listVideos) | **GET** /videos | Get all videos accessable.
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
## Documentation for Models
|
| 181 |
+
|
| 182 |
+
- [Aimastering.AccessToken](docs/AccessToken.md)
|
| 183 |
+
- [Aimastering.AmazonSubscription](docs/AmazonSubscription.md)
|
| 184 |
+
- [Aimastering.AnonymizedMastering](docs/AnonymizedMastering.md)
|
| 185 |
+
- [Aimastering.Audio](docs/Audio.md)
|
| 186 |
+
- [Aimastering.AudioAnalysis](docs/AudioAnalysis.md)
|
| 187 |
+
- [Aimastering.AudioDownloadToken](docs/AudioDownloadToken.md)
|
| 188 |
+
- [Aimastering.Config](docs/Config.md)
|
| 189 |
+
- [Aimastering.ConfigAuth0](docs/ConfigAuth0.md)
|
| 190 |
+
- [Aimastering.ConfigPaypal](docs/ConfigPaypal.md)
|
| 191 |
+
- [Aimastering.ConfigStripe](docs/ConfigStripe.md)
|
| 192 |
+
- [Aimastering.ConfigVersion](docs/ConfigVersion.md)
|
| 193 |
+
- [Aimastering.ExternalSearchResult](docs/ExternalSearchResult.md)
|
| 194 |
+
- [Aimastering.ExternalSearchResultItunes](docs/ExternalSearchResultItunes.md)
|
| 195 |
+
- [Aimastering.ExternalSearchResultYoutube](docs/ExternalSearchResultYoutube.md)
|
| 196 |
+
- [Aimastering.GroupBuyStatistics](docs/GroupBuyStatistics.md)
|
| 197 |
+
- [Aimastering.JWT](docs/JWT.md)
|
| 198 |
+
- [Aimastering.Kpi](docs/Kpi.md)
|
| 199 |
+
- [Aimastering.LibraryAudio](docs/LibraryAudio.md)
|
| 200 |
+
- [Aimastering.LibraryAudioAnalysis](docs/LibraryAudioAnalysis.md)
|
| 201 |
+
- [Aimastering.LibraryAudioLike](docs/LibraryAudioLike.md)
|
| 202 |
+
- [Aimastering.Mastering](docs/Mastering.md)
|
| 203 |
+
- [Aimastering.Payment](docs/Payment.md)
|
| 204 |
+
- [Aimastering.PaymentCustomer](docs/PaymentCustomer.md)
|
| 205 |
+
- [Aimastering.Plan](docs/Plan.md)
|
| 206 |
+
- [Aimastering.SpSubscription](docs/SpSubscription.md)
|
| 207 |
+
- [Aimastering.Subscription](docs/Subscription.md)
|
| 208 |
+
- [Aimastering.User](docs/User.md)
|
| 209 |
+
- [Aimastering.UserStatistics](docs/UserStatistics.md)
|
| 210 |
+
- [Aimastering.Video](docs/Video.md)
|
| 211 |
+
- [Aimastering.VideoDownloadToken](docs/VideoDownloadToken.md)
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
## Documentation for Authorization
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
### bearer
|
| 218 |
+
|
| 219 |
+
- **Type**: API key
|
| 220 |
+
- **API key parameter name**: Authorization
|
| 221 |
+
- **Location**: HTTP header
|
| 222 |
+
|
masteringModule/node_modules/aimastering/docs/AccessToken.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AccessToken
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**accessToken** | [**JWT**](JWT.md) | | [optional]
|
| 7 |
+
|
| 8 |
+
|
masteringModule/node_modules/aimastering/docs/AccessTokenApi.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AccessTokenApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**createAccessToken**](AccessTokenApi.md#createAccessToken) | **POST** /access_tokens | Create an API access token.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="createAccessToken"></a>
|
| 11 |
+
# **createAccessToken**
|
| 12 |
+
> AccessToken createAccessToken()
|
| 13 |
+
|
| 14 |
+
Create an API access token.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.AccessTokenApi();
|
| 28 |
+
|
| 29 |
+
var callback = function(error, data, response) {
|
| 30 |
+
if (error) {
|
| 31 |
+
console.error(error);
|
| 32 |
+
} else {
|
| 33 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
apiInstance.createAccessToken(callback);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### Parameters
|
| 40 |
+
This endpoint does not need any parameter.
|
| 41 |
+
|
| 42 |
+
### Return type
|
| 43 |
+
|
| 44 |
+
[**AccessToken**](AccessToken.md)
|
| 45 |
+
|
| 46 |
+
### Authorization
|
| 47 |
+
|
| 48 |
+
[bearer](../README.md#bearer)
|
| 49 |
+
|
| 50 |
+
### HTTP request headers
|
| 51 |
+
|
| 52 |
+
- **Content-Type**: Not defined
|
| 53 |
+
- **Accept**: application/json
|
| 54 |
+
|
masteringModule/node_modules/aimastering/docs/AmazonSubscription.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AmazonSubscription
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**userId** | **Number** | | [optional]
|
| 8 |
+
**status** | **String** | | [optional]
|
| 9 |
+
**createdAt** | **Date** | | [optional]
|
| 10 |
+
**updatedAt** | **Date** | | [optional]
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<a name="StatusEnum"></a>
|
| 14 |
+
## Enum: StatusEnum
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
* `active` (value: `"active"`)
|
| 18 |
+
|
| 19 |
+
* `deactivated` (value: `"deactivated"`)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
masteringModule/node_modules/aimastering/docs/AmazonSubscriptionApi.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AmazonSubscriptionApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**listAmazonSubscriptions**](AmazonSubscriptionApi.md#listAmazonSubscriptions) | **GET** /amazon_subscriptions | Get all accessable amazon subscriptions.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="listAmazonSubscriptions"></a>
|
| 11 |
+
# **listAmazonSubscriptions**
|
| 12 |
+
> [AmazonSubscription] listAmazonSubscriptions()
|
| 13 |
+
|
| 14 |
+
Get all accessable amazon subscriptions.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.AmazonSubscriptionApi();
|
| 28 |
+
|
| 29 |
+
var callback = function(error, data, response) {
|
| 30 |
+
if (error) {
|
| 31 |
+
console.error(error);
|
| 32 |
+
} else {
|
| 33 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
apiInstance.listAmazonSubscriptions(callback);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### Parameters
|
| 40 |
+
This endpoint does not need any parameter.
|
| 41 |
+
|
| 42 |
+
### Return type
|
| 43 |
+
|
| 44 |
+
[**[AmazonSubscription]**](AmazonSubscription.md)
|
| 45 |
+
|
| 46 |
+
### Authorization
|
| 47 |
+
|
| 48 |
+
[bearer](../README.md#bearer)
|
| 49 |
+
|
| 50 |
+
### HTTP request headers
|
| 51 |
+
|
| 52 |
+
- **Content-Type**: Not defined
|
| 53 |
+
- **Accept**: application/json
|
| 54 |
+
|
masteringModule/node_modules/aimastering/docs/AnonymizedMastering.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AnonymizedMastering
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**userId** | **String** | | [optional]
|
| 7 |
+
**userAuthProvider** | **String** | | [optional]
|
| 8 |
+
**mode** | **String** | | [optional]
|
| 9 |
+
**status** | **String** | | [optional]
|
| 10 |
+
**failureReason** | **String** | | [optional]
|
| 11 |
+
**targetLoudness** | **Number** | | [optional]
|
| 12 |
+
**outputFormat** | **String** | | [optional]
|
| 13 |
+
**preset** | **String** | | [optional]
|
| 14 |
+
**bitDepth** | **Number** | | [optional]
|
| 15 |
+
**sampleRate** | **Number** | | [optional]
|
| 16 |
+
**reviewScore** | **Number** | | [optional]
|
| 17 |
+
**masteringMatchingLevel** | **Number** | | [optional]
|
| 18 |
+
**mastering** | **Boolean** | | [optional]
|
| 19 |
+
**paid** | **Boolean** | | [optional]
|
| 20 |
+
**paymentService** | **String** | | [optional]
|
| 21 |
+
**retryCount** | **Number** | | [optional]
|
| 22 |
+
**masteringReverb** | **Boolean** | | [optional]
|
| 23 |
+
**masteringReverbGain** | **Number** | | [optional]
|
| 24 |
+
**lowCutFreq** | **Number** | | [optional]
|
| 25 |
+
**highCutFreq** | **Number** | | [optional]
|
| 26 |
+
**createdAt** | **Date** | | [optional]
|
| 27 |
+
**updatedAt** | **Date** | | [optional]
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
<a name="ModeEnum"></a>
|
| 31 |
+
## Enum: ModeEnum
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
* `default` (value: `"default"`)
|
| 35 |
+
|
| 36 |
+
* `custom` (value: `"custom"`)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a name="StatusEnum"></a>
|
| 42 |
+
## Enum: StatusEnum
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
* `waiting` (value: `"waiting"`)
|
| 46 |
+
|
| 47 |
+
* `processing` (value: `"processing"`)
|
| 48 |
+
|
| 49 |
+
* `canceled` (value: `"canceled"`)
|
| 50 |
+
|
| 51 |
+
* `failed` (value: `"failed"`)
|
| 52 |
+
|
| 53 |
+
* `succeeded` (value: `"succeeded"`)
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
<a name="FailureReasonEnum"></a>
|
| 59 |
+
## Enum: FailureReasonEnum
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
* `unknown` (value: `"unknown"`)
|
| 63 |
+
|
| 64 |
+
* `expired` (value: `"expired"`)
|
| 65 |
+
|
| 66 |
+
* `failed_to_prepare` (value: `"failed_to_prepare"`)
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
<a name="OutputFormatEnum"></a>
|
| 72 |
+
## Enum: OutputFormatEnum
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
* `wav` (value: `"wav"`)
|
| 76 |
+
|
| 77 |
+
* `mp3` (value: `"mp3"`)
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
<a name="PresetEnum"></a>
|
| 83 |
+
## Enum: PresetEnum
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
* `general` (value: `"general"`)
|
| 87 |
+
|
| 88 |
+
* `pop` (value: `"pop"`)
|
| 89 |
+
|
| 90 |
+
* `jazz` (value: `"jazz"`)
|
| 91 |
+
|
| 92 |
+
* `classical` (value: `"classical"`)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
<a name="PaymentServiceEnum"></a>
|
| 98 |
+
## Enum: PaymentServiceEnum
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
* `paypal` (value: `"paypal"`)
|
| 102 |
+
|
| 103 |
+
* `stripe` (value: `"stripe"`)
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
|
masteringModule/node_modules/aimastering/docs/Audio.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.Audio
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**fileResourceId** | **Number** | | [optional]
|
| 8 |
+
**userId** | **Number** | | [optional]
|
| 9 |
+
**name** | **String** | | [optional]
|
| 10 |
+
**createdByUser** | **Boolean** | | [optional]
|
| 11 |
+
**status** | **String** | | [optional]
|
| 12 |
+
**failureReason** | **String** | | [optional]
|
| 13 |
+
**probeJson** | **String** | | [optional]
|
| 14 |
+
**rms** | **Number** | | [optional]
|
| 15 |
+
**peak** | **Number** | | [optional]
|
| 16 |
+
**truePeak** | **Number** | | [optional]
|
| 17 |
+
**lowpassTruePeak15khz** | **Number** | | [optional]
|
| 18 |
+
**loudness** | **Number** | | [optional]
|
| 19 |
+
**dynamics** | **Number** | | [optional]
|
| 20 |
+
**sharpness** | **Number** | | [optional]
|
| 21 |
+
**space** | **Number** | | [optional]
|
| 22 |
+
**loudnessRange** | **Number** | | [optional]
|
| 23 |
+
**drr** | **Number** | | [optional]
|
| 24 |
+
**soundQuality** | **Number** | | [optional]
|
| 25 |
+
**soundQuality2** | **Number** | | [optional]
|
| 26 |
+
**dissonance** | **Number** | | [optional]
|
| 27 |
+
**frames** | **Number** | | [optional]
|
| 28 |
+
**sampleRate** | **Number** | | [optional]
|
| 29 |
+
**channels** | **Number** | | [optional]
|
| 30 |
+
**createdAt** | **Date** | | [optional]
|
| 31 |
+
**updatedAt** | **Date** | | [optional]
|
| 32 |
+
|
| 33 |
+
|
masteringModule/node_modules/aimastering/docs/AudioAnalysis.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AudioAnalysis
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | Audio analysis id | [optional]
|
| 7 |
+
**audioId** | **Number** | Audio id | [optional]
|
| 8 |
+
**analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
|
| 9 |
+
|
| 10 |
+
|
masteringModule/node_modules/aimastering/docs/AudioApi.md
ADDED
|
@@ -0,0 +1,369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AudioApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**createAudio**](AudioApi.md#createAudio) | **POST** /audios | Create a new audio.
|
| 8 |
+
[**downloadAudio**](AudioApi.md#downloadAudio) | **GET** /audios/{id}/download | Download an audio data by id.
|
| 9 |
+
[**downloadAudioByToken**](AudioApi.md#downloadAudioByToken) | **GET** /audios/download_by_token | Download an audio data by audio_download_token.
|
| 10 |
+
[**getAudio**](AudioApi.md#getAudio) | **GET** /audios/{id} | Get an audio by id.
|
| 11 |
+
[**getAudioAnalysis**](AudioApi.md#getAudioAnalysis) | **GET** /audios/{id}/analysis | Get an audio analysis by id.
|
| 12 |
+
[**getAudioDownloadToken**](AudioApi.md#getAudioDownloadToken) | **GET** /audios/{id}/download_token | Get an audio download token by id.
|
| 13 |
+
[**listAudios**](AudioApi.md#listAudios) | **GET** /audios | Get all audios accessable.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
<a name="createAudio"></a>
|
| 17 |
+
# **createAudio**
|
| 18 |
+
> Audio createAudio(opts)
|
| 19 |
+
|
| 20 |
+
Create a new audio.
|
| 21 |
+
|
| 22 |
+
### Example
|
| 23 |
+
```javascript
|
| 24 |
+
var Aimastering = require('aimastering');
|
| 25 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 26 |
+
|
| 27 |
+
// Configure API key authorization: bearer
|
| 28 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 29 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 30 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 31 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 32 |
+
|
| 33 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 34 |
+
|
| 35 |
+
var opts = {
|
| 36 |
+
'file': "/path/to/file.txt", // File | The file to upload.
|
| 37 |
+
'name': "name_example" // String | Audio name. If this is not specified, the name in file parameter is used.
|
| 38 |
+
};
|
| 39 |
+
|
| 40 |
+
var callback = function(error, data, response) {
|
| 41 |
+
if (error) {
|
| 42 |
+
console.error(error);
|
| 43 |
+
} else {
|
| 44 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 45 |
+
}
|
| 46 |
+
};
|
| 47 |
+
apiInstance.createAudio(opts, callback);
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
### Parameters
|
| 51 |
+
|
| 52 |
+
Name | Type | Description | Notes
|
| 53 |
+
------------- | ------------- | ------------- | -------------
|
| 54 |
+
**file** | **File**| The file to upload. | [optional]
|
| 55 |
+
**name** | **String**| Audio name. If this is not specified, the name in file parameter is used. | [optional]
|
| 56 |
+
|
| 57 |
+
### Return type
|
| 58 |
+
|
| 59 |
+
[**Audio**](Audio.md)
|
| 60 |
+
|
| 61 |
+
### Authorization
|
| 62 |
+
|
| 63 |
+
[bearer](../README.md#bearer)
|
| 64 |
+
|
| 65 |
+
### HTTP request headers
|
| 66 |
+
|
| 67 |
+
- **Content-Type**: multipart/form-data
|
| 68 |
+
- **Accept**: application/json
|
| 69 |
+
|
| 70 |
+
<a name="downloadAudio"></a>
|
| 71 |
+
# **downloadAudio**
|
| 72 |
+
> 'Blob' downloadAudio(id)
|
| 73 |
+
|
| 74 |
+
Download an audio data by id.
|
| 75 |
+
|
| 76 |
+
### Example
|
| 77 |
+
```javascript
|
| 78 |
+
var Aimastering = require('aimastering');
|
| 79 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 80 |
+
|
| 81 |
+
// Configure API key authorization: bearer
|
| 82 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 83 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 84 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 85 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 86 |
+
|
| 87 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 88 |
+
|
| 89 |
+
var id = 56; // Number | Audio id
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
var callback = function(error, data, response) {
|
| 93 |
+
if (error) {
|
| 94 |
+
console.error(error);
|
| 95 |
+
} else {
|
| 96 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 97 |
+
}
|
| 98 |
+
};
|
| 99 |
+
apiInstance.downloadAudio(id, callback);
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
### Parameters
|
| 103 |
+
|
| 104 |
+
Name | Type | Description | Notes
|
| 105 |
+
------------- | ------------- | ------------- | -------------
|
| 106 |
+
**id** | **Number**| Audio id |
|
| 107 |
+
|
| 108 |
+
### Return type
|
| 109 |
+
|
| 110 |
+
**'Blob'**
|
| 111 |
+
|
| 112 |
+
### Authorization
|
| 113 |
+
|
| 114 |
+
[bearer](../README.md#bearer)
|
| 115 |
+
|
| 116 |
+
### HTTP request headers
|
| 117 |
+
|
| 118 |
+
- **Content-Type**: Not defined
|
| 119 |
+
- **Accept**: application/octet-stream
|
| 120 |
+
|
| 121 |
+
<a name="downloadAudioByToken"></a>
|
| 122 |
+
# **downloadAudioByToken**
|
| 123 |
+
> 'Blob' downloadAudioByToken(downloadToken)
|
| 124 |
+
|
| 125 |
+
Download an audio data by audio_download_token.
|
| 126 |
+
|
| 127 |
+
### Example
|
| 128 |
+
```javascript
|
| 129 |
+
var Aimastering = require('aimastering');
|
| 130 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 131 |
+
|
| 132 |
+
// Configure API key authorization: bearer
|
| 133 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 134 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 135 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 136 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 137 |
+
|
| 138 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 139 |
+
|
| 140 |
+
var downloadToken = "downloadToken_example"; // String | Audio download token
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
var callback = function(error, data, response) {
|
| 144 |
+
if (error) {
|
| 145 |
+
console.error(error);
|
| 146 |
+
} else {
|
| 147 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 148 |
+
}
|
| 149 |
+
};
|
| 150 |
+
apiInstance.downloadAudioByToken(downloadToken, callback);
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
### Parameters
|
| 154 |
+
|
| 155 |
+
Name | Type | Description | Notes
|
| 156 |
+
------------- | ------------- | ------------- | -------------
|
| 157 |
+
**downloadToken** | **String**| Audio download token |
|
| 158 |
+
|
| 159 |
+
### Return type
|
| 160 |
+
|
| 161 |
+
**'Blob'**
|
| 162 |
+
|
| 163 |
+
### Authorization
|
| 164 |
+
|
| 165 |
+
[bearer](../README.md#bearer)
|
| 166 |
+
|
| 167 |
+
### HTTP request headers
|
| 168 |
+
|
| 169 |
+
- **Content-Type**: Not defined
|
| 170 |
+
- **Accept**: application/octet-stream
|
| 171 |
+
|
| 172 |
+
<a name="getAudio"></a>
|
| 173 |
+
# **getAudio**
|
| 174 |
+
> Audio getAudio(id)
|
| 175 |
+
|
| 176 |
+
Get an audio by id.
|
| 177 |
+
|
| 178 |
+
### Example
|
| 179 |
+
```javascript
|
| 180 |
+
var Aimastering = require('aimastering');
|
| 181 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 182 |
+
|
| 183 |
+
// Configure API key authorization: bearer
|
| 184 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 185 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 186 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 187 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 188 |
+
|
| 189 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 190 |
+
|
| 191 |
+
var id = 56; // Number | Audio id
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
var callback = function(error, data, response) {
|
| 195 |
+
if (error) {
|
| 196 |
+
console.error(error);
|
| 197 |
+
} else {
|
| 198 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 199 |
+
}
|
| 200 |
+
};
|
| 201 |
+
apiInstance.getAudio(id, callback);
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
### Parameters
|
| 205 |
+
|
| 206 |
+
Name | Type | Description | Notes
|
| 207 |
+
------------- | ------------- | ------------- | -------------
|
| 208 |
+
**id** | **Number**| Audio id |
|
| 209 |
+
|
| 210 |
+
### Return type
|
| 211 |
+
|
| 212 |
+
[**Audio**](Audio.md)
|
| 213 |
+
|
| 214 |
+
### Authorization
|
| 215 |
+
|
| 216 |
+
[bearer](../README.md#bearer)
|
| 217 |
+
|
| 218 |
+
### HTTP request headers
|
| 219 |
+
|
| 220 |
+
- **Content-Type**: Not defined
|
| 221 |
+
- **Accept**: application/json
|
| 222 |
+
|
| 223 |
+
<a name="getAudioAnalysis"></a>
|
| 224 |
+
# **getAudioAnalysis**
|
| 225 |
+
> AudioAnalysis getAudioAnalysis(id)
|
| 226 |
+
|
| 227 |
+
Get an audio analysis by id.
|
| 228 |
+
|
| 229 |
+
### Example
|
| 230 |
+
```javascript
|
| 231 |
+
var Aimastering = require('aimastering');
|
| 232 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 233 |
+
|
| 234 |
+
// Configure API key authorization: bearer
|
| 235 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 236 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 237 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 238 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 239 |
+
|
| 240 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 241 |
+
|
| 242 |
+
var id = 56; // Number | Audio id
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
var callback = function(error, data, response) {
|
| 246 |
+
if (error) {
|
| 247 |
+
console.error(error);
|
| 248 |
+
} else {
|
| 249 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 250 |
+
}
|
| 251 |
+
};
|
| 252 |
+
apiInstance.getAudioAnalysis(id, callback);
|
| 253 |
+
```
|
| 254 |
+
|
| 255 |
+
### Parameters
|
| 256 |
+
|
| 257 |
+
Name | Type | Description | Notes
|
| 258 |
+
------------- | ------------- | ------------- | -------------
|
| 259 |
+
**id** | **Number**| Audio id |
|
| 260 |
+
|
| 261 |
+
### Return type
|
| 262 |
+
|
| 263 |
+
[**AudioAnalysis**](AudioAnalysis.md)
|
| 264 |
+
|
| 265 |
+
### Authorization
|
| 266 |
+
|
| 267 |
+
[bearer](../README.md#bearer)
|
| 268 |
+
|
| 269 |
+
### HTTP request headers
|
| 270 |
+
|
| 271 |
+
- **Content-Type**: Not defined
|
| 272 |
+
- **Accept**: application/json
|
| 273 |
+
|
| 274 |
+
<a name="getAudioDownloadToken"></a>
|
| 275 |
+
# **getAudioDownloadToken**
|
| 276 |
+
> AudioDownloadToken getAudioDownloadToken(id)
|
| 277 |
+
|
| 278 |
+
Get an audio download token by id.
|
| 279 |
+
|
| 280 |
+
### Example
|
| 281 |
+
```javascript
|
| 282 |
+
var Aimastering = require('aimastering');
|
| 283 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 284 |
+
|
| 285 |
+
// Configure API key authorization: bearer
|
| 286 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 287 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 288 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 289 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 290 |
+
|
| 291 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 292 |
+
|
| 293 |
+
var id = 56; // Number | Audio id
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
var callback = function(error, data, response) {
|
| 297 |
+
if (error) {
|
| 298 |
+
console.error(error);
|
| 299 |
+
} else {
|
| 300 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 301 |
+
}
|
| 302 |
+
};
|
| 303 |
+
apiInstance.getAudioDownloadToken(id, callback);
|
| 304 |
+
```
|
| 305 |
+
|
| 306 |
+
### Parameters
|
| 307 |
+
|
| 308 |
+
Name | Type | Description | Notes
|
| 309 |
+
------------- | ------------- | ------------- | -------------
|
| 310 |
+
**id** | **Number**| Audio id |
|
| 311 |
+
|
| 312 |
+
### Return type
|
| 313 |
+
|
| 314 |
+
[**AudioDownloadToken**](AudioDownloadToken.md)
|
| 315 |
+
|
| 316 |
+
### Authorization
|
| 317 |
+
|
| 318 |
+
[bearer](../README.md#bearer)
|
| 319 |
+
|
| 320 |
+
### HTTP request headers
|
| 321 |
+
|
| 322 |
+
- **Content-Type**: Not defined
|
| 323 |
+
- **Accept**: application/json
|
| 324 |
+
|
| 325 |
+
<a name="listAudios"></a>
|
| 326 |
+
# **listAudios**
|
| 327 |
+
> [Audio] listAudios()
|
| 328 |
+
|
| 329 |
+
Get all audios accessable.
|
| 330 |
+
|
| 331 |
+
### Example
|
| 332 |
+
```javascript
|
| 333 |
+
var Aimastering = require('aimastering');
|
| 334 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 335 |
+
|
| 336 |
+
// Configure API key authorization: bearer
|
| 337 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 338 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 339 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 340 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 341 |
+
|
| 342 |
+
var apiInstance = new Aimastering.AudioApi();
|
| 343 |
+
|
| 344 |
+
var callback = function(error, data, response) {
|
| 345 |
+
if (error) {
|
| 346 |
+
console.error(error);
|
| 347 |
+
} else {
|
| 348 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 349 |
+
}
|
| 350 |
+
};
|
| 351 |
+
apiInstance.listAudios(callback);
|
| 352 |
+
```
|
| 353 |
+
|
| 354 |
+
### Parameters
|
| 355 |
+
This endpoint does not need any parameter.
|
| 356 |
+
|
| 357 |
+
### Return type
|
| 358 |
+
|
| 359 |
+
[**[Audio]**](Audio.md)
|
| 360 |
+
|
| 361 |
+
### Authorization
|
| 362 |
+
|
| 363 |
+
[bearer](../README.md#bearer)
|
| 364 |
+
|
| 365 |
+
### HTTP request headers
|
| 366 |
+
|
| 367 |
+
- **Content-Type**: Not defined
|
| 368 |
+
- **Accept**: application/json
|
| 369 |
+
|
masteringModule/node_modules/aimastering/docs/AudioDownloadToken.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.AudioDownloadToken
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**downloadToken** | [**JWT**](JWT.md) | | [optional]
|
| 7 |
+
**downloadUrl** | **String** | | [optional]
|
| 8 |
+
|
| 9 |
+
|
masteringModule/node_modules/aimastering/docs/Config.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.Config
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**auth0** | [**ConfigAuth0**](ConfigAuth0.md) | | [optional]
|
| 7 |
+
**paypal** | [**ConfigPaypal**](ConfigPaypal.md) | | [optional]
|
| 8 |
+
**stripe** | [**ConfigStripe**](ConfigStripe.md) | | [optional]
|
| 9 |
+
**version** | [**ConfigVersion**](ConfigVersion.md) | | [optional]
|
| 10 |
+
|
| 11 |
+
|
masteringModule/node_modules/aimastering/docs/ConfigApi.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ConfigApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**getConfig**](ConfigApi.md#getConfig) | **GET** /config | Get config.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="getConfig"></a>
|
| 11 |
+
# **getConfig**
|
| 12 |
+
> Config getConfig()
|
| 13 |
+
|
| 14 |
+
Get config.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.ConfigApi();
|
| 28 |
+
|
| 29 |
+
var callback = function(error, data, response) {
|
| 30 |
+
if (error) {
|
| 31 |
+
console.error(error);
|
| 32 |
+
} else {
|
| 33 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
apiInstance.getConfig(callback);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### Parameters
|
| 40 |
+
This endpoint does not need any parameter.
|
| 41 |
+
|
| 42 |
+
### Return type
|
| 43 |
+
|
| 44 |
+
[**Config**](Config.md)
|
| 45 |
+
|
| 46 |
+
### Authorization
|
| 47 |
+
|
| 48 |
+
[bearer](../README.md#bearer)
|
| 49 |
+
|
| 50 |
+
### HTTP request headers
|
| 51 |
+
|
| 52 |
+
- **Content-Type**: Not defined
|
| 53 |
+
- **Accept**: application/json
|
| 54 |
+
|
masteringModule/node_modules/aimastering/docs/ConfigAuth0.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ConfigAuth0
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**audience** | **String** | | [optional]
|
| 7 |
+
**domain** | **String** | | [optional]
|
| 8 |
+
**clientId** | **String** | | [optional]
|
| 9 |
+
|
| 10 |
+
|
masteringModule/node_modules/aimastering/docs/ConfigPaypal.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ConfigPaypal
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**mode** | **String** | | [optional]
|
| 7 |
+
**clientId** | **String** | | [optional]
|
| 8 |
+
|
| 9 |
+
|
masteringModule/node_modules/aimastering/docs/ConfigStripe.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ConfigStripe
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**publishableKey** | **String** | | [optional]
|
| 7 |
+
|
| 8 |
+
|
masteringModule/node_modules/aimastering/docs/ConfigVersion.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ConfigVersion
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**commit** | **String** | | [optional]
|
| 7 |
+
|
| 8 |
+
|
masteringModule/node_modules/aimastering/docs/ExternalSearchApi.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ExternalSearchApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**searchExternal**](ExternalSearchApi.md#searchExternal) | **GET** /external_search | Search external music and get name, url, thumbnails, etc.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="searchExternal"></a>
|
| 11 |
+
# **searchExternal**
|
| 12 |
+
> ExternalSearchResult searchExternal(query, country)
|
| 13 |
+
|
| 14 |
+
Search external music and get name, url, thumbnails, etc.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.ExternalSearchApi();
|
| 28 |
+
|
| 29 |
+
var query = "query_example"; // String | Search query
|
| 30 |
+
|
| 31 |
+
var country = "country_example"; // String | Country ex. US, JP, etc
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
var callback = function(error, data, response) {
|
| 35 |
+
if (error) {
|
| 36 |
+
console.error(error);
|
| 37 |
+
} else {
|
| 38 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 39 |
+
}
|
| 40 |
+
};
|
| 41 |
+
apiInstance.searchExternal(query, country, callback);
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
### Parameters
|
| 45 |
+
|
| 46 |
+
Name | Type | Description | Notes
|
| 47 |
+
------------- | ------------- | ------------- | -------------
|
| 48 |
+
**query** | **String**| Search query |
|
| 49 |
+
**country** | **String**| Country ex. US, JP, etc |
|
| 50 |
+
|
| 51 |
+
### Return type
|
| 52 |
+
|
| 53 |
+
[**ExternalSearchResult**](ExternalSearchResult.md)
|
| 54 |
+
|
| 55 |
+
### Authorization
|
| 56 |
+
|
| 57 |
+
[bearer](../README.md#bearer)
|
| 58 |
+
|
| 59 |
+
### HTTP request headers
|
| 60 |
+
|
| 61 |
+
- **Content-Type**: Not defined
|
| 62 |
+
- **Accept**: application/json
|
| 63 |
+
|
masteringModule/node_modules/aimastering/docs/ExternalSearchResult.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ExternalSearchResult
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**itunes** | [**[ExternalSearchResultItunes]**](ExternalSearchResultItunes.md) | | [optional]
|
| 7 |
+
**youtube** | [**[ExternalSearchResultYoutube]**](ExternalSearchResultYoutube.md) | | [optional]
|
| 8 |
+
|
| 9 |
+
|
masteringModule/node_modules/aimastering/docs/ExternalSearchResultItunes.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ExternalSearchResultItunes
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **String** | | [optional]
|
| 7 |
+
**name** | **String** | | [optional]
|
| 8 |
+
**description** | **String** | | [optional]
|
| 9 |
+
**url** | **String** | | [optional]
|
| 10 |
+
**thumbnailUrl** | **String** | | [optional]
|
| 11 |
+
**previewUrl** | **String** | | [optional]
|
| 12 |
+
**albumName** | **String** | | [optional]
|
| 13 |
+
**albumUrl** | **String** | | [optional]
|
| 14 |
+
**artistName** | **String** | | [optional]
|
| 15 |
+
**artistUrl** | **String** | | [optional]
|
| 16 |
+
**trackNumber** | **Number** | | [optional]
|
| 17 |
+
|
| 18 |
+
|
masteringModule/node_modules/aimastering/docs/ExternalSearchResultYoutube.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.ExternalSearchResultYoutube
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **String** | | [optional]
|
| 7 |
+
**name** | **String** | | [optional]
|
| 8 |
+
**description** | **String** | | [optional]
|
| 9 |
+
**url** | **String** | | [optional]
|
| 10 |
+
**thumbnailUrl** | **String** | | [optional]
|
| 11 |
+
**channelId** | **String** | | [optional]
|
| 12 |
+
**channelUrl** | **String** | | [optional]
|
| 13 |
+
**channelName** | **String** | | [optional]
|
| 14 |
+
|
| 15 |
+
|
masteringModule/node_modules/aimastering/docs/GroupBuyStatistics.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.GroupBuyStatistics
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**premiumPlanSubscribedUserCount** | **Number** | | [optional]
|
| 7 |
+
|
| 8 |
+
|
masteringModule/node_modules/aimastering/docs/JWT.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.JWT
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
|
| 7 |
+
|
masteringModule/node_modules/aimastering/docs/Kpi.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.Kpi
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
|
| 7 |
+
|
masteringModule/node_modules/aimastering/docs/LibraryAudio.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.LibraryAudio
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**userId** | **Number** | | [optional]
|
| 8 |
+
**name** | **String** | | [optional]
|
| 9 |
+
**album** | **String** | | [optional]
|
| 10 |
+
**albumArtist** | **String** | | [optional]
|
| 11 |
+
**artist** | **String** | | [optional]
|
| 12 |
+
**genre** | **String** | | [optional]
|
| 13 |
+
**track** | **Number** | | [optional]
|
| 14 |
+
**publisher** | **String** | | [optional]
|
| 15 |
+
**fileHash** | **String** | | [optional]
|
| 16 |
+
**size** | **Number** | | [optional]
|
| 17 |
+
**status** | **String** | | [optional]
|
| 18 |
+
**failureReason** | **String** | | [optional]
|
| 19 |
+
**probeJson** | **String** | | [optional]
|
| 20 |
+
**rms** | **Number** | | [optional]
|
| 21 |
+
**peak** | **Number** | | [optional]
|
| 22 |
+
**truePeak** | **Number** | | [optional]
|
| 23 |
+
**lowpassTruePeak15khz** | **Number** | | [optional]
|
| 24 |
+
**loudness** | **Number** | | [optional]
|
| 25 |
+
**dynamics** | **Number** | | [optional]
|
| 26 |
+
**sharpness** | **Number** | | [optional]
|
| 27 |
+
**space** | **Number** | | [optional]
|
| 28 |
+
**loudnessRange** | **Number** | | [optional]
|
| 29 |
+
**drr** | **Number** | | [optional]
|
| 30 |
+
**soundQuality** | **Number** | | [optional]
|
| 31 |
+
**soundQuality2** | **Number** | | [optional]
|
| 32 |
+
**dissonance** | **Number** | | [optional]
|
| 33 |
+
**frames** | **Number** | | [optional]
|
| 34 |
+
**sampleRate** | **Number** | | [optional]
|
| 35 |
+
**channels** | **Number** | | [optional]
|
| 36 |
+
**isPublic** | **Boolean** | | [optional]
|
| 37 |
+
**likedBySelf** | **Boolean** | | [optional]
|
| 38 |
+
**likeCount** | **Number** | | [optional]
|
| 39 |
+
**createdAt** | **Date** | | [optional]
|
| 40 |
+
**updatedAt** | **Date** | | [optional]
|
| 41 |
+
|
| 42 |
+
|
masteringModule/node_modules/aimastering/docs/LibraryAudioAnalysis.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.LibraryAudioAnalysis
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | Audio analysis id | [optional]
|
| 7 |
+
**libraryAudioId** | **Number** | Audio id | [optional]
|
| 8 |
+
**analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
|
| 9 |
+
|
| 10 |
+
|
masteringModule/node_modules/aimastering/docs/LibraryAudioApi.md
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.LibraryAudioApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**createLibraryAudio**](LibraryAudioApi.md#createLibraryAudio) | **POST** /library_audios | Create a new library audio.
|
| 8 |
+
[**createLibraryAudioLike**](LibraryAudioApi.md#createLibraryAudioLike) | **POST** /library_audios/{id}/like | Create a new library audio like.
|
| 9 |
+
[**deleteLibraryAudio**](LibraryAudioApi.md#deleteLibraryAudio) | **DELETE** /library_audios/{id} | Delete library audio.
|
| 10 |
+
[**getLibraryAudio**](LibraryAudioApi.md#getLibraryAudio) | **GET** /library_audios/{id} | Get a library audio by id.
|
| 11 |
+
[**getLibraryAudioAnalysis**](LibraryAudioApi.md#getLibraryAudioAnalysis) | **GET** /library_audios/{id}/analysis | Get a library audio analysis by id.
|
| 12 |
+
[**listLibraryAudios**](LibraryAudioApi.md#listLibraryAudios) | **GET** /library_audios | Get all library audios accessable.
|
| 13 |
+
[**updateLibraryAudio**](LibraryAudioApi.md#updateLibraryAudio) | **PUT** /library_audios/{id} | Update library audio.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
<a name="createLibraryAudio"></a>
|
| 17 |
+
# **createLibraryAudio**
|
| 18 |
+
> LibraryAudio createLibraryAudio(opts)
|
| 19 |
+
|
| 20 |
+
Create a new library audio.
|
| 21 |
+
|
| 22 |
+
### Example
|
| 23 |
+
```javascript
|
| 24 |
+
var Aimastering = require('aimastering');
|
| 25 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 26 |
+
|
| 27 |
+
// Configure API key authorization: bearer
|
| 28 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 29 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 30 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 31 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 32 |
+
|
| 33 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 34 |
+
|
| 35 |
+
var opts = {
|
| 36 |
+
'file': "/path/to/file.txt" // File | The file to upload.
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
var callback = function(error, data, response) {
|
| 40 |
+
if (error) {
|
| 41 |
+
console.error(error);
|
| 42 |
+
} else {
|
| 43 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 44 |
+
}
|
| 45 |
+
};
|
| 46 |
+
apiInstance.createLibraryAudio(opts, callback);
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
### Parameters
|
| 50 |
+
|
| 51 |
+
Name | Type | Description | Notes
|
| 52 |
+
------------- | ------------- | ------------- | -------------
|
| 53 |
+
**file** | **File**| The file to upload. | [optional]
|
| 54 |
+
|
| 55 |
+
### Return type
|
| 56 |
+
|
| 57 |
+
[**LibraryAudio**](LibraryAudio.md)
|
| 58 |
+
|
| 59 |
+
### Authorization
|
| 60 |
+
|
| 61 |
+
[bearer](../README.md#bearer)
|
| 62 |
+
|
| 63 |
+
### HTTP request headers
|
| 64 |
+
|
| 65 |
+
- **Content-Type**: multipart/form-data
|
| 66 |
+
- **Accept**: application/json
|
| 67 |
+
|
| 68 |
+
<a name="createLibraryAudioLike"></a>
|
| 69 |
+
# **createLibraryAudioLike**
|
| 70 |
+
> LibraryAudioLike createLibraryAudioLike(id)
|
| 71 |
+
|
| 72 |
+
Create a new library audio like.
|
| 73 |
+
|
| 74 |
+
### Example
|
| 75 |
+
```javascript
|
| 76 |
+
var Aimastering = require('aimastering');
|
| 77 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 78 |
+
|
| 79 |
+
// Configure API key authorization: bearer
|
| 80 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 81 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 82 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 83 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 84 |
+
|
| 85 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 86 |
+
|
| 87 |
+
var id = 56; // Number | Library audio id
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
var callback = function(error, data, response) {
|
| 91 |
+
if (error) {
|
| 92 |
+
console.error(error);
|
| 93 |
+
} else {
|
| 94 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 95 |
+
}
|
| 96 |
+
};
|
| 97 |
+
apiInstance.createLibraryAudioLike(id, callback);
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Parameters
|
| 101 |
+
|
| 102 |
+
Name | Type | Description | Notes
|
| 103 |
+
------------- | ------------- | ------------- | -------------
|
| 104 |
+
**id** | **Number**| Library audio id |
|
| 105 |
+
|
| 106 |
+
### Return type
|
| 107 |
+
|
| 108 |
+
[**LibraryAudioLike**](LibraryAudioLike.md)
|
| 109 |
+
|
| 110 |
+
### Authorization
|
| 111 |
+
|
| 112 |
+
[bearer](../README.md#bearer)
|
| 113 |
+
|
| 114 |
+
### HTTP request headers
|
| 115 |
+
|
| 116 |
+
- **Content-Type**: multipart/form-data
|
| 117 |
+
- **Accept**: application/json
|
| 118 |
+
|
| 119 |
+
<a name="deleteLibraryAudio"></a>
|
| 120 |
+
# **deleteLibraryAudio**
|
| 121 |
+
> LibraryAudio deleteLibraryAudio(id)
|
| 122 |
+
|
| 123 |
+
Delete library audio.
|
| 124 |
+
|
| 125 |
+
### Example
|
| 126 |
+
```javascript
|
| 127 |
+
var Aimastering = require('aimastering');
|
| 128 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 129 |
+
|
| 130 |
+
// Configure API key authorization: bearer
|
| 131 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 132 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 133 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 134 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 135 |
+
|
| 136 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 137 |
+
|
| 138 |
+
var id = 56; // Number | Library audio id
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
var callback = function(error, data, response) {
|
| 142 |
+
if (error) {
|
| 143 |
+
console.error(error);
|
| 144 |
+
} else {
|
| 145 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 146 |
+
}
|
| 147 |
+
};
|
| 148 |
+
apiInstance.deleteLibraryAudio(id, callback);
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
### Parameters
|
| 152 |
+
|
| 153 |
+
Name | Type | Description | Notes
|
| 154 |
+
------------- | ------------- | ------------- | -------------
|
| 155 |
+
**id** | **Number**| Library audio id |
|
| 156 |
+
|
| 157 |
+
### Return type
|
| 158 |
+
|
| 159 |
+
[**LibraryAudio**](LibraryAudio.md)
|
| 160 |
+
|
| 161 |
+
### Authorization
|
| 162 |
+
|
| 163 |
+
[bearer](../README.md#bearer)
|
| 164 |
+
|
| 165 |
+
### HTTP request headers
|
| 166 |
+
|
| 167 |
+
- **Content-Type**: multipart/form-data
|
| 168 |
+
- **Accept**: application/json
|
| 169 |
+
|
| 170 |
+
<a name="getLibraryAudio"></a>
|
| 171 |
+
# **getLibraryAudio**
|
| 172 |
+
> LibraryAudio getLibraryAudio(id)
|
| 173 |
+
|
| 174 |
+
Get a library audio by id.
|
| 175 |
+
|
| 176 |
+
### Example
|
| 177 |
+
```javascript
|
| 178 |
+
var Aimastering = require('aimastering');
|
| 179 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 180 |
+
|
| 181 |
+
// Configure API key authorization: bearer
|
| 182 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 183 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 184 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 185 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 186 |
+
|
| 187 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 188 |
+
|
| 189 |
+
var id = 56; // Number | Library audio id
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
var callback = function(error, data, response) {
|
| 193 |
+
if (error) {
|
| 194 |
+
console.error(error);
|
| 195 |
+
} else {
|
| 196 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 197 |
+
}
|
| 198 |
+
};
|
| 199 |
+
apiInstance.getLibraryAudio(id, callback);
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
### Parameters
|
| 203 |
+
|
| 204 |
+
Name | Type | Description | Notes
|
| 205 |
+
------------- | ------------- | ------------- | -------------
|
| 206 |
+
**id** | **Number**| Library audio id |
|
| 207 |
+
|
| 208 |
+
### Return type
|
| 209 |
+
|
| 210 |
+
[**LibraryAudio**](LibraryAudio.md)
|
| 211 |
+
|
| 212 |
+
### Authorization
|
| 213 |
+
|
| 214 |
+
[bearer](../README.md#bearer)
|
| 215 |
+
|
| 216 |
+
### HTTP request headers
|
| 217 |
+
|
| 218 |
+
- **Content-Type**: Not defined
|
| 219 |
+
- **Accept**: application/json
|
| 220 |
+
|
| 221 |
+
<a name="getLibraryAudioAnalysis"></a>
|
| 222 |
+
# **getLibraryAudioAnalysis**
|
| 223 |
+
> LibraryAudioAnalysis getLibraryAudioAnalysis(id)
|
| 224 |
+
|
| 225 |
+
Get a library audio analysis by id.
|
| 226 |
+
|
| 227 |
+
### Example
|
| 228 |
+
```javascript
|
| 229 |
+
var Aimastering = require('aimastering');
|
| 230 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 231 |
+
|
| 232 |
+
// Configure API key authorization: bearer
|
| 233 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 234 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 235 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 236 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 237 |
+
|
| 238 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 239 |
+
|
| 240 |
+
var id = 56; // Number | Library audio id
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
var callback = function(error, data, response) {
|
| 244 |
+
if (error) {
|
| 245 |
+
console.error(error);
|
| 246 |
+
} else {
|
| 247 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 248 |
+
}
|
| 249 |
+
};
|
| 250 |
+
apiInstance.getLibraryAudioAnalysis(id, callback);
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
### Parameters
|
| 254 |
+
|
| 255 |
+
Name | Type | Description | Notes
|
| 256 |
+
------------- | ------------- | ------------- | -------------
|
| 257 |
+
**id** | **Number**| Library audio id |
|
| 258 |
+
|
| 259 |
+
### Return type
|
| 260 |
+
|
| 261 |
+
[**LibraryAudioAnalysis**](LibraryAudioAnalysis.md)
|
| 262 |
+
|
| 263 |
+
### Authorization
|
| 264 |
+
|
| 265 |
+
[bearer](../README.md#bearer)
|
| 266 |
+
|
| 267 |
+
### HTTP request headers
|
| 268 |
+
|
| 269 |
+
- **Content-Type**: Not defined
|
| 270 |
+
- **Accept**: application/json
|
| 271 |
+
|
| 272 |
+
<a name="listLibraryAudios"></a>
|
| 273 |
+
# **listLibraryAudios**
|
| 274 |
+
> [LibraryAudio] listLibraryAudios()
|
| 275 |
+
|
| 276 |
+
Get all library audios accessable.
|
| 277 |
+
|
| 278 |
+
### Example
|
| 279 |
+
```javascript
|
| 280 |
+
var Aimastering = require('aimastering');
|
| 281 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 282 |
+
|
| 283 |
+
// Configure API key authorization: bearer
|
| 284 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 285 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 286 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 287 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 288 |
+
|
| 289 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 290 |
+
|
| 291 |
+
var callback = function(error, data, response) {
|
| 292 |
+
if (error) {
|
| 293 |
+
console.error(error);
|
| 294 |
+
} else {
|
| 295 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 296 |
+
}
|
| 297 |
+
};
|
| 298 |
+
apiInstance.listLibraryAudios(callback);
|
| 299 |
+
```
|
| 300 |
+
|
| 301 |
+
### Parameters
|
| 302 |
+
This endpoint does not need any parameter.
|
| 303 |
+
|
| 304 |
+
### Return type
|
| 305 |
+
|
| 306 |
+
[**[LibraryAudio]**](LibraryAudio.md)
|
| 307 |
+
|
| 308 |
+
### Authorization
|
| 309 |
+
|
| 310 |
+
[bearer](../README.md#bearer)
|
| 311 |
+
|
| 312 |
+
### HTTP request headers
|
| 313 |
+
|
| 314 |
+
- **Content-Type**: Not defined
|
| 315 |
+
- **Accept**: application/json
|
| 316 |
+
|
| 317 |
+
<a name="updateLibraryAudio"></a>
|
| 318 |
+
# **updateLibraryAudio**
|
| 319 |
+
> LibraryAudio updateLibraryAudio(id, opts)
|
| 320 |
+
|
| 321 |
+
Update library audio.
|
| 322 |
+
|
| 323 |
+
### Example
|
| 324 |
+
```javascript
|
| 325 |
+
var Aimastering = require('aimastering');
|
| 326 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 327 |
+
|
| 328 |
+
// Configure API key authorization: bearer
|
| 329 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 330 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 331 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 332 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 333 |
+
|
| 334 |
+
var apiInstance = new Aimastering.LibraryAudioApi();
|
| 335 |
+
|
| 336 |
+
var id = 56; // Number | Library audio id
|
| 337 |
+
|
| 338 |
+
var opts = {
|
| 339 |
+
'isPublic': true // Boolean | Whether the library audio is public.
|
| 340 |
+
};
|
| 341 |
+
|
| 342 |
+
var callback = function(error, data, response) {
|
| 343 |
+
if (error) {
|
| 344 |
+
console.error(error);
|
| 345 |
+
} else {
|
| 346 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 347 |
+
}
|
| 348 |
+
};
|
| 349 |
+
apiInstance.updateLibraryAudio(id, opts, callback);
|
| 350 |
+
```
|
| 351 |
+
|
| 352 |
+
### Parameters
|
| 353 |
+
|
| 354 |
+
Name | Type | Description | Notes
|
| 355 |
+
------------- | ------------- | ------------- | -------------
|
| 356 |
+
**id** | **Number**| Library audio id |
|
| 357 |
+
**isPublic** | **Boolean**| Whether the library audio is public. | [optional]
|
| 358 |
+
|
| 359 |
+
### Return type
|
| 360 |
+
|
| 361 |
+
[**LibraryAudio**](LibraryAudio.md)
|
| 362 |
+
|
| 363 |
+
### Authorization
|
| 364 |
+
|
| 365 |
+
[bearer](../README.md#bearer)
|
| 366 |
+
|
| 367 |
+
### HTTP request headers
|
| 368 |
+
|
| 369 |
+
- **Content-Type**: multipart/form-data
|
| 370 |
+
- **Accept**: application/json
|
| 371 |
+
|
masteringModule/node_modules/aimastering/docs/LibraryAudioLike.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.LibraryAudioLike
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | Audio analysis id | [optional]
|
| 7 |
+
**libraryAudioId** | **Number** | Audio id | [optional]
|
| 8 |
+
**userId** | **Number** | User id | [optional]
|
| 9 |
+
|
| 10 |
+
|
masteringModule/node_modules/aimast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| ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**userId** | **Number** | | [optional]
|
| 8 |
+
**inputAudioId** | **Number** | | [optional]
|
| 9 |
+
**outputAudioId** | **Number** | | [optional]
|
| 10 |
+
**outputVideoId** | **Number** | | [optional]
|
| 11 |
+
**referenceAudioId** | **Number** | | [optional]
|
| 12 |
+
**mode** | **String** | | [optional]
|
| 13 |
+
**status** | **String** | | [optional]
|
| 14 |
+
**failureReason** | **String** | | [optional]
|
| 15 |
+
**targetLoudnessMode** | **String** | | [optional]
|
| 16 |
+
**targetLoudness** | **Number** | | [optional]
|
| 17 |
+
**outputFormat** | **String** | | [optional]
|
| 18 |
+
**preset** | **String** | | [optional]
|
| 19 |
+
**bitDepth** | **Number** | | [optional]
|
| 20 |
+
**sampleRate** | **Number** | | [optional]
|
| 21 |
+
**reviewComment** | **String** | | [optional]
|
| 22 |
+
**reviewScore** | **Number** | | [optional]
|
| 23 |
+
**masteringMatchingLevel** | **Number** | | [optional]
|
| 24 |
+
**progression** | **Number** | | [optional]
|
| 25 |
+
**bassPreservation** | **Boolean** | | [optional]
|
| 26 |
+
**mastering** | **Boolean** | | [optional]
|
| 27 |
+
**masteringAlgorithm** | **String** | | [optional]
|
| 28 |
+
**preserved** | **Boolean** | | [optional]
|
| 29 |
+
**retryCount** | **Number** | | [optional]
|
| 30 |
+
**masteringReverb** | **Boolean** | | [optional]
|
| 31 |
+
**masteringReverbGain** | **Number** | | [optional]
|
| 32 |
+
**lowCutFreq** | **Number** | | [optional]
|
| 33 |
+
**highCutFreq** | **Number** | | [optional]
|
| 34 |
+
**ceiling** | **Number** | | [optional]
|
| 35 |
+
**ceilingMode** | **String** | | [optional]
|
| 36 |
+
**oversample** | **Number** | | [optional]
|
| 37 |
+
**limitingError** | **Number** | | [optional]
|
| 38 |
+
**videoTitle** | **String** | | [optional]
|
| 39 |
+
**videoStatus** | **String** | | [optional]
|
| 40 |
+
**expireAt** | **Date** | | [optional]
|
| 41 |
+
**createdAt** | **Date** | | [optional]
|
| 42 |
+
**updatedAt** | **Date** | | [optional]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
<a name="ModeEnum"></a>
|
| 46 |
+
## Enum: ModeEnum
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
* `default` (value: `"default"`)
|
| 50 |
+
|
| 51 |
+
* `custom` (value: `"custom"`)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
<a name="StatusEnum"></a>
|
| 57 |
+
## Enum: StatusEnum
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
* `waiting` (value: `"waiting"`)
|
| 61 |
+
|
| 62 |
+
* `processing` (value: `"processing"`)
|
| 63 |
+
|
| 64 |
+
* `canceled` (value: `"canceled"`)
|
| 65 |
+
|
| 66 |
+
* `failed` (value: `"failed"`)
|
| 67 |
+
|
| 68 |
+
* `succeeded` (value: `"succeeded"`)
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
<a name="FailureReasonEnum"></a>
|
| 74 |
+
## Enum: FailureReasonEnum
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
* `unknown` (value: `"unknown"`)
|
| 78 |
+
|
| 79 |
+
* `expired` (value: `"expired"`)
|
| 80 |
+
|
| 81 |
+
* `failed_to_prepare` (value: `"failed_to_prepare"`)
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
<a name="TargetLoudnessModeEnum"></a>
|
| 87 |
+
## Enum: TargetLoudnessModeEnum
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
* `loudness` (value: `"loudness"`)
|
| 91 |
+
|
| 92 |
+
* `rms` (value: `"rms"`)
|
| 93 |
+
|
| 94 |
+
* `peak` (value: `"peak"`)
|
| 95 |
+
|
| 96 |
+
* `youtube_loudness` (value: `"youtube_loudness"`)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<a name="OutputFormatEnum"></a>
|
| 102 |
+
## Enum: OutputFormatEnum
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
* `wav` (value: `"wav"`)
|
| 106 |
+
|
| 107 |
+
* `mp3` (value: `"mp3"`)
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
<a name="PresetEnum"></a>
|
| 113 |
+
## Enum: PresetEnum
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
* `general` (value: `"general"`)
|
| 117 |
+
|
| 118 |
+
* `pop` (value: `"pop"`)
|
| 119 |
+
|
| 120 |
+
* `jazz` (value: `"jazz"`)
|
| 121 |
+
|
| 122 |
+
* `classical` (value: `"classical"`)
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
<a name="MasteringAlgorithmEnum"></a>
|
| 128 |
+
## Enum: MasteringAlgorithmEnum
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
* `v1` (value: `"v1"`)
|
| 132 |
+
|
| 133 |
+
* `v2` (value: `"v2"`)
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
<a name="VideoStatusEnum"></a>
|
| 139 |
+
## Enum: VideoStatusEnum
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
* `waiting` (value: `"waiting"`)
|
| 143 |
+
|
| 144 |
+
* `failed` (value: `"failed"`)
|
| 145 |
+
|
| 146 |
+
* `succeeded` (value: `"succeeded"`)
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
masteringModule/node_modules/aimastering/docs/MasteringApi.md
ADDED
|
@@ -0,0 +1,594 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.MasteringApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**cancelMastering**](MasteringApi.md#cancelMastering) | **PUT** /masterings/{id}/cancel | Cancel a mastering by id.
|
| 8 |
+
[**createMastering**](MasteringApi.md#createMastering) | **POST** /masterings | Create a new mastering.
|
| 9 |
+
[**deleteMastering**](MasteringApi.md#deleteMastering) | **DELETE** /masterings/{id} | Delete mastering.
|
| 10 |
+
[**freeUnlockMastering**](MasteringApi.md#freeUnlockMastering) | **PUT** /masterings/{id}/free_unlock | Free unlock a mastering by id.
|
| 11 |
+
[**getMastering**](MasteringApi.md#getMastering) | **GET** /masterings/{id} | Get a mastering by id.
|
| 12 |
+
[**getMasteringUnlockProduct**](MasteringApi.md#getMasteringUnlockProduct) | **GET** /masterings/{id}/unlock_product | Review a mastering by id.
|
| 13 |
+
[**listMasterings**](MasteringApi.md#listMasterings) | **GET** /masterings | Get all accessable masterings.
|
| 14 |
+
[**publishMastering**](MasteringApi.md#publishMastering) | **POST** /masterings/{id}/publish | Publish a mastering by id.
|
| 15 |
+
[**reviewMastering**](MasteringApi.md#reviewMastering) | **PUT** /masterings/{id}/review | Review a mastering by id.
|
| 16 |
+
[**updateMastering**](MasteringApi.md#updateMastering) | **PUT** /masterings/{id} | Update a mastering.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
<a name="cancelMastering"></a>
|
| 20 |
+
# **cancelMastering**
|
| 21 |
+
> Mastering cancelMastering(id, )
|
| 22 |
+
|
| 23 |
+
Cancel a mastering by id.
|
| 24 |
+
|
| 25 |
+
### Example
|
| 26 |
+
```javascript
|
| 27 |
+
var Aimastering = require('aimastering');
|
| 28 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 29 |
+
|
| 30 |
+
// Configure API key authorization: bearer
|
| 31 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 32 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 33 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 34 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 35 |
+
|
| 36 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 37 |
+
|
| 38 |
+
var id = 56; // Number | Mastering id
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
var callback = function(error, data, response) {
|
| 42 |
+
if (error) {
|
| 43 |
+
console.error(error);
|
| 44 |
+
} else {
|
| 45 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 46 |
+
}
|
| 47 |
+
};
|
| 48 |
+
apiInstance.cancelMastering(id, , callback);
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
### Parameters
|
| 52 |
+
|
| 53 |
+
Name | Type | Description | Notes
|
| 54 |
+
------------- | ------------- | ------------- | -------------
|
| 55 |
+
**id** | **Number**| Mastering id |
|
| 56 |
+
|
| 57 |
+
### Return type
|
| 58 |
+
|
| 59 |
+
[**Mastering**](Mastering.md)
|
| 60 |
+
|
| 61 |
+
### Authorization
|
| 62 |
+
|
| 63 |
+
[bearer](../README.md#bearer)
|
| 64 |
+
|
| 65 |
+
### HTTP request headers
|
| 66 |
+
|
| 67 |
+
- **Content-Type**: Not defined
|
| 68 |
+
- **Accept**: application/json
|
| 69 |
+
|
| 70 |
+
<a name="createMastering"></a>
|
| 71 |
+
# **createMastering**
|
| 72 |
+
> Mastering createMastering(inputAudioId, opts)
|
| 73 |
+
|
| 74 |
+
Create a new mastering.
|
| 75 |
+
|
| 76 |
+
### Example
|
| 77 |
+
```javascript
|
| 78 |
+
var Aimastering = require('aimastering');
|
| 79 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 80 |
+
|
| 81 |
+
// Configure API key authorization: bearer
|
| 82 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 83 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 84 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 85 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 86 |
+
|
| 87 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 88 |
+
|
| 89 |
+
var inputAudioId = 56; // Number | Input audio id
|
| 90 |
+
|
| 91 |
+
var opts = {
|
| 92 |
+
'mode': "default", // String | Mode
|
| 93 |
+
'bassPreservation': false, // Boolean | This parameter represents if the bass preservation is enabled.
|
| 94 |
+
'mastering': false, // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is \"default\" or \"custom\".
|
| 95 |
+
'masteringAlgorithm': "v2", // String |
|
| 96 |
+
'noiseReduction': false, // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is \"custom\".
|
| 97 |
+
'preset': "general", // String | This parameter is effective only when the mode is \"custom\".
|
| 98 |
+
'targetLoudness': -5, // Number | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is \"custom\".
|
| 99 |
+
'targetLoudnessMode': "loudness", // String |
|
| 100 |
+
'masteringMatchingLevel': 0.5, // Number | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
|
| 101 |
+
'masteringReverb': false, // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
|
| 102 |
+
'masteringReverbGain': -36, // Number | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is \"custom\" and the mastering is \"true\" and the mastering_reverb is \"true\".
|
| 103 |
+
'referenceAudioId': 56, // Number | Reference audio id. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
|
| 104 |
+
'lowCutFreq': 20, // Number | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\".
|
| 105 |
+
'highCutFreq': 20000, // Number | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\".
|
| 106 |
+
'ceiling': 0, // Number |
|
| 107 |
+
'ceilingMode': "0", // String |
|
| 108 |
+
'oversample': 1, // Number |
|
| 109 |
+
'sampleRate': 44100, // Number | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is \"custom\".
|
| 110 |
+
'bitDepth': 16, // Number | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is \"custom\".
|
| 111 |
+
'outputFormat': "wav", // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is \"custom\".
|
| 112 |
+
'forPreview': false, // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
|
| 113 |
+
'startAt': 0, // Number | Partial mastering start at.
|
| 114 |
+
'endAt': -1, // Number | Partial mastering end at.
|
| 115 |
+
'videoTitle': "" // String | This parameter represents the title of output video.
|
| 116 |
+
};
|
| 117 |
+
|
| 118 |
+
var callback = function(error, data, response) {
|
| 119 |
+
if (error) {
|
| 120 |
+
console.error(error);
|
| 121 |
+
} else {
|
| 122 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 123 |
+
}
|
| 124 |
+
};
|
| 125 |
+
apiInstance.createMastering(inputAudioId, opts, callback);
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
### Parameters
|
| 129 |
+
|
| 130 |
+
Name | Type | Description | Notes
|
| 131 |
+
------------- | ------------- | ------------- | -------------
|
| 132 |
+
**inputAudioId** | **Number**| Input audio id |
|
| 133 |
+
**mode** | **String**| Mode | [optional] [default to default]
|
| 134 |
+
**bassPreservation** | **Boolean**| This parameter represents if the bass preservation is enabled. | [optional] [default to false]
|
| 135 |
+
**mastering** | **Boolean**| This parameter represents if the mastering is enabled. This parameter is effective only when the mode is \"default\" or \"custom\". | [optional] [default to false]
|
| 136 |
+
**masteringAlgorithm** | **String**| | [optional] [default to v2]
|
| 137 |
+
**noiseReduction** | **Boolean**| This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is \"custom\". | [optional] [default to false]
|
| 138 |
+
**preset** | **String**| This parameter is effective only when the mode is \"custom\". | [optional] [default to general]
|
| 139 |
+
**targetLoudness** | **Number**| This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to -5]
|
| 140 |
+
**targetLoudnessMode** | **String**| | [optional] [default to loudness]
|
| 141 |
+
**masteringMatchingLevel** | **Number**| This parameter represents the mastering reference matching level. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional] [default to 0.5]
|
| 142 |
+
**masteringReverb** | **Boolean**| This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional] [default to false]
|
| 143 |
+
**masteringReverbGain** | **Number**| This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is \"custom\" and the mastering is \"true\" and the mastering_reverb is \"true\". | [optional] [default to -36]
|
| 144 |
+
**referenceAudioId** | **Number**| Reference audio id. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional]
|
| 145 |
+
**lowCutFreq** | **Number**| This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\". | [optional] [default to 20]
|
| 146 |
+
**highCutFreq** | **Number**| This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\". | [optional] [default to 20000]
|
| 147 |
+
**ceiling** | **Number**| | [optional] [default to 0]
|
| 148 |
+
**ceilingMode** | **String**| | [optional] [default to 0]
|
| 149 |
+
**oversample** | **Number**| | [optional] [default to 1]
|
| 150 |
+
**sampleRate** | **Number**| This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to 44100]
|
| 151 |
+
**bitDepth** | **Number**| This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to 16]
|
| 152 |
+
**outputFormat** | **String**| This parameter represents the format of the output audio. This parameter is effective only when the mode is \"custom\". | [optional] [default to wav]
|
| 153 |
+
**forPreview** | **Boolean**| If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). | [optional] [default to false]
|
| 154 |
+
**startAt** | **Number**| Partial mastering start at. | [optional] [default to 0]
|
| 155 |
+
**endAt** | **Number**| Partial mastering end at. | [optional] [default to -1]
|
| 156 |
+
**videoTitle** | **String**| This parameter represents the title of output video. | [optional] [default to ]
|
| 157 |
+
|
| 158 |
+
### Return type
|
| 159 |
+
|
| 160 |
+
[**Mastering**](Mastering.md)
|
| 161 |
+
|
| 162 |
+
### Authorization
|
| 163 |
+
|
| 164 |
+
[bearer](../README.md#bearer)
|
| 165 |
+
|
| 166 |
+
### HTTP request headers
|
| 167 |
+
|
| 168 |
+
- **Content-Type**: multipart/form-data
|
| 169 |
+
- **Accept**: application/json
|
| 170 |
+
|
| 171 |
+
<a name="deleteMastering"></a>
|
| 172 |
+
# **deleteMastering**
|
| 173 |
+
> Mastering deleteMastering(id, )
|
| 174 |
+
|
| 175 |
+
Delete mastering.
|
| 176 |
+
|
| 177 |
+
### Example
|
| 178 |
+
```javascript
|
| 179 |
+
var Aimastering = require('aimastering');
|
| 180 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 181 |
+
|
| 182 |
+
// Configure API key authorization: bearer
|
| 183 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 184 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 185 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 186 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 187 |
+
|
| 188 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 189 |
+
|
| 190 |
+
var id = 56; // Number | Mastering id
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
var callback = function(error, data, response) {
|
| 194 |
+
if (error) {
|
| 195 |
+
console.error(error);
|
| 196 |
+
} else {
|
| 197 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 198 |
+
}
|
| 199 |
+
};
|
| 200 |
+
apiInstance.deleteMastering(id, , callback);
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
### Parameters
|
| 204 |
+
|
| 205 |
+
Name | Type | Description | Notes
|
| 206 |
+
------------- | ------------- | ------------- | -------------
|
| 207 |
+
**id** | **Number**| Mastering id |
|
| 208 |
+
|
| 209 |
+
### Return type
|
| 210 |
+
|
| 211 |
+
[**Mastering**](Mastering.md)
|
| 212 |
+
|
| 213 |
+
### Authorization
|
| 214 |
+
|
| 215 |
+
[bearer](../README.md#bearer)
|
| 216 |
+
|
| 217 |
+
### HTTP request headers
|
| 218 |
+
|
| 219 |
+
- **Content-Type**: Not defined
|
| 220 |
+
- **Accept**: application/json
|
| 221 |
+
|
| 222 |
+
<a name="freeUnlockMastering"></a>
|
| 223 |
+
# **freeUnlockMastering**
|
| 224 |
+
> Mastering freeUnlockMastering(id, )
|
| 225 |
+
|
| 226 |
+
Free unlock a mastering by id.
|
| 227 |
+
|
| 228 |
+
### Example
|
| 229 |
+
```javascript
|
| 230 |
+
var Aimastering = require('aimastering');
|
| 231 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 232 |
+
|
| 233 |
+
// Configure API key authorization: bearer
|
| 234 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 235 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 236 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 237 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 238 |
+
|
| 239 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 240 |
+
|
| 241 |
+
var id = 56; // Number | Mastering id
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
var callback = function(error, data, response) {
|
| 245 |
+
if (error) {
|
| 246 |
+
console.error(error);
|
| 247 |
+
} else {
|
| 248 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 249 |
+
}
|
| 250 |
+
};
|
| 251 |
+
apiInstance.freeUnlockMastering(id, , callback);
|
| 252 |
+
```
|
| 253 |
+
|
| 254 |
+
### Parameters
|
| 255 |
+
|
| 256 |
+
Name | Type | Description | Notes
|
| 257 |
+
------------- | ------------- | ------------- | -------------
|
| 258 |
+
**id** | **Number**| Mastering id |
|
| 259 |
+
|
| 260 |
+
### Return type
|
| 261 |
+
|
| 262 |
+
[**Mastering**](Mastering.md)
|
| 263 |
+
|
| 264 |
+
### Authorization
|
| 265 |
+
|
| 266 |
+
[bearer](../README.md#bearer)
|
| 267 |
+
|
| 268 |
+
### HTTP request headers
|
| 269 |
+
|
| 270 |
+
- **Content-Type**: Not defined
|
| 271 |
+
- **Accept**: application/json
|
| 272 |
+
|
| 273 |
+
<a name="getMastering"></a>
|
| 274 |
+
# **getMastering**
|
| 275 |
+
> Mastering getMastering(id, )
|
| 276 |
+
|
| 277 |
+
Get a mastering by id.
|
| 278 |
+
|
| 279 |
+
### Example
|
| 280 |
+
```javascript
|
| 281 |
+
var Aimastering = require('aimastering');
|
| 282 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 283 |
+
|
| 284 |
+
// Configure API key authorization: bearer
|
| 285 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 286 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 287 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 288 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 289 |
+
|
| 290 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 291 |
+
|
| 292 |
+
var id = 56; // Number | Mastering id
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
var callback = function(error, data, response) {
|
| 296 |
+
if (error) {
|
| 297 |
+
console.error(error);
|
| 298 |
+
} else {
|
| 299 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 300 |
+
}
|
| 301 |
+
};
|
| 302 |
+
apiInstance.getMastering(id, , callback);
|
| 303 |
+
```
|
| 304 |
+
|
| 305 |
+
### Parameters
|
| 306 |
+
|
| 307 |
+
Name | Type | Description | Notes
|
| 308 |
+
------------- | ------------- | ------------- | -------------
|
| 309 |
+
**id** | **Number**| Mastering id |
|
| 310 |
+
|
| 311 |
+
### Return type
|
| 312 |
+
|
| 313 |
+
[**Mastering**](Mastering.md)
|
| 314 |
+
|
| 315 |
+
### Authorization
|
| 316 |
+
|
| 317 |
+
[bearer](../README.md#bearer)
|
| 318 |
+
|
| 319 |
+
### HTTP request headers
|
| 320 |
+
|
| 321 |
+
- **Content-Type**: Not defined
|
| 322 |
+
- **Accept**: application/json
|
| 323 |
+
|
| 324 |
+
<a name="getMasteringUnlockProduct"></a>
|
| 325 |
+
# **getMasteringUnlockProduct**
|
| 326 |
+
> Mastering getMasteringUnlockProduct(id, )
|
| 327 |
+
|
| 328 |
+
Review a mastering by id.
|
| 329 |
+
|
| 330 |
+
### Example
|
| 331 |
+
```javascript
|
| 332 |
+
var Aimastering = require('aimastering');
|
| 333 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 334 |
+
|
| 335 |
+
// Configure API key authorization: bearer
|
| 336 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 337 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 338 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 339 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 340 |
+
|
| 341 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 342 |
+
|
| 343 |
+
var id = 56; // Number | Mastering id
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
var callback = function(error, data, response) {
|
| 347 |
+
if (error) {
|
| 348 |
+
console.error(error);
|
| 349 |
+
} else {
|
| 350 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 351 |
+
}
|
| 352 |
+
};
|
| 353 |
+
apiInstance.getMasteringUnlockProduct(id, , callback);
|
| 354 |
+
```
|
| 355 |
+
|
| 356 |
+
### Parameters
|
| 357 |
+
|
| 358 |
+
Name | Type | Description | Notes
|
| 359 |
+
------------- | ------------- | ------------- | -------------
|
| 360 |
+
**id** | **Number**| Mastering id |
|
| 361 |
+
|
| 362 |
+
### Return type
|
| 363 |
+
|
| 364 |
+
[**Mastering**](Mastering.md)
|
| 365 |
+
|
| 366 |
+
### Authorization
|
| 367 |
+
|
| 368 |
+
[bearer](../README.md#bearer)
|
| 369 |
+
|
| 370 |
+
### HTTP request headers
|
| 371 |
+
|
| 372 |
+
- **Content-Type**: Not defined
|
| 373 |
+
- **Accept**: application/json
|
| 374 |
+
|
| 375 |
+
<a name="listMasterings"></a>
|
| 376 |
+
# **listMasterings**
|
| 377 |
+
> [Mastering] listMasterings()
|
| 378 |
+
|
| 379 |
+
Get all accessable masterings.
|
| 380 |
+
|
| 381 |
+
### Example
|
| 382 |
+
```javascript
|
| 383 |
+
var Aimastering = require('aimastering');
|
| 384 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 385 |
+
|
| 386 |
+
// Configure API key authorization: bearer
|
| 387 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 388 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 389 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 390 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 391 |
+
|
| 392 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 393 |
+
|
| 394 |
+
var callback = function(error, data, response) {
|
| 395 |
+
if (error) {
|
| 396 |
+
console.error(error);
|
| 397 |
+
} else {
|
| 398 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 399 |
+
}
|
| 400 |
+
};
|
| 401 |
+
apiInstance.listMasterings(callback);
|
| 402 |
+
```
|
| 403 |
+
|
| 404 |
+
### Parameters
|
| 405 |
+
This endpoint does not need any parameter.
|
| 406 |
+
|
| 407 |
+
### Return type
|
| 408 |
+
|
| 409 |
+
[**[Mastering]**](Mastering.md)
|
| 410 |
+
|
| 411 |
+
### Authorization
|
| 412 |
+
|
| 413 |
+
[bearer](../README.md#bearer)
|
| 414 |
+
|
| 415 |
+
### HTTP request headers
|
| 416 |
+
|
| 417 |
+
- **Content-Type**: Not defined
|
| 418 |
+
- **Accept**: application/json
|
| 419 |
+
|
| 420 |
+
<a name="publishMastering"></a>
|
| 421 |
+
# **publishMastering**
|
| 422 |
+
> Mastering publishMastering(id, accessToken, message, opts)
|
| 423 |
+
|
| 424 |
+
Publish a mastering by id.
|
| 425 |
+
|
| 426 |
+
### Example
|
| 427 |
+
```javascript
|
| 428 |
+
var Aimastering = require('aimastering');
|
| 429 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 430 |
+
|
| 431 |
+
// Configure API key authorization: bearer
|
| 432 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 433 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 434 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 435 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 436 |
+
|
| 437 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 438 |
+
|
| 439 |
+
var id = 56; // Number | Mastering id
|
| 440 |
+
|
| 441 |
+
var accessToken = "accessToken_example"; // String | This parameter represents if the access token of the publishment service API.
|
| 442 |
+
|
| 443 |
+
var message = "message_example"; // String | This parameter represents the publishment message.
|
| 444 |
+
|
| 445 |
+
var opts = {
|
| 446 |
+
'service': "service_example", // String | This parameter represents the publishment service.
|
| 447 |
+
'accessTokenSecret': "accessTokenSecret_example" // String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is \"twitter\".
|
| 448 |
+
};
|
| 449 |
+
|
| 450 |
+
var callback = function(error, data, response) {
|
| 451 |
+
if (error) {
|
| 452 |
+
console.error(error);
|
| 453 |
+
} else {
|
| 454 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 455 |
+
}
|
| 456 |
+
};
|
| 457 |
+
apiInstance.publishMastering(id, accessToken, message, opts, callback);
|
| 458 |
+
```
|
| 459 |
+
|
| 460 |
+
### Parameters
|
| 461 |
+
|
| 462 |
+
Name | Type | Description | Notes
|
| 463 |
+
------------- | ------------- | ------------- | -------------
|
| 464 |
+
**id** | **Number**| Mastering id |
|
| 465 |
+
**accessToken** | **String**| This parameter represents if the access token of the publishment service API. |
|
| 466 |
+
**message** | **String**| This parameter represents the publishment message. |
|
| 467 |
+
**service** | **String**| This parameter represents the publishment service. | [optional]
|
| 468 |
+
**accessTokenSecret** | **String**| This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is \"twitter\". | [optional]
|
| 469 |
+
|
| 470 |
+
### Return type
|
| 471 |
+
|
| 472 |
+
[**Mastering**](Mastering.md)
|
| 473 |
+
|
| 474 |
+
### Authorization
|
| 475 |
+
|
| 476 |
+
[bearer](../README.md#bearer)
|
| 477 |
+
|
| 478 |
+
### HTTP request headers
|
| 479 |
+
|
| 480 |
+
- **Content-Type**: multipart/form-data
|
| 481 |
+
- **Accept**: application/json
|
| 482 |
+
|
| 483 |
+
<a name="reviewMastering"></a>
|
| 484 |
+
# **reviewMastering**
|
| 485 |
+
> Mastering reviewMastering(id, , opts)
|
| 486 |
+
|
| 487 |
+
Review a mastering by id.
|
| 488 |
+
|
| 489 |
+
### Example
|
| 490 |
+
```javascript
|
| 491 |
+
var Aimastering = require('aimastering');
|
| 492 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 493 |
+
|
| 494 |
+
// Configure API key authorization: bearer
|
| 495 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 496 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 497 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 498 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 499 |
+
|
| 500 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 501 |
+
|
| 502 |
+
var id = 56; // Number | Mastering id
|
| 503 |
+
|
| 504 |
+
var opts = {
|
| 505 |
+
'reviewComment': "reviewComment_example", // String | This parameter represents the review comment.
|
| 506 |
+
'reviewScore': 8.14 // Number | This parameter represents the review score.
|
| 507 |
+
};
|
| 508 |
+
|
| 509 |
+
var callback = function(error, data, response) {
|
| 510 |
+
if (error) {
|
| 511 |
+
console.error(error);
|
| 512 |
+
} else {
|
| 513 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 514 |
+
}
|
| 515 |
+
};
|
| 516 |
+
apiInstance.reviewMastering(id, , opts, callback);
|
| 517 |
+
```
|
| 518 |
+
|
| 519 |
+
### Parameters
|
| 520 |
+
|
| 521 |
+
Name | Type | Description | Notes
|
| 522 |
+
------------- | ------------- | ------------- | -------------
|
| 523 |
+
**id** | **Number**| Mastering id |
|
| 524 |
+
**reviewComment** | **String**| This parameter represents the review comment. | [optional]
|
| 525 |
+
**reviewScore** | **Number**| This parameter represents the review score. | [optional]
|
| 526 |
+
|
| 527 |
+
### Return type
|
| 528 |
+
|
| 529 |
+
[**Mastering**](Mastering.md)
|
| 530 |
+
|
| 531 |
+
### Authorization
|
| 532 |
+
|
| 533 |
+
[bearer](../README.md#bearer)
|
| 534 |
+
|
| 535 |
+
### HTTP request headers
|
| 536 |
+
|
| 537 |
+
- **Content-Type**: multipart/form-data
|
| 538 |
+
- **Accept**: application/json
|
| 539 |
+
|
| 540 |
+
<a name="updateMastering"></a>
|
| 541 |
+
# **updateMastering**
|
| 542 |
+
> Mastering updateMastering(id, , opts)
|
| 543 |
+
|
| 544 |
+
Update a mastering.
|
| 545 |
+
|
| 546 |
+
### Example
|
| 547 |
+
```javascript
|
| 548 |
+
var Aimastering = require('aimastering');
|
| 549 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 550 |
+
|
| 551 |
+
// Configure API key authorization: bearer
|
| 552 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 553 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 554 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 555 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 556 |
+
|
| 557 |
+
var apiInstance = new Aimastering.MasteringApi();
|
| 558 |
+
|
| 559 |
+
var id = 56; // Number | Mastering id
|
| 560 |
+
|
| 561 |
+
var opts = {
|
| 562 |
+
'preserved': true // Boolean | Disable auto delete.
|
| 563 |
+
};
|
| 564 |
+
|
| 565 |
+
var callback = function(error, data, response) {
|
| 566 |
+
if (error) {
|
| 567 |
+
console.error(error);
|
| 568 |
+
} else {
|
| 569 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 570 |
+
}
|
| 571 |
+
};
|
| 572 |
+
apiInstance.updateMastering(id, , opts, callback);
|
| 573 |
+
```
|
| 574 |
+
|
| 575 |
+
### Parameters
|
| 576 |
+
|
| 577 |
+
Name | Type | Description | Notes
|
| 578 |
+
------------- | ------------- | ------------- | -------------
|
| 579 |
+
**id** | **Number**| Mastering id |
|
| 580 |
+
**preserved** | **Boolean**| Disable auto delete. | [optional]
|
| 581 |
+
|
| 582 |
+
### Return type
|
| 583 |
+
|
| 584 |
+
[**Mastering**](Mastering.md)
|
| 585 |
+
|
| 586 |
+
### Authorization
|
| 587 |
+
|
| 588 |
+
[bearer](../README.md#bearer)
|
| 589 |
+
|
| 590 |
+
### HTTP request headers
|
| 591 |
+
|
| 592 |
+
- **Content-Type**: multipart/form-data
|
| 593 |
+
- **Accept**: application/json
|
| 594 |
+
|
masteringModule/node_modules/aimastering/docs/Payment.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.Payment
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**service** | **String** | | [optional]
|
| 8 |
+
**productGiven** | **Boolean** | | [optional]
|
| 9 |
+
**product** | **Object** | | [optional]
|
| 10 |
+
**transactionId** | **String** | | [optional]
|
| 11 |
+
**transactionDetail** | **Object** | | [optional]
|
| 12 |
+
**createdAt** | **Date** | | [optional]
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
<a name="ServiceEnum"></a>
|
| 16 |
+
## Enum: ServiceEnum
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
* `paypal` (value: `"paypal"`)
|
| 20 |
+
|
| 21 |
+
* `stripe` (value: `"stripe"`)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
masteringModule/node_modules/aimastering/docs/PaymentApi.md
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.PaymentApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**createPayment**](PaymentApi.md#createPayment) | **POST** /payments | Create a new payment.
|
| 8 |
+
[**executePayment**](PaymentApi.md#executePayment) | **PUT** /payments/{id}/execute | Execute a payment by id.
|
| 9 |
+
[**getPayment**](PaymentApi.md#getPayment) | **GET** /payments/{id} | Get a payment by id.
|
| 10 |
+
[**listPayments**](PaymentApi.md#listPayments) | **GET** /payments | Get all accessable payments.
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<a name="createPayment"></a>
|
| 14 |
+
# **createPayment**
|
| 15 |
+
> Payment createPayment(productToken, service, opts)
|
| 16 |
+
|
| 17 |
+
Create a new payment.
|
| 18 |
+
|
| 19 |
+
### Example
|
| 20 |
+
```javascript
|
| 21 |
+
var Aimastering = require('aimastering');
|
| 22 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 23 |
+
|
| 24 |
+
// Configure API key authorization: bearer
|
| 25 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 26 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 27 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 28 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 29 |
+
|
| 30 |
+
var apiInstance = new Aimastering.PaymentApi();
|
| 31 |
+
|
| 32 |
+
var productToken = "productToken_example"; // String | This parameter represents the product token.
|
| 33 |
+
|
| 34 |
+
var service = "service_example"; // String | This parameter represents the payment message.
|
| 35 |
+
|
| 36 |
+
var opts = {
|
| 37 |
+
'token': "token_example" // String | This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
|
| 38 |
+
};
|
| 39 |
+
|
| 40 |
+
var callback = function(error, data, response) {
|
| 41 |
+
if (error) {
|
| 42 |
+
console.error(error);
|
| 43 |
+
} else {
|
| 44 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 45 |
+
}
|
| 46 |
+
};
|
| 47 |
+
apiInstance.createPayment(productToken, service, opts, callback);
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
### Parameters
|
| 51 |
+
|
| 52 |
+
Name | Type | Description | Notes
|
| 53 |
+
------------- | ------------- | ------------- | -------------
|
| 54 |
+
**productToken** | **String**| This parameter represents the product token. |
|
| 55 |
+
**service** | **String**| This parameter represents the payment message. |
|
| 56 |
+
**token** | **String**| This parameter represents the card token. This parameter is effective only when the service is \"stripe\". | [optional]
|
| 57 |
+
|
| 58 |
+
### Return type
|
| 59 |
+
|
| 60 |
+
[**Payment**](Payment.md)
|
| 61 |
+
|
| 62 |
+
### Authorization
|
| 63 |
+
|
| 64 |
+
[bearer](../README.md#bearer)
|
| 65 |
+
|
| 66 |
+
### HTTP request headers
|
| 67 |
+
|
| 68 |
+
- **Content-Type**: multipart/form-data
|
| 69 |
+
- **Accept**: application/json
|
| 70 |
+
|
| 71 |
+
<a name="executePayment"></a>
|
| 72 |
+
# **executePayment**
|
| 73 |
+
> Payment executePayment(id, payerId)
|
| 74 |
+
|
| 75 |
+
Execute a payment by id.
|
| 76 |
+
|
| 77 |
+
### Example
|
| 78 |
+
```javascript
|
| 79 |
+
var Aimastering = require('aimastering');
|
| 80 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 81 |
+
|
| 82 |
+
// Configure API key authorization: bearer
|
| 83 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 84 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 85 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 86 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 87 |
+
|
| 88 |
+
var apiInstance = new Aimastering.PaymentApi();
|
| 89 |
+
|
| 90 |
+
var id = 56; // Number | Payment id
|
| 91 |
+
|
| 92 |
+
var payerId = "payerId_example"; // String | This parameter represents the card token. This parameter is effective only when the service is \"paypal\".
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
var callback = function(error, data, response) {
|
| 96 |
+
if (error) {
|
| 97 |
+
console.error(error);
|
| 98 |
+
} else {
|
| 99 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 100 |
+
}
|
| 101 |
+
};
|
| 102 |
+
apiInstance.executePayment(id, payerId, callback);
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
### Parameters
|
| 106 |
+
|
| 107 |
+
Name | Type | Description | Notes
|
| 108 |
+
------------- | ------------- | ------------- | -------------
|
| 109 |
+
**id** | **Number**| Payment id |
|
| 110 |
+
**payerId** | **String**| This parameter represents the card token. This parameter is effective only when the service is \"paypal\". |
|
| 111 |
+
|
| 112 |
+
### Return type
|
| 113 |
+
|
| 114 |
+
[**Payment**](Payment.md)
|
| 115 |
+
|
| 116 |
+
### Authorization
|
| 117 |
+
|
| 118 |
+
[bearer](../README.md#bearer)
|
| 119 |
+
|
| 120 |
+
### HTTP request headers
|
| 121 |
+
|
| 122 |
+
- **Content-Type**: multipart/form-data
|
| 123 |
+
- **Accept**: application/json
|
| 124 |
+
|
| 125 |
+
<a name="getPayment"></a>
|
| 126 |
+
# **getPayment**
|
| 127 |
+
> Payment getPayment(id, )
|
| 128 |
+
|
| 129 |
+
Get a payment by id.
|
| 130 |
+
|
| 131 |
+
### Example
|
| 132 |
+
```javascript
|
| 133 |
+
var Aimastering = require('aimastering');
|
| 134 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 135 |
+
|
| 136 |
+
// Configure API key authorization: bearer
|
| 137 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 138 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 139 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 140 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 141 |
+
|
| 142 |
+
var apiInstance = new Aimastering.PaymentApi();
|
| 143 |
+
|
| 144 |
+
var id = 56; // Number | Payment id
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
var callback = function(error, data, response) {
|
| 148 |
+
if (error) {
|
| 149 |
+
console.error(error);
|
| 150 |
+
} else {
|
| 151 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 152 |
+
}
|
| 153 |
+
};
|
| 154 |
+
apiInstance.getPayment(id, , callback);
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
### Parameters
|
| 158 |
+
|
| 159 |
+
Name | Type | Description | Notes
|
| 160 |
+
------------- | ------------- | ------------- | -------------
|
| 161 |
+
**id** | **Number**| Payment id |
|
| 162 |
+
|
| 163 |
+
### Return type
|
| 164 |
+
|
| 165 |
+
[**Payment**](Payment.md)
|
| 166 |
+
|
| 167 |
+
### Authorization
|
| 168 |
+
|
| 169 |
+
[bearer](../README.md#bearer)
|
| 170 |
+
|
| 171 |
+
### HTTP request headers
|
| 172 |
+
|
| 173 |
+
- **Content-Type**: Not defined
|
| 174 |
+
- **Accept**: application/json
|
| 175 |
+
|
| 176 |
+
<a name="listPayments"></a>
|
| 177 |
+
# **listPayments**
|
| 178 |
+
> [Payment] listPayments()
|
| 179 |
+
|
| 180 |
+
Get all accessable payments.
|
| 181 |
+
|
| 182 |
+
### Example
|
| 183 |
+
```javascript
|
| 184 |
+
var Aimastering = require('aimastering');
|
| 185 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 186 |
+
|
| 187 |
+
// Configure API key authorization: bearer
|
| 188 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 189 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 190 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 191 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 192 |
+
|
| 193 |
+
var apiInstance = new Aimastering.PaymentApi();
|
| 194 |
+
|
| 195 |
+
var callback = function(error, data, response) {
|
| 196 |
+
if (error) {
|
| 197 |
+
console.error(error);
|
| 198 |
+
} else {
|
| 199 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 200 |
+
}
|
| 201 |
+
};
|
| 202 |
+
apiInstance.listPayments(callback);
|
| 203 |
+
```
|
| 204 |
+
|
| 205 |
+
### Parameters
|
| 206 |
+
This endpoint does not need any parameter.
|
| 207 |
+
|
| 208 |
+
### Return type
|
| 209 |
+
|
| 210 |
+
[**[Payment]**](Payment.md)
|
| 211 |
+
|
| 212 |
+
### Authorization
|
| 213 |
+
|
| 214 |
+
[bearer](../README.md#bearer)
|
| 215 |
+
|
| 216 |
+
### HTTP request headers
|
| 217 |
+
|
| 218 |
+
- **Content-Type**: Not defined
|
| 219 |
+
- **Accept**: application/json
|
| 220 |
+
|
masteringModule/node_modules/aimastering/docs/PaymentCustomer.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.PaymentCustomer
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**id** | **Number** | | [optional]
|
| 7 |
+
**paymentCustomerDetail** | **Object** | | [optional]
|
| 8 |
+
**createdAt** | **Date** | | [optional]
|
| 9 |
+
**updatedAt** | **Date** | | [optional]
|
| 10 |
+
|
| 11 |
+
|
masteringModule/node_modules/aimastering/docs/PaymentCustomerApi.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.PaymentCustomerApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**getDefaultPaymentCustomer**](PaymentCustomerApi.md#getDefaultPaymentCustomer) | **GET** /payment_customers/default | Get a default payment customer.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="getDefaultPaymentCustomer"></a>
|
| 11 |
+
# **getDefaultPaymentCustomer**
|
| 12 |
+
> [PaymentCustomer] getDefaultPaymentCustomer()
|
| 13 |
+
|
| 14 |
+
Get a default payment customer.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.PaymentCustomerApi();
|
| 28 |
+
|
| 29 |
+
var callback = function(error, data, response) {
|
| 30 |
+
if (error) {
|
| 31 |
+
console.error(error);
|
| 32 |
+
} else {
|
| 33 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
apiInstance.getDefaultPaymentCustomer(callback);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### Parameters
|
| 40 |
+
This endpoint does not need any parameter.
|
| 41 |
+
|
| 42 |
+
### Return type
|
| 43 |
+
|
| 44 |
+
[**[PaymentCustomer]**](PaymentCustomer.md)
|
| 45 |
+
|
| 46 |
+
### Authorization
|
| 47 |
+
|
| 48 |
+
[bearer](../README.md#bearer)
|
| 49 |
+
|
| 50 |
+
### HTTP request headers
|
| 51 |
+
|
| 52 |
+
- **Content-Type**: Not defined
|
| 53 |
+
- **Accept**: application/json
|
| 54 |
+
|
masteringModule/node_modules/aimastering/docs/Plan.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.Plan
|
| 2 |
+
|
| 3 |
+
## Properties
|
| 4 |
+
Name | Type | Description | Notes
|
| 5 |
+
------------ | ------------- | ------------- | -------------
|
| 6 |
+
**amount** | **Number** | | [optional]
|
| 7 |
+
**currency** | **String** | | [optional]
|
| 8 |
+
**interval** | **String** | | [optional]
|
| 9 |
+
**name** | **String** | | [optional]
|
| 10 |
+
**stripePlanId** | **String** | | [optional]
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<a name="CurrencyEnum"></a>
|
| 14 |
+
## Enum: CurrencyEnum
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
* `jpy` (value: `"jpy"`)
|
| 18 |
+
|
| 19 |
+
* `usd` (value: `"usd"`)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
<a name="IntervalEnum"></a>
|
| 25 |
+
## Enum: IntervalEnum
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
* `month` (value: `"month"`)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
masteringModule/node_modules/aimastering/docs/PlanApi.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aimastering.PlanApi
|
| 2 |
+
|
| 3 |
+
All URIs are relative to *https://api.bakuage.com:443*
|
| 4 |
+
|
| 5 |
+
Method | HTTP request | Description
|
| 6 |
+
------------- | ------------- | -------------
|
| 7 |
+
[**listPlans**](PlanApi.md#listPlans) | **GET** /plans | Get all accessable plans.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<a name="listPlans"></a>
|
| 11 |
+
# **listPlans**
|
| 12 |
+
> [Plan] listPlans()
|
| 13 |
+
|
| 14 |
+
Get all accessable plans.
|
| 15 |
+
|
| 16 |
+
### Example
|
| 17 |
+
```javascript
|
| 18 |
+
var Aimastering = require('aimastering');
|
| 19 |
+
var defaultClient = Aimastering.ApiClient.instance;
|
| 20 |
+
|
| 21 |
+
// Configure API key authorization: bearer
|
| 22 |
+
var bearer = defaultClient.authentications['bearer'];
|
| 23 |
+
bearer.apiKey = 'YOUR API KEY';
|
| 24 |
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
| 25 |
+
//bearer.apiKeyPrefix = 'Token';
|
| 26 |
+
|
| 27 |
+
var apiInstance = new Aimastering.PlanApi();
|
| 28 |
+
|
| 29 |
+
var callback = function(error, data, response) {
|
| 30 |
+
if (error) {
|
| 31 |
+
console.error(error);
|
| 32 |
+
} else {
|
| 33 |
+
console.log('API called successfully. Returned data: ' + data);
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
apiInstance.listPlans(callback);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### Parameters
|
| 40 |
+
This endpoint does not need any parameter.
|
| 41 |
+
|
| 42 |
+
### Return type
|
| 43 |
+
|
| 44 |
+
[**[Plan]**](Plan.md)
|
| 45 |
+
|
| 46 |
+
### Authorization
|
| 47 |
+
|
| 48 |
+
[bearer](../README.md#bearer)
|
| 49 |
+
|
| 50 |
+
### HTTP request headers
|
| 51 |
+
|
| 52 |
+
- **Content-Type**: Not defined
|
| 53 |
+
- **Accept**: application/json
|
| 54 |
+
|