{"_id":"@agilegravity/ai-client","_rev":"3-8d3a46f86a8d823556d2bdfca8ae977c","name":"@agilegravity/ai-client","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@agilegravity/ai-client","version":"1.0.0","description":"Agile Ai Client","license":"Unlicense","main":"src/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"babel":"^6.23.0","babel-cli":"^6.26.0","superagent":"3.5.2"},"devDependencies":{"babel-core":"6.26.0","babel-preset-env":"^1.6.1","babel-preset-stage-0":"^6.24.1","expect.js":"~0.3.1","mocha":"~2.3.4","sinon":"1.17.3"},"gitHead":"1d872bf5ffb615e35698acef6627d1a8469b8541","_id":"@agilegravity/ai-client@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"weiner","email":"benediktweiner@gmail.com"},"dist":{"integrity":"sha512-XltlQVak4bv57vVYnEdltJuJKE4ph1kC9AKbuR9yWtAahuSNY75jLeBTTmX/zEr2LpnVHAdbasSIszpSKSKWRA==","shasum":"616957e621665a79898161699c6c662b1e8d47bb","tarball":"https://registry.npmjs.org/@agilegravity/ai-client/-/ai-client-1.0.0.tgz","fileCount":62,"unpackedSize":169909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdVhcCRA9TVsSAnZWagAAhg8P/1ZZiLYsXkxS2MxfsDc3\nize6rMD2NOIyLGxe2vm1NzPGElIhW1BDT7Je1TFX/6cXNdJVKYp+57optC7j\n4ro9AIzwCD3oAbIYiR4v5NcKNThCqET+27bNca/n2Ky8FRKfbgyGVnNMYbES\nFPV80W3n5FTbucheBwLjoUZL5Xrlofs79UY+umwTkVDmuZTe4OLjN10CtUk8\nZJhhO2kU3yubkaxMHM/UkyWSlbAx4nHI/UfhpAt9vRMCaXUBT4OF7qft98N4\n4Rte836OLXxqvWDKYYxDeI7cCIweoqknVrpcckI/Fwrn7hWZJyXxVq2qNv+L\n9NPjYqVQb2xwCeAezFOiIG43GMWjjoM63r3mHPkX+I1w8+3vtRDVlXK5o2Ks\nNWsmXiQOvLdms1BvoieYUG1cLZmxTa640+Np2r7Tbv7xrwStn9gwU8lHoF1h\ndqBAqpZE87py8qaWej8BXC301aYD8pBOB3krdObMrlTIWtEK8YMTM6j6Yku6\nPqFzmwix1REYQ5iW1/wZGApf+TCmchHyfNW4QWiCaRlAoG7sKyUnY5A4U5Kv\nI0X/sm6L2ihKGK1ePHHvTwXbTu/obBWqhrFi26qc4csuh1/ey6gyh9Ft+ySK\nr4yclhC7OKMg2Hn0qDpBbAEcLE0+L7G8ouyB3TZ/hxbg7y/waiyl+ie28UYE\n4zBv\r\n=oXE/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd6MGAfOLa4Kj0rkH88wRqN7eyRw47vt8kN/sRZaNJ1wIhAK8eZ0UGmRlUgSJzgUss94+ykoLbJtIyukFpUd5YnRfq"}]},"maintainers":[{"name":"weiner","email":"benediktweiner@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ai-client_1.0.0_1534416987414_0.6683048895107722"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-16T10:56:27.229Z","1.0.0":"2018-08-16T10:56:27.526Z","modified":"2022-04-04T11:58:07.217Z"},"maintainers":[{"email":"aws@agilegravity.com","name":"agileegravity"},{"email":"stahl@agilegravity.com","name":"stahlp"},{"email":"benediktweiner@gmail.com","name":"weiner"}],"description":"Agile Ai Client","license":"Unlicense","readme":"# ai-client\n\nAiClient - JavaScript client for ai-client\nThis is the rest API for sutoga AI\nThis SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: 1.0.0\n- Package version: 1.0.0\n- Build package: io.swagger.codegen.languages.JavascriptClientCodegen\n\n## Installation\n\n### For [Node.js](https://nodejs.org/)\n\n#### npm\n\nTo publish the library as a [npm](https://www.npmjs.com/),\nplease follow the procedure in [\"Publishing npm packages\"](https://docs.npmjs.com/getting-started/publishing-npm-packages).\n\nThen install it via:\n\n```shell\nnpm install ai-client --save\n```\n\n##### Local development\n\nTo use the library locally without publishing to a remote npm registry, first install the dependencies by changing \ninto the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:\n\n```shell\nnpm install\n```\n\nNext, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:\n\n```shell\nnpm link\n```\n\nFinally, switch to the directory you want to use your ai-client from, and run:\n\n```shell\nnpm link /path/to/<JAVASCRIPT_CLIENT_DIR>\n```\n\nYou should now be able to `require('ai-client')` in javascript files from the directory you ran the last \ncommand above from.\n\n#### git\n#\nIf the library is hosted at a git repository, e.g.\nhttps://github.com/YOUR_USERNAME/ai-client\nthen install it via:\n\n```shell\n    npm install YOUR_USERNAME/ai-client --save\n```\n\n### For browser\n\nThe library also works in the browser environment via npm and [browserify](http://browserify.org/). After following\nthe above steps with Node.js and installing browserify with `npm install -g browserify`,\nperform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually \nuse this library):\n\n```shell\nbrowserify main.js > bundle.js\n```\n\nThen include *bundle.js* in the HTML pages.\n\n### Webpack Configuration\n\nUsing Webpack you may encounter the following error: \"Module not found: Error:\nCannot resolve module\", most certainly you should disable AMD loader. Add/merge\nthe following section to your webpack config:\n\n```javascript\nmodule: {\n  rules: [\n    {\n      parser: {\n        amd: false\n      }\n    }\n  ]\n}\n```\n\n## Getting Started\n\nPlease follow the [installation](#installation) instruction and execute the following JS code:\n\n```javascript\nvar AiClient = require('ai-client');\n\nvar defaultClient = AiClient.ApiClient.instance;\n\n// Configure HTTP basic authorization: basicAuth\nvar basicAuth = defaultClient.authentications['basicAuth'];\nbasicAuth.username = 'YOUR USERNAME'\nbasicAuth.password = 'YOUR PASSWORD'\n\nvar api = new AiClient.AiApi()\n\nvar opts = { \n  'body': new AiClient.Body() // {Body} \n};\napi.aiRunPost(opts).then(function() {\n  console.log('API called successfully.');\n}, function(error) {\n  console.error(error);\n});\n\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://virtserver.swaggerhub.com*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*AiClient.AiApi* | [**aiRunPost**](docs/AiApi.md#aiRunPost) | **POST** /ai_run | \n*AiClient.CucumberFeaturesApi* | [**createCucumberFeature**](docs/CucumberFeaturesApi.md#createCucumberFeature) | **POST** /api/{b2bPartnerId}/cucumber-features | \n*AiClient.CucumberFeaturesApi* | [**getCucumberFeature**](docs/CucumberFeaturesApi.md#getCucumberFeature) | **GET** /api/{b2bPartnerId}/cucumber-features/{CucumberFeatureId} | \n*AiClient.CucumberFeaturesApi* | [**getCucumberFeatures**](docs/CucumberFeaturesApi.md#getCucumberFeatures) | **GET** /api/{b2bPartnerId}/cucumber-features | \n*AiClient.CucumberFeaturesApi* | [**updateCucumberFeature**](docs/CucumberFeaturesApi.md#updateCucumberFeature) | **PUT** /api/{b2bPartnerId}/cucumber-features/{CucumberFeatureId} | \n*AiClient.FactsApi* | [**factsGet**](docs/FactsApi.md#factsGet) | **GET** /facts | \n\n\n## Documentation for Models\n\n - [AiClient.Body](docs/Body.md)\n - [AiClient.Brick](docs/Brick.md)\n - [AiClient.Context](docs/Context.md)\n - [AiClient.CucumberFeature](docs/CucumberFeature.md)\n - [AiClient.Fact](docs/Fact.md)\n - [AiClient.InlineResponse200](docs/InlineResponse200.md)\n - [AiClient.ItemOfComments](docs/ItemOfComments.md)\n - [AiClient.ItemOfEvents](docs/ItemOfEvents.md)\n - [AiClient.ItemOfInputs](docs/ItemOfInputs.md)\n - [AiClient.ItemOfOptionSwipe](docs/ItemOfOptionSwipe.md)\n - [AiClient.ItemOfPostbackData](docs/ItemOfPostbackData.md)\n - [AiClient.ItemOfProductSwipe](docs/ItemOfProductSwipe.md)\n - [AiClient.ItemOfRatings](docs/ItemOfRatings.md)\n - [AiClient.ItemOfSuggestedOptions](docs/ItemOfSuggestedOptions.md)\n - [AiClient.ItemOfSuggestedProducts](docs/ItemOfSuggestedProducts.md)\n\n\n## Documentation for Authorization\n\n\n### basicAuth\n\n- **Type**: HTTP basic authentication\n\n","readmeFilename":"README.md"}