From 0cb00c205095a0c131acef90c0d0373c5012312b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=B9=80=EC=A4=91=ED=9B=88?= \n\t * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:\n\t *
\n\t * The index
module provides access to constructors for all the classes which comprise the public API.\n\t * \n\t * var WebidaRestfulApi = require('index'); // See note below*.\n\t * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n\t * var yyyModel = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n\t * yyyModel.someProperty = 'someValue';\n\t * ...\n\t * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n\t * ...\n\t *
\n\t * *NOTE: For a top-level AMD script, use require(['index'], function(){...})\n\t * and put the application logic within the callback function.\n\t *
\n\t * A non-AMD browser application (discouraged) might do something like this:\n\t *
\n\t * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n\t * var yyy = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n\t * yyyModel.someProperty = 'someValue';\n\t * ...\n\t * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n\t * ...\n\t *\n\t * \n\t * @module index\n\t * @version 0.3.0\n\t */\n\t var exports = {\n\t /**\n\t * The ApiClient constructor.\n\t * @property {module:ApiClient}\n\t */\n\t ApiClient: ApiClient,\n\t /**\n\t * The ChildProcess model constructor.\n\t * @property {module:model/ChildProcess}\n\t */\n\t ChildProcess: ChildProcess,\n\t /**\n\t * The Credential model constructor.\n\t * @property {module:model/Credential}\n\t */\n\t Credential: Credential,\n\t /**\n\t * The DirEntry model constructor.\n\t * @property {module:model/DirEntry}\n\t */\n\t DirEntry: DirEntry,\n\t /**\n\t * The Execution model constructor.\n\t * @property {module:model/Execution}\n\t */\n\t Execution: Execution,\n\t /**\n\t * The ExecutionResult model constructor.\n\t * @property {module:model/ExecutionResult}\n\t */\n\t ExecutionResult: ExecutionResult,\n\t /**\n\t * The Match model constructor.\n\t * @property {module:model/Match}\n\t */\n\t Match: Match,\n\t /**\n\t * The RemoteAccess model constructor.\n\t * @property {module:model/RemoteAccess}\n\t */\n\t RemoteAccess: RemoteAccess,\n\t /**\n\t * The RestError model constructor.\n\t * @property {module:model/RestError}\n\t */\n\t RestError: RestError,\n\t /**\n\t * The RestOK model constructor.\n\t * @property {module:model/RestOK}\n\t */\n\t RestOK: RestOK,\n\t /**\n\t * The Session model constructor.\n\t * @property {module:model/Session}\n\t */\n\t Session: Session,\n\t /**\n\t * The Stats model constructor.\n\t * @property {module:model/Stats}\n\t */\n\t Stats: Stats,\n\t /**\n\t * The Token model constructor.\n\t * @property {module:model/Token}\n\t */\n\t Token: Token,\n\t /**\n\t * The User model constructor.\n\t * @property {module:model/User}\n\t */\n\t User: User,\n\t /**\n\t * The Workspace model constructor.\n\t * @property {module:model/Workspace}\n\t */\n\t Workspace: Workspace,\n\t /**\n\t * The AuthApi service constructor.\n\t * @property {module:api/AuthApi}\n\t */\n\t AuthApi: AuthApi,\n\t /**\n\t * The OpsApi service constructor.\n\t * @property {module:api/OpsApi}\n\t */\n\t OpsApi: OpsApi,\n\t /**\n\t * The RemotesApi service constructor.\n\t * @property {module:api/RemotesApi}\n\t */\n\t RemotesApi: RemotesApi,\n\t /**\n\t * The SessionApi service constructor.\n\t * @property {module:api/SessionApi}\n\t */\n\t SessionApi: SessionApi,\n\t /**\n\t * The WfsApi service constructor.\n\t * @property {module:api/WfsApi}\n\t */\n\t WfsApi: WfsApi,\n\t /**\n\t * The WorkspaceApi service constructor.\n\t * @property {module:api/WorkspaceApi}\n\t */\n\t WorkspaceApi: WorkspaceApi\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(16)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('superagent'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ApiClient = factory(root.superagent);\n\t }\n\t}(this, function(superagent) {\n\t 'use strict';\n\t\n\t /**\n\t * @module ApiClient\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n\t * application to use this class directly - the *Api and model classes provide the public API for the service. The\n\t * contents of this file should be regarded as internal but are documented for completeness.\n\t * @alias module:ApiClient\n\t * @class\n\t */\n\t var exports = function() {\n\t /**\n\t * The base URL against which to resolve every API call's (relative) path.\n\t * @type {String}\n\t * @default https://localhost/api\n\t */\n\t this.basePath = 'https://localhost/api'.replace(/\\/+$/, '');\n\t\n\t /**\n\t * The authentication methods to be included for all API calls.\n\t * @type {Array.
param
.\n\t */\n\t exports.prototype.paramToString = function(param) {\n\t if (param == undefined || param == null) {\n\t return '';\n\t }\n\t if (param instanceof Date) {\n\t return param.toJSON();\n\t }\n\t return param.toString();\n\t };\n\t\n\t /**\n\t * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.\n\t * NOTE: query parameters are not handled here.\n\t * @param {String} path The path to append to the base URL.\n\t * @param {Object} pathParams The parameter values to append.\n\t * @returns {String} The encoded path with parameter values substituted.\n\t */\n\t exports.prototype.buildUrl = function(path, pathParams) {\n\t if (!path.match(/^\\//)) {\n\t path = '/' + path;\n\t }\n\t var url = this.basePath + path;\n\t var _this = this;\n\t url = url.replace(/\\{([\\w-]+)\\}/g, function(fullMatch, key) {\n\t var value;\n\t if (pathParams.hasOwnProperty(key)) {\n\t value = _this.paramToString(pathParams[key]);\n\t } else {\n\t value = fullMatch;\n\t }\n\t return encodeURIComponent(value);\n\t });\n\t return url;\n\t };\n\t\n\t /**\n\t * Checks whether the given content type represents JSON.true
if contentType
represents JSON, otherwise false
.\n\t */\n\t exports.prototype.isJsonMime = function(contentType) {\n\t return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n\t };\n\t\n\t /**\n\t * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n\t * @param {Array.true
if param
represents a file. \n\t */\n\t exports.prototype.isFileParam = function(param) {\n\t // fs.ReadStream in Node.js (but not in runtime like browserify)\n\t if (typeof window === 'undefined' &&\n\t \"function\" === 'function' &&\n\t __webpack_require__(6) &&\n\t param instanceof __webpack_require__(6).ReadStream) {\n\t return true;\n\t }\n\t // Buffer in Node.js\n\t if (typeof Buffer === 'function' && param instanceof Buffer) {\n\t return true;\n\t }\n\t // Blob in browser\n\t if (typeof Blob === 'function' && param instanceof Blob) {\n\t return true;\n\t }\n\t // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n\t if (typeof File === 'function' && param instanceof File) {\n\t return true;\n\t }\n\t return false;\n\t };\n\t\n\t /**\n\t * Normalizes parameter values:\n\t * csv
\n\t * @const\n\t */\n\t CSV: ',',\n\t /**\n\t * Space-separated values. Value: ssv
\n\t * @const\n\t */\n\t SSV: ' ',\n\t /**\n\t * Tab-separated values. Value: tsv
\n\t * @const\n\t */\n\t TSV: '\\t',\n\t /**\n\t * Pipe(|)-separated values. Value: pipes
\n\t * @const\n\t */\n\t PIPES: '|',\n\t /**\n\t * Native array. Value: multi
\n\t * @const\n\t */\n\t MULTI: 'multi'\n\t };\n\t\n\t /**\n\t * Builds a string representation of an array-type actual parameter, according to the given collection format.\n\t * @param {Array} param An array parameter.\n\t * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n\t * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n\t * param
as is if collectionFormat
is multi
.\n\t */\n\t exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {\n\t if (param == null) {\n\t return null;\n\t }\n\t switch (collectionFormat) {\n\t case 'csv':\n\t return param.map(this.paramToString).join(',');\n\t case 'ssv':\n\t return param.map(this.paramToString).join(' ');\n\t case 'tsv':\n\t return param.map(this.paramToString).join('\\t');\n\t case 'pipes':\n\t return param.map(this.paramToString).join('|');\n\t case 'multi':\n\t // return the array directly as SuperAgent will handle it as expected\n\t return param.map(this.paramToString);\n\t default:\n\t throw new Error('Unknown collection format: ' + collectionFormat);\n\t }\n\t };\n\t\n\t /**\n\t * Applies authentication headers to the request.\n\t * @param {Object} request The request object created by a superagent()
call.\n\t * @param {Array.data will be converted to this type.\n\t * @returns A value of the specified type.\n\t */\n\t exports.prototype.deserialize = function deserialize(response, returnType) {\n\t if (response == null || returnType == null) {\n\t return null;\n\t }\n\t // Rely on SuperAgent for parsing response body.\n\t // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n\t var data = response.body;\n\t if (data == null) {\n\t // SuperAgent does not always produce a body; use the unparsed response as a fallback\n\t data = response.text;\n\t }\n\t return exports.convertToType(data, returnType);\n\t };\n\t\n\t /**\n\t * Callback function to receive the result of the operation.\n\t * @callback module:ApiClient~callApiCallback\n\t * @param {String} error Error message, if any.\n\t * @param data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Invokes the REST service using the supplied settings and parameters.\n\t * @param {String} path The base URL to invoke.\n\t * @param {String} httpMethod The HTTP method to use.\n\t * @param {Object.} pathParams A map of path parameters and their values.\n\t * @param {Object.} queryParams A map of query parameters and their values.\n\t * @param {Object.} headerParams A map of header parameters and their values.\n\t * @param {Object.} formParams A map of form parameters and their values.\n\t * @param {Object} bodyParam The value to pass as the request body.\n\t * @param {Array.} authNames An array of authentication type names.\n\t * @param {Array.} contentTypes An array of request MIME types.\n\t * @param {Array.} accepts An array of acceptable response MIME types.\n\t * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the\n\t * constructor for a complex type.\n\t * @param {module:ApiClient~callApiCallback} callback The callback function.\n\t * @returns {Object} The SuperAgent request object.\n\t */\n\t exports.prototype.callApi = function callApi(path, httpMethod, pathParams,\n\t queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,\n\t returnType, callback) {\n\t\n\t var _this = this;\n\t var url = this.buildUrl(path, pathParams);\n\t var request = superagent(httpMethod, url);\n\t\n\t // apply authentications\n\t this.applyAuthToRequest(request, authNames);\n\t\n\t // set query parameters\n\t request.query(this.normalizeParams(queryParams));\n\t\n\t // set header parameters\n\t request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));\n\t\n\t // set request timeout\n\t request.timeout(this.timeout);\n\t\n\t var contentType = this.jsonPreferredMime(contentTypes);\n\t if (contentType !== 'multipart/form-data') {\n\t if (contentType) {\n\t request.type(contentType);\n\t } else if (!request.header['Content-Type']) {\n\t request.type('application/json');\n\t }\n\t }\n\t\n\t if (contentType === 'application/x-www-form-urlencoded') {\n\t request.send(this.normalizeParams(formParams));\n\t } else if (contentType == 'multipart/form-data') {\n\t var _formParams = this.normalizeParams(formParams);\n\t for (var key in _formParams) {\n\t if (_formParams.hasOwnProperty(key)) {\n\t if (this.isFileParam(_formParams[key])) {\n\t // file field\n\t request.attach(key, _formParams[key]);\n\t } else {\n\t request.field(key, _formParams[key]);\n\t }\n\t }\n\t }\n\t } else if (bodyParam) {\n\t request.send(bodyParam);\n\t }\n\t\n\t var accept = this.jsonPreferredMime(accepts);\n\t if (accept) {\n\t request.accept(accept);\n\t }\n\t\n\t\n\t request.end(function(error, response) {\n\t if (callback) {\n\t var data = null;\n\t if (!error) {\n\t data = _this.deserialize(response, returnType);\n\t }\n\t callback(error, data, response);\n\t }\n\t });\n\t\n\t return request;\n\t };\n\t\n\t /**\n\t * Parses an ISO-8601 string representation of a date value.\n\t * @param {String} str The date value as a string.\n\t * @returns {Date} The parsed date object.\n\t */\n\t exports.parseDate = function(str) {\n\t return new Date(str.replace(/T/i, ' '));\n\t };\n\t\n\t /**\n\t * Converts a value to the specified type.\n\t * @param {(String|Object)} data The data to convert, as a string or object.\n\t * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types\n\t * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n\t * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n\t * all properties on data will be converted to this type.\n\t * @returns An instance of the specified type.\n\t */\n\t exports.convertToType = function(data, type) {\n\t switch (type) {\n\t case 'Boolean':\n\t return Boolean(data);\n\t case 'Integer':\n\t return parseInt(data, 10);\n\t case 'Number':\n\t return parseFloat(data);\n\t case 'String':\n\t return String(data);\n\t case 'Date':\n\t return this.parseDate(String(data));\n\t default:\n\t if (type === Object || type === File) {\n\t // generic object or Blob - return directly\n\t return data;\n\t } else if (typeof type === 'function') {\n\t if (typeof type.constructFromObject !== 'function') {\n\t // some manually written models might have no factory function\n\t return data;\n\t } else {\n\t // for model type like: User\n\t return type.constructFromObject(data);\n\t }\n\t } else if (Array.isArray(type)) {\n\t // for array type like: ['String']\n\t var itemType = type[0];\n\t return data.map(function(item) {\n\t return exports.convertToType(item, itemType);\n\t });\n\t } else if (typeof type === 'object') {\n\t // for plain object type like: {'String': 'Integer'}\n\t var keyType, valueType;\n\t for (var k in type) {\n\t if (type.hasOwnProperty(k)) {\n\t keyType = k;\n\t valueType = type[k];\n\t break;\n\t }\n\t }\n\t var result = {};\n\t for (var k in data) {\n\t if (data.hasOwnProperty(k)) {\n\t var key = exports.convertToType(k, keyType);\n\t var value = exports.convertToType(data[k], valueType);\n\t result[key] = value;\n\t }\n\t }\n\t return result;\n\t } else {\n\t // for unknown type, return the data directly\n\t return data;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Constructs a new map or array model from REST data.\n\t * @param data {Object|Array} The REST data.\n\t * @param obj {Object|Array} The target object or array.\n\t */\n\t exports.constructFromObject = function(data, obj, itemType) {\n\t if (Array.isArray(data)) {\n\t for (var i = 0; i < data.length; i++) {\n\t if (data.hasOwnProperty(i))\n\t obj[i] = exports.convertToType(data[i], itemType);\n\t }\n\t } else {\n\t for (var k in data) {\n\t if (data.hasOwnProperty(k))\n\t obj[k] = exports.convertToType(data[k], itemType);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * The default API client implementation.\n\t * @type {module:ApiClient}\n\t */\n\t exports.instance = new exports();\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RestError = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RestError model module.\n\t * @module model/RestError\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RestError
.\n\t * Error object with code and message. code is bound to status code, but not always same to standard HTTP status text. For example, some 409 error may have code \\"Invalid Argument\\" instead of \\"Conflic\\". So, Client should read message property to know what happend exactly when an error is returned from server. And, some 500 errors can have system errno instead of useless \\"internal\\". Like other errors, details are hidden in message. \n\t * @alias module:model/RestError\n\t * @class\n\t * @param message {String} \n\t */\n\t var exports = function(message) {\n\t var _this = this;\n\t\n\t\n\t _this['message'] = message;\n\t };\n\t\n\t /**\n\t * Constructs a RestError
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RestError} obj Optional instance to populate.\n\t * @return {module:model/RestError} The populated RestError
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('code')) {\n\t obj['code'] = ApiClient.convertToType(data['code'], 'String');\n\t }\n\t if (data.hasOwnProperty('message')) {\n\t obj['message'] = ApiClient.convertToType(data['message'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} code\n\t */\n\t exports.prototype['code'] = undefined;\n\t /**\n\t * @member {String} message\n\t */\n\t exports.prototype['message'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RestOK = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RestOK model module.\n\t * @module model/RestOK\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RestOK
.\n\t * @alias module:model/RestOK\n\t * @class\n\t */\n\t var exports = function() {\n\t var _this = this;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a RestOK
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RestOK} obj Optional instance to populate.\n\t * @return {module:model/RestOK} The populated RestOK
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('message')) {\n\t obj['message'] = ApiClient.convertToType(data['message'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} message\n\t */\n\t exports.prototype['message'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(4), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('./DirEntry'), require('./Stats'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.DirEntry = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n\t }\n\t}(this, function(ApiClient, DirEntry, Stats) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The DirEntry model module.\n\t * @module model/DirEntry\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new DirEntry
.\n\t * a directory entry (file or directory) with children that represents a (sub) tree\n\t * @alias module:model/DirEntry\n\t * @class\n\t * @param name {String} \n\t * @param stats {module:model/Stats} \n\t * @param children {Array.} \n\t */\n\t var exports = function(name, stats, children) {\n\t var _this = this;\n\t\n\t _this['name'] = name;\n\t _this['stats'] = stats;\n\t _this['children'] = children;\n\t };\n\t\n\t /**\n\t * Constructs a DirEntry
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/DirEntry} obj Optional instance to populate.\n\t * @return {module:model/DirEntry} The populated DirEntry
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('stats')) {\n\t obj['stats'] = Stats.constructFromObject(data['stats']);\n\t }\n\t if (data.hasOwnProperty('children')) {\n\t obj['children'] = ApiClient.convertToType(data['children'], [DirEntry]);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * @member {module:model/Stats} stats\n\t */\n\t exports.prototype['stats'] = undefined;\n\t /**\n\t * @member {Array.} children\n\t */\n\t exports.prototype['children'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Stats = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Stats model module.\n\t * @module model/Stats\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Stats
.\n\t * simplified/augmented fs.Stats class - see node.js doc for all properties\n\t * @alias module:model/Stats\n\t * @class\n\t * @param type {module:model/Stats.TypeEnum} All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n\t * @param birthtime {Date} \n\t * @param mtime {Date} \n\t * @param mode {String} \n\t * @param size {Integer} \n\t * @param nlink {Integer} \n\t */\n\t var exports = function(type, birthtime, mtime, mode, size, nlink) {\n\t var _this = this;\n\t\n\t _this['type'] = type;\n\t _this['birthtime'] = birthtime;\n\t _this['mtime'] = mtime;\n\t _this['mode'] = mode;\n\t _this['size'] = size;\n\t _this['nlink'] = nlink;\n\t };\n\t\n\t /**\n\t * Constructs a Stats
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Stats} obj Optional instance to populate.\n\t * @return {module:model/Stats} The populated Stats
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('type')) {\n\t obj['type'] = ApiClient.convertToType(data['type'], 'String');\n\t }\n\t if (data.hasOwnProperty('birthtime')) {\n\t obj['birthtime'] = ApiClient.convertToType(data['birthtime'], 'Date');\n\t }\n\t if (data.hasOwnProperty('mtime')) {\n\t obj['mtime'] = ApiClient.convertToType(data['mtime'], 'Date');\n\t }\n\t if (data.hasOwnProperty('mode')) {\n\t obj['mode'] = ApiClient.convertToType(data['mode'], 'String');\n\t }\n\t if (data.hasOwnProperty('size')) {\n\t obj['size'] = ApiClient.convertToType(data['size'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('nlink')) {\n\t obj['nlink'] = ApiClient.convertToType(data['nlink'], 'Integer');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n\t * @member {module:model/Stats.TypeEnum} type\n\t */\n\t exports.prototype['type'] = undefined;\n\t /**\n\t * @member {Date} birthtime\n\t */\n\t exports.prototype['birthtime'] = undefined;\n\t /**\n\t * @member {Date} mtime\n\t */\n\t exports.prototype['mtime'] = undefined;\n\t /**\n\t * @member {String} mode\n\t */\n\t exports.prototype['mode'] = undefined;\n\t /**\n\t * @member {Integer} size\n\t */\n\t exports.prototype['size'] = undefined;\n\t /**\n\t * @member {Integer} nlink\n\t */\n\t exports.prototype['nlink'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the type
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.TypeEnum = {\n\t /**\n\t * value: \"FILE\"\n\t * @const\n\t */\n\t \"FILE\": \"FILE\",\n\t /**\n\t * value: \"DIRECTORY\"\n\t * @const\n\t */\n\t \"DIRECTORY\": \"DIRECTORY\",\n\t /**\n\t * value: \"BLOCK_DEVICE\"\n\t * @const\n\t */\n\t \"BLOCK_DEVICE\": \"BLOCK_DEVICE\",\n\t /**\n\t * value: \"CHARACTER_DEVICE\"\n\t * @const\n\t */\n\t \"CHARACTER_DEVICE\": \"CHARACTER_DEVICE\",\n\t /**\n\t * value: \"LINK\"\n\t * @const\n\t */\n\t \"LINK\": \"LINK\",\n\t /**\n\t * value: \"FIFO\"\n\t * @const\n\t */\n\t \"FIFO\": \"FIFO\",\n\t /**\n\t * value: \"SOCKET\"\n\t * @const\n\t */\n\t \"SOCKET\": \"SOCKET\",\n\t /**\n\t * value: \"DUMMY\"\n\t * @const\n\t */\n\t \"DUMMY\": \"DUMMY\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ChildProcess = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The ChildProcess model module.\n\t * @module model/ChildProcess\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new ChildProcess
.\n\t * a process in execution\n\t * @alias module:model/ChildProcess\n\t * @class\n\t * @param pid {Integer} child process pid\n\t * @param command {String} the execution command in Execution request\n\t * @param args {Array.} arguments of the command in Execution request\n\t * @param executionId {String} execution id from Execution request\n\t * @param startedAt {Date} the time when this process is spawned\n\t * @param background {Array.} true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n\t */\n\t var exports = function(pid, command, args, executionId, startedAt, background) {\n\t var _this = this;\n\t\n\t _this['pid'] = pid;\n\t _this['command'] = command;\n\t _this['args'] = args;\n\t _this['executionId'] = executionId;\n\t _this['startedAt'] = startedAt;\n\t _this['background'] = background;\n\t };\n\t\n\t /**\n\t * Constructs a ChildProcess
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/ChildProcess} obj Optional instance to populate.\n\t * @return {module:model/ChildProcess} The populated ChildProcess
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('pid')) {\n\t obj['pid'] = ApiClient.convertToType(data['pid'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('command')) {\n\t obj['command'] = ApiClient.convertToType(data['command'], 'String');\n\t }\n\t if (data.hasOwnProperty('args')) {\n\t obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n\t }\n\t if (data.hasOwnProperty('executionId')) {\n\t obj['executionId'] = ApiClient.convertToType(data['executionId'], 'String');\n\t }\n\t if (data.hasOwnProperty('startedAt')) {\n\t obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('background')) {\n\t obj['background'] = ApiClient.convertToType(data['background'], ['String']);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * child process pid\n\t * @member {Integer} pid\n\t */\n\t exports.prototype['pid'] = undefined;\n\t /**\n\t * the execution command in Execution request\n\t * @member {String} command\n\t */\n\t exports.prototype['command'] = undefined;\n\t /**\n\t * arguments of the command in Execution request\n\t * @member {Array.} args\n\t */\n\t exports.prototype['args'] = undefined;\n\t /**\n\t * execution id from Execution request\n\t * @member {String} executionId\n\t */\n\t exports.prototype['executionId'] = undefined;\n\t /**\n\t * the time when this process is spawned\n\t * @member {Date} startedAt\n\t */\n\t exports.prototype['startedAt'] = undefined;\n\t /**\n\t * true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n\t * @member {Array.} background\n\t */\n\t exports.prototype['background'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Credential = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Credential model module.\n\t * @module model/Credential\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Credential
.\n\t * user credential to login. Use https to protect credential.\n\t * @alias module:model/Credential\n\t * @class\n\t * @param loginId {String} \n\t * @param loginPassword {String} \n\t */\n\t var exports = function(loginId, loginPassword) {\n\t var _this = this;\n\t\n\t _this['loginId'] = loginId;\n\t _this['loginPassword'] = loginPassword;\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Credential
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Credential} obj Optional instance to populate.\n\t * @return {module:model/Credential} The populated Credential
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('loginId')) {\n\t obj['loginId'] = ApiClient.convertToType(data['loginId'], 'String');\n\t }\n\t if (data.hasOwnProperty('loginPassword')) {\n\t obj['loginPassword'] = ApiClient.convertToType(data['loginPassword'], 'String');\n\t }\n\t if (data.hasOwnProperty('masterToken')) {\n\t obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} loginId\n\t */\n\t exports.prototype['loginId'] = undefined;\n\t /**\n\t * @member {String} loginPassword\n\t */\n\t exports.prototype['loginPassword'] = undefined;\n\t /**\n\t * a master token is issued when user wants to access webida api without id/password from remote or local desktop app. When masterToken is set, client should put some bogus id/password, non-empty. (The values can be used to identify client type) \n\t * @member {String} masterToken\n\t */\n\t exports.prototype['masterToken'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Execution = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Execution model module.\n\t * @module model/Execution\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Execution
.\n\t * execution request, simlilar to node.js spawn(). see node.js documentation for details of each properties. some properties are not configurable for portability - encoding : fixed to utf-8 - shell : fixed to system default. Using shell variables in command may not work. - killSignal : fixed to SIGTERM. If process does not die, server can send SIGKILL or invoke taskkill to ensure chlid process is killed. - uid & gid : will not be set for security - stdio : all streams are handled by server. no options are avaliable to client. - shell : always false. - detached : always false \n\t * @alias module:model/Execution\n\t * @class\n\t * @param command {String} command to run. should not contain any arguments, pipes, redirections \n\t * @param args {Array.} the arguments array\n\t */\n\t var exports = function(command, args) {\n\t var _this = this;\n\t\n\t\n\t _this['command'] = command;\n\t _this['args'] = args;\n\t\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Execution
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Execution} obj Optional instance to populate.\n\t * @return {module:model/Execution} The populated Execution
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('command')) {\n\t obj['command'] = ApiClient.convertToType(data['command'], 'String');\n\t }\n\t if (data.hasOwnProperty('args')) {\n\t obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n\t }\n\t if (data.hasOwnProperty('cwd')) {\n\t obj['cwd'] = ApiClient.convertToType(data['cwd'], 'String');\n\t }\n\t if (data.hasOwnProperty('input')) {\n\t obj['input'] = ApiClient.convertToType(data['input'], 'String');\n\t }\n\t if (data.hasOwnProperty('timeout')) {\n\t obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Integer');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * unique identifier of execution, to demux response stream or cancel request. async exec request should have id, always. For synchronous execution, missing id will be generated by server with random string & timestamp. \n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * command to run. should not contain any arguments, pipes, redirections \n\t * @member {String} command\n\t */\n\t exports.prototype['command'] = undefined;\n\t /**\n\t * the arguments array\n\t * @member {Array.} args\n\t */\n\t exports.prototype['args'] = undefined;\n\t /**\n\t * Current working directory of spawned process, relative to workspace root. If abscent, cwd will be the workspace root directory. Does not accept any evaluatable form like $HOME, %USERPROFILE%. As wfs operations, path should be unixified. But, unlikely, while the wfs operations cut heading \\\"/\\\" in path with URI normlization, this operation does not convert path to relateive and returns error for the argument. \n\t * @member {String} cwd\n\t */\n\t exports.prototype['cwd'] = undefined;\n\t /**\n\t * input string for child process. if falsy, no input will be available to child. (interactive execution via websocket is not supported for most of such processes requires tty, not standard i/o) \n\t * @member {String} input\n\t */\n\t exports.prototype['input'] = undefined;\n\t /**\n\t * The value which In \\\"milliseconds\\\" the maximum amount of time the child is allowed to run. (not idle time of stdout / stderr stream) if undefined, server sets default timeout value 5 min to synchronous execution requests. If request specifies async execution and sets this value to falsy, server should not kill the child process until 1) The process exists by self 2) cancel operation is invoked by api request 3) The workspace executing the process is removed by api request 4) Server Stops Terminiating any \\\"too-long-lived\\\" child process are not graceful, as cancel() is. \n\t * @member {Integer} timeout\n\t */\n\t exports.prototype['timeout'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ExecutionResult = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The ExecutionResult model module.\n\t * @module model/ExecutionResult\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new ExecutionResult
.\n\t * execution response\n\t * @alias module:model/ExecutionResult\n\t * @class\n\t * @param exitCode {Integer} exit code of child process.\n\t * @param stdout {String} standard out of child process.\n\t * @param stderr {String} standard error of child process.\n\t */\n\t var exports = function(exitCode, stdout, stderr) {\n\t var _this = this;\n\t\n\t _this['exitCode'] = exitCode;\n\t _this['stdout'] = stdout;\n\t _this['stderr'] = stderr;\n\t };\n\t\n\t /**\n\t * Constructs a ExecutionResult
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/ExecutionResult} obj Optional instance to populate.\n\t * @return {module:model/ExecutionResult} The populated ExecutionResult
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('exitCode')) {\n\t obj['exitCode'] = ApiClient.convertToType(data['exitCode'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('stdout')) {\n\t obj['stdout'] = ApiClient.convertToType(data['stdout'], 'String');\n\t }\n\t if (data.hasOwnProperty('stderr')) {\n\t obj['stderr'] = ApiClient.convertToType(data['stderr'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * exit code of child process.\n\t * @member {Integer} exitCode\n\t */\n\t exports.prototype['exitCode'] = undefined;\n\t /**\n\t * standard out of child process.\n\t * @member {String} stdout\n\t */\n\t exports.prototype['stdout'] = undefined;\n\t /**\n\t * standard error of child process.\n\t * @member {String} stderr\n\t */\n\t exports.prototype['stderr'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RemoteAccess = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RemoteAccess model module.\n\t * @module model/RemoteAccess\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RemoteAccess
.\n\t * Access information of remote workspace in remote server\n\t * @alias module:model/RemoteAccess\n\t * @class\n\t * @param name {String} display text of remote workspace. can be different from original name. \n\t * @param serverUrl {String} the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n\t * @param workspaceId {String} the id of remote workspace, read from remote server\n\t * @param masterToken {String} master token to access service, issued from remote server\n\t */\n\t var exports = function(name, serverUrl, workspaceId, masterToken) {\n\t var _this = this;\n\t\n\t _this['name'] = name;\n\t _this['serverUrl'] = serverUrl;\n\t _this['workspaceId'] = workspaceId;\n\t\n\t _this['masterToken'] = masterToken;\n\t };\n\t\n\t /**\n\t * Constructs a RemoteAccess
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RemoteAccess} obj Optional instance to populate.\n\t * @return {module:model/RemoteAccess} The populated RemoteAccess
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('serverUrl')) {\n\t obj['serverUrl'] = ApiClient.convertToType(data['serverUrl'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspacePath')) {\n\t obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n\t }\n\t if (data.hasOwnProperty('masterToken')) {\n\t obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * display text of remote workspace. can be different from original name. \n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n\t * @member {String} serverUrl\n\t */\n\t exports.prototype['serverUrl'] = undefined;\n\t /**\n\t * the id of remote workspace, read from remote server\n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t /**\n\t * Full path of remote workspace, read from remote server. this property will be removed when clients are able to work without \\\"named root directory\\\" in workspace fs tree. \n\t * @member {String} workspacePath\n\t */\n\t exports.prototype['workspacePath'] = undefined;\n\t /**\n\t * master token to access service, issued from remote server\n\t * @member {String} masterToken\n\t */\n\t exports.prototype['masterToken'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Session = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Session model module.\n\t * @module model/Session\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Session
.\n\t * an application session per ide instance. bound to access token\n\t * @alias module:model/Session\n\t * @class\n\t * @param id {String} the id of a session. usually same to socket id.\n\t * @param name {String} human readable name, usually derived from workspace name.\n\t * @param state {module:model/Session.StateEnum} state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n\t * @param clientAddress {String} the peer address of session connection. not always\n\t * @param connectedAt {Date} the time when socket connection is established\n\t * @param disconnectedAt {Date} the time when socket is closed.\n\t */\n\t var exports = function(id, name, state, clientAddress, connectedAt, disconnectedAt) {\n\t var _this = this;\n\t\n\t _this['id'] = id;\n\t _this['name'] = name;\n\t _this['state'] = state;\n\t\n\t _this['clientAddress'] = clientAddress;\n\t _this['connectedAt'] = connectedAt;\n\t _this['disconnectedAt'] = disconnectedAt;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Session
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Session} obj Optional instance to populate.\n\t * @return {module:model/Session} The populated Session
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('state')) {\n\t obj['state'] = ApiClient.convertToType(data['state'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t if (data.hasOwnProperty('clientAddress')) {\n\t obj['clientAddress'] = ApiClient.convertToType(data['clientAddress'], 'String');\n\t }\n\t if (data.hasOwnProperty('connectedAt')) {\n\t obj['connectedAt'] = ApiClient.convertToType(data['connectedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('disconnectedAt')) {\n\t obj['disconnectedAt'] = ApiClient.convertToType(data['disconnectedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('willCloseAt')) {\n\t obj['willCloseAt'] = ApiClient.convertToType(data['willCloseAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('willLoseAt')) {\n\t obj['willLoseAt'] = ApiClient.convertToType(data['willLoseAt'], 'Date');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * the id of a session. usually same to socket id.\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * human readable name, usually derived from workspace name.\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n\t * @member {module:model/Session.StateEnum} state\n\t */\n\t exports.prototype['state'] = undefined;\n\t /**\n\t * the id of workspace that this sessions is working on. If falsy, then this session is not belonged to any workpsace. Usually, dashboard / monitoring app will create a session without workspace id. \n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t /**\n\t * the peer address of session connection. not always\n\t * @member {String} clientAddress\n\t */\n\t exports.prototype['clientAddress'] = undefined;\n\t /**\n\t * the time when socket connection is established\n\t * @member {Date} connectedAt\n\t */\n\t exports.prototype['connectedAt'] = undefined;\n\t /**\n\t * the time when socket is closed.\n\t * @member {Date} disconnectedAt\n\t */\n\t exports.prototype['disconnectedAt'] = undefined;\n\t /**\n\t * when state becomes CLOSING, actual closing time will be updated by server.\n\t * @member {Date} willCloseAt\n\t */\n\t exports.prototype['willCloseAt'] = undefined;\n\t /**\n\t * when state becomes LOSING, server will not wait for reconnection after this time.\n\t * @member {Date} willLoseAt\n\t */\n\t exports.prototype['willLoseAt'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the state
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.StateEnum = {\n\t /**\n\t * value: \"NORMAL\"\n\t * @const\n\t */\n\t \"NORMAL\": \"NORMAL\",\n\t /**\n\t * value: \"LOSING\"\n\t * @const\n\t */\n\t \"LOSING\": \"LOSING\",\n\t /**\n\t * value: \"CLOSING\"\n\t * @const\n\t */\n\t \"CLOSING\": \"CLOSING\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Token = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Token model module.\n\t * @module model/Token\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Token
.\n\t * a json webtoken and accessible data\n\t * @alias module:model/Token\n\t * @class\n\t * @param text {String} actual token text that should be shipped in header or query\n\t * @param tokenType {module:model/Token.TokenTypeEnum} MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n\t * @param expiresAt {Date} \n\t * @param issuedAt {Date} \n\t */\n\t var exports = function(text, tokenType, expiresAt, issuedAt) {\n\t var _this = this;\n\t\n\t _this['text'] = text;\n\t _this['tokenType'] = tokenType;\n\t _this['expiresAt'] = expiresAt;\n\t _this['issuedAt'] = issuedAt;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Token
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Token} obj Optional instance to populate.\n\t * @return {module:model/Token} The populated Token
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('text')) {\n\t obj['text'] = ApiClient.convertToType(data['text'], 'String');\n\t }\n\t if (data.hasOwnProperty('tokenType')) {\n\t obj['tokenType'] = ApiClient.convertToType(data['tokenType'], 'String');\n\t }\n\t if (data.hasOwnProperty('expiresAt')) {\n\t obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('issuedAt')) {\n\t obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('sessionId')) {\n\t obj['sessionId'] = ApiClient.convertToType(data['sessionId'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * actual token text that should be shipped in header or query\n\t * @member {String} text\n\t */\n\t exports.prototype['text'] = undefined;\n\t /**\n\t * MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n\t * @member {module:model/Token.TokenTypeEnum} tokenType\n\t */\n\t exports.prototype['tokenType'] = undefined;\n\t /**\n\t * @member {Date} expiresAt\n\t */\n\t exports.prototype['expiresAt'] = undefined;\n\t /**\n\t * @member {Date} issuedAt\n\t */\n\t exports.prototype['issuedAt'] = undefined;\n\t /**\n\t * mandatory for ACCESS token, identifying client instance\n\t * @member {String} sessionId\n\t */\n\t exports.prototype['sessionId'] = undefined;\n\t /**\n\t * If truthy, access rights are restricted to specified workspace only.\n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the tokenType
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.TokenTypeEnum = {\n\t /**\n\t * value: \"MASTER\"\n\t * @const\n\t */\n\t \"MASTER\": \"MASTER\",\n\t /**\n\t * value: \"ACCESS\"\n\t * @const\n\t */\n\t \"ACCESS\": \"ACCESS\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.User = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The User model module.\n\t * @module model/User\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new User
.\n\t * Any services/products should define some admin apis to manage users in the system and expose what should be exposed to client app. So, no properties are mandatory. Currently, the properties are defined for compatiblity with legacy clients. \n\t * @alias module:model/User\n\t * @class\n\t */\n\t var exports = function() {\n\t var _this = this;\n\t\n\t\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a User
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/User} obj Optional instance to populate.\n\t * @return {module:model/User} The populated User
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('email')) {\n\t obj['email'] = ApiClient.convertToType(data['email'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * unique id per user (email is also unique)\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * @member {String} email\n\t */\n\t exports.prototype['email'] = undefined;\n\t /**\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Workspace = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Workspace model module.\n\t * @module model/Workspace\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Workspace
.\n\t * A workspace in server\n\t * @alias module:model/Workspace\n\t * @class\n\t * @param id {String} the id of a workspace. usually same to file system id\n\t * @param name {String} display text of this workspace for UI\n\t * @param description {String} human readable description on this workspace\n\t * @param createdAt {Date} the time when this workspace is created (registered from local file system)\n\t * @param workspacePath {String} absolute path of this workspace in server.\n\t * @param excludedPaths {Array.} glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n\t * @param offlineCachePaths {Array.} any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n\t */\n\t var exports = function(id, name, description, createdAt, workspacePath, excludedPaths, offlineCachePaths) {\n\t var _this = this;\n\t\n\t _this['id'] = id;\n\t _this['name'] = name;\n\t _this['description'] = description;\n\t _this['createdAt'] = createdAt;\n\t\n\t _this['workspacePath'] = workspacePath;\n\t _this['excludedPaths'] = excludedPaths;\n\t _this['offlineCachePaths'] = offlineCachePaths;\n\t };\n\t\n\t /**\n\t * Constructs a Workspace
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Workspace} obj Optional instance to populate.\n\t * @return {module:model/Workspace} The populated Workspace
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('description')) {\n\t obj['description'] = ApiClient.convertToType(data['description'], 'String');\n\t }\n\t if (data.hasOwnProperty('createdAt')) {\n\t obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('accessedAt')) {\n\t obj['accessedAt'] = ApiClient.convertToType(data['accessedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('workspacePath')) {\n\t obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n\t }\n\t if (data.hasOwnProperty('excludedPaths')) {\n\t obj['excludedPaths'] = ApiClient.convertToType(data['excludedPaths'], ['String']);\n\t }\n\t if (data.hasOwnProperty('offlineCachePaths')) {\n\t obj['offlineCachePaths'] = ApiClient.convertToType(data['offlineCachePaths'], ['String']);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * the id of a workspace. usually same to file system id\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * display text of this workspace for UI\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * human readable description on this workspace\n\t * @member {String} description\n\t */\n\t exports.prototype['description'] = undefined;\n\t /**\n\t * the time when this workspace is created (registered from local file system)\n\t * @member {Date} createdAt\n\t */\n\t exports.prototype['createdAt'] = undefined;\n\t /**\n\t * the time when the last session on this workspace was made. (optional)\n\t * @member {Date} accessedAt\n\t */\n\t exports.prototype['accessedAt'] = undefined;\n\t /**\n\t * absolute path of this workspace in server.\n\t * @member {String} workspacePath\n\t */\n\t exports.prototype['workspacePath'] = undefined;\n\t /**\n\t * glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n\t * @member {Array.} excludedPaths\n\t */\n\t exports.prototype['excludedPaths'] = undefined;\n\t /**\n\t * any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n\t * @member {Array.} offlineCachePaths\n\t */\n\t exports.prototype['offlineCachePaths'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\t(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= 200 && res.status < 300) {\n\t return self.callback(err, res);\n\t }\n\t\n\t var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n\t new_err.original = err;\n\t new_err.response = res;\n\t new_err.status = res.status;\n\t\n\t self.callback(new_err, res);\n\t } catch(e) {\n\t self.callback(e); // #985 touching res may cause INVALID_STATE_ERR on old Android\n\t }\n\t });\n\t}\n\t\n\t/**\n\t * Mixin `Emitter` and `requestBase`.\n\t */\n\t\n\tEmitter(Request.prototype);\n\tfor (var key in requestBase) {\n\t Request.prototype[key] = requestBase[key];\n\t}\n\t\n\t/**\n\t * Set Content-Type to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.xml = 'application/xml';\n\t *\n\t * request.post('/')\n\t * .type('xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * request.post('/')\n\t * .type('application/xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * @param {String} type\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.type = function(type){\n\t this.set('Content-Type', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set responseType to `val`. Presently valid responseTypes are 'blob' and\n\t * 'arraybuffer'.\n\t *\n\t * Examples:\n\t *\n\t * req.get('/')\n\t * .responseType('blob')\n\t * .end(callback);\n\t *\n\t * @param {String} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.responseType = function(val){\n\t this._responseType = val;\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Accept to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.json = 'application/json';\n\t *\n\t * request.get('/agent')\n\t * .accept('json')\n\t * .end(callback);\n\t *\n\t * request.get('/agent')\n\t * .accept('application/json')\n\t * .end(callback);\n\t *\n\t * @param {String} accept\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.accept = function(type){\n\t this.set('Accept', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Authorization field value with `user` and `pass`.\n\t *\n\t * @param {String} user\n\t * @param {String} pass\n\t * @param {Object} options with 'type' property 'auto' or 'basic' (default 'basic')\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.auth = function(user, pass, options){\n\t if (!options) {\n\t options = {\n\t type: 'basic'\n\t }\n\t }\n\t\n\t switch (options.type) {\n\t case 'basic':\n\t var str = btoa(user + ':' + pass);\n\t this.set('Authorization', 'Basic ' + str);\n\t break;\n\t\n\t case 'auto':\n\t this.username = user;\n\t this.password = pass;\n\t break;\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t* Add query-string `val`.\n\t*\n\t* Examples:\n\t*\n\t* request.get('/shoes')\n\t* .query('size=10')\n\t* .query({ color: 'blue' })\n\t*\n\t* @param {Object|String} val\n\t* @return {Request} for chaining\n\t* @api public\n\t*/\n\t\n\tRequest.prototype.query = function(val){\n\t if ('string' != typeof val) val = serialize(val);\n\t if (val) this._query.push(val);\n\t return this;\n\t};\n\t\n\t/**\n\t * Queue the given `file` as an attachment to the specified `field`,\n\t * with optional `filename`.\n\t *\n\t * ``` js\n\t * request.post('/upload')\n\t * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n\t * .end(callback);\n\t * ```\n\t *\n\t * @param {String} field\n\t * @param {Blob|File} file\n\t * @param {String} filename\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.attach = function(field, file, filename){\n\t this._getFormData().append(field, file, filename || file.name);\n\t return this;\n\t};\n\t\n\tRequest.prototype._getFormData = function(){\n\t if (!this._formData) {\n\t this._formData = new root.FormData();\n\t }\n\t return this._formData;\n\t};\n\t\n\t/**\n\t * Invoke the callback with `err` and `res`\n\t * and handle arity check.\n\t *\n\t * @param {Error} err\n\t * @param {Response} res\n\t * @api private\n\t */\n\t\n\tRequest.prototype.callback = function(err, res){\n\t var fn = this._callback;\n\t this.clearTimeout();\n\t fn(err, res);\n\t};\n\t\n\t/**\n\t * Invoke callback with x-domain error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype.crossDomainError = function(){\n\t var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n\t err.crossDomain = true;\n\t\n\t err.status = this.status;\n\t err.method = this.method;\n\t err.url = this.url;\n\t\n\t this.callback(err);\n\t};\n\t\n\t/**\n\t * Invoke callback with timeout error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype._timeoutError = function(){\n\t var timeout = this._timeout;\n\t var err = new Error('timeout of ' + timeout + 'ms exceeded');\n\t err.timeout = timeout;\n\t this.callback(err);\n\t};\n\t\n\t/**\n\t * Compose querystring to append to req.url\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype._appendQueryString = function(){\n\t var query = this._query.join('&');\n\t if (query) {\n\t this.url += ~this.url.indexOf('?')\n\t ? '&' + query\n\t : '?' + query;\n\t }\n\t};\n\t\n\t/**\n\t * Initiate request, invoking callback `fn(res)`\n\t * with an instanceof `Response`.\n\t *\n\t * @param {Function} fn\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.end = function(fn){\n\t var self = this;\n\t var xhr = this.xhr = request.getXHR();\n\t var timeout = this._timeout;\n\t var data = this._formData || this._data;\n\t\n\t // store callback\n\t this._callback = fn || noop;\n\t\n\t // state change\n\t xhr.onreadystatechange = function(){\n\t if (4 != xhr.readyState) return;\n\t\n\t // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n\t // result in the error \"Could not complete the operation due to error c00c023f\"\n\t var status;\n\t try { status = xhr.status } catch(e) { status = 0; }\n\t\n\t if (0 == status) {\n\t if (self.timedout) return self._timeoutError();\n\t if (self._aborted) return;\n\t return self.crossDomainError();\n\t }\n\t self.emit('end');\n\t };\n\t\n\t // progress\n\t var handleProgress = function(e){\n\t if (e.total > 0) {\n\t e.percent = e.loaded / e.total * 100;\n\t }\n\t e.direction = 'download';\n\t self.emit('progress', e);\n\t };\n\t if (this.hasListeners('progress')) {\n\t xhr.onprogress = handleProgress;\n\t }\n\t try {\n\t if (xhr.upload && this.hasListeners('progress')) {\n\t xhr.upload.onprogress = handleProgress;\n\t }\n\t } catch(e) {\n\t // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n\t // Reported here:\n\t // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n\t }\n\t\n\t // timeout\n\t if (timeout && !this._timer) {\n\t this._timer = setTimeout(function(){\n\t self.timedout = true;\n\t self.abort();\n\t }, timeout);\n\t }\n\t\n\t // querystring\n\t this._appendQueryString();\n\t\n\t // initiate request\n\t if (this.username && this.password) {\n\t xhr.open(this.method, this.url, true, this.username, this.password);\n\t } else {\n\t xhr.open(this.method, this.url, true);\n\t }\n\t\n\t // CORS\n\t if (this._withCredentials) xhr.withCredentials = true;\n\t\n\t // body\n\t if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n\t // serialize stuff\n\t var contentType = this._header['content-type'];\n\t var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n\t if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];\n\t if (serialize) data = serialize(data);\n\t }\n\t\n\t // set header fields\n\t for (var field in this.header) {\n\t if (null == this.header[field]) continue;\n\t xhr.setRequestHeader(field, this.header[field]);\n\t }\n\t\n\t if (this._responseType) {\n\t xhr.responseType = this._responseType;\n\t }\n\t\n\t // send stuff\n\t this.emit('request', this);\n\t\n\t // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n\t // We need null here if data is undefined\n\t xhr.send(typeof data !== 'undefined' ? data : null);\n\t return this;\n\t};\n\t\n\t\n\t/**\n\t * Expose `Request`.\n\t */\n\t\n\trequest.Request = Request;\n\t\n\t/**\n\t * GET `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.get = function(url, data, fn){\n\t var req = request('GET', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.query(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * HEAD `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.head = function(url, data, fn){\n\t var req = request('HEAD', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * OPTIONS query to `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.options = function(url, data, fn){\n\t var req = request('OPTIONS', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * DELETE `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\tfunction del(url, fn){\n\t var req = request('DELETE', url);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\trequest['del'] = del;\n\trequest['delete'] = del;\n\t\n\t/**\n\t * PATCH `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} data\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.patch = function(url, data, fn){\n\t var req = request('PATCH', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * POST `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} data\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.post = function(url, data, fn){\n\t var req = request('POST', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * PUT `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.put = function(url, data, fn){\n\t var req = request('PUT', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t},{\"./is-object\":1,\"./request\":3,\"./request-base\":2,\"emitter\":4,\"reduce\":5}]},{},[6])(6)\n\t});\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(14), __webpack_require__(2), __webpack_require__(13), __webpack_require__(8)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/User'), require('../model/RestError'), require('../model/Token'), require('../model/Credential'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.AuthApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.User, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Token, root.WebidaRestfulApi.Credential);\n\t }\n\t}(this, function(ApiClient, User, RestError, Token, Credential) {\n\t 'use strict';\n\t\n\t /**\n\t * Auth service.\n\t * @module api/AuthApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new AuthApi. \n\t * @alias module:api/AuthApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the getInfo operation.\n\t * @callback module:api/AuthApi~getInfoCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/User} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Gets user information of that can be identified with current access token. Implementations should provide a more restful api based on domain data model, not extending this operation. (e.g. GET,PUT and DELETE on /Users/{userId} to read, update and delete user) \n\t * @param {module:api/AuthApi~getInfoCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/User}\n\t */\n\t this.getInfo = function(callback) {\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = User;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/info', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the issueToken operation.\n\t * @callback module:api/AuthApi~issueTokenCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Token} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is (and should not be) parameterizable. Server should set proper duration, respecting \\"reconnect\\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server. Like login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do. \n\t * @param {module:model/String} type \n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.workspaceId recommended to issue a MASTER type token to restrict remote access\n\t * @param {module:api/AuthApi~issueTokenCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Token}\n\t */\n\t this.issueToken = function(type, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'type' is set\n\t if (type == undefined || type == null) {\n\t throw \"Missing the required parameter 'type' when calling issueToken\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'type': type,\n\t 'workspaceId': opts['workspaceId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Token;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/token', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the login operation.\n\t * @callback module:api/AuthApi~loginCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Token} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * A \\"VERY\\" basic authentication, required to use webida-simple-auth security scheme. Service / Product implementations who need better security, should override this operation or add their own login api or some other specs like OAuth2. Simple auth is not suitable for large-sacle, multi-tennant service, for the scheme assumes a single, trusted user only. Logging-in with master token, the generated access token inherits all restriction from it. On the other hand, normal log-in with login id & password creates an unrestricted access token, with reasonably short expiration time. Every client should spawn another access token with issueToken API before current access token expires, inheriting session id from current token. To save remote access info, client should create a (restricted but long-ttl) master token to start IDE from remote. The remote client should not use the unrestricted acccess token from login to use any other perpose than finding available workspaces, and should not refresh the token. (Let user log-in again) Login API does not force any encryption. Server should provide secure transport channel, usually https, to provide remote access, always. \n\t * @param {module:model/Credential} body \n\t * @param {module:api/AuthApi~loginCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Token}\n\t */\n\t this.login = function(body, callback) {\n\t var postBody = body;\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling login\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Token;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/login', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.OpsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError) {\n\t 'use strict';\n\t\n\t /**\n\t * Ops service.\n\t * @module api/OpsApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new OpsApi. \n\t * @alias module:api/OpsApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the replace operation.\n\t * @callback module:api/OpsApi~replaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * replace file contents with regex matching\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {Array.} wfsPathList array of wfsPath, with heading / (collection format may be changed by implementation)\n\t * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n\t * @param {String} replaceTo string to replace with\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n\t * @param {module:api/OpsApi~replaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.replace = function(wfsId, wfsPathList, pattern, replaceTo, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'wfsPathList' is set\n\t if (wfsPathList == undefined || wfsPathList == null) {\n\t throw \"Missing the required parameter 'wfsPathList' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'pattern' is set\n\t if (pattern == undefined || pattern == null) {\n\t throw \"Missing the required parameter 'pattern' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'replaceTo' is set\n\t if (replaceTo == undefined || replaceTo == null) {\n\t throw \"Missing the required parameter 'replaceTo' when calling replace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId\n\t };\n\t var queryParams = {\n\t 'wfsPathList': this.apiClient.buildCollectionParam(wfsPathList, 'multi'),\n\t 'pattern': pattern,\n\t 'replaceTo': replaceTo,\n\t 'ignoreCase': opts['ignoreCase']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/ops/replace', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the search operation.\n\t * @callback module:api/OpsApi~searchCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Object.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * search files in some path, with given pattern\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n\t * @param {module:api/OpsApi~searchCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Object.}\n\t */\n\t this.search = function(wfsId, wfsPath, pattern, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling search\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling search\";\n\t }\n\t\n\t // verify the required parameter 'pattern' is set\n\t if (pattern == undefined || pattern == null) {\n\t throw \"Missing the required parameter 'pattern' when calling search\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'pattern': pattern,\n\t 'ignoreCase': opts['ignoreCase']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = {'String': [Match]};\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/ops/search/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(2), __webpack_require__(11), __webpack_require__(3)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestError'), require('../model/RemoteAccess'), require('../model/RestOK'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RemotesApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.RemoteAccess, root.WebidaRestfulApi.RestOK);\n\t }\n\t}(this, function(ApiClient, RestError, RemoteAccess, RestOK) {\n\t 'use strict';\n\t\n\t /**\n\t * Remotes service.\n\t * @module api/RemotesApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RemotesApi. \n\t * @alias module:api/RemotesApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the findRemoteAccesses operation.\n\t * @callback module:api/RemotesApi~findRemoteAccessesCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Get all access informations See RemoteWorkspaceAccess definition for details (no fancy find / search feature yet) \n\t * @param {module:api/RemotesApi~findRemoteAccessesCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findRemoteAccesses = function(callback) {\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [RemoteAccess];\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the putRemoteAccess operation.\n\t * @callback module:api/RemotesApi~putRemoteAccessCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * create or update a remote workspace access information\n\t * @param {module:model/RemoteAccess} body \n\t * @param {module:api/RemotesApi~putRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.putRemoteAccess = function(body, callback) {\n\t var postBody = body;\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling putRemoteAccess\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeRemoteAccess operation.\n\t * @callback module:api/RemotesApi~removeRemoteAccessCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RemoteAccess} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete a remote workspace\n\t * @param {String} workspaceId workspace Id of remote workspace\n\t * @param {module:api/RemotesApi~removeRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RemoteAccess}\n\t */\n\t this.removeRemoteAccess = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeRemoteAccess\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RemoteAccess;\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(12)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Session'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.SessionApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Session);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, Session) {\n\t 'use strict';\n\t\n\t /**\n\t * Session service.\n\t * @module api/SessionApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new SessionApi. \n\t * @alias module:api/SessionApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the closeSession operation.\n\t * @callback module:api/SessionApi~closeSessionCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * close session with timeout\n\t * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n\t * @param {Integer} closeAfter waiting time before actual closing, to let client save files and prevent reconnect \n\t * @param {module:api/SessionApi~closeSessionCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.closeSession = function(sessionId, closeAfter, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'sessionId' is set\n\t if (sessionId == undefined || sessionId == null) {\n\t throw \"Missing the required parameter 'sessionId' when calling closeSession\";\n\t }\n\t\n\t // verify the required parameter 'closeAfter' is set\n\t if (closeAfter == undefined || closeAfter == null) {\n\t throw \"Missing the required parameter 'closeAfter' when calling closeSession\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'sessionId': sessionId\n\t };\n\t var queryParams = {\n\t 'closeAfter': closeAfter\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/sessions/{sessionId}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the findSessions operation.\n\t * @callback module:api/SessionApi~findSessionsCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get all / some webida sessions established to server\n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.workspaceId find only sessions working on some given workspace\n\t * @param {module:api/SessionApi~findSessionsCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findSessions = function(opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'workspaceId': opts['workspaceId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [Session];\n\t\n\t return this.apiClient.callApi(\n\t '/sessions', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getSession operation.\n\t * @callback module:api/SessionApi~getSessionCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Session} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get a session object by id\n\t * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n\t * @param {module:api/SessionApi~getSessionCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Session}\n\t */\n\t this.getSession = function(sessionId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'sessionId' is set\n\t if (sessionId == undefined || sessionId == null) {\n\t throw \"Missing the required parameter 'sessionId' when calling getSession\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'sessionId': sessionId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Session;\n\t\n\t return this.apiClient.callApi(\n\t '/sessions/{sessionId}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(4), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/DirEntry'), require('../model/Stats'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.WfsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, DirEntry, Stats) {\n\t 'use strict';\n\t\n\t /**\n\t * Wfs service.\n\t * @module api/WfsApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new WfsApi. \n\t * @alias module:api/WfsApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the copy operation.\n\t * @callback module:api/WfsApi~copyCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Copy to given path. Works like cp -r command, with some funny options. That means, if destination is a directory, result will be put 'in' the directory with same base name to the source. If removeExisting option is false, copying a directory onto a file will return error. Or, destination path will be 'clobbed' before copying file, regardless wheather the path is file or not. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)\n\t * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)\n\t * @param {Boolean} opts.followSymbolicLinks dereference symlinks or not (default to false)\n\t * @param {Boolean} opts.preserveTimestamps to change default behavior, keep mtime/atime of source files in destination (default to false)\n\t * @param {module:api/WfsApi~copyCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.copy = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling copy\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling copy\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling copy\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'ensurePath': opts['ensurePath'],\n\t 'removeExisting': opts['removeExisting'],\n\t 'followSymbolicLinks': opts['followSymbolicLinks'],\n\t 'preserveTimestamps': opts['preserveTimestamps']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the createDir operation.\n\t * @callback module:api/WfsApi~createDirCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * create a directory at the path. returns error when wfsPath exists and not empty this API always creates parent directories if needed. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {module:api/WfsApi~createDirCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.createDir = function(wfsId, wfsPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling createDir\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling createDir\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/dir/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the dirTree operation.\n\t * @callback module:api/WfsApi~dirTreeCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/DirEntry} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * returns a directory tree of given path, for listing dir and managing file system errors while building sub-tree will be ignored and will not be included in result. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Integer} maxDepth Maximum depth of tree. -1 to build a full tree, 0 to stat, 1 to plain list.\n\t * @param {module:api/WfsApi~dirTreeCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/DirEntry}\n\t */\n\t this.dirTree = function(wfsId, wfsPath, maxDepth, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling dirTree\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling dirTree\";\n\t }\n\t\n\t // verify the required parameter 'maxDepth' is set\n\t if (maxDepth == undefined || maxDepth == null) {\n\t throw \"Missing the required parameter 'maxDepth' when calling dirTree\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'maxDepth': maxDepth\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = DirEntry;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/dir/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the move operation.\n\t * @callback module:api/WfsApi~moveCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * move file or directory to given path. works like mv -r command\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)\n\t * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)\n\t * @param {module:api/WfsApi~moveCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.move = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling move\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling move\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling move\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'ensurePath': opts['ensurePath'],\n\t 'removeExisting': opts['removeExisting']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/dir/{wfsPath}', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the readFile operation.\n\t * @callback module:api/WfsApi~readFileCallback\n\t * @param {String} error Error message, if any.\n\t * @param {File} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * read file data on path\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {module:api/WfsApi~readFileCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {File}\n\t */\n\t this.readFile = function(wfsId, wfsPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling readFile\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling readFile\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = File;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the remove operation.\n\t * @callback module:api/WfsApi~removeCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete file or directory\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.unrecursive if set, deleting non-empty directory will return error. (default to false)\n\t * @param {module:api/WfsApi~removeCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.remove = function(wfsId, wfsPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling remove\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling remove\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'unrecursive': opts['unrecursive']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the rename operation.\n\t * @callback module:api/WfsApi~renameCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Renames a file or directory to wfsPath. Unlike POSIX rename() call semantics, this operation does not overwrite anything. Renaming to any 'existing' source will return error except only 1 case, with emulateMove option. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n\t * @param {Boolean} opts.emulateMove When rename file to existing dir, move file to the dir instead of returning error. This option is provided for legacy, dummy clients only to emulate legacy server's move behaviour. Newly written client app should not use this option & use move() operation to have clear behaviour. \n\t * @param {module:api/WfsApi~renameCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.rename = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling rename\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling rename\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling rename\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'ensureParents': opts['ensureParents'],\n\t 'emulateMove': opts['emulateMove']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the stat operation.\n\t * @callback module:api/WfsApi~statCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Stats} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Get stats of given path. (stat() returns \\"stats\\" object in node and POSIX system) Since we've no ctime/atime in Stats class, some file system changing events will send 'exactly same' stats object. This API should be called only when stats of some file system path is stale for unknown reason (e.g. losting change events). Use dirTree operation and session events to detect stats, if possible. This API can be used to check a path is valid, existing one, but it's not recommended to check existence of individual paths by API. Clients should use dirTree and session events to synchorize some in-app file system with webida file system. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreError flag to ignore stat errors to check existence only. If this flag is true, server will returns 'DUMMY' type stats object instead of 404 error when given path does not exists. (invalid wfsId will produce 400 error, not 404) (default to false)\n\t * @param {module:api/WfsApi~statCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Stats}\n\t */\n\t this.stat = function(wfsId, wfsPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling stat\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling stat\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'ignoreError': opts['ignoreError']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Stats;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the writeFile operation.\n\t * @callback module:api/WfsApi~writeFileCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates / updates file with body data. Server should write the file in 'atomic' manner, and should not write down request body into final destination path directly. In other words, wheather writeFile() succeeds or not, the contents of the file should not be corrupted nor half-written. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {File} data file contents to write.\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n\t * @param {module:api/WfsApi~writeFileCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.writeFile = function(wfsId, wfsPath, data, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling writeFile\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling writeFile\";\n\t }\n\t\n\t // verify the required parameter 'data' is set\n\t if (data == undefined || data == null) {\n\t throw \"Missing the required parameter 'data' when calling writeFile\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'ensureParents': opts['ensureParents']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t 'data': data\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['multipart/form-data'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(15), __webpack_require__(7), __webpack_require__(9), __webpack_require__(10)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Workspace'), require('../model/ChildProcess'), require('../model/Execution'), require('../model/ExecutionResult'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.WorkspaceApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Workspace, root.WebidaRestfulApi.ChildProcess, root.WebidaRestfulApi.Execution, root.WebidaRestfulApi.ExecutionResult);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, Workspace, ChildProcess, Execution, ExecutionResult) {\n\t 'use strict';\n\t\n\t /**\n\t * Workspace service.\n\t * @module api/WorkspaceApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new WorkspaceApi. \n\t * @alias module:api/WorkspaceApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the cancel operation.\n\t * @callback module:api/WorkspaceApi~cancelCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * cancels an execution, if possible. Killing process may not be graceful.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.execId the id of execution (different from pid!)\n\t * @param {module:api/WorkspaceApi~cancelCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.cancel = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling cancel\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'execId': opts['execId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the createWorkspace operation.\n\t * @callback module:api/WorkspaceApi~createWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates a new workspace with given local path. Requires an unrestricted access token. \n\t * @param {String} localPath a real, local path of the system (not unixified)\n\t * @param {String} name workspace name property\n\t * @param {String} description workspace name property\n\t * @param {module:api/WorkspaceApi~createWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.createWorkspace = function(localPath, name, description, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'localPath' is set\n\t if (localPath == undefined || localPath == null) {\n\t throw \"Missing the required parameter 'localPath' when calling createWorkspace\";\n\t }\n\t\n\t // verify the required parameter 'name' is set\n\t if (name == undefined || name == null) {\n\t throw \"Missing the required parameter 'name' when calling createWorkspace\";\n\t }\n\t\n\t // verify the required parameter 'description' is set\n\t if (description == undefined || description == null) {\n\t throw \"Missing the required parameter 'description' when calling createWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'localPath': localPath,\n\t 'name': name,\n\t 'description': description\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the exec operation.\n\t * @callback module:api/WorkspaceApi~execCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/ExecutionResult} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * execute a shell command on this workspace\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:model/Execution} body \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.async Spawn a child process for given command and returns a child process info only. , Actual output (stream of message) will be delivered to web socket channel, with room id /sessions/asyn-{Execution#id} (default to false)\n\t * @param {module:api/WorkspaceApi~execCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/ExecutionResult}\n\t */\n\t this.exec = function(workspaceId, body, opts, callback) {\n\t opts = opts || {};\n\t var postBody = body;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling exec\";\n\t }\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling exec\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'async': opts['async']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = ExecutionResult;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the findWorkspaces operation.\n\t * @callback module:api/WorkspaceApi~findWorkspacesCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Finds workspaces (no find/search parameters yet). Requires an unrestricted access token. \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.disposable include disposable workspaces or not (default to false)\n\t * @param {module:api/WorkspaceApi~findWorkspacesCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findWorkspaces = function(opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'disposable': opts['disposable']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [Workspace];\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getChildProcs operation.\n\t * @callback module:api/WorkspaceApi~getChildProcsCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get all spawned process info, created by exec api, on given workspace. set workspace id to \\"*\\" to all processes info. This operation requires proper access rights (unrestricted or matching workspace id in access token with parameter) \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.includeExec include processes created by synchronous exec request (default to false)\n\t * @param {module:api/WorkspaceApi~getChildProcsCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.getChildProcs = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling getChildProcs\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'includeExec': opts['includeExec']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [ChildProcess];\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getWorkspace operation.\n\t * @callback module:api/WorkspaceApi~getWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get a workspace object by id\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:api/WorkspaceApi~getWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.getWorkspace = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling getWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the readMetadata operation.\n\t * @callback module:api/WorkspaceApi~readMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {File} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * read a metadata file from a workspace.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {module:api/WorkspaceApi~readMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {File}\n\t */\n\t this.readMetadata = function(workspaceId, objectPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling readMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling readMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = File;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeMetadata operation.\n\t * @callback module:api/WorkspaceApi~removeMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete metadata of given path\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {module:api/WorkspaceApi~removeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.removeMetadata = function(workspaceId, objectPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling removeMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeWorkspace operation.\n\t * @callback module:api/WorkspaceApi~removeWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * This operation will remove the requested workspace when 1) all sessions are closed for request (will be notified by server) 2) excedded time limit value in closeAfter parameter 3) server goes down after accepting remove request \\"willBeRemovedAt\\" property can be set \\"only\\" by this api. This API requires \\"unrestricted\\" access token. Even an access token has matching workspace id, removing an workspace is rejected. \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {Integer} opts.closeAfter Time in seconds to wait for all sessions save & close their data. (default to 0)\n\t * @param {module:api/WorkspaceApi~removeWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.removeWorkspace = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'closeAfter': opts['closeAfter']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the updateWorkspace operation.\n\t * @callback module:api/WorkspaceApi~updateWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Updates workspace. Some protected properties will not be changed by this api. Requires proper access rights in access token. \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:api/WorkspaceApi~updateWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.updateWorkspace = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling updateWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the writeMetadata operation.\n\t * @callback module:api/WorkspaceApi~writeMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * write a metadata file at given path. missing parents will be created.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {File} data file contents to write.\n\t * @param {module:api/WorkspaceApi~writeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.writeMetadata = function(workspaceId, objectPath, data, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling writeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling writeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'data' is set\n\t if (data == undefined || data == null) {\n\t throw \"Missing the required parameter 'data' when calling writeMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t 'data': data\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Match = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Match model module.\n\t * @module model/Match\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Match
.\n\t * search result for a file\n\t * @alias module:model/Match\n\t * @class\n\t * @param line {Integer} \n\t * @param text {String} \n\t */\n\t var exports = function(line, text) {\n\t var _this = this;\n\t\n\t _this['line'] = line;\n\t _this['text'] = text;\n\t };\n\t\n\t /**\n\t * Constructs a Match
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Match} obj Optional instance to populate.\n\t * @return {module:model/Match} The populated Match
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('line')) {\n\t obj['line'] = ApiClient.convertToType(data['line'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('text')) {\n\t obj['text'] = ApiClient.convertToType(data['text'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {Integer} line\n\t */\n\t exports.prototype['line'] = undefined;\n\t /**\n\t * @member {String} text\n\t */\n\t exports.prototype['text'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ }\n/******/ ])});;\n\n\n/** WEBPACK FOOTER **\n ** api-bundle.js\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 29ade03777dea3c4cd0d\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/ChildProcess', 'model/Credential', 'model/DirEntry', 'model/Execution', 'model/ExecutionResult', 'model/Match', 'model/RemoteAccess', 'model/RestError', 'model/RestOK', 'model/Session', 'model/Stats', 'model/Token', 'model/User', 'model/Workspace', 'api/AuthApi', 'api/OpsApi', 'api/RemotesApi', 'api/SessionApi', 'api/WfsApi', 'api/WorkspaceApi'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('./ApiClient'), require('./model/ChildProcess'), require('./model/Credential'), require('./model/DirEntry'), require('./model/Execution'), require('./model/ExecutionResult'), require('./model/Match'), require('./model/RemoteAccess'), require('./model/RestError'), require('./model/RestOK'), require('./model/Session'), require('./model/Stats'), require('./model/Token'), require('./model/User'), require('./model/Workspace'), require('./api/AuthApi'), require('./api/OpsApi'), require('./api/RemotesApi'), require('./api/SessionApi'), require('./api/WfsApi'), require('./api/WorkspaceApi'));\n }\n}(function(ApiClient, ChildProcess, Credential, DirEntry, Execution, ExecutionResult, Match, RemoteAccess, RestError, RestOK, Session, Stats, Token, User, Workspace, AuthApi, OpsApi, RemotesApi, SessionApi, WfsApi, WorkspaceApi) {\n 'use strict';\n\n /**\n * Restful_API_for_Webida_clients_to_use_servers_data__features.
\n * The index
module provides access to constructors for all the classes which comprise the public API.\n * \n * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:\n *
\n * var WebidaRestfulApi = require('index'); // See note below*.\n * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n * var yyyModel = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n * yyyModel.someProperty = 'someValue';\n * ...\n * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n * ...\n *
\n * *NOTE: For a top-level AMD script, use require(['index'], function(){...})\n * and put the application logic within the callback function.\n * \n * \n * A non-AMD browser application (discouraged) might do something like this:\n *
\n * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n * var yyy = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n * yyyModel.someProperty = 'someValue';\n * ...\n * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n * ...\n *
\n * \n * @module index\n * @version 0.3.0\n */\n var exports = {\n /**\n * The ApiClient constructor.\n * @property {module:ApiClient}\n */\n ApiClient: ApiClient,\n /**\n * The ChildProcess model constructor.\n * @property {module:model/ChildProcess}\n */\n ChildProcess: ChildProcess,\n /**\n * The Credential model constructor.\n * @property {module:model/Credential}\n */\n Credential: Credential,\n /**\n * The DirEntry model constructor.\n * @property {module:model/DirEntry}\n */\n DirEntry: DirEntry,\n /**\n * The Execution model constructor.\n * @property {module:model/Execution}\n */\n Execution: Execution,\n /**\n * The ExecutionResult model constructor.\n * @property {module:model/ExecutionResult}\n */\n ExecutionResult: ExecutionResult,\n /**\n * The Match model constructor.\n * @property {module:model/Match}\n */\n Match: Match,\n /**\n * The RemoteAccess model constructor.\n * @property {module:model/RemoteAccess}\n */\n RemoteAccess: RemoteAccess,\n /**\n * The RestError model constructor.\n * @property {module:model/RestError}\n */\n RestError: RestError,\n /**\n * The RestOK model constructor.\n * @property {module:model/RestOK}\n */\n RestOK: RestOK,\n /**\n * The Session model constructor.\n * @property {module:model/Session}\n */\n Session: Session,\n /**\n * The Stats model constructor.\n * @property {module:model/Stats}\n */\n Stats: Stats,\n /**\n * The Token model constructor.\n * @property {module:model/Token}\n */\n Token: Token,\n /**\n * The User model constructor.\n * @property {module:model/User}\n */\n User: User,\n /**\n * The Workspace model constructor.\n * @property {module:model/Workspace}\n */\n Workspace: Workspace,\n /**\n * The AuthApi service constructor.\n * @property {module:api/AuthApi}\n */\n AuthApi: AuthApi,\n /**\n * The OpsApi service constructor.\n * @property {module:api/OpsApi}\n */\n OpsApi: OpsApi,\n /**\n * The RemotesApi service constructor.\n * @property {module:api/RemotesApi}\n */\n RemotesApi: RemotesApi,\n /**\n * The SessionApi service constructor.\n * @property {module:api/SessionApi}\n */\n SessionApi: SessionApi,\n /**\n * The WfsApi service constructor.\n * @property {module:api/WfsApi}\n */\n WfsApi: WfsApi,\n /**\n * The WorkspaceApi service constructor.\n * @property {module:api/WorkspaceApi}\n */\n WorkspaceApi: WorkspaceApi\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/index.js\n ** module id = 0\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['superagent'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('superagent'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ApiClient = factory(root.superagent);\n }\n}(this, function(superagent) {\n 'use strict';\n\n /**\n * @module ApiClient\n * @version 0.3.0\n */\n\n /**\n * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n * application to use this class directly - the *Api and model classes provide the public API for the service. The\n * contents of this file should be regarded as internal but are documented for completeness.\n * @alias module:ApiClient\n * @class\n */\n var exports = function() {\n /**\n * The base URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default https://localhost/api\n */\n this.basePath = 'https://localhost/api'.replace(/\\/+$/, '');\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.}\n */\n this.authentications = {\n 'webida-simple-auth': {type: 'apiKey', 'in': 'header', name: 'Authorization'}\n };\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.}\n * @default {}\n */\n this.defaultHeaders = {};\n\n /**\n * The default HTTP timeout for all API calls.\n * @type {Number}\n * @default 60000\n */\n this.timeout = 60000;\n };\n\n /**\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of param
.\n */\n exports.prototype.paramToString = function(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n return param.toString();\n };\n\n /**\n * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.\n * NOTE: query parameters are not handled here.\n * @param {String} path The path to append to the base URL.\n * @param {Object} pathParams The parameter values to append.\n * @returns {String} The encoded path with parameter values substituted.\n */\n exports.prototype.buildUrl = function(path, pathParams) {\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n var url = this.basePath + path;\n var _this = this;\n url = url.replace(/\\{([\\w-]+)\\}/g, function(fullMatch, key) {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = _this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n return encodeURIComponent(value);\n });\n return url;\n };\n\n /**\n * Checks whether the given content type represents JSON.
\n * JSON content type examples:
\n * \n * - application/json
\n * - application/json; charset=UTF8
\n * - APPLICATION/JSON
\n *
\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.\n */\n exports.prototype.isJsonMime = function(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n };\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n * @param {Array.} contentTypes\n * @returns {String} The chosen content type, preferring JSON.\n */\n exports.prototype.jsonPreferredMime = function(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (this.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n };\n\n /**\n * Checks whether the given parameter value represents file-like content.\n * @param param The parameter to check.\n * @returns {Boolean} true
if param
represents a file. \n */\n exports.prototype.isFileParam = function(param) {\n // fs.ReadStream in Node.js (but not in runtime like browserify)\n if (typeof window === 'undefined' &&\n typeof require === 'function' &&\n require('fs') &&\n param instanceof require('fs').ReadStream) {\n return true;\n }\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n // Blob in browser\n if (typeof Blob === 'function' && param instanceof Blob) {\n return true;\n }\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n return false;\n };\n\n /**\n * Normalizes parameter values:\n * \n * - remove nils
\n * - keep files and arrays
\n * - format to string with `paramToString` for other cases
\n *
\n * @param {Object.} params The parameters as object properties.\n * @returns {Object.} normalized parameters.\n */\n exports.prototype.normalizeParams = function(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (this.isFileParam(value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n return newParams;\n };\n\n /**\n * Enumeration of collection format separator strategies.\n * @enum {String} \n * @readonly\n */\n exports.CollectionFormatEnum = {\n /**\n * Comma-separated values. Value: csv
\n * @const\n */\n CSV: ',',\n /**\n * Space-separated values. Value: ssv
\n * @const\n */\n SSV: ' ',\n /**\n * Tab-separated values. Value: tsv
\n * @const\n */\n TSV: '\\t',\n /**\n * Pipe(|)-separated values. Value: pipes
\n * @const\n */\n PIPES: '|',\n /**\n * Native array. Value: multi
\n * @const\n */\n MULTI: 'multi'\n };\n\n /**\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * param
as is if collectionFormat
is multi
.\n */\n exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n // return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n };\n\n /**\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a superagent()
call.\n * @param {Array.} authNames An array of authentication method names.\n */\n exports.prototype.applyAuthToRequest = function(request, authNames) {\n var _this = this;\n authNames.forEach(function(authName) {\n var auth = _this.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n }\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({'Authorization': 'Bearer ' + auth.accessToken});\n }\n break;\n default:\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n };\n\n /**\n * Deserializes an HTTP response body into a value of the specified type.\n * @param {Object} response A SuperAgent response object.\n * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns A value of the specified type.\n */\n exports.prototype.deserialize = function deserialize(response, returnType) {\n if (response == null || returnType == null) {\n return null;\n }\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n return exports.convertToType(data, returnType);\n };\n\n /**\n * Callback function to receive the result of the operation.\n * @callback module:ApiClient~callApiCallback\n * @param {String} error Error message, if any.\n * @param data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.} pathParams A map of path parameters and their values.\n * @param {Object.} queryParams A map of query parameters and their values.\n * @param {Object.} headerParams A map of header parameters and their values.\n * @param {Object.} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.} authNames An array of authentication type names.\n * @param {Array.} contentTypes An array of request MIME types.\n * @param {Array.} accepts An array of acceptable response MIME types.\n * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @param {module:ApiClient~callApiCallback} callback The callback function.\n * @returns {Object} The SuperAgent request object.\n */\n exports.prototype.callApi = function callApi(path, httpMethod, pathParams,\n queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,\n returnType, callback) {\n\n var _this = this;\n var url = this.buildUrl(path, pathParams);\n var request = superagent(httpMethod, url);\n\n // apply authentications\n this.applyAuthToRequest(request, authNames);\n\n // set query parameters\n request.query(this.normalizeParams(queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));\n\n // set request timeout\n request.timeout(this.timeout);\n\n var contentType = this.jsonPreferredMime(contentTypes);\n if (contentType !== 'multipart/form-data') {\n if (contentType) {\n request.type(contentType);\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n }\n\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(this.normalizeParams(formParams));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = this.normalizeParams(formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (this.isFileParam(_formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n\n var accept = this.jsonPreferredMime(accepts);\n if (accept) {\n request.accept(accept);\n }\n\n\n request.end(function(error, response) {\n if (callback) {\n var data = null;\n if (!error) {\n data = _this.deserialize(response, returnType);\n }\n callback(error, data, response);\n }\n });\n\n return request;\n };\n\n /**\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n exports.parseDate = function(str) {\n return new Date(str.replace(/T/i, ' '));\n };\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns An instance of the specified type.\n */\n exports.convertToType = function(data, type) {\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return this.parseDate(String(data));\n default:\n if (type === Object || type === File) {\n // generic object or Blob - return directly\n return data;\n } else if (typeof type === 'function') {\n if (typeof type.constructFromObject !== 'function') {\n // some manually written models might have no factory function\n return data;\n } else {\n // for model type like: User\n return type.constructFromObject(data);\n }\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n return data.map(function(item) {\n return exports.convertToType(item, itemType);\n });\n } else if (typeof type === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = exports.convertToType(k, keyType);\n var value = exports.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n };\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n exports.constructFromObject = function(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i))\n obj[i] = exports.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k))\n obj[k] = exports.convertToType(data[k], itemType);\n }\n }\n };\n\n /**\n * The default API client implementation.\n * @type {module:ApiClient}\n */\n exports.instance = new exports();\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/ApiClient.js\n ** module id = 1\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RestError = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RestError model module.\n * @module model/RestError\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RestError
.\n * Error object with code and message. code is bound to status code, but not always same to standard HTTP status text. For example, some 409 error may have code \\"Invalid Argument\\" instead of \\"Conflic\\". So, Client should read message property to know what happend exactly when an error is returned from server. And, some 500 errors can have system errno instead of useless \\"internal\\". Like other errors, details are hidden in message. \n * @alias module:model/RestError\n * @class\n * @param message {String} \n */\n var exports = function(message) {\n var _this = this;\n\n\n _this['message'] = message;\n };\n\n /**\n * Constructs a RestError
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestError} obj Optional instance to populate.\n * @return {module:model/RestError} The populated RestError
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('code')) {\n obj['code'] = ApiClient.convertToType(data['code'], 'String');\n }\n if (data.hasOwnProperty('message')) {\n obj['message'] = ApiClient.convertToType(data['message'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} code\n */\n exports.prototype['code'] = undefined;\n /**\n * @member {String} message\n */\n exports.prototype['message'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RestError.js\n ** module id = 2\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RestOK = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RestOK model module.\n * @module model/RestOK\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RestOK
.\n * @alias module:model/RestOK\n * @class\n */\n var exports = function() {\n var _this = this;\n\n\n };\n\n /**\n * Constructs a RestOK
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestOK} obj Optional instance to populate.\n * @return {module:model/RestOK} The populated RestOK
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('message')) {\n obj['message'] = ApiClient.convertToType(data['message'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} message\n */\n exports.prototype['message'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RestOK.js\n ** module id = 3\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/DirEntry', 'model/Stats'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('./DirEntry'), require('./Stats'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.DirEntry = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n }\n}(this, function(ApiClient, DirEntry, Stats) {\n 'use strict';\n\n\n\n\n /**\n * The DirEntry model module.\n * @module model/DirEntry\n * @version 0.3.0\n */\n\n /**\n * Constructs a new DirEntry
.\n * a directory entry (file or directory) with children that represents a (sub) tree\n * @alias module:model/DirEntry\n * @class\n * @param name {String} \n * @param stats {module:model/Stats} \n * @param children {Array.} \n */\n var exports = function(name, stats, children) {\n var _this = this;\n\n _this['name'] = name;\n _this['stats'] = stats;\n _this['children'] = children;\n };\n\n /**\n * Constructs a DirEntry
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/DirEntry} obj Optional instance to populate.\n * @return {module:model/DirEntry} The populated DirEntry
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('stats')) {\n obj['stats'] = Stats.constructFromObject(data['stats']);\n }\n if (data.hasOwnProperty('children')) {\n obj['children'] = ApiClient.convertToType(data['children'], [DirEntry]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * @member {module:model/Stats} stats\n */\n exports.prototype['stats'] = undefined;\n /**\n * @member {Array.} children\n */\n exports.prototype['children'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/DirEntry.js\n ** module id = 4\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Stats = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Stats model module.\n * @module model/Stats\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Stats
.\n * simplified/augmented fs.Stats class - see node.js doc for all properties\n * @alias module:model/Stats\n * @class\n * @param type {module:model/Stats.TypeEnum} All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n * @param birthtime {Date} \n * @param mtime {Date} \n * @param mode {String} \n * @param size {Integer} \n * @param nlink {Integer} \n */\n var exports = function(type, birthtime, mtime, mode, size, nlink) {\n var _this = this;\n\n _this['type'] = type;\n _this['birthtime'] = birthtime;\n _this['mtime'] = mtime;\n _this['mode'] = mode;\n _this['size'] = size;\n _this['nlink'] = nlink;\n };\n\n /**\n * Constructs a Stats
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Stats} obj Optional instance to populate.\n * @return {module:model/Stats} The populated Stats
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('type')) {\n obj['type'] = ApiClient.convertToType(data['type'], 'String');\n }\n if (data.hasOwnProperty('birthtime')) {\n obj['birthtime'] = ApiClient.convertToType(data['birthtime'], 'Date');\n }\n if (data.hasOwnProperty('mtime')) {\n obj['mtime'] = ApiClient.convertToType(data['mtime'], 'Date');\n }\n if (data.hasOwnProperty('mode')) {\n obj['mode'] = ApiClient.convertToType(data['mode'], 'String');\n }\n if (data.hasOwnProperty('size')) {\n obj['size'] = ApiClient.convertToType(data['size'], 'Integer');\n }\n if (data.hasOwnProperty('nlink')) {\n obj['nlink'] = ApiClient.convertToType(data['nlink'], 'Integer');\n }\n }\n return obj;\n }\n\n /**\n * All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n * @member {module:model/Stats.TypeEnum} type\n */\n exports.prototype['type'] = undefined;\n /**\n * @member {Date} birthtime\n */\n exports.prototype['birthtime'] = undefined;\n /**\n * @member {Date} mtime\n */\n exports.prototype['mtime'] = undefined;\n /**\n * @member {String} mode\n */\n exports.prototype['mode'] = undefined;\n /**\n * @member {Integer} size\n */\n exports.prototype['size'] = undefined;\n /**\n * @member {Integer} nlink\n */\n exports.prototype['nlink'] = undefined;\n\n\n /**\n * Allowed values for the type
property.\n * @enum {String}\n * @readonly\n */\n exports.TypeEnum = {\n /**\n * value: \"FILE\"\n * @const\n */\n \"FILE\": \"FILE\",\n /**\n * value: \"DIRECTORY\"\n * @const\n */\n \"DIRECTORY\": \"DIRECTORY\",\n /**\n * value: \"BLOCK_DEVICE\"\n * @const\n */\n \"BLOCK_DEVICE\": \"BLOCK_DEVICE\",\n /**\n * value: \"CHARACTER_DEVICE\"\n * @const\n */\n \"CHARACTER_DEVICE\": \"CHARACTER_DEVICE\",\n /**\n * value: \"LINK\"\n * @const\n */\n \"LINK\": \"LINK\",\n /**\n * value: \"FIFO\"\n * @const\n */\n \"FIFO\": \"FIFO\",\n /**\n * value: \"SOCKET\"\n * @const\n */\n \"SOCKET\": \"SOCKET\",\n /**\n * value: \"DUMMY\"\n * @const\n */\n \"DUMMY\": \"DUMMY\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Stats.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ChildProcess = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The ChildProcess model module.\n * @module model/ChildProcess\n * @version 0.3.0\n */\n\n /**\n * Constructs a new ChildProcess
.\n * a process in execution\n * @alias module:model/ChildProcess\n * @class\n * @param pid {Integer} child process pid\n * @param command {String} the execution command in Execution request\n * @param args {Array.} arguments of the command in Execution request\n * @param executionId {String} execution id from Execution request\n * @param startedAt {Date} the time when this process is spawned\n * @param background {Array.} true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n */\n var exports = function(pid, command, args, executionId, startedAt, background) {\n var _this = this;\n\n _this['pid'] = pid;\n _this['command'] = command;\n _this['args'] = args;\n _this['executionId'] = executionId;\n _this['startedAt'] = startedAt;\n _this['background'] = background;\n };\n\n /**\n * Constructs a ChildProcess
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ChildProcess} obj Optional instance to populate.\n * @return {module:model/ChildProcess} The populated ChildProcess
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('pid')) {\n obj['pid'] = ApiClient.convertToType(data['pid'], 'Integer');\n }\n if (data.hasOwnProperty('command')) {\n obj['command'] = ApiClient.convertToType(data['command'], 'String');\n }\n if (data.hasOwnProperty('args')) {\n obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n }\n if (data.hasOwnProperty('executionId')) {\n obj['executionId'] = ApiClient.convertToType(data['executionId'], 'String');\n }\n if (data.hasOwnProperty('startedAt')) {\n obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date');\n }\n if (data.hasOwnProperty('background')) {\n obj['background'] = ApiClient.convertToType(data['background'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * child process pid\n * @member {Integer} pid\n */\n exports.prototype['pid'] = undefined;\n /**\n * the execution command in Execution request\n * @member {String} command\n */\n exports.prototype['command'] = undefined;\n /**\n * arguments of the command in Execution request\n * @member {Array.} args\n */\n exports.prototype['args'] = undefined;\n /**\n * execution id from Execution request\n * @member {String} executionId\n */\n exports.prototype['executionId'] = undefined;\n /**\n * the time when this process is spawned\n * @member {Date} startedAt\n */\n exports.prototype['startedAt'] = undefined;\n /**\n * true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n * @member {Array.} background\n */\n exports.prototype['background'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/ChildProcess.js\n ** module id = 7\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Credential = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Credential model module.\n * @module model/Credential\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Credential
.\n * user credential to login. Use https to protect credential.\n * @alias module:model/Credential\n * @class\n * @param loginId {String} \n * @param loginPassword {String} \n */\n var exports = function(loginId, loginPassword) {\n var _this = this;\n\n _this['loginId'] = loginId;\n _this['loginPassword'] = loginPassword;\n\n };\n\n /**\n * Constructs a Credential
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Credential} obj Optional instance to populate.\n * @return {module:model/Credential} The populated Credential
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('loginId')) {\n obj['loginId'] = ApiClient.convertToType(data['loginId'], 'String');\n }\n if (data.hasOwnProperty('loginPassword')) {\n obj['loginPassword'] = ApiClient.convertToType(data['loginPassword'], 'String');\n }\n if (data.hasOwnProperty('masterToken')) {\n obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} loginId\n */\n exports.prototype['loginId'] = undefined;\n /**\n * @member {String} loginPassword\n */\n exports.prototype['loginPassword'] = undefined;\n /**\n * a master token is issued when user wants to access webida api without id/password from remote or local desktop app. When masterToken is set, client should put some bogus id/password, non-empty. (The values can be used to identify client type) \n * @member {String} masterToken\n */\n exports.prototype['masterToken'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Credential.js\n ** module id = 8\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Execution = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Execution model module.\n * @module model/Execution\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Execution
.\n * execution request, simlilar to node.js spawn(). see node.js documentation for details of each properties. some properties are not configurable for portability - encoding : fixed to utf-8 - shell : fixed to system default. Using shell variables in command may not work. - killSignal : fixed to SIGTERM. If process does not die, server can send SIGKILL or invoke taskkill to ensure chlid process is killed. - uid & gid : will not be set for security - stdio : all streams are handled by server. no options are avaliable to client. - shell : always false. - detached : always false \n * @alias module:model/Execution\n * @class\n * @param command {String} command to run. should not contain any arguments, pipes, redirections \n * @param args {Array.} the arguments array\n */\n var exports = function(command, args) {\n var _this = this;\n\n\n _this['command'] = command;\n _this['args'] = args;\n\n\n\n };\n\n /**\n * Constructs a Execution
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Execution} obj Optional instance to populate.\n * @return {module:model/Execution} The populated Execution
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('command')) {\n obj['command'] = ApiClient.convertToType(data['command'], 'String');\n }\n if (data.hasOwnProperty('args')) {\n obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n }\n if (data.hasOwnProperty('cwd')) {\n obj['cwd'] = ApiClient.convertToType(data['cwd'], 'String');\n }\n if (data.hasOwnProperty('input')) {\n obj['input'] = ApiClient.convertToType(data['input'], 'String');\n }\n if (data.hasOwnProperty('timeout')) {\n obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Integer');\n }\n }\n return obj;\n }\n\n /**\n * unique identifier of execution, to demux response stream or cancel request. async exec request should have id, always. For synchronous execution, missing id will be generated by server with random string & timestamp. \n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * command to run. should not contain any arguments, pipes, redirections \n * @member {String} command\n */\n exports.prototype['command'] = undefined;\n /**\n * the arguments array\n * @member {Array.} args\n */\n exports.prototype['args'] = undefined;\n /**\n * Current working directory of spawned process, relative to workspace root. If abscent, cwd will be the workspace root directory. Does not accept any evaluatable form like $HOME, %USERPROFILE%. As wfs operations, path should be unixified. But, unlikely, while the wfs operations cut heading \\\"/\\\" in path with URI normlization, this operation does not convert path to relateive and returns error for the argument. \n * @member {String} cwd\n */\n exports.prototype['cwd'] = undefined;\n /**\n * input string for child process. if falsy, no input will be available to child. (interactive execution via websocket is not supported for most of such processes requires tty, not standard i/o) \n * @member {String} input\n */\n exports.prototype['input'] = undefined;\n /**\n * The value which In \\\"milliseconds\\\" the maximum amount of time the child is allowed to run. (not idle time of stdout / stderr stream) if undefined, server sets default timeout value 5 min to synchronous execution requests. If request specifies async execution and sets this value to falsy, server should not kill the child process until 1) The process exists by self 2) cancel operation is invoked by api request 3) The workspace executing the process is removed by api request 4) Server Stops Terminiating any \\\"too-long-lived\\\" child process are not graceful, as cancel() is. \n * @member {Integer} timeout\n */\n exports.prototype['timeout'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Execution.js\n ** module id = 9\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ExecutionResult = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The ExecutionResult model module.\n * @module model/ExecutionResult\n * @version 0.3.0\n */\n\n /**\n * Constructs a new ExecutionResult
.\n * execution response\n * @alias module:model/ExecutionResult\n * @class\n * @param exitCode {Integer} exit code of child process.\n * @param stdout {String} standard out of child process.\n * @param stderr {String} standard error of child process.\n */\n var exports = function(exitCode, stdout, stderr) {\n var _this = this;\n\n _this['exitCode'] = exitCode;\n _this['stdout'] = stdout;\n _this['stderr'] = stderr;\n };\n\n /**\n * Constructs a ExecutionResult
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ExecutionResult} obj Optional instance to populate.\n * @return {module:model/ExecutionResult} The populated ExecutionResult
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('exitCode')) {\n obj['exitCode'] = ApiClient.convertToType(data['exitCode'], 'Integer');\n }\n if (data.hasOwnProperty('stdout')) {\n obj['stdout'] = ApiClient.convertToType(data['stdout'], 'String');\n }\n if (data.hasOwnProperty('stderr')) {\n obj['stderr'] = ApiClient.convertToType(data['stderr'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * exit code of child process.\n * @member {Integer} exitCode\n */\n exports.prototype['exitCode'] = undefined;\n /**\n * standard out of child process.\n * @member {String} stdout\n */\n exports.prototype['stdout'] = undefined;\n /**\n * standard error of child process.\n * @member {String} stderr\n */\n exports.prototype['stderr'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/ExecutionResult.js\n ** module id = 10\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RemoteAccess = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RemoteAccess model module.\n * @module model/RemoteAccess\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RemoteAccess
.\n * Access information of remote workspace in remote server\n * @alias module:model/RemoteAccess\n * @class\n * @param name {String} display text of remote workspace. can be different from original name. \n * @param serverUrl {String} the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n * @param workspaceId {String} the id of remote workspace, read from remote server\n * @param masterToken {String} master token to access service, issued from remote server\n */\n var exports = function(name, serverUrl, workspaceId, masterToken) {\n var _this = this;\n\n _this['name'] = name;\n _this['serverUrl'] = serverUrl;\n _this['workspaceId'] = workspaceId;\n\n _this['masterToken'] = masterToken;\n };\n\n /**\n * Constructs a RemoteAccess
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RemoteAccess} obj Optional instance to populate.\n * @return {module:model/RemoteAccess} The populated RemoteAccess
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('serverUrl')) {\n obj['serverUrl'] = ApiClient.convertToType(data['serverUrl'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n if (data.hasOwnProperty('workspacePath')) {\n obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n }\n if (data.hasOwnProperty('masterToken')) {\n obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * display text of remote workspace. can be different from original name. \n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n * @member {String} serverUrl\n */\n exports.prototype['serverUrl'] = undefined;\n /**\n * the id of remote workspace, read from remote server\n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n /**\n * Full path of remote workspace, read from remote server. this property will be removed when clients are able to work without \\\"named root directory\\\" in workspace fs tree. \n * @member {String} workspacePath\n */\n exports.prototype['workspacePath'] = undefined;\n /**\n * master token to access service, issued from remote server\n * @member {String} masterToken\n */\n exports.prototype['masterToken'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RemoteAccess.js\n ** module id = 11\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Session = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Session model module.\n * @module model/Session\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Session
.\n * an application session per ide instance. bound to access token\n * @alias module:model/Session\n * @class\n * @param id {String} the id of a session. usually same to socket id.\n * @param name {String} human readable name, usually derived from workspace name.\n * @param state {module:model/Session.StateEnum} state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n * @param clientAddress {String} the peer address of session connection. not always\n * @param connectedAt {Date} the time when socket connection is established\n * @param disconnectedAt {Date} the time when socket is closed.\n */\n var exports = function(id, name, state, clientAddress, connectedAt, disconnectedAt) {\n var _this = this;\n\n _this['id'] = id;\n _this['name'] = name;\n _this['state'] = state;\n\n _this['clientAddress'] = clientAddress;\n _this['connectedAt'] = connectedAt;\n _this['disconnectedAt'] = disconnectedAt;\n\n\n };\n\n /**\n * Constructs a Session
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Session} obj Optional instance to populate.\n * @return {module:model/Session} The populated Session
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('state')) {\n obj['state'] = ApiClient.convertToType(data['state'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n if (data.hasOwnProperty('clientAddress')) {\n obj['clientAddress'] = ApiClient.convertToType(data['clientAddress'], 'String');\n }\n if (data.hasOwnProperty('connectedAt')) {\n obj['connectedAt'] = ApiClient.convertToType(data['connectedAt'], 'Date');\n }\n if (data.hasOwnProperty('disconnectedAt')) {\n obj['disconnectedAt'] = ApiClient.convertToType(data['disconnectedAt'], 'Date');\n }\n if (data.hasOwnProperty('willCloseAt')) {\n obj['willCloseAt'] = ApiClient.convertToType(data['willCloseAt'], 'Date');\n }\n if (data.hasOwnProperty('willLoseAt')) {\n obj['willLoseAt'] = ApiClient.convertToType(data['willLoseAt'], 'Date');\n }\n }\n return obj;\n }\n\n /**\n * the id of a session. usually same to socket id.\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * human readable name, usually derived from workspace name.\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n * @member {module:model/Session.StateEnum} state\n */\n exports.prototype['state'] = undefined;\n /**\n * the id of workspace that this sessions is working on. If falsy, then this session is not belonged to any workpsace. Usually, dashboard / monitoring app will create a session without workspace id. \n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n /**\n * the peer address of session connection. not always\n * @member {String} clientAddress\n */\n exports.prototype['clientAddress'] = undefined;\n /**\n * the time when socket connection is established\n * @member {Date} connectedAt\n */\n exports.prototype['connectedAt'] = undefined;\n /**\n * the time when socket is closed.\n * @member {Date} disconnectedAt\n */\n exports.prototype['disconnectedAt'] = undefined;\n /**\n * when state becomes CLOSING, actual closing time will be updated by server.\n * @member {Date} willCloseAt\n */\n exports.prototype['willCloseAt'] = undefined;\n /**\n * when state becomes LOSING, server will not wait for reconnection after this time.\n * @member {Date} willLoseAt\n */\n exports.prototype['willLoseAt'] = undefined;\n\n\n /**\n * Allowed values for the state
property.\n * @enum {String}\n * @readonly\n */\n exports.StateEnum = {\n /**\n * value: \"NORMAL\"\n * @const\n */\n \"NORMAL\": \"NORMAL\",\n /**\n * value: \"LOSING\"\n * @const\n */\n \"LOSING\": \"LOSING\",\n /**\n * value: \"CLOSING\"\n * @const\n */\n \"CLOSING\": \"CLOSING\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Session.js\n ** module id = 12\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Token = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Token model module.\n * @module model/Token\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Token
.\n * a json webtoken and accessible data\n * @alias module:model/Token\n * @class\n * @param text {String} actual token text that should be shipped in header or query\n * @param tokenType {module:model/Token.TokenTypeEnum} MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n * @param expiresAt {Date} \n * @param issuedAt {Date} \n */\n var exports = function(text, tokenType, expiresAt, issuedAt) {\n var _this = this;\n\n _this['text'] = text;\n _this['tokenType'] = tokenType;\n _this['expiresAt'] = expiresAt;\n _this['issuedAt'] = issuedAt;\n\n\n };\n\n /**\n * Constructs a Token
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Token} obj Optional instance to populate.\n * @return {module:model/Token} The populated Token
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('text')) {\n obj['text'] = ApiClient.convertToType(data['text'], 'String');\n }\n if (data.hasOwnProperty('tokenType')) {\n obj['tokenType'] = ApiClient.convertToType(data['tokenType'], 'String');\n }\n if (data.hasOwnProperty('expiresAt')) {\n obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'Date');\n }\n if (data.hasOwnProperty('issuedAt')) {\n obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'Date');\n }\n if (data.hasOwnProperty('sessionId')) {\n obj['sessionId'] = ApiClient.convertToType(data['sessionId'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * actual token text that should be shipped in header or query\n * @member {String} text\n */\n exports.prototype['text'] = undefined;\n /**\n * MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n * @member {module:model/Token.TokenTypeEnum} tokenType\n */\n exports.prototype['tokenType'] = undefined;\n /**\n * @member {Date} expiresAt\n */\n exports.prototype['expiresAt'] = undefined;\n /**\n * @member {Date} issuedAt\n */\n exports.prototype['issuedAt'] = undefined;\n /**\n * mandatory for ACCESS token, identifying client instance\n * @member {String} sessionId\n */\n exports.prototype['sessionId'] = undefined;\n /**\n * If truthy, access rights are restricted to specified workspace only.\n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n\n\n /**\n * Allowed values for the tokenType
property.\n * @enum {String}\n * @readonly\n */\n exports.TokenTypeEnum = {\n /**\n * value: \"MASTER\"\n * @const\n */\n \"MASTER\": \"MASTER\",\n /**\n * value: \"ACCESS\"\n * @const\n */\n \"ACCESS\": \"ACCESS\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Token.js\n ** module id = 13\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.User = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The User model module.\n * @module model/User\n * @version 0.3.0\n */\n\n /**\n * Constructs a new User
.\n * Any services/products should define some admin apis to manage users in the system and expose what should be exposed to client app. So, no properties are mandatory. Currently, the properties are defined for compatiblity with legacy clients. \n * @alias module:model/User\n * @class\n */\n var exports = function() {\n var _this = this;\n\n\n\n\n };\n\n /**\n * Constructs a User
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/User} obj Optional instance to populate.\n * @return {module:model/User} The populated User
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('email')) {\n obj['email'] = ApiClient.convertToType(data['email'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * unique id per user (email is also unique)\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * @member {String} email\n */\n exports.prototype['email'] = undefined;\n /**\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/User.js\n ** module id = 14\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Workspace = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Workspace model module.\n * @module model/Workspace\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Workspace
.\n * A workspace in server\n * @alias module:model/Workspace\n * @class\n * @param id {String} the id of a workspace. usually same to file system id\n * @param name {String} display text of this workspace for UI\n * @param description {String} human readable description on this workspace\n * @param createdAt {Date} the time when this workspace is created (registered from local file system)\n * @param workspacePath {String} absolute path of this workspace in server.\n * @param excludedPaths {Array.} glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n * @param offlineCachePaths {Array.} any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n */\n var exports = function(id, name, description, createdAt, workspacePath, excludedPaths, offlineCachePaths) {\n var _this = this;\n\n _this['id'] = id;\n _this['name'] = name;\n _this['description'] = description;\n _this['createdAt'] = createdAt;\n\n _this['workspacePath'] = workspacePath;\n _this['excludedPaths'] = excludedPaths;\n _this['offlineCachePaths'] = offlineCachePaths;\n };\n\n /**\n * Constructs a Workspace
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Workspace} obj Optional instance to populate.\n * @return {module:model/Workspace} The populated Workspace
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('description')) {\n obj['description'] = ApiClient.convertToType(data['description'], 'String');\n }\n if (data.hasOwnProperty('createdAt')) {\n obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');\n }\n if (data.hasOwnProperty('accessedAt')) {\n obj['accessedAt'] = ApiClient.convertToType(data['accessedAt'], 'Date');\n }\n if (data.hasOwnProperty('workspacePath')) {\n obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n }\n if (data.hasOwnProperty('excludedPaths')) {\n obj['excludedPaths'] = ApiClient.convertToType(data['excludedPaths'], ['String']);\n }\n if (data.hasOwnProperty('offlineCachePaths')) {\n obj['offlineCachePaths'] = ApiClient.convertToType(data['offlineCachePaths'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * the id of a workspace. usually same to file system id\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * display text of this workspace for UI\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * human readable description on this workspace\n * @member {String} description\n */\n exports.prototype['description'] = undefined;\n /**\n * the time when this workspace is created (registered from local file system)\n * @member {Date} createdAt\n */\n exports.prototype['createdAt'] = undefined;\n /**\n * the time when the last session on this workspace was made. (optional)\n * @member {Date} accessedAt\n */\n exports.prototype['accessedAt'] = undefined;\n /**\n * absolute path of this workspace in server.\n * @member {String} workspacePath\n */\n exports.prototype['workspacePath'] = undefined;\n /**\n * glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n * @member {Array.} excludedPaths\n */\n exports.prototype['excludedPaths'] = undefined;\n /**\n * any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n * @member {Array.} offlineCachePaths\n */\n exports.prototype['offlineCachePaths'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Workspace.js\n ** module id = 15\n ** module chunks = 0\n **/","(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= 200 && res.status < 300) {\n return self.callback(err, res);\n }\n\n var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n\n self.callback(new_err, res);\n } catch(e) {\n self.callback(e); // #985 touching res may cause INVALID_STATE_ERR on old Android\n }\n });\n}\n\n/**\n * Mixin `Emitter` and `requestBase`.\n */\n\nEmitter(Request.prototype);\nfor (var key in requestBase) {\n Request.prototype[key] = requestBase[key];\n}\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set responseType to `val`. Presently valid responseTypes are 'blob' and\n * 'arraybuffer'.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.responseType = function(val){\n this._responseType = val;\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} pass\n * @param {Object} options with 'type' property 'auto' or 'basic' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass, options){\n if (!options) {\n options = {\n type: 'basic'\n }\n }\n\n switch (options.type) {\n case 'basic':\n var str = btoa(user + ':' + pass);\n this.set('Authorization', 'Basic ' + str);\n break;\n\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n }\n return this;\n};\n\n/**\n* Add query-string `val`.\n*\n* Examples:\n*\n* request.get('/shoes')\n* .query('size=10')\n* .query({ color: 'blue' })\n*\n* @param {Object|String} val\n* @return {Request} for chaining\n* @api public\n*/\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `filename`.\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String} filename\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, filename){\n this._getFormData().append(field, file, filename || file.name);\n return this;\n};\n\nRequest.prototype._getFormData = function(){\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n var fn = this._callback;\n this.clearTimeout();\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n\n this.callback(err);\n};\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequest.prototype._timeoutError = function(){\n var timeout = this._timeout;\n var err = new Error('timeout of ' + timeout + 'ms exceeded');\n err.timeout = timeout;\n this.callback(err);\n};\n\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\n\nRequest.prototype._appendQueryString = function(){\n var query = this._query.join('&');\n if (query) {\n this.url += ~this.url.indexOf('?')\n ? '&' + query\n : '?' + query;\n }\n};\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n var self = this;\n var xhr = this.xhr = request.getXHR();\n var timeout = this._timeout;\n var data = this._formData || this._data;\n\n // store callback\n this._callback = fn || noop;\n\n // state change\n xhr.onreadystatechange = function(){\n if (4 != xhr.readyState) return;\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (0 == status) {\n if (self.timedout) return self._timeoutError();\n if (self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(e){\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n e.direction = 'download';\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n xhr.onprogress = handleProgress;\n }\n try {\n if (xhr.upload && this.hasListeners('progress')) {\n xhr.upload.onprogress = handleProgress;\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n\n // timeout\n if (timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self.timedout = true;\n self.abort();\n }, timeout);\n }\n\n // querystring\n this._appendQueryString();\n\n // initiate request\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n if (this._responseType) {\n xhr.responseType = this._responseType;\n }\n\n // send stuff\n this.emit('request', this);\n\n // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n xhr.send(typeof data !== 'undefined' ? data : null);\n return this;\n};\n\n\n/**\n * Expose `Request`.\n */\n\nrequest.Request = Request;\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn){\n var req = request('GET', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn){\n var req = request('HEAD', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.options = function(url, data, fn){\n var req = request('OPTIONS', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nfunction del(url, fn){\n var req = request('DELETE', url);\n if (fn) req.end(fn);\n return req;\n};\n\nrequest['del'] = del;\nrequest['delete'] = del;\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn){\n var req = request('PATCH', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn){\n var req = request('POST', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn){\n var req = request('PUT', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n},{\"./is-object\":1,\"./request\":3,\"./request-base\":2,\"emitter\":4,\"reduce\":5}]},{},[6])(6)\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/superagent/superagent.js\n ** module id = 16\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/User', 'model/RestError', 'model/Token', 'model/Credential'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/User'), require('../model/RestError'), require('../model/Token'), require('../model/Credential'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.AuthApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.User, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Token, root.WebidaRestfulApi.Credential);\n }\n}(this, function(ApiClient, User, RestError, Token, Credential) {\n 'use strict';\n\n /**\n * Auth service.\n * @module api/AuthApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new AuthApi. \n * @alias module:api/AuthApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the getInfo operation.\n * @callback module:api/AuthApi~getInfoCallback\n * @param {String} error Error message, if any.\n * @param {module:model/User} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Gets user information of that can be identified with current access token. Implementations should provide a more restful api based on domain data model, not extending this operation. (e.g. GET,PUT and DELETE on /Users/{userId} to read, update and delete user) \n * @param {module:api/AuthApi~getInfoCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/User}\n */\n this.getInfo = function(callback) {\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = User;\n\n return this.apiClient.callApi(\n '/auth/info', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the issueToken operation.\n * @callback module:api/AuthApi~issueTokenCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Token} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is (and should not be) parameterizable. Server should set proper duration, respecting \\"reconnect\\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server. Like login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do. \n * @param {module:model/String} type \n * @param {Object} opts Optional parameters\n * @param {String} opts.workspaceId recommended to issue a MASTER type token to restrict remote access\n * @param {module:api/AuthApi~issueTokenCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Token}\n */\n this.issueToken = function(type, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'type' is set\n if (type == undefined || type == null) {\n throw \"Missing the required parameter 'type' when calling issueToken\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'type': type,\n 'workspaceId': opts['workspaceId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Token;\n\n return this.apiClient.callApi(\n '/auth/token', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the login operation.\n * @callback module:api/AuthApi~loginCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Token} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * A \\"VERY\\" basic authentication, required to use webida-simple-auth security scheme. Service / Product implementations who need better security, should override this operation or add their own login api or some other specs like OAuth2. Simple auth is not suitable for large-sacle, multi-tennant service, for the scheme assumes a single, trusted user only. Logging-in with master token, the generated access token inherits all restriction from it. On the other hand, normal log-in with login id & password creates an unrestricted access token, with reasonably short expiration time. Every client should spawn another access token with issueToken API before current access token expires, inheriting session id from current token. To save remote access info, client should create a (restricted but long-ttl) master token to start IDE from remote. The remote client should not use the unrestricted acccess token from login to use any other perpose than finding available workspaces, and should not refresh the token. (Let user log-in again) Login API does not force any encryption. Server should provide secure transport channel, usually https, to provide remote access, always. \n * @param {module:model/Credential} body \n * @param {module:api/AuthApi~loginCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Token}\n */\n this.login = function(body, callback) {\n var postBody = body;\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling login\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Token;\n\n return this.apiClient.callApi(\n '/auth/login', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/AuthApi.js\n ** module id = 17\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.OpsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError);\n }\n}(this, function(ApiClient, RestOK, RestError) {\n 'use strict';\n\n /**\n * Ops service.\n * @module api/OpsApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new OpsApi. \n * @alias module:api/OpsApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the replace operation.\n * @callback module:api/OpsApi~replaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * replace file contents with regex matching\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {Array.} wfsPathList array of wfsPath, with heading / (collection format may be changed by implementation)\n * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n * @param {String} replaceTo string to replace with\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n * @param {module:api/OpsApi~replaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.replace = function(wfsId, wfsPathList, pattern, replaceTo, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling replace\";\n }\n\n // verify the required parameter 'wfsPathList' is set\n if (wfsPathList == undefined || wfsPathList == null) {\n throw \"Missing the required parameter 'wfsPathList' when calling replace\";\n }\n\n // verify the required parameter 'pattern' is set\n if (pattern == undefined || pattern == null) {\n throw \"Missing the required parameter 'pattern' when calling replace\";\n }\n\n // verify the required parameter 'replaceTo' is set\n if (replaceTo == undefined || replaceTo == null) {\n throw \"Missing the required parameter 'replaceTo' when calling replace\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId\n };\n var queryParams = {\n 'wfsPathList': this.apiClient.buildCollectionParam(wfsPathList, 'multi'),\n 'pattern': pattern,\n 'replaceTo': replaceTo,\n 'ignoreCase': opts['ignoreCase']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/ops/replace', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the search operation.\n * @callback module:api/OpsApi~searchCallback\n * @param {String} error Error message, if any.\n * @param {Object.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * search files in some path, with given pattern\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n * @param {module:api/OpsApi~searchCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Object.}\n */\n this.search = function(wfsId, wfsPath, pattern, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling search\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling search\";\n }\n\n // verify the required parameter 'pattern' is set\n if (pattern == undefined || pattern == null) {\n throw \"Missing the required parameter 'pattern' when calling search\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'pattern': pattern,\n 'ignoreCase': opts['ignoreCase']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = {'String': [Match]};\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/ops/search/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/OpsApi.js\n ** module id = 18\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestError', 'model/RemoteAccess', 'model/RestOK'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestError'), require('../model/RemoteAccess'), require('../model/RestOK'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RemotesApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.RemoteAccess, root.WebidaRestfulApi.RestOK);\n }\n}(this, function(ApiClient, RestError, RemoteAccess, RestOK) {\n 'use strict';\n\n /**\n * Remotes service.\n * @module api/RemotesApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RemotesApi. \n * @alias module:api/RemotesApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the findRemoteAccesses operation.\n * @callback module:api/RemotesApi~findRemoteAccessesCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Get all access informations See RemoteWorkspaceAccess definition for details (no fancy find / search feature yet) \n * @param {module:api/RemotesApi~findRemoteAccessesCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findRemoteAccesses = function(callback) {\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [RemoteAccess];\n\n return this.apiClient.callApi(\n '/remotes', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the putRemoteAccess operation.\n * @callback module:api/RemotesApi~putRemoteAccessCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * create or update a remote workspace access information\n * @param {module:model/RemoteAccess} body \n * @param {module:api/RemotesApi~putRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.putRemoteAccess = function(body, callback) {\n var postBody = body;\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling putRemoteAccess\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/remotes', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeRemoteAccess operation.\n * @callback module:api/RemotesApi~removeRemoteAccessCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RemoteAccess} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete a remote workspace\n * @param {String} workspaceId workspace Id of remote workspace\n * @param {module:api/RemotesApi~removeRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RemoteAccess}\n */\n this.removeRemoteAccess = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeRemoteAccess\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'workspaceId': workspaceId\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RemoteAccess;\n\n return this.apiClient.callApi(\n '/remotes', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/RemotesApi.js\n ** module id = 19\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/Session'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Session'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.SessionApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Session);\n }\n}(this, function(ApiClient, RestOK, RestError, Session) {\n 'use strict';\n\n /**\n * Session service.\n * @module api/SessionApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new SessionApi. \n * @alias module:api/SessionApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the closeSession operation.\n * @callback module:api/SessionApi~closeSessionCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * close session with timeout\n * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n * @param {Integer} closeAfter waiting time before actual closing, to let client save files and prevent reconnect \n * @param {module:api/SessionApi~closeSessionCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.closeSession = function(sessionId, closeAfter, callback) {\n var postBody = null;\n\n // verify the required parameter 'sessionId' is set\n if (sessionId == undefined || sessionId == null) {\n throw \"Missing the required parameter 'sessionId' when calling closeSession\";\n }\n\n // verify the required parameter 'closeAfter' is set\n if (closeAfter == undefined || closeAfter == null) {\n throw \"Missing the required parameter 'closeAfter' when calling closeSession\";\n }\n\n\n var pathParams = {\n 'sessionId': sessionId\n };\n var queryParams = {\n 'closeAfter': closeAfter\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/sessions/{sessionId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the findSessions operation.\n * @callback module:api/SessionApi~findSessionsCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get all / some webida sessions established to server\n * @param {Object} opts Optional parameters\n * @param {String} opts.workspaceId find only sessions working on some given workspace\n * @param {module:api/SessionApi~findSessionsCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findSessions = function(opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n 'workspaceId': opts['workspaceId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [Session];\n\n return this.apiClient.callApi(\n '/sessions', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getSession operation.\n * @callback module:api/SessionApi~getSessionCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Session} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get a session object by id\n * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n * @param {module:api/SessionApi~getSessionCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Session}\n */\n this.getSession = function(sessionId, callback) {\n var postBody = null;\n\n // verify the required parameter 'sessionId' is set\n if (sessionId == undefined || sessionId == null) {\n throw \"Missing the required parameter 'sessionId' when calling getSession\";\n }\n\n\n var pathParams = {\n 'sessionId': sessionId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Session;\n\n return this.apiClient.callApi(\n '/sessions/{sessionId}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/SessionApi.js\n ** module id = 20\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/DirEntry', 'model/Stats'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/DirEntry'), require('../model/Stats'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.WfsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n }\n}(this, function(ApiClient, RestOK, RestError, DirEntry, Stats) {\n 'use strict';\n\n /**\n * Wfs service.\n * @module api/WfsApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new WfsApi. \n * @alias module:api/WfsApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the copy operation.\n * @callback module:api/WfsApi~copyCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Copy to given path. Works like cp -r command, with some funny options. That means, if destination is a directory, result will be put 'in' the directory with same base name to the source. If removeExisting option is false, copying a directory onto a file will return error. Or, destination path will be 'clobbed' before copying file, regardless wheather the path is file or not. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)\n * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)\n * @param {Boolean} opts.followSymbolicLinks dereference symlinks or not (default to false)\n * @param {Boolean} opts.preserveTimestamps to change default behavior, keep mtime/atime of source files in destination (default to false)\n * @param {module:api/WfsApi~copyCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.copy = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling copy\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling copy\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling copy\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'ensurePath': opts['ensurePath'],\n 'removeExisting': opts['removeExisting'],\n 'followSymbolicLinks': opts['followSymbolicLinks'],\n 'preserveTimestamps': opts['preserveTimestamps']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the createDir operation.\n * @callback module:api/WfsApi~createDirCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * create a directory at the path. returns error when wfsPath exists and not empty this API always creates parent directories if needed. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {module:api/WfsApi~createDirCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.createDir = function(wfsId, wfsPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling createDir\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling createDir\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/dir/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the dirTree operation.\n * @callback module:api/WfsApi~dirTreeCallback\n * @param {String} error Error message, if any.\n * @param {module:model/DirEntry} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * returns a directory tree of given path, for listing dir and managing file system errors while building sub-tree will be ignored and will not be included in result. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Integer} maxDepth Maximum depth of tree. -1 to build a full tree, 0 to stat, 1 to plain list.\n * @param {module:api/WfsApi~dirTreeCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/DirEntry}\n */\n this.dirTree = function(wfsId, wfsPath, maxDepth, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling dirTree\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling dirTree\";\n }\n\n // verify the required parameter 'maxDepth' is set\n if (maxDepth == undefined || maxDepth == null) {\n throw \"Missing the required parameter 'maxDepth' when calling dirTree\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'maxDepth': maxDepth\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = DirEntry;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/dir/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the move operation.\n * @callback module:api/WfsApi~moveCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * move file or directory to given path. works like mv -r command\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)\n * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)\n * @param {module:api/WfsApi~moveCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.move = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling move\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling move\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling move\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'ensurePath': opts['ensurePath'],\n 'removeExisting': opts['removeExisting']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/dir/{wfsPath}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the readFile operation.\n * @callback module:api/WfsApi~readFileCallback\n * @param {String} error Error message, if any.\n * @param {File} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * read file data on path\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {module:api/WfsApi~readFileCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {File}\n */\n this.readFile = function(wfsId, wfsPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling readFile\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling readFile\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = File;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the remove operation.\n * @callback module:api/WfsApi~removeCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete file or directory\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.unrecursive if set, deleting non-empty directory will return error. (default to false)\n * @param {module:api/WfsApi~removeCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.remove = function(wfsId, wfsPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling remove\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling remove\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'unrecursive': opts['unrecursive']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the rename operation.\n * @callback module:api/WfsApi~renameCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Renames a file or directory to wfsPath. Unlike POSIX rename() call semantics, this operation does not overwrite anything. Renaming to any 'existing' source will return error except only 1 case, with emulateMove option. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n * @param {Boolean} opts.emulateMove When rename file to existing dir, move file to the dir instead of returning error. This option is provided for legacy, dummy clients only to emulate legacy server's move behaviour. Newly written client app should not use this option & use move() operation to have clear behaviour. \n * @param {module:api/WfsApi~renameCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.rename = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling rename\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling rename\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling rename\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'ensureParents': opts['ensureParents'],\n 'emulateMove': opts['emulateMove']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the stat operation.\n * @callback module:api/WfsApi~statCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Stats} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Get stats of given path. (stat() returns \\"stats\\" object in node and POSIX system) Since we've no ctime/atime in Stats class, some file system changing events will send 'exactly same' stats object. This API should be called only when stats of some file system path is stale for unknown reason (e.g. losting change events). Use dirTree operation and session events to detect stats, if possible. This API can be used to check a path is valid, existing one, but it's not recommended to check existence of individual paths by API. Clients should use dirTree and session events to synchorize some in-app file system with webida file system. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreError flag to ignore stat errors to check existence only. If this flag is true, server will returns 'DUMMY' type stats object instead of 404 error when given path does not exists. (invalid wfsId will produce 400 error, not 404) (default to false)\n * @param {module:api/WfsApi~statCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Stats}\n */\n this.stat = function(wfsId, wfsPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling stat\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling stat\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'ignoreError': opts['ignoreError']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Stats;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the writeFile operation.\n * @callback module:api/WfsApi~writeFileCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates / updates file with body data. Server should write the file in 'atomic' manner, and should not write down request body into final destination path directly. In other words, wheather writeFile() succeeds or not, the contents of the file should not be corrupted nor half-written. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {File} data file contents to write.\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n * @param {module:api/WfsApi~writeFileCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.writeFile = function(wfsId, wfsPath, data, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling writeFile\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling writeFile\";\n }\n\n // verify the required parameter 'data' is set\n if (data == undefined || data == null) {\n throw \"Missing the required parameter 'data' when calling writeFile\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'ensureParents': opts['ensureParents']\n };\n var headerParams = {\n };\n var formParams = {\n 'data': data\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['multipart/form-data'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/WfsApi.js\n ** module id = 21\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/Workspace', 'model/ChildProcess', 'model/Execution', 'model/ExecutionResult'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Workspace'), require('../model/ChildProcess'), require('../model/Execution'), require('../model/ExecutionResult'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.WorkspaceApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Workspace, root.WebidaRestfulApi.ChildProcess, root.WebidaRestfulApi.Execution, root.WebidaRestfulApi.ExecutionResult);\n }\n}(this, function(ApiClient, RestOK, RestError, Workspace, ChildProcess, Execution, ExecutionResult) {\n 'use strict';\n\n /**\n * Workspace service.\n * @module api/WorkspaceApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new WorkspaceApi. \n * @alias module:api/WorkspaceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the cancel operation.\n * @callback module:api/WorkspaceApi~cancelCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * cancels an execution, if possible. Killing process may not be graceful.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {String} opts.execId the id of execution (different from pid!)\n * @param {module:api/WorkspaceApi~cancelCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.cancel = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling cancel\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'execId': opts['execId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the createWorkspace operation.\n * @callback module:api/WorkspaceApi~createWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates a new workspace with given local path. Requires an unrestricted access token. \n * @param {String} localPath a real, local path of the system (not unixified)\n * @param {String} name workspace name property\n * @param {String} description workspace name property\n * @param {module:api/WorkspaceApi~createWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.createWorkspace = function(localPath, name, description, callback) {\n var postBody = null;\n\n // verify the required parameter 'localPath' is set\n if (localPath == undefined || localPath == null) {\n throw \"Missing the required parameter 'localPath' when calling createWorkspace\";\n }\n\n // verify the required parameter 'name' is set\n if (name == undefined || name == null) {\n throw \"Missing the required parameter 'name' when calling createWorkspace\";\n }\n\n // verify the required parameter 'description' is set\n if (description == undefined || description == null) {\n throw \"Missing the required parameter 'description' when calling createWorkspace\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'localPath': localPath,\n 'name': name,\n 'description': description\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the exec operation.\n * @callback module:api/WorkspaceApi~execCallback\n * @param {String} error Error message, if any.\n * @param {module:model/ExecutionResult} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * execute a shell command on this workspace\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:model/Execution} body \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.async Spawn a child process for given command and returns a child process info only. , Actual output (stream of message) will be delivered to web socket channel, with room id /sessions/asyn-{Execution#id} (default to false)\n * @param {module:api/WorkspaceApi~execCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/ExecutionResult}\n */\n this.exec = function(workspaceId, body, opts, callback) {\n opts = opts || {};\n var postBody = body;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling exec\";\n }\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling exec\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'async': opts['async']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = ExecutionResult;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the findWorkspaces operation.\n * @callback module:api/WorkspaceApi~findWorkspacesCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Finds workspaces (no find/search parameters yet). Requires an unrestricted access token. \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.disposable include disposable workspaces or not (default to false)\n * @param {module:api/WorkspaceApi~findWorkspacesCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findWorkspaces = function(opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n 'disposable': opts['disposable']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [Workspace];\n\n return this.apiClient.callApi(\n '/workspaces', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getChildProcs operation.\n * @callback module:api/WorkspaceApi~getChildProcsCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get all spawned process info, created by exec api, on given workspace. set workspace id to \\"*\\" to all processes info. This operation requires proper access rights (unrestricted or matching workspace id in access token with parameter) \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.includeExec include processes created by synchronous exec request (default to false)\n * @param {module:api/WorkspaceApi~getChildProcsCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.getChildProcs = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling getChildProcs\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'includeExec': opts['includeExec']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [ChildProcess];\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getWorkspace operation.\n * @callback module:api/WorkspaceApi~getWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get a workspace object by id\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:api/WorkspaceApi~getWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.getWorkspace = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling getWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the readMetadata operation.\n * @callback module:api/WorkspaceApi~readMetadataCallback\n * @param {String} error Error message, if any.\n * @param {File} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * read a metadata file from a workspace.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {module:api/WorkspaceApi~readMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {File}\n */\n this.readMetadata = function(workspaceId, objectPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling readMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling readMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = File;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeMetadata operation.\n * @callback module:api/WorkspaceApi~removeMetadataCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete metadata of given path\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {module:api/WorkspaceApi~removeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.removeMetadata = function(workspaceId, objectPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling removeMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeWorkspace operation.\n * @callback module:api/WorkspaceApi~removeWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * This operation will remove the requested workspace when 1) all sessions are closed for request (will be notified by server) 2) excedded time limit value in closeAfter parameter 3) server goes down after accepting remove request \\"willBeRemovedAt\\" property can be set \\"only\\" by this api. This API requires \\"unrestricted\\" access token. Even an access token has matching workspace id, removing an workspace is rejected. \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {Integer} opts.closeAfter Time in seconds to wait for all sessions save & close their data. (default to 0)\n * @param {module:api/WorkspaceApi~removeWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.removeWorkspace = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'closeAfter': opts['closeAfter']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the updateWorkspace operation.\n * @callback module:api/WorkspaceApi~updateWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Updates workspace. Some protected properties will not be changed by this api. Requires proper access rights in access token. \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:api/WorkspaceApi~updateWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.updateWorkspace = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling updateWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the writeMetadata operation.\n * @callback module:api/WorkspaceApi~writeMetadataCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * write a metadata file at given path. missing parents will be created.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {File} data file contents to write.\n * @param {module:api/WorkspaceApi~writeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.writeMetadata = function(workspaceId, objectPath, data, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling writeMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling writeMetadata\";\n }\n\n // verify the required parameter 'data' is set\n if (data == undefined || data == null) {\n throw \"Missing the required parameter 'data' when calling writeMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n 'data': data\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/WorkspaceApi.js\n ** module id = 22\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Match = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Match model module.\n * @module model/Match\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Match
.\n * search result for a file\n * @alias module:model/Match\n * @class\n * @param line {Integer} \n * @param text {String} \n */\n var exports = function(line, text) {\n var _this = this;\n\n _this['line'] = line;\n _this['text'] = text;\n };\n\n /**\n * Constructs a Match
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Match} obj Optional instance to populate.\n * @return {module:model/Match} The populated Match
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('line')) {\n obj['line'] = ApiClient.convertToType(data['line'], 'Integer');\n }\n if (data.hasOwnProperty('text')) {\n obj['text'] = ApiClient.convertToType(data['text'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Integer} line\n */\n exports.prototype['line'] = undefined;\n /**\n * @member {String} text\n */\n exports.prototype['text'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Match.js\n ** module id = 23\n ** module chunks = 0\n **/"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///api-bundle.js","webpack:///webpack/bootstrap 65910515fcfa796fbdcf","webpack:///./src/index.js","webpack:///./src/ApiClient.js","webpack:///./src/model/RestError.js","webpack:///./src/model/RestOK.js","webpack:///./src/model/DirEntry.js","webpack:///./src/model/Stats.js","webpack:///./src/model/ChildProcess.js","webpack:///./src/model/Credential.js","webpack:///./src/model/Execution.js","webpack:///./src/model/ExecutionResult.js","webpack:///./src/model/RemoteAccess.js","webpack:///./src/model/Session.js","webpack:///./src/model/Token.js","webpack:///./src/model/User.js","webpack:///./src/model/Workspace.js","webpack:///./~/superagent/superagent.js","webpack:///./src/api/AuthApi.js","webpack:///./src/api/OpsApi.js","webpack:///./src/api/RemotesApi.js","webpack:///./src/api/SessionApi.js","webpack:///./src/api/WfsApi.js","webpack:///./src/api/WorkspaceApi.js","webpack:///./src/model/Match.js"],"names":["define","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","factory","apply","undefined","ApiClient","ChildProcess","Credential","DirEntry","Execution","ExecutionResult","Match","RemoteAccess","RestError","RestOK","Session","Stats","Token","User","Workspace","AuthApi","OpsApi","RemotesApi","SessionApi","WfsApi","WorkspaceApi","root","this","superagent","basePath","replace","authentications","webida-simple-auth","type","in","name","defaultHeaders","timeout","prototype","paramToString","param","Date","toJSON","toString","buildUrl","path","pathParams","match","url","_this","fullMatch","key","value","hasOwnProperty","encodeURIComponent","isJsonMime","contentType","Boolean","jsonPreferredMime","contentTypes","i","length","isFileParam","window","ReadStream","Buffer","Blob","File","normalizeParams","params","newParams","Array","isArray","CollectionFormatEnum","CSV","SSV","TSV","PIPES","MULTI","buildCollectionParam","collectionFormat","map","join","Error","applyAuthToRequest","request","authNames","forEach","authName","auth","username","password","apiKey","data","apiKeyPrefix","set","query","accessToken","Authorization","deserialize","response","returnType","body","text","convertToType","callApi","httpMethod","queryParams","headerParams","formParams","bodyParam","accepts","callback","header","send","_formParams","attach","field","accept","end","error","parseDate","str","parseInt","parseFloat","String","Object","constructFromObject","itemType","item","keyType","valueType","k","result","obj","instance","message","stats","children","birthtime","mtime","mode","size","nlink","TypeEnum","FILE","DIRECTORY","BLOCK_DEVICE","CHARACTER_DEVICE","LINK","FIFO","SOCKET","DUMMY","pid","command","args","executionId","startedAt","background","loginId","loginPassword","exitCode","stdout","stderr","serverUrl","workspaceId","masterToken","state","clientAddress","connectedAt","disconnectedAt","StateEnum","NORMAL","LOSING","CLOSING","tokenType","expiresAt","issuedAt","TokenTypeEnum","MASTER","ACCESS","description","createdAt","workspacePath","excludedPaths","offlineCachePaths","f","amd","g","global","self","e","t","n","r","s","o","u","a","require","code","l","1","isObject","2","clearTimeout","_timeout","_timer","parse","fn","_parser","serialize","_serializer","ms","then","resolve","reject","_fullfilledPromise","Promise","innerResolve","innerReject","err","res","use","get","_header","toLowerCase","getHeader","val","unset","_getFormData","append","abort","_aborted","xhr","req","emit","withCredentials","_withCredentials","redirects","_maxRedirects","method","_data","_isHost","./is-object","3","RequestConstructor","arguments","4","Emitter","mixin","on","addEventListener","event","_callbacks","push","once","off","removeListener","removeAllListeners","removeEventListener","callbacks","cb","splice","slice","len","listeners","hasListeners","5","arr","initial","idx","curr","6","noop","pairs","pushEncodedKeyValuePair","v","subkey","parseString","pair","pos","split","indexOf","decodeURIComponent","parseHeader","index","line","lines","fields","pop","trim","isJSON","mime","test","shift","reduce","parts","Response","options","responseType","responseText","statusText","_setStatusProperties","status","headers","getAllResponseHeaders","getResponseHeader","_setHeaderProperties","_parseBody","Request","_query","original","rawResponse","statusCode","new_err","del","requestBase","bind","getXHR","XMLHttpRequest","location","protocol","ActiveXObject","serializeObject","types","html","json","xml","urlencoded","form","form-data","application/x-www-form-urlencoded","application/json","JSON","stringify","ct","statusType","info","ok","clientError","serverError","toError","accepted","noContent","badRequest","unauthorized","notAcceptable","notFound","forbidden","msg","_responseType","user","pass","btoa","file","filename","_formData","FormData","_callback","crossDomainError","crossDomain","_timeoutError","_appendQueryString","onreadystatechange","readyState","timedout","handleProgress","total","percent","direction","onprogress","upload","setTimeout","open","setRequestHeader","head","patch","post","put","./request","./request-base","emitter","apiClient","getInfo","postBody","issueToken","opts","login","wfsId","wfsPathList","pattern","replaceTo","ignoreCase","search","wfsPath","findRemoteAccesses","putRemoteAccess","removeRemoteAccess","closeSession","sessionId","closeAfter","findSessions","getSession","copy","srcPath","noOverwrite","followSymbolicLinks","preserveTimestamps","createDir","dirTree","maxDepth","move","readFile","remove","unrecursive","rename","ensureParents","emulateMove","stat","ignoreError","writeFile","cancel","execId","createWorkspace","localPath","exec","async","findWorkspaces","disposable","getChildProcs","includeExec","getWorkspace","readMetadata","objectPath","removeMetadata","removeWorkspace","updateWorkspace","writeMetadata"],"mappings":"AAAAA,OAAO,WAAa,MAAgB,UAAUC,GCI9C,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,GAGAV,EAAA,KDMM,SAASI,EAAQD,EAASH,GE5ChC,GAAAW,GAAAC,EAAAC,GAwBA,SAAAC,GAGAF,GAAAZ,EAAA,GAAAA,EAAA,GAAAA,EAAA,GAAAA,EAAA,GAAAA,EAAA,GAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,GAAAA,EAAA,GAAAA,EAAA,IAAAA,EAAA,GAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,KAAAW,EAAA,EAAAE,EAAA,kBAAAF,KAAAI,MAAAZ,EAAAS,GAAAD,IAAAK,SAAAH,IAAAT,EAAAD,QAAAU,KAKC,SAAAI,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACD,YAiCA,IAAAlC,IAKAc,YA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ArF,KAAA2Z,cAAA,SAAAjR,EAAA6Q,EAAArV,EAAAmB,GACA,GAAAiR,GAAA,IAGA,IAAA7X,QAAAiK,GAAA,MAAAA,EACA,8EAIA,IAAAjK,QAAA8a,GAAA,MAAAA,EACA,6EAIA,IAAA9a,QAAAyF,GAAA,MAAAA,EACA,uEAIA,IAAA/C,IACAuH,cACA6Q,cAEAvU,KAEAC,KAEAC,GACAhB,QAGAP,GAAA,sBACA3B,GAAA,oBACAoD,GAAA,+CACAV,EAAAvF,CAEA,OAAAa,MAAAoW,UAAAtR,QACA,kDAAwD,MACxD3D,EAAA6D,EAAAC,EAAAC,EAAAoR,EACA3S,EAAA3B,EAAAoD,EAAAV,EAAAW,IAKA,OAAAzH,MvBs7KM,SAASC,EAAQD,EAASH,GwB7hMhC,GAAAW,GAAAC,EAAAC,GAwBA,SAAAyB,EAAAxB,GAGAF,GAAAZ,EAAA,IAAAW,EAAA,EAAAE,EAAA,kBAAAF,KAAAI,MAAAZ,EAAAS,GAAAD,IAAAK,SAAAH,IAAAT,EAAAD,QAAAU,KAWC0B,KAAA,SAAAtB,GACD,YAmBA,IAAAd,GAAA,SAAAwS,EAAAxL,GACA,GAAAtD,GAAAtB,IAEAsB,GAAA,KAAA8O,EACA9O,EAAA,KAAAsD,EAmCA,OAzBAhH,GAAAwI,oBAAA,SAAAlC,EAAAyC,GAWA,MAVAzC,KACAyC,KAAA,GAAA/I,GAEAsG,EAAAxC,eAAA,UACAiF,EAAA,KAAAjI,EAAAmG,cAAAX,EAAA,iBAEAA,EAAAxC,eAAA,UACAiF,EAAA,KAAAjI,EAAAmG,cAAAX,EAAA,iBAGAyC,GAMA/I,EAAA+C,UAAA,KAAAlC,OAIAb,EAAA+C,UAAA,KAAAlC,OAIAb","file":"api-bundle.js","sourcesContent":["define(function() { return /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(7), __webpack_require__(8), __webpack_require__(4), __webpack_require__(9), __webpack_require__(10), __webpack_require__(23), __webpack_require__(11), __webpack_require__(2), __webpack_require__(3), __webpack_require__(12), __webpack_require__(5), __webpack_require__(13), __webpack_require__(14), __webpack_require__(15), __webpack_require__(17), __webpack_require__(18), __webpack_require__(19), __webpack_require__(20), __webpack_require__(21), __webpack_require__(22)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('./ApiClient'), require('./model/ChildProcess'), require('./model/Credential'), require('./model/DirEntry'), require('./model/Execution'), require('./model/ExecutionResult'), require('./model/Match'), require('./model/RemoteAccess'), require('./model/RestError'), require('./model/RestOK'), require('./model/Session'), require('./model/Stats'), require('./model/Token'), require('./model/User'), require('./model/Workspace'), require('./api/AuthApi'), require('./api/OpsApi'), require('./api/RemotesApi'), require('./api/SessionApi'), require('./api/WfsApi'), require('./api/WorkspaceApi'));\n\t }\n\t}(function(ApiClient, ChildProcess, Credential, DirEntry, Execution, ExecutionResult, Match, RemoteAccess, RestError, RestOK, Session, Stats, Token, User, Workspace, AuthApi, OpsApi, RemotesApi, SessionApi, WfsApi, WorkspaceApi) {\n\t 'use strict';\n\t\n\t /**\n\t * Restful_API_for_Webida_clients_to_use_servers_data__features.
\n\t * The index
module provides access to constructors for all the classes which comprise the public API.\n\t * \n\t * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:\n\t *
\n\t * var WebidaRestfulApi = require('index'); // See note below*.\n\t * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n\t * var yyyModel = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n\t * yyyModel.someProperty = 'someValue';\n\t * ...\n\t * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n\t * ...\n\t *
\n\t * *NOTE: For a top-level AMD script, use require(['index'], function(){...})\n\t * and put the application logic within the callback function.\n\t * \n\t * \n\t * A non-AMD browser application (discouraged) might do something like this:\n\t *
\n\t * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n\t * var yyy = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n\t * yyyModel.someProperty = 'someValue';\n\t * ...\n\t * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n\t * ...\n\t *
\n\t * \n\t * @module index\n\t * @version 0.3.0\n\t */\n\t var exports = {\n\t /**\n\t * The ApiClient constructor.\n\t * @property {module:ApiClient}\n\t */\n\t ApiClient: ApiClient,\n\t /**\n\t * The ChildProcess model constructor.\n\t * @property {module:model/ChildProcess}\n\t */\n\t ChildProcess: ChildProcess,\n\t /**\n\t * The Credential model constructor.\n\t * @property {module:model/Credential}\n\t */\n\t Credential: Credential,\n\t /**\n\t * The DirEntry model constructor.\n\t * @property {module:model/DirEntry}\n\t */\n\t DirEntry: DirEntry,\n\t /**\n\t * The Execution model constructor.\n\t * @property {module:model/Execution}\n\t */\n\t Execution: Execution,\n\t /**\n\t * The ExecutionResult model constructor.\n\t * @property {module:model/ExecutionResult}\n\t */\n\t ExecutionResult: ExecutionResult,\n\t /**\n\t * The Match model constructor.\n\t * @property {module:model/Match}\n\t */\n\t Match: Match,\n\t /**\n\t * The RemoteAccess model constructor.\n\t * @property {module:model/RemoteAccess}\n\t */\n\t RemoteAccess: RemoteAccess,\n\t /**\n\t * The RestError model constructor.\n\t * @property {module:model/RestError}\n\t */\n\t RestError: RestError,\n\t /**\n\t * The RestOK model constructor.\n\t * @property {module:model/RestOK}\n\t */\n\t RestOK: RestOK,\n\t /**\n\t * The Session model constructor.\n\t * @property {module:model/Session}\n\t */\n\t Session: Session,\n\t /**\n\t * The Stats model constructor.\n\t * @property {module:model/Stats}\n\t */\n\t Stats: Stats,\n\t /**\n\t * The Token model constructor.\n\t * @property {module:model/Token}\n\t */\n\t Token: Token,\n\t /**\n\t * The User model constructor.\n\t * @property {module:model/User}\n\t */\n\t User: User,\n\t /**\n\t * The Workspace model constructor.\n\t * @property {module:model/Workspace}\n\t */\n\t Workspace: Workspace,\n\t /**\n\t * The AuthApi service constructor.\n\t * @property {module:api/AuthApi}\n\t */\n\t AuthApi: AuthApi,\n\t /**\n\t * The OpsApi service constructor.\n\t * @property {module:api/OpsApi}\n\t */\n\t OpsApi: OpsApi,\n\t /**\n\t * The RemotesApi service constructor.\n\t * @property {module:api/RemotesApi}\n\t */\n\t RemotesApi: RemotesApi,\n\t /**\n\t * The SessionApi service constructor.\n\t * @property {module:api/SessionApi}\n\t */\n\t SessionApi: SessionApi,\n\t /**\n\t * The WfsApi service constructor.\n\t * @property {module:api/WfsApi}\n\t */\n\t WfsApi: WfsApi,\n\t /**\n\t * The WorkspaceApi service constructor.\n\t * @property {module:api/WorkspaceApi}\n\t */\n\t WorkspaceApi: WorkspaceApi\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(16)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('superagent'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ApiClient = factory(root.superagent);\n\t }\n\t}(this, function(superagent) {\n\t 'use strict';\n\t\n\t /**\n\t * @module ApiClient\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n\t * application to use this class directly - the *Api and model classes provide the public API for the service. The\n\t * contents of this file should be regarded as internal but are documented for completeness.\n\t * @alias module:ApiClient\n\t * @class\n\t */\n\t var exports = function() {\n\t /**\n\t * The base URL against which to resolve every API call's (relative) path.\n\t * @type {String}\n\t * @default https://localhost/api\n\t */\n\t this.basePath = 'https://localhost/api'.replace(/\\/+$/, '');\n\t\n\t /**\n\t * The authentication methods to be included for all API calls.\n\t * @type {Array.}\n\t */\n\t this.authentications = {\n\t 'webida-simple-auth': {type: 'apiKey', 'in': 'header', name: 'Authorization'}\n\t };\n\t /**\n\t * The default HTTP headers to be included for all API calls.\n\t * @type {Array.}\n\t * @default {}\n\t */\n\t this.defaultHeaders = {};\n\t\n\t /**\n\t * The default HTTP timeout for all API calls.\n\t * @type {Number}\n\t * @default 60000\n\t */\n\t this.timeout = 60000;\n\t };\n\t\n\t /**\n\t * Returns a string representation for an actual parameter.\n\t * @param param The actual parameter.\n\t * @returns {String} The string representation of param
.\n\t */\n\t exports.prototype.paramToString = function(param) {\n\t if (param == undefined || param == null) {\n\t return '';\n\t }\n\t if (param instanceof Date) {\n\t return param.toJSON();\n\t }\n\t return param.toString();\n\t };\n\t\n\t /**\n\t * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.\n\t * NOTE: query parameters are not handled here.\n\t * @param {String} path The path to append to the base URL.\n\t * @param {Object} pathParams The parameter values to append.\n\t * @returns {String} The encoded path with parameter values substituted.\n\t */\n\t exports.prototype.buildUrl = function(path, pathParams) {\n\t if (!path.match(/^\\//)) {\n\t path = '/' + path;\n\t }\n\t var url = this.basePath + path;\n\t var _this = this;\n\t url = url.replace(/\\{([\\w-]+)\\}/g, function(fullMatch, key) {\n\t var value;\n\t if (pathParams.hasOwnProperty(key)) {\n\t value = _this.paramToString(pathParams[key]);\n\t } else {\n\t value = fullMatch;\n\t }\n\t return encodeURIComponent(value);\n\t });\n\t return url;\n\t };\n\t\n\t /**\n\t * Checks whether the given content type represents JSON.
\n\t * JSON content type examples:
\n\t * \n\t * - application/json
\n\t * - application/json; charset=UTF8
\n\t * - APPLICATION/JSON
\n\t *
\n\t * @param {String} contentType The MIME content type to check.\n\t * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.\n\t */\n\t exports.prototype.isJsonMime = function(contentType) {\n\t return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n\t };\n\t\n\t /**\n\t * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n\t * @param {Array.} contentTypes\n\t * @returns {String} The chosen content type, preferring JSON.\n\t */\n\t exports.prototype.jsonPreferredMime = function(contentTypes) {\n\t for (var i = 0; i < contentTypes.length; i++) {\n\t if (this.isJsonMime(contentTypes[i])) {\n\t return contentTypes[i];\n\t }\n\t }\n\t return contentTypes[0];\n\t };\n\t\n\t /**\n\t * Checks whether the given parameter value represents file-like content.\n\t * @param param The parameter to check.\n\t * @returns {Boolean} true
if param
represents a file. \n\t */\n\t exports.prototype.isFileParam = function(param) {\n\t // fs.ReadStream in Node.js (but not in runtime like browserify)\n\t if (typeof window === 'undefined' &&\n\t \"function\" === 'function' &&\n\t __webpack_require__(6) &&\n\t param instanceof __webpack_require__(6).ReadStream) {\n\t return true;\n\t }\n\t // Buffer in Node.js\n\t if (typeof Buffer === 'function' && param instanceof Buffer) {\n\t return true;\n\t }\n\t // Blob in browser\n\t if (typeof Blob === 'function' && param instanceof Blob) {\n\t return true;\n\t }\n\t // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n\t if (typeof File === 'function' && param instanceof File) {\n\t return true;\n\t }\n\t return false;\n\t };\n\t\n\t /**\n\t * Normalizes parameter values:\n\t * \n\t * - remove nils
\n\t * - keep files and arrays
\n\t * - format to string with `paramToString` for other cases
\n\t *
\n\t * @param {Object.} params The parameters as object properties.\n\t * @returns {Object.} normalized parameters.\n\t */\n\t exports.prototype.normalizeParams = function(params) {\n\t var newParams = {};\n\t for (var key in params) {\n\t if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n\t var value = params[key];\n\t if (this.isFileParam(value) || Array.isArray(value)) {\n\t newParams[key] = value;\n\t } else {\n\t newParams[key] = this.paramToString(value);\n\t }\n\t }\n\t }\n\t return newParams;\n\t };\n\t\n\t /**\n\t * Enumeration of collection format separator strategies.\n\t * @enum {String} \n\t * @readonly\n\t */\n\t exports.CollectionFormatEnum = {\n\t /**\n\t * Comma-separated values. Value: csv
\n\t * @const\n\t */\n\t CSV: ',',\n\t /**\n\t * Space-separated values. Value: ssv
\n\t * @const\n\t */\n\t SSV: ' ',\n\t /**\n\t * Tab-separated values. Value: tsv
\n\t * @const\n\t */\n\t TSV: '\\t',\n\t /**\n\t * Pipe(|)-separated values. Value: pipes
\n\t * @const\n\t */\n\t PIPES: '|',\n\t /**\n\t * Native array. Value: multi
\n\t * @const\n\t */\n\t MULTI: 'multi'\n\t };\n\t\n\t /**\n\t * Builds a string representation of an array-type actual parameter, according to the given collection format.\n\t * @param {Array} param An array parameter.\n\t * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n\t * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n\t * param
as is if collectionFormat
is multi
.\n\t */\n\t exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {\n\t if (param == null) {\n\t return null;\n\t }\n\t switch (collectionFormat) {\n\t case 'csv':\n\t return param.map(this.paramToString).join(',');\n\t case 'ssv':\n\t return param.map(this.paramToString).join(' ');\n\t case 'tsv':\n\t return param.map(this.paramToString).join('\\t');\n\t case 'pipes':\n\t return param.map(this.paramToString).join('|');\n\t case 'multi':\n\t // return the array directly as SuperAgent will handle it as expected\n\t return param.map(this.paramToString);\n\t default:\n\t throw new Error('Unknown collection format: ' + collectionFormat);\n\t }\n\t };\n\t\n\t /**\n\t * Applies authentication headers to the request.\n\t * @param {Object} request The request object created by a superagent()
call.\n\t * @param {Array.} authNames An array of authentication method names.\n\t */\n\t exports.prototype.applyAuthToRequest = function(request, authNames) {\n\t var _this = this;\n\t authNames.forEach(function(authName) {\n\t var auth = _this.authentications[authName];\n\t switch (auth.type) {\n\t case 'basic':\n\t if (auth.username || auth.password) {\n\t request.auth(auth.username || '', auth.password || '');\n\t }\n\t break;\n\t case 'apiKey':\n\t if (auth.apiKey) {\n\t var data = {};\n\t if (auth.apiKeyPrefix) {\n\t data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n\t } else {\n\t data[auth.name] = auth.apiKey;\n\t }\n\t if (auth['in'] === 'header') {\n\t request.set(data);\n\t } else {\n\t request.query(data);\n\t }\n\t }\n\t break;\n\t case 'oauth2':\n\t if (auth.accessToken) {\n\t request.set({'Authorization': 'Bearer ' + auth.accessToken});\n\t }\n\t break;\n\t default:\n\t throw new Error('Unknown authentication type: ' + auth.type);\n\t }\n\t });\n\t };\n\t\n\t /**\n\t * Deserializes an HTTP response body into a value of the specified type.\n\t * @param {Object} response A SuperAgent response object.\n\t * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types\n\t * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n\t * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n\t * all properties on data will be converted to this type.\n\t * @returns A value of the specified type.\n\t */\n\t exports.prototype.deserialize = function deserialize(response, returnType) {\n\t if (response == null || returnType == null) {\n\t return null;\n\t }\n\t // Rely on SuperAgent for parsing response body.\n\t // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n\t var data = response.body;\n\t if (data == null) {\n\t // SuperAgent does not always produce a body; use the unparsed response as a fallback\n\t data = response.text;\n\t }\n\t return exports.convertToType(data, returnType);\n\t };\n\t\n\t /**\n\t * Callback function to receive the result of the operation.\n\t * @callback module:ApiClient~callApiCallback\n\t * @param {String} error Error message, if any.\n\t * @param data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Invokes the REST service using the supplied settings and parameters.\n\t * @param {String} path The base URL to invoke.\n\t * @param {String} httpMethod The HTTP method to use.\n\t * @param {Object.} pathParams A map of path parameters and their values.\n\t * @param {Object.} queryParams A map of query parameters and their values.\n\t * @param {Object.} headerParams A map of header parameters and their values.\n\t * @param {Object.} formParams A map of form parameters and their values.\n\t * @param {Object} bodyParam The value to pass as the request body.\n\t * @param {Array.} authNames An array of authentication type names.\n\t * @param {Array.} contentTypes An array of request MIME types.\n\t * @param {Array.} accepts An array of acceptable response MIME types.\n\t * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the\n\t * constructor for a complex type.\n\t * @param {module:ApiClient~callApiCallback} callback The callback function.\n\t * @returns {Object} The SuperAgent request object.\n\t */\n\t exports.prototype.callApi = function callApi(path, httpMethod, pathParams,\n\t queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,\n\t returnType, callback) {\n\t\n\t var _this = this;\n\t var url = this.buildUrl(path, pathParams);\n\t var request = superagent(httpMethod, url);\n\t\n\t // apply authentications\n\t this.applyAuthToRequest(request, authNames);\n\t\n\t // set query parameters\n\t request.query(this.normalizeParams(queryParams));\n\t\n\t // set header parameters\n\t request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));\n\t\n\t // set request timeout\n\t request.timeout(this.timeout);\n\t\n\t var contentType = this.jsonPreferredMime(contentTypes);\n\t if (contentType !== 'multipart/form-data') {\n\t if (contentType) {\n\t request.type(contentType);\n\t } else if (!request.header['Content-Type']) {\n\t request.type('application/json');\n\t }\n\t }\n\t\n\t if (contentType === 'application/x-www-form-urlencoded') {\n\t request.send(this.normalizeParams(formParams));\n\t } else if (contentType == 'multipart/form-data') {\n\t var _formParams = this.normalizeParams(formParams);\n\t for (var key in _formParams) {\n\t if (_formParams.hasOwnProperty(key)) {\n\t if (this.isFileParam(_formParams[key])) {\n\t // file field\n\t request.attach(key, _formParams[key]);\n\t } else {\n\t request.field(key, _formParams[key]);\n\t }\n\t }\n\t }\n\t } else if (bodyParam) {\n\t request.send(bodyParam);\n\t }\n\t\n\t var accept = this.jsonPreferredMime(accepts);\n\t if (accept) {\n\t request.accept(accept);\n\t }\n\t\n\t\n\t request.end(function(error, response) {\n\t if (callback) {\n\t var data = null;\n\t if (!error) {\n\t data = _this.deserialize(response, returnType);\n\t }\n\t callback(error, data, response);\n\t }\n\t });\n\t\n\t return request;\n\t };\n\t\n\t /**\n\t * Parses an ISO-8601 string representation of a date value.\n\t * @param {String} str The date value as a string.\n\t * @returns {Date} The parsed date object.\n\t */\n\t exports.parseDate = function(str) {\n\t return new Date(str.replace(/T/i, ' '));\n\t };\n\t\n\t /**\n\t * Converts a value to the specified type.\n\t * @param {(String|Object)} data The data to convert, as a string or object.\n\t * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types\n\t * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n\t * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n\t * all properties on data will be converted to this type.\n\t * @returns An instance of the specified type.\n\t */\n\t exports.convertToType = function(data, type) {\n\t switch (type) {\n\t case 'Boolean':\n\t return Boolean(data);\n\t case 'Integer':\n\t return parseInt(data, 10);\n\t case 'Number':\n\t return parseFloat(data);\n\t case 'String':\n\t return String(data);\n\t case 'Date':\n\t return this.parseDate(String(data));\n\t default:\n\t if (type === Object || type === File) {\n\t // generic object or Blob - return directly\n\t return data;\n\t } else if (typeof type === 'function') {\n\t if (typeof type.constructFromObject !== 'function') {\n\t // some manually written models might have no factory function\n\t return data;\n\t } else {\n\t // for model type like: User\n\t return type.constructFromObject(data);\n\t }\n\t } else if (Array.isArray(type)) {\n\t // for array type like: ['String']\n\t var itemType = type[0];\n\t return data.map(function(item) {\n\t return exports.convertToType(item, itemType);\n\t });\n\t } else if (typeof type === 'object') {\n\t // for plain object type like: {'String': 'Integer'}\n\t var keyType, valueType;\n\t for (var k in type) {\n\t if (type.hasOwnProperty(k)) {\n\t keyType = k;\n\t valueType = type[k];\n\t break;\n\t }\n\t }\n\t var result = {};\n\t for (var k in data) {\n\t if (data.hasOwnProperty(k)) {\n\t var key = exports.convertToType(k, keyType);\n\t var value = exports.convertToType(data[k], valueType);\n\t result[key] = value;\n\t }\n\t }\n\t return result;\n\t } else {\n\t // for unknown type, return the data directly\n\t return data;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Constructs a new map or array model from REST data.\n\t * @param data {Object|Array} The REST data.\n\t * @param obj {Object|Array} The target object or array.\n\t */\n\t exports.constructFromObject = function(data, obj, itemType) {\n\t if (Array.isArray(data)) {\n\t for (var i = 0; i < data.length; i++) {\n\t if (data.hasOwnProperty(i))\n\t obj[i] = exports.convertToType(data[i], itemType);\n\t }\n\t } else {\n\t for (var k in data) {\n\t if (data.hasOwnProperty(k))\n\t obj[k] = exports.convertToType(data[k], itemType);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * The default API client implementation.\n\t * @type {module:ApiClient}\n\t */\n\t exports.instance = new exports();\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RestError = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RestError model module.\n\t * @module model/RestError\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RestError
.\n\t * Error object with code and message. code is bound to status code, but not always same to standard HTTP status text. For example, some 409 error may have code \\"Invalid Argument\\" instead of \\"Conflic\\". So, Client should read message property to know what happend exactly when an error is returned from server. And, some 500 errors can have system errno instead of useless \\"internal\\". Like other errors, details are hidden in message. \n\t * @alias module:model/RestError\n\t * @class\n\t * @param message {String} \n\t */\n\t var exports = function(message) {\n\t var _this = this;\n\t\n\t\n\t _this['message'] = message;\n\t };\n\t\n\t /**\n\t * Constructs a RestError
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RestError} obj Optional instance to populate.\n\t * @return {module:model/RestError} The populated RestError
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('code')) {\n\t obj['code'] = ApiClient.convertToType(data['code'], 'String');\n\t }\n\t if (data.hasOwnProperty('message')) {\n\t obj['message'] = ApiClient.convertToType(data['message'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} code\n\t */\n\t exports.prototype['code'] = undefined;\n\t /**\n\t * @member {String} message\n\t */\n\t exports.prototype['message'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RestOK = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RestOK model module.\n\t * @module model/RestOK\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RestOK
.\n\t * @alias module:model/RestOK\n\t * @class\n\t */\n\t var exports = function() {\n\t var _this = this;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a RestOK
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RestOK} obj Optional instance to populate.\n\t * @return {module:model/RestOK} The populated RestOK
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('message')) {\n\t obj['message'] = ApiClient.convertToType(data['message'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} message\n\t */\n\t exports.prototype['message'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(4), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('./DirEntry'), require('./Stats'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.DirEntry = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n\t }\n\t}(this, function(ApiClient, DirEntry, Stats) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The DirEntry model module.\n\t * @module model/DirEntry\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new DirEntry
.\n\t * a directory entry (file or directory) with children that represents a (sub) tree\n\t * @alias module:model/DirEntry\n\t * @class\n\t * @param name {String} \n\t * @param stats {module:model/Stats} \n\t * @param children {Array.} \n\t */\n\t var exports = function(name, stats, children) {\n\t var _this = this;\n\t\n\t _this['name'] = name;\n\t _this['stats'] = stats;\n\t _this['children'] = children;\n\t };\n\t\n\t /**\n\t * Constructs a DirEntry
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/DirEntry} obj Optional instance to populate.\n\t * @return {module:model/DirEntry} The populated DirEntry
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('stats')) {\n\t obj['stats'] = Stats.constructFromObject(data['stats']);\n\t }\n\t if (data.hasOwnProperty('children')) {\n\t obj['children'] = ApiClient.convertToType(data['children'], [DirEntry]);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * @member {module:model/Stats} stats\n\t */\n\t exports.prototype['stats'] = undefined;\n\t /**\n\t * @member {Array.} children\n\t */\n\t exports.prototype['children'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Stats = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Stats model module.\n\t * @module model/Stats\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Stats
.\n\t * simplified/augmented fs.Stats class - see node.js doc for all properties\n\t * @alias module:model/Stats\n\t * @class\n\t * @param type {module:model/Stats.TypeEnum} All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n\t * @param birthtime {Date} \n\t * @param mtime {Date} \n\t * @param mode {String} \n\t * @param size {Integer} \n\t * @param nlink {Integer} \n\t */\n\t var exports = function(type, birthtime, mtime, mode, size, nlink) {\n\t var _this = this;\n\t\n\t _this['type'] = type;\n\t _this['birthtime'] = birthtime;\n\t _this['mtime'] = mtime;\n\t _this['mode'] = mode;\n\t _this['size'] = size;\n\t _this['nlink'] = nlink;\n\t };\n\t\n\t /**\n\t * Constructs a Stats
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Stats} obj Optional instance to populate.\n\t * @return {module:model/Stats} The populated Stats
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('type')) {\n\t obj['type'] = ApiClient.convertToType(data['type'], 'String');\n\t }\n\t if (data.hasOwnProperty('birthtime')) {\n\t obj['birthtime'] = ApiClient.convertToType(data['birthtime'], 'Date');\n\t }\n\t if (data.hasOwnProperty('mtime')) {\n\t obj['mtime'] = ApiClient.convertToType(data['mtime'], 'Date');\n\t }\n\t if (data.hasOwnProperty('mode')) {\n\t obj['mode'] = ApiClient.convertToType(data['mode'], 'String');\n\t }\n\t if (data.hasOwnProperty('size')) {\n\t obj['size'] = ApiClient.convertToType(data['size'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('nlink')) {\n\t obj['nlink'] = ApiClient.convertToType(data['nlink'], 'Integer');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n\t * @member {module:model/Stats.TypeEnum} type\n\t */\n\t exports.prototype['type'] = undefined;\n\t /**\n\t * @member {Date} birthtime\n\t */\n\t exports.prototype['birthtime'] = undefined;\n\t /**\n\t * @member {Date} mtime\n\t */\n\t exports.prototype['mtime'] = undefined;\n\t /**\n\t * @member {String} mode\n\t */\n\t exports.prototype['mode'] = undefined;\n\t /**\n\t * @member {Integer} size\n\t */\n\t exports.prototype['size'] = undefined;\n\t /**\n\t * @member {Integer} nlink\n\t */\n\t exports.prototype['nlink'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the type
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.TypeEnum = {\n\t /**\n\t * value: \"FILE\"\n\t * @const\n\t */\n\t \"FILE\": \"FILE\",\n\t /**\n\t * value: \"DIRECTORY\"\n\t * @const\n\t */\n\t \"DIRECTORY\": \"DIRECTORY\",\n\t /**\n\t * value: \"BLOCK_DEVICE\"\n\t * @const\n\t */\n\t \"BLOCK_DEVICE\": \"BLOCK_DEVICE\",\n\t /**\n\t * value: \"CHARACTER_DEVICE\"\n\t * @const\n\t */\n\t \"CHARACTER_DEVICE\": \"CHARACTER_DEVICE\",\n\t /**\n\t * value: \"LINK\"\n\t * @const\n\t */\n\t \"LINK\": \"LINK\",\n\t /**\n\t * value: \"FIFO\"\n\t * @const\n\t */\n\t \"FIFO\": \"FIFO\",\n\t /**\n\t * value: \"SOCKET\"\n\t * @const\n\t */\n\t \"SOCKET\": \"SOCKET\",\n\t /**\n\t * value: \"DUMMY\"\n\t * @const\n\t */\n\t \"DUMMY\": \"DUMMY\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ChildProcess = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The ChildProcess model module.\n\t * @module model/ChildProcess\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new ChildProcess
.\n\t * a process in execution\n\t * @alias module:model/ChildProcess\n\t * @class\n\t * @param pid {Integer} child process pid\n\t * @param command {String} the execution command in Execution request\n\t * @param args {Array.} arguments of the command in Execution request\n\t * @param executionId {String} execution id from Execution request\n\t * @param startedAt {Date} the time when this process is spawned\n\t * @param background {Array.} true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n\t */\n\t var exports = function(pid, command, args, executionId, startedAt, background) {\n\t var _this = this;\n\t\n\t _this['pid'] = pid;\n\t _this['command'] = command;\n\t _this['args'] = args;\n\t _this['executionId'] = executionId;\n\t _this['startedAt'] = startedAt;\n\t _this['background'] = background;\n\t };\n\t\n\t /**\n\t * Constructs a ChildProcess
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/ChildProcess} obj Optional instance to populate.\n\t * @return {module:model/ChildProcess} The populated ChildProcess
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('pid')) {\n\t obj['pid'] = ApiClient.convertToType(data['pid'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('command')) {\n\t obj['command'] = ApiClient.convertToType(data['command'], 'String');\n\t }\n\t if (data.hasOwnProperty('args')) {\n\t obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n\t }\n\t if (data.hasOwnProperty('executionId')) {\n\t obj['executionId'] = ApiClient.convertToType(data['executionId'], 'String');\n\t }\n\t if (data.hasOwnProperty('startedAt')) {\n\t obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('background')) {\n\t obj['background'] = ApiClient.convertToType(data['background'], ['String']);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * child process pid\n\t * @member {Integer} pid\n\t */\n\t exports.prototype['pid'] = undefined;\n\t /**\n\t * the execution command in Execution request\n\t * @member {String} command\n\t */\n\t exports.prototype['command'] = undefined;\n\t /**\n\t * arguments of the command in Execution request\n\t * @member {Array.} args\n\t */\n\t exports.prototype['args'] = undefined;\n\t /**\n\t * execution id from Execution request\n\t * @member {String} executionId\n\t */\n\t exports.prototype['executionId'] = undefined;\n\t /**\n\t * the time when this process is spawned\n\t * @member {Date} startedAt\n\t */\n\t exports.prototype['startedAt'] = undefined;\n\t /**\n\t * true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n\t * @member {Array.} background\n\t */\n\t exports.prototype['background'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Credential = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Credential model module.\n\t * @module model/Credential\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Credential
.\n\t * user credential to login. Use https to protect credential.\n\t * @alias module:model/Credential\n\t * @class\n\t * @param loginId {String} \n\t * @param loginPassword {String} \n\t */\n\t var exports = function(loginId, loginPassword) {\n\t var _this = this;\n\t\n\t _this['loginId'] = loginId;\n\t _this['loginPassword'] = loginPassword;\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Credential
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Credential} obj Optional instance to populate.\n\t * @return {module:model/Credential} The populated Credential
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('loginId')) {\n\t obj['loginId'] = ApiClient.convertToType(data['loginId'], 'String');\n\t }\n\t if (data.hasOwnProperty('loginPassword')) {\n\t obj['loginPassword'] = ApiClient.convertToType(data['loginPassword'], 'String');\n\t }\n\t if (data.hasOwnProperty('masterToken')) {\n\t obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {String} loginId\n\t */\n\t exports.prototype['loginId'] = undefined;\n\t /**\n\t * @member {String} loginPassword\n\t */\n\t exports.prototype['loginPassword'] = undefined;\n\t /**\n\t * a master token is issued when user wants to access webida api without id/password from remote or local desktop app. When masterToken is set, client should put some bogus id/password, non-empty. (The values can be used to identify client type) \n\t * @member {String} masterToken\n\t */\n\t exports.prototype['masterToken'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Execution = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Execution model module.\n\t * @module model/Execution\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Execution
.\n\t * execution request, simlilar to node.js spawn(). see node.js documentation for details of each properties. some properties are not configurable for portability - encoding : fixed to utf-8 - shell : fixed to system default. Using shell variables in command may not work. - killSignal : fixed to SIGTERM. If process does not die, server can send SIGKILL or invoke taskkill to ensure chlid process is killed. - uid & gid : will not be set for security - stdio : all streams are handled by server. no options are avaliable to client. - shell : always false. - detached : always false \n\t * @alias module:model/Execution\n\t * @class\n\t * @param command {String} command to run. should not contain any arguments, pipes, redirections \n\t * @param args {Array.} the arguments array\n\t */\n\t var exports = function(command, args) {\n\t var _this = this;\n\t\n\t\n\t _this['command'] = command;\n\t _this['args'] = args;\n\t\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Execution
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Execution} obj Optional instance to populate.\n\t * @return {module:model/Execution} The populated Execution
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('command')) {\n\t obj['command'] = ApiClient.convertToType(data['command'], 'String');\n\t }\n\t if (data.hasOwnProperty('args')) {\n\t obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n\t }\n\t if (data.hasOwnProperty('cwd')) {\n\t obj['cwd'] = ApiClient.convertToType(data['cwd'], 'String');\n\t }\n\t if (data.hasOwnProperty('input')) {\n\t obj['input'] = ApiClient.convertToType(data['input'], 'String');\n\t }\n\t if (data.hasOwnProperty('timeout')) {\n\t obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Integer');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * unique identifier of execution, to demux response stream or cancel request. async exec request should have id, always. For synchronous execution, missing id will be generated by server with random string & timestamp. \n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * command to run. should not contain any arguments, pipes, redirections \n\t * @member {String} command\n\t */\n\t exports.prototype['command'] = undefined;\n\t /**\n\t * the arguments array\n\t * @member {Array.} args\n\t */\n\t exports.prototype['args'] = undefined;\n\t /**\n\t * Current working directory of spawned process, relative to workspace root. If abscent, cwd will be the workspace root directory. Does not accept any evaluatable form like $HOME, %USERPROFILE%. As wfs operations, path should be unixified. But, unlikely, while the wfs operations cut heading \\\"/\\\" in path with URI normlization, this operation does not convert path to relateive and returns error for the argument. \n\t * @member {String} cwd\n\t */\n\t exports.prototype['cwd'] = undefined;\n\t /**\n\t * input string for child process. if falsy, no input will be available to child. (interactive execution via websocket is not supported for most of such processes requires tty, not standard i/o) \n\t * @member {String} input\n\t */\n\t exports.prototype['input'] = undefined;\n\t /**\n\t * The value which In \\\"milliseconds\\\" the maximum amount of time the child is allowed to run. (not idle time of stdout / stderr stream) if undefined, server sets default timeout value 5 min to synchronous execution requests. If request specifies async execution and sets this value to falsy, server should not kill the child process until 1) The process exists by self 2) cancel operation is invoked by api request 3) The workspace executing the process is removed by api request 4) Server Stops Terminiating any \\\"too-long-lived\\\" child process are not graceful, as cancel() is. \n\t * @member {Integer} timeout\n\t */\n\t exports.prototype['timeout'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.ExecutionResult = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The ExecutionResult model module.\n\t * @module model/ExecutionResult\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new ExecutionResult
.\n\t * execution response\n\t * @alias module:model/ExecutionResult\n\t * @class\n\t * @param exitCode {Integer} exit code of child process.\n\t * @param stdout {String} standard out of child process.\n\t * @param stderr {String} standard error of child process.\n\t */\n\t var exports = function(exitCode, stdout, stderr) {\n\t var _this = this;\n\t\n\t _this['exitCode'] = exitCode;\n\t _this['stdout'] = stdout;\n\t _this['stderr'] = stderr;\n\t };\n\t\n\t /**\n\t * Constructs a ExecutionResult
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/ExecutionResult} obj Optional instance to populate.\n\t * @return {module:model/ExecutionResult} The populated ExecutionResult
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('exitCode')) {\n\t obj['exitCode'] = ApiClient.convertToType(data['exitCode'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('stdout')) {\n\t obj['stdout'] = ApiClient.convertToType(data['stdout'], 'String');\n\t }\n\t if (data.hasOwnProperty('stderr')) {\n\t obj['stderr'] = ApiClient.convertToType(data['stderr'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * exit code of child process.\n\t * @member {Integer} exitCode\n\t */\n\t exports.prototype['exitCode'] = undefined;\n\t /**\n\t * standard out of child process.\n\t * @member {String} stdout\n\t */\n\t exports.prototype['stdout'] = undefined;\n\t /**\n\t * standard error of child process.\n\t * @member {String} stderr\n\t */\n\t exports.prototype['stderr'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RemoteAccess = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The RemoteAccess model module.\n\t * @module model/RemoteAccess\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RemoteAccess
.\n\t * Access information of remote workspace in remote server\n\t * @alias module:model/RemoteAccess\n\t * @class\n\t * @param name {String} display text of remote workspace. can be different from original name. \n\t * @param serverUrl {String} the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n\t * @param workspaceId {String} the id of remote workspace, read from remote server\n\t * @param masterToken {String} master token to access service, issued from remote server\n\t */\n\t var exports = function(name, serverUrl, workspaceId, masterToken) {\n\t var _this = this;\n\t\n\t _this['name'] = name;\n\t _this['serverUrl'] = serverUrl;\n\t _this['workspaceId'] = workspaceId;\n\t\n\t _this['masterToken'] = masterToken;\n\t };\n\t\n\t /**\n\t * Constructs a RemoteAccess
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/RemoteAccess} obj Optional instance to populate.\n\t * @return {module:model/RemoteAccess} The populated RemoteAccess
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('serverUrl')) {\n\t obj['serverUrl'] = ApiClient.convertToType(data['serverUrl'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspacePath')) {\n\t obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n\t }\n\t if (data.hasOwnProperty('masterToken')) {\n\t obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * display text of remote workspace. can be different from original name. \n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n\t * @member {String} serverUrl\n\t */\n\t exports.prototype['serverUrl'] = undefined;\n\t /**\n\t * the id of remote workspace, read from remote server\n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t /**\n\t * Full path of remote workspace, read from remote server. this property will be removed when clients are able to work without \\\"named root directory\\\" in workspace fs tree. \n\t * @member {String} workspacePath\n\t */\n\t exports.prototype['workspacePath'] = undefined;\n\t /**\n\t * master token to access service, issued from remote server\n\t * @member {String} masterToken\n\t */\n\t exports.prototype['masterToken'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Session = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Session model module.\n\t * @module model/Session\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Session
.\n\t * an application session per ide instance. bound to access token\n\t * @alias module:model/Session\n\t * @class\n\t * @param id {String} the id of a session. usually same to socket id.\n\t * @param name {String} human readable name, usually derived from workspace name.\n\t * @param state {module:model/Session.StateEnum} state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n\t * @param clientAddress {String} the peer address of session connection. not always\n\t * @param connectedAt {Date} the time when socket connection is established\n\t * @param disconnectedAt {Date} the time when socket is closed.\n\t */\n\t var exports = function(id, name, state, clientAddress, connectedAt, disconnectedAt) {\n\t var _this = this;\n\t\n\t _this['id'] = id;\n\t _this['name'] = name;\n\t _this['state'] = state;\n\t\n\t _this['clientAddress'] = clientAddress;\n\t _this['connectedAt'] = connectedAt;\n\t _this['disconnectedAt'] = disconnectedAt;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Session
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Session} obj Optional instance to populate.\n\t * @return {module:model/Session} The populated Session
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('state')) {\n\t obj['state'] = ApiClient.convertToType(data['state'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t if (data.hasOwnProperty('clientAddress')) {\n\t obj['clientAddress'] = ApiClient.convertToType(data['clientAddress'], 'String');\n\t }\n\t if (data.hasOwnProperty('connectedAt')) {\n\t obj['connectedAt'] = ApiClient.convertToType(data['connectedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('disconnectedAt')) {\n\t obj['disconnectedAt'] = ApiClient.convertToType(data['disconnectedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('willCloseAt')) {\n\t obj['willCloseAt'] = ApiClient.convertToType(data['willCloseAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('willLoseAt')) {\n\t obj['willLoseAt'] = ApiClient.convertToType(data['willLoseAt'], 'Date');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * the id of a session. usually same to socket id.\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * human readable name, usually derived from workspace name.\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n\t * @member {module:model/Session.StateEnum} state\n\t */\n\t exports.prototype['state'] = undefined;\n\t /**\n\t * the id of workspace that this sessions is working on. If falsy, then this session is not belonged to any workpsace. Usually, dashboard / monitoring app will create a session without workspace id. \n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t /**\n\t * the peer address of session connection. not always\n\t * @member {String} clientAddress\n\t */\n\t exports.prototype['clientAddress'] = undefined;\n\t /**\n\t * the time when socket connection is established\n\t * @member {Date} connectedAt\n\t */\n\t exports.prototype['connectedAt'] = undefined;\n\t /**\n\t * the time when socket is closed.\n\t * @member {Date} disconnectedAt\n\t */\n\t exports.prototype['disconnectedAt'] = undefined;\n\t /**\n\t * when state becomes CLOSING, actual closing time will be updated by server.\n\t * @member {Date} willCloseAt\n\t */\n\t exports.prototype['willCloseAt'] = undefined;\n\t /**\n\t * when state becomes LOSING, server will not wait for reconnection after this time.\n\t * @member {Date} willLoseAt\n\t */\n\t exports.prototype['willLoseAt'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the state
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.StateEnum = {\n\t /**\n\t * value: \"NORMAL\"\n\t * @const\n\t */\n\t \"NORMAL\": \"NORMAL\",\n\t /**\n\t * value: \"LOSING\"\n\t * @const\n\t */\n\t \"LOSING\": \"LOSING\",\n\t /**\n\t * value: \"CLOSING\"\n\t * @const\n\t */\n\t \"CLOSING\": \"CLOSING\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Token = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Token model module.\n\t * @module model/Token\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Token
.\n\t * a json webtoken and accessible data\n\t * @alias module:model/Token\n\t * @class\n\t * @param text {String} actual token text that should be shipped in header or query\n\t * @param tokenType {module:model/Token.TokenTypeEnum} MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n\t * @param expiresAt {Date} \n\t * @param issuedAt {Date} \n\t */\n\t var exports = function(text, tokenType, expiresAt, issuedAt) {\n\t var _this = this;\n\t\n\t _this['text'] = text;\n\t _this['tokenType'] = tokenType;\n\t _this['expiresAt'] = expiresAt;\n\t _this['issuedAt'] = issuedAt;\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a Token
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Token} obj Optional instance to populate.\n\t * @return {module:model/Token} The populated Token
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('text')) {\n\t obj['text'] = ApiClient.convertToType(data['text'], 'String');\n\t }\n\t if (data.hasOwnProperty('tokenType')) {\n\t obj['tokenType'] = ApiClient.convertToType(data['tokenType'], 'String');\n\t }\n\t if (data.hasOwnProperty('expiresAt')) {\n\t obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('issuedAt')) {\n\t obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('sessionId')) {\n\t obj['sessionId'] = ApiClient.convertToType(data['sessionId'], 'String');\n\t }\n\t if (data.hasOwnProperty('workspaceId')) {\n\t obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * actual token text that should be shipped in header or query\n\t * @member {String} text\n\t */\n\t exports.prototype['text'] = undefined;\n\t /**\n\t * MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n\t * @member {module:model/Token.TokenTypeEnum} tokenType\n\t */\n\t exports.prototype['tokenType'] = undefined;\n\t /**\n\t * @member {Date} expiresAt\n\t */\n\t exports.prototype['expiresAt'] = undefined;\n\t /**\n\t * @member {Date} issuedAt\n\t */\n\t exports.prototype['issuedAt'] = undefined;\n\t /**\n\t * mandatory for ACCESS token, identifying client instance\n\t * @member {String} sessionId\n\t */\n\t exports.prototype['sessionId'] = undefined;\n\t /**\n\t * If truthy, access rights are restricted to specified workspace only.\n\t * @member {String} workspaceId\n\t */\n\t exports.prototype['workspaceId'] = undefined;\n\t\n\t\n\t /**\n\t * Allowed values for the tokenType
property.\n\t * @enum {String}\n\t * @readonly\n\t */\n\t exports.TokenTypeEnum = {\n\t /**\n\t * value: \"MASTER\"\n\t * @const\n\t */\n\t \"MASTER\": \"MASTER\",\n\t /**\n\t * value: \"ACCESS\"\n\t * @const\n\t */\n\t \"ACCESS\": \"ACCESS\" };\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.User = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The User model module.\n\t * @module model/User\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new User
.\n\t * Any services/products should define some admin apis to manage users in the system and expose what should be exposed to client app. So, no properties are mandatory. Currently, the properties are defined for compatiblity with legacy clients. \n\t * @alias module:model/User\n\t * @class\n\t */\n\t var exports = function() {\n\t var _this = this;\n\t\n\t\n\t\n\t\n\t };\n\t\n\t /**\n\t * Constructs a User
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/User} obj Optional instance to populate.\n\t * @return {module:model/User} The populated User
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('email')) {\n\t obj['email'] = ApiClient.convertToType(data['email'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * unique id per user (email is also unique)\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * @member {String} email\n\t */\n\t exports.prototype['email'] = undefined;\n\t /**\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Workspace = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Workspace model module.\n\t * @module model/Workspace\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Workspace
.\n\t * A workspace in server\n\t * @alias module:model/Workspace\n\t * @class\n\t * @param id {String} the id of a workspace. usually same to file system id\n\t * @param name {String} display text of this workspace for UI\n\t * @param description {String} human readable description on this workspace\n\t * @param createdAt {Date} the time when this workspace is created (registered from local file system)\n\t * @param workspacePath {String} absolute path of this workspace in server.\n\t * @param excludedPaths {Array.} glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n\t * @param offlineCachePaths {Array.} any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n\t */\n\t var exports = function(id, name, description, createdAt, workspacePath, excludedPaths, offlineCachePaths) {\n\t var _this = this;\n\t\n\t _this['id'] = id;\n\t _this['name'] = name;\n\t _this['description'] = description;\n\t _this['createdAt'] = createdAt;\n\t\n\t _this['workspacePath'] = workspacePath;\n\t _this['excludedPaths'] = excludedPaths;\n\t _this['offlineCachePaths'] = offlineCachePaths;\n\t };\n\t\n\t /**\n\t * Constructs a Workspace
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Workspace} obj Optional instance to populate.\n\t * @return {module:model/Workspace} The populated Workspace
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('id')) {\n\t obj['id'] = ApiClient.convertToType(data['id'], 'String');\n\t }\n\t if (data.hasOwnProperty('name')) {\n\t obj['name'] = ApiClient.convertToType(data['name'], 'String');\n\t }\n\t if (data.hasOwnProperty('description')) {\n\t obj['description'] = ApiClient.convertToType(data['description'], 'String');\n\t }\n\t if (data.hasOwnProperty('createdAt')) {\n\t obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('accessedAt')) {\n\t obj['accessedAt'] = ApiClient.convertToType(data['accessedAt'], 'Date');\n\t }\n\t if (data.hasOwnProperty('workspacePath')) {\n\t obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n\t }\n\t if (data.hasOwnProperty('excludedPaths')) {\n\t obj['excludedPaths'] = ApiClient.convertToType(data['excludedPaths'], ['String']);\n\t }\n\t if (data.hasOwnProperty('offlineCachePaths')) {\n\t obj['offlineCachePaths'] = ApiClient.convertToType(data['offlineCachePaths'], ['String']);\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * the id of a workspace. usually same to file system id\n\t * @member {String} id\n\t */\n\t exports.prototype['id'] = undefined;\n\t /**\n\t * display text of this workspace for UI\n\t * @member {String} name\n\t */\n\t exports.prototype['name'] = undefined;\n\t /**\n\t * human readable description on this workspace\n\t * @member {String} description\n\t */\n\t exports.prototype['description'] = undefined;\n\t /**\n\t * the time when this workspace is created (registered from local file system)\n\t * @member {Date} createdAt\n\t */\n\t exports.prototype['createdAt'] = undefined;\n\t /**\n\t * the time when the last session on this workspace was made. (optional)\n\t * @member {Date} accessedAt\n\t */\n\t exports.prototype['accessedAt'] = undefined;\n\t /**\n\t * absolute path of this workspace in server.\n\t * @member {String} workspacePath\n\t */\n\t exports.prototype['workspacePath'] = undefined;\n\t /**\n\t * glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n\t * @member {Array.} excludedPaths\n\t */\n\t exports.prototype['excludedPaths'] = undefined;\n\t /**\n\t * any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n\t * @member {Array.} offlineCachePaths\n\t */\n\t exports.prototype['offlineCachePaths'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\t(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= 200 && res.status < 300) {\n\t return self.callback(err, res);\n\t }\n\t\n\t var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n\t new_err.original = err;\n\t new_err.response = res;\n\t new_err.status = res.status;\n\t\n\t self.callback(new_err, res);\n\t } catch(e) {\n\t self.callback(e); // #985 touching res may cause INVALID_STATE_ERR on old Android\n\t }\n\t });\n\t}\n\t\n\t/**\n\t * Mixin `Emitter` and `requestBase`.\n\t */\n\t\n\tEmitter(Request.prototype);\n\tfor (var key in requestBase) {\n\t Request.prototype[key] = requestBase[key];\n\t}\n\t\n\t/**\n\t * Set Content-Type to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.xml = 'application/xml';\n\t *\n\t * request.post('/')\n\t * .type('xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * request.post('/')\n\t * .type('application/xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * @param {String} type\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.type = function(type){\n\t this.set('Content-Type', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set responseType to `val`. Presently valid responseTypes are 'blob' and\n\t * 'arraybuffer'.\n\t *\n\t * Examples:\n\t *\n\t * req.get('/')\n\t * .responseType('blob')\n\t * .end(callback);\n\t *\n\t * @param {String} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.responseType = function(val){\n\t this._responseType = val;\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Accept to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.json = 'application/json';\n\t *\n\t * request.get('/agent')\n\t * .accept('json')\n\t * .end(callback);\n\t *\n\t * request.get('/agent')\n\t * .accept('application/json')\n\t * .end(callback);\n\t *\n\t * @param {String} accept\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.accept = function(type){\n\t this.set('Accept', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Authorization field value with `user` and `pass`.\n\t *\n\t * @param {String} user\n\t * @param {String} pass\n\t * @param {Object} options with 'type' property 'auto' or 'basic' (default 'basic')\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.auth = function(user, pass, options){\n\t if (!options) {\n\t options = {\n\t type: 'basic'\n\t }\n\t }\n\t\n\t switch (options.type) {\n\t case 'basic':\n\t var str = btoa(user + ':' + pass);\n\t this.set('Authorization', 'Basic ' + str);\n\t break;\n\t\n\t case 'auto':\n\t this.username = user;\n\t this.password = pass;\n\t break;\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t* Add query-string `val`.\n\t*\n\t* Examples:\n\t*\n\t* request.get('/shoes')\n\t* .query('size=10')\n\t* .query({ color: 'blue' })\n\t*\n\t* @param {Object|String} val\n\t* @return {Request} for chaining\n\t* @api public\n\t*/\n\t\n\tRequest.prototype.query = function(val){\n\t if ('string' != typeof val) val = serialize(val);\n\t if (val) this._query.push(val);\n\t return this;\n\t};\n\t\n\t/**\n\t * Queue the given `file` as an attachment to the specified `field`,\n\t * with optional `filename`.\n\t *\n\t * ``` js\n\t * request.post('/upload')\n\t * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n\t * .end(callback);\n\t * ```\n\t *\n\t * @param {String} field\n\t * @param {Blob|File} file\n\t * @param {String} filename\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.attach = function(field, file, filename){\n\t this._getFormData().append(field, file, filename || file.name);\n\t return this;\n\t};\n\t\n\tRequest.prototype._getFormData = function(){\n\t if (!this._formData) {\n\t this._formData = new root.FormData();\n\t }\n\t return this._formData;\n\t};\n\t\n\t/**\n\t * Invoke the callback with `err` and `res`\n\t * and handle arity check.\n\t *\n\t * @param {Error} err\n\t * @param {Response} res\n\t * @api private\n\t */\n\t\n\tRequest.prototype.callback = function(err, res){\n\t var fn = this._callback;\n\t this.clearTimeout();\n\t fn(err, res);\n\t};\n\t\n\t/**\n\t * Invoke callback with x-domain error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype.crossDomainError = function(){\n\t var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n\t err.crossDomain = true;\n\t\n\t err.status = this.status;\n\t err.method = this.method;\n\t err.url = this.url;\n\t\n\t this.callback(err);\n\t};\n\t\n\t/**\n\t * Invoke callback with timeout error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype._timeoutError = function(){\n\t var timeout = this._timeout;\n\t var err = new Error('timeout of ' + timeout + 'ms exceeded');\n\t err.timeout = timeout;\n\t this.callback(err);\n\t};\n\t\n\t/**\n\t * Compose querystring to append to req.url\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype._appendQueryString = function(){\n\t var query = this._query.join('&');\n\t if (query) {\n\t this.url += ~this.url.indexOf('?')\n\t ? '&' + query\n\t : '?' + query;\n\t }\n\t};\n\t\n\t/**\n\t * Initiate request, invoking callback `fn(res)`\n\t * with an instanceof `Response`.\n\t *\n\t * @param {Function} fn\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.end = function(fn){\n\t var self = this;\n\t var xhr = this.xhr = request.getXHR();\n\t var timeout = this._timeout;\n\t var data = this._formData || this._data;\n\t\n\t // store callback\n\t this._callback = fn || noop;\n\t\n\t // state change\n\t xhr.onreadystatechange = function(){\n\t if (4 != xhr.readyState) return;\n\t\n\t // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n\t // result in the error \"Could not complete the operation due to error c00c023f\"\n\t var status;\n\t try { status = xhr.status } catch(e) { status = 0; }\n\t\n\t if (0 == status) {\n\t if (self.timedout) return self._timeoutError();\n\t if (self._aborted) return;\n\t return self.crossDomainError();\n\t }\n\t self.emit('end');\n\t };\n\t\n\t // progress\n\t var handleProgress = function(e){\n\t if (e.total > 0) {\n\t e.percent = e.loaded / e.total * 100;\n\t }\n\t e.direction = 'download';\n\t self.emit('progress', e);\n\t };\n\t if (this.hasListeners('progress')) {\n\t xhr.onprogress = handleProgress;\n\t }\n\t try {\n\t if (xhr.upload && this.hasListeners('progress')) {\n\t xhr.upload.onprogress = handleProgress;\n\t }\n\t } catch(e) {\n\t // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n\t // Reported here:\n\t // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n\t }\n\t\n\t // timeout\n\t if (timeout && !this._timer) {\n\t this._timer = setTimeout(function(){\n\t self.timedout = true;\n\t self.abort();\n\t }, timeout);\n\t }\n\t\n\t // querystring\n\t this._appendQueryString();\n\t\n\t // initiate request\n\t if (this.username && this.password) {\n\t xhr.open(this.method, this.url, true, this.username, this.password);\n\t } else {\n\t xhr.open(this.method, this.url, true);\n\t }\n\t\n\t // CORS\n\t if (this._withCredentials) xhr.withCredentials = true;\n\t\n\t // body\n\t if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n\t // serialize stuff\n\t var contentType = this._header['content-type'];\n\t var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n\t if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];\n\t if (serialize) data = serialize(data);\n\t }\n\t\n\t // set header fields\n\t for (var field in this.header) {\n\t if (null == this.header[field]) continue;\n\t xhr.setRequestHeader(field, this.header[field]);\n\t }\n\t\n\t if (this._responseType) {\n\t xhr.responseType = this._responseType;\n\t }\n\t\n\t // send stuff\n\t this.emit('request', this);\n\t\n\t // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n\t // We need null here if data is undefined\n\t xhr.send(typeof data !== 'undefined' ? data : null);\n\t return this;\n\t};\n\t\n\t\n\t/**\n\t * Expose `Request`.\n\t */\n\t\n\trequest.Request = Request;\n\t\n\t/**\n\t * GET `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.get = function(url, data, fn){\n\t var req = request('GET', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.query(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * HEAD `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.head = function(url, data, fn){\n\t var req = request('HEAD', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * OPTIONS query to `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.options = function(url, data, fn){\n\t var req = request('OPTIONS', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * DELETE `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\tfunction del(url, fn){\n\t var req = request('DELETE', url);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\trequest['del'] = del;\n\trequest['delete'] = del;\n\t\n\t/**\n\t * PATCH `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} data\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.patch = function(url, data, fn){\n\t var req = request('PATCH', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * POST `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} data\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.post = function(url, data, fn){\n\t var req = request('POST', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * PUT `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} data or fn\n\t * @param {Function} fn\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.put = function(url, data, fn){\n\t var req = request('PUT', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t},{\"./is-object\":1,\"./request\":3,\"./request-base\":2,\"emitter\":4,\"reduce\":5}]},{},[6])(6)\n\t});\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(14), __webpack_require__(2), __webpack_require__(13), __webpack_require__(8)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/User'), require('../model/RestError'), require('../model/Token'), require('../model/Credential'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.AuthApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.User, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Token, root.WebidaRestfulApi.Credential);\n\t }\n\t}(this, function(ApiClient, User, RestError, Token, Credential) {\n\t 'use strict';\n\t\n\t /**\n\t * Auth service.\n\t * @module api/AuthApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new AuthApi. \n\t * @alias module:api/AuthApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the getInfo operation.\n\t * @callback module:api/AuthApi~getInfoCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/User} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Gets user information of that can be identified with current access token. Implementations should provide a more restful api based on domain data model, not extending this operation. (e.g. GET,PUT and DELETE on /Users/{userId} to read, update and delete user) \n\t * @param {module:api/AuthApi~getInfoCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/User}\n\t */\n\t this.getInfo = function(callback) {\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = User;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/info', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the issueToken operation.\n\t * @callback module:api/AuthApi~issueTokenCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Token} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is (and should not be) parameterizable. Server should set proper duration, respecting \\"reconnect\\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server. Like login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do. \n\t * @param {module:model/String} type \n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.workspaceId recommended to issue a MASTER type token to restrict remote access\n\t * @param {module:api/AuthApi~issueTokenCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Token}\n\t */\n\t this.issueToken = function(type, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'type' is set\n\t if (type == undefined || type == null) {\n\t throw \"Missing the required parameter 'type' when calling issueToken\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'type': type,\n\t 'workspaceId': opts['workspaceId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Token;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/token', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the login operation.\n\t * @callback module:api/AuthApi~loginCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Token} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * A \\"VERY\\" basic authentication, required to use webida-simple-auth security scheme. Service / Product implementations who need better security, should override this operation or add their own login api or some other specs like OAuth2. Simple auth is not suitable for large-sacle, multi-tennant service, for the scheme assumes a single, trusted user only. Logging-in with master token, the generated access token inherits all restriction from it. On the other hand, normal log-in with login id & password creates an unrestricted access token, with reasonably short expiration time. Every client should spawn another access token with issueToken API before current access token expires, inheriting session id from current token. To save remote access info, client should create a (restricted but long-ttl) master token to start IDE from remote. The remote client should not use the unrestricted acccess token from login to use any other perpose than finding available workspaces, and should not refresh the token. (Let user log-in again) Login API does not force any encryption. Server should provide secure transport channel, usually https, to provide remote access, always. \n\t * @param {module:model/Credential} body \n\t * @param {module:api/AuthApi~loginCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Token}\n\t */\n\t this.login = function(body, callback) {\n\t var postBody = body;\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling login\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Token;\n\t\n\t return this.apiClient.callApi(\n\t '/auth/login', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.OpsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError) {\n\t 'use strict';\n\t\n\t /**\n\t * Ops service.\n\t * @module api/OpsApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new OpsApi. \n\t * @alias module:api/OpsApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the replace operation.\n\t * @callback module:api/OpsApi~replaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * replace file contents with regex matching\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {Array.} wfsPathList array of wfsPath, with heading / (collection format may be changed by implementation)\n\t * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n\t * @param {String} replaceTo string to replace with\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n\t * @param {module:api/OpsApi~replaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.replace = function(wfsId, wfsPathList, pattern, replaceTo, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'wfsPathList' is set\n\t if (wfsPathList == undefined || wfsPathList == null) {\n\t throw \"Missing the required parameter 'wfsPathList' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'pattern' is set\n\t if (pattern == undefined || pattern == null) {\n\t throw \"Missing the required parameter 'pattern' when calling replace\";\n\t }\n\t\n\t // verify the required parameter 'replaceTo' is set\n\t if (replaceTo == undefined || replaceTo == null) {\n\t throw \"Missing the required parameter 'replaceTo' when calling replace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId\n\t };\n\t var queryParams = {\n\t 'wfsPathList': this.apiClient.buildCollectionParam(wfsPathList, 'multi'),\n\t 'pattern': pattern,\n\t 'replaceTo': replaceTo,\n\t 'ignoreCase': opts['ignoreCase']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/ops/replace', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the search operation.\n\t * @callback module:api/OpsApi~searchCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Object.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * search files in some path, with given pattern\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n\t * @param {module:api/OpsApi~searchCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Object.}\n\t */\n\t this.search = function(wfsId, wfsPath, pattern, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling search\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling search\";\n\t }\n\t\n\t // verify the required parameter 'pattern' is set\n\t if (pattern == undefined || pattern == null) {\n\t throw \"Missing the required parameter 'pattern' when calling search\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'pattern': pattern,\n\t 'ignoreCase': opts['ignoreCase']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = {'String': [Match]};\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/ops/search/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(2), __webpack_require__(11), __webpack_require__(3)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestError'), require('../model/RemoteAccess'), require('../model/RestOK'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.RemotesApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.RemoteAccess, root.WebidaRestfulApi.RestOK);\n\t }\n\t}(this, function(ApiClient, RestError, RemoteAccess, RestOK) {\n\t 'use strict';\n\t\n\t /**\n\t * Remotes service.\n\t * @module api/RemotesApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new RemotesApi. \n\t * @alias module:api/RemotesApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the findRemoteAccesses operation.\n\t * @callback module:api/RemotesApi~findRemoteAccessesCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Get all access informations See RemoteWorkspaceAccess definition for details (no fancy find / search feature yet) \n\t * @param {module:api/RemotesApi~findRemoteAccessesCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findRemoteAccesses = function(callback) {\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [RemoteAccess];\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the putRemoteAccess operation.\n\t * @callback module:api/RemotesApi~putRemoteAccessCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * create or update a remote workspace access information\n\t * @param {module:model/RemoteAccess} body \n\t * @param {module:api/RemotesApi~putRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.putRemoteAccess = function(body, callback) {\n\t var postBody = body;\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling putRemoteAccess\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeRemoteAccess operation.\n\t * @callback module:api/RemotesApi~removeRemoteAccessCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RemoteAccess} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete a remote workspace\n\t * @param {String} workspaceId workspace Id of remote workspace\n\t * @param {module:api/RemotesApi~removeRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RemoteAccess}\n\t */\n\t this.removeRemoteAccess = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeRemoteAccess\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RemoteAccess;\n\t\n\t return this.apiClient.callApi(\n\t '/remotes', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(12)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Session'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.SessionApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Session);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, Session) {\n\t 'use strict';\n\t\n\t /**\n\t * Session service.\n\t * @module api/SessionApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new SessionApi. \n\t * @alias module:api/SessionApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the closeSession operation.\n\t * @callback module:api/SessionApi~closeSessionCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * close session with timeout\n\t * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n\t * @param {Integer} closeAfter waiting time before actual closing, to let client save files and prevent reconnect \n\t * @param {module:api/SessionApi~closeSessionCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.closeSession = function(sessionId, closeAfter, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'sessionId' is set\n\t if (sessionId == undefined || sessionId == null) {\n\t throw \"Missing the required parameter 'sessionId' when calling closeSession\";\n\t }\n\t\n\t // verify the required parameter 'closeAfter' is set\n\t if (closeAfter == undefined || closeAfter == null) {\n\t throw \"Missing the required parameter 'closeAfter' when calling closeSession\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'sessionId': sessionId\n\t };\n\t var queryParams = {\n\t 'closeAfter': closeAfter\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/sessions/{sessionId}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the findSessions operation.\n\t * @callback module:api/SessionApi~findSessionsCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get all / some webida sessions established to server\n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.workspaceId find only sessions working on some given workspace\n\t * @param {module:api/SessionApi~findSessionsCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findSessions = function(opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'workspaceId': opts['workspaceId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [Session];\n\t\n\t return this.apiClient.callApi(\n\t '/sessions', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getSession operation.\n\t * @callback module:api/SessionApi~getSessionCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Session} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get a session object by id\n\t * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n\t * @param {module:api/SessionApi~getSessionCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Session}\n\t */\n\t this.getSession = function(sessionId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'sessionId' is set\n\t if (sessionId == undefined || sessionId == null) {\n\t throw \"Missing the required parameter 'sessionId' when calling getSession\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'sessionId': sessionId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Session;\n\t\n\t return this.apiClient.callApi(\n\t '/sessions/{sessionId}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(4), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/DirEntry'), require('../model/Stats'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.WfsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, DirEntry, Stats) {\n\t 'use strict';\n\t\n\t /**\n\t * Wfs service.\n\t * @module api/WfsApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new WfsApi. \n\t * @alias module:api/WfsApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the copy operation.\n\t * @callback module:api/WfsApi~copyCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact path of the resource to be created. So, copying a file to directory always returns error and vice versa. this operation creates the parents dir of destination path always, and does not roll-back the creation when operation failed. So, clients should roll-back if needed. When destination path exists already, 1) copying file to file : follows noOverwrite flag. (does not return error) 2) copying file to dir : returns 409 error 3) copying dir to file : returns 409 error 4) copying dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)\n\t * @param {Boolean} opts.followSymbolicLinks dereference symlinks in source. (default to false)\n\t * @param {Boolean} opts.preserveTimestamps keep mtime/atime of source file(s) in destination. (default to false)\n\t * @param {module:api/WfsApi~copyCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.copy = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling copy\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling copy\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling copy\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'noOverwrite': opts['noOverwrite'],\n\t 'followSymbolicLinks': opts['followSymbolicLinks'],\n\t 'preserveTimestamps': opts['preserveTimestamps']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the createDir operation.\n\t * @callback module:api/WfsApi~createDirCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * create a directory at the path. returns error when wfsPath exists and not empty this API always creates parent directories if needed. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {module:api/WfsApi~createDirCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.createDir = function(wfsId, wfsPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling createDir\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling createDir\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/dir/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the dirTree operation.\n\t * @callback module:api/WfsApi~dirTreeCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/DirEntry} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * returns a directory tree of given path, for listing dir and managing file system errors while building sub-tree will be ignored and will not be included in result. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Integer} maxDepth Maximum depth of tree. -1 to build a full tree, 0 to stat, 1 to plain list.\n\t * @param {module:api/WfsApi~dirTreeCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/DirEntry}\n\t */\n\t this.dirTree = function(wfsId, wfsPath, maxDepth, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling dirTree\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling dirTree\";\n\t }\n\t\n\t // verify the required parameter 'maxDepth' is set\n\t if (maxDepth == undefined || maxDepth == null) {\n\t throw \"Missing the required parameter 'maxDepth' when calling dirTree\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'maxDepth': maxDepth\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = DirEntry;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/dir/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the move operation.\n\t * @callback module:api/WfsApi~moveCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact path of the resource to be created. So, moving a file to existing directory always returns error and vice versa. (So, This API works like 'rename' rather than 'mv' command) Like copy(), this operation creates parent path of destination, and does not roll-back when operation failes. When destination path exists already, 1) moving file to file : follows noOverwrite flag. 2) moving file to dir : returns 409 error 3) moving dir to file : returns 409 error 4) moving dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)\n\t * @param {module:api/WfsApi~moveCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.move = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling move\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling move\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling move\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'noOverwrite': opts['noOverwrite']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the readFile operation.\n\t * @callback module:api/WfsApi~readFileCallback\n\t * @param {String} error Error message, if any.\n\t * @param {File} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * read file data on path\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {module:api/WfsApi~readFileCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {File}\n\t */\n\t this.readFile = function(wfsId, wfsPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling readFile\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling readFile\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = File;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the remove operation.\n\t * @callback module:api/WfsApi~removeCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete file or directory\n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.unrecursive if set, deleting non-empty directory will return error. (default to false)\n\t * @param {module:api/WfsApi~removeCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.remove = function(wfsId, wfsPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling remove\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling remove\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'unrecursive': opts['unrecursive']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the rename operation.\n\t * @callback module:api/WfsApi~renameCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Renames a file or directory to wfsPath. Unlike POSIX rename() call semantics, this operation does not overwrite anything. Renaming to any 'existing' source will return error except only 1 case, with emulateMove option. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {String} srcPath source data path of some operations, with have heading /\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n\t * @param {Boolean} opts.emulateMove When rename file to existing dir, move file to the dir instead of returning error. This option is provided for legacy, dummy clients only to emulate legacy server's move behaviour. Newly written client app should not use this option & use move() operation to have clear behaviour. \n\t * @param {module:api/WfsApi~renameCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.rename = function(wfsId, wfsPath, srcPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling rename\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling rename\";\n\t }\n\t\n\t // verify the required parameter 'srcPath' is set\n\t if (srcPath == undefined || srcPath == null) {\n\t throw \"Missing the required parameter 'srcPath' when calling rename\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'srcPath': srcPath,\n\t 'ensureParents': opts['ensureParents'],\n\t 'emulateMove': opts['emulateMove']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the stat operation.\n\t * @callback module:api/WfsApi~statCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Stats} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Get stats of given path. (stat() returns \\"stats\\" object in node and POSIX system) Since we've no ctime/atime in Stats class, some file system changing events will send 'exactly same' stats object. This API should be called only when stats of some file system path is stale for unknown reason (e.g. losting change events). Use dirTree operation and session events to detect stats, if possible. This API can be used to check a path is valid, existing one, but it's not recommended to check existence of individual paths by API. Clients should use dirTree and session events to synchorize some in-app file system with webida file system. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ignoreError flag to ignore stat errors to check existence only. If this flag is true, server will returns 'DUMMY' type stats object instead of 404 error when given path does not exists. (invalid wfsId will produce 400 error, not 404) (default to false)\n\t * @param {module:api/WfsApi~statCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Stats}\n\t */\n\t this.stat = function(wfsId, wfsPath, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling stat\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling stat\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'ignoreError': opts['ignoreError']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Stats;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/any/{wfsPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the writeFile operation.\n\t * @callback module:api/WfsApi~writeFileCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates / updates file with body data. Server should write the file in 'atomic' manner, and should not write down request body into final destination path directly. In other words, wheather writeFile() succeeds or not, the contents of the file should not be corrupted nor half-written. \n\t * @param {String} wfsId webida file system id (same to workspace id) to access.\n\t * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n\t * @param {File} data file contents to write.\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n\t * @param {module:api/WfsApi~writeFileCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.writeFile = function(wfsId, wfsPath, data, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'wfsId' is set\n\t if (wfsId == undefined || wfsId == null) {\n\t throw \"Missing the required parameter 'wfsId' when calling writeFile\";\n\t }\n\t\n\t // verify the required parameter 'wfsPath' is set\n\t if (wfsPath == undefined || wfsPath == null) {\n\t throw \"Missing the required parameter 'wfsPath' when calling writeFile\";\n\t }\n\t\n\t // verify the required parameter 'data' is set\n\t if (data == undefined || data == null) {\n\t throw \"Missing the required parameter 'data' when calling writeFile\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'wfsId': wfsId,\n\t 'wfsPath': wfsPath\n\t };\n\t var queryParams = {\n\t 'ensureParents': opts['ensureParents']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t 'data': data\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['multipart/form-data'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/wfs/{wfsId}/file/{wfsPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(2), __webpack_require__(15), __webpack_require__(7), __webpack_require__(9), __webpack_require__(10)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Workspace'), require('../model/ChildProcess'), require('../model/Execution'), require('../model/ExecutionResult'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.WorkspaceApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Workspace, root.WebidaRestfulApi.ChildProcess, root.WebidaRestfulApi.Execution, root.WebidaRestfulApi.ExecutionResult);\n\t }\n\t}(this, function(ApiClient, RestOK, RestError, Workspace, ChildProcess, Execution, ExecutionResult) {\n\t 'use strict';\n\t\n\t /**\n\t * Workspace service.\n\t * @module api/WorkspaceApi\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new WorkspaceApi. \n\t * @alias module:api/WorkspaceApi\n\t * @class\n\t * @param {module:ApiClient} apiClient Optional API client implementation to use,\n\t * default to {@link module:ApiClient#instance} if unspecified.\n\t */\n\t var exports = function(apiClient) {\n\t this.apiClient = apiClient || ApiClient.instance;\n\t\n\t\n\t /**\n\t * Callback function to receive the result of the cancel operation.\n\t * @callback module:api/WorkspaceApi~cancelCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * cancels an execution, if possible. Killing process may not be graceful.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {String} opts.execId the id of execution (different from pid!)\n\t * @param {module:api/WorkspaceApi~cancelCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.cancel = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling cancel\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'execId': opts['execId']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the createWorkspace operation.\n\t * @callback module:api/WorkspaceApi~createWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Creates a new workspace with given local path. Requires an unrestricted access token. \n\t * @param {String} localPath a real, local path of the system (not unixified)\n\t * @param {String} name workspace name property\n\t * @param {String} description workspace name property\n\t * @param {module:api/WorkspaceApi~createWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.createWorkspace = function(localPath, name, description, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'localPath' is set\n\t if (localPath == undefined || localPath == null) {\n\t throw \"Missing the required parameter 'localPath' when calling createWorkspace\";\n\t }\n\t\n\t // verify the required parameter 'name' is set\n\t if (name == undefined || name == null) {\n\t throw \"Missing the required parameter 'name' when calling createWorkspace\";\n\t }\n\t\n\t // verify the required parameter 'description' is set\n\t if (description == undefined || description == null) {\n\t throw \"Missing the required parameter 'description' when calling createWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'localPath': localPath,\n\t 'name': name,\n\t 'description': description\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the exec operation.\n\t * @callback module:api/WorkspaceApi~execCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/ExecutionResult} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * execute a shell command on this workspace\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:model/Execution} body \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.async Spawn a child process for given command and returns a child process info only. , Actual output (stream of message) will be delivered to web socket channel, with room id /sessions/asyn-{Execution#id} (default to false)\n\t * @param {module:api/WorkspaceApi~execCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/ExecutionResult}\n\t */\n\t this.exec = function(workspaceId, body, opts, callback) {\n\t opts = opts || {};\n\t var postBody = body;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling exec\";\n\t }\n\t\n\t // verify the required parameter 'body' is set\n\t if (body == undefined || body == null) {\n\t throw \"Missing the required parameter 'body' when calling exec\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'async': opts['async']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = ExecutionResult;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'POST',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the findWorkspaces operation.\n\t * @callback module:api/WorkspaceApi~findWorkspacesCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Finds workspaces (no find/search parameters yet). Requires an unrestricted access token. \n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.disposable include disposable workspaces or not (default to false)\n\t * @param {module:api/WorkspaceApi~findWorkspacesCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.findWorkspaces = function(opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t\n\t var pathParams = {\n\t };\n\t var queryParams = {\n\t 'disposable': opts['disposable']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [Workspace];\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getChildProcs operation.\n\t * @callback module:api/WorkspaceApi~getChildProcsCallback\n\t * @param {String} error Error message, if any.\n\t * @param {Array.} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get all spawned process info, created by exec api, on given workspace. set workspace id to \\"*\\" to all processes info. This operation requires proper access rights (unrestricted or matching workspace id in access token with parameter) \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {Boolean} opts.includeExec include processes created by synchronous exec request (default to false)\n\t * @param {module:api/WorkspaceApi~getChildProcsCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {Array.}\n\t */\n\t this.getChildProcs = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling getChildProcs\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'includeExec': opts['includeExec']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = [ChildProcess];\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/exec', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the getWorkspace operation.\n\t * @callback module:api/WorkspaceApi~getWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * get a workspace object by id\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:api/WorkspaceApi~getWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.getWorkspace = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling getWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the readMetadata operation.\n\t * @callback module:api/WorkspaceApi~readMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {File} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * read a metadata file from a workspace.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {module:api/WorkspaceApi~readMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {File}\n\t */\n\t this.readMetadata = function(workspaceId, objectPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling readMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling readMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = [];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = File;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'GET',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeMetadata operation.\n\t * @callback module:api/WorkspaceApi~removeMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * delete metadata of given path\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {module:api/WorkspaceApi~removeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.removeMetadata = function(workspaceId, objectPath, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling removeMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the removeWorkspace operation.\n\t * @callback module:api/WorkspaceApi~removeWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * This operation will remove the requested workspace when 1) all sessions are closed for request (will be notified by server) 2) excedded time limit value in closeAfter parameter 3) server goes down after accepting remove request \\"willBeRemovedAt\\" property can be set \\"only\\" by this api. This API requires \\"unrestricted\\" access token. Even an access token has matching workspace id, removing an workspace is rejected. \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {Object} opts Optional parameters\n\t * @param {Integer} opts.closeAfter Time in seconds to wait for all sessions save & close their data. (default to 0)\n\t * @param {module:api/WorkspaceApi~removeWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.removeWorkspace = function(workspaceId, opts, callback) {\n\t opts = opts || {};\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling removeWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t 'closeAfter': opts['closeAfter']\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'DELETE',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the updateWorkspace operation.\n\t * @callback module:api/WorkspaceApi~updateWorkspaceCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/Workspace} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * Updates workspace. Some protected properties will not be changed by this api. Requires proper access rights in access token. \n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {module:api/WorkspaceApi~updateWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/Workspace}\n\t */\n\t this.updateWorkspace = function(workspaceId, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling updateWorkspace\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = Workspace;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t\n\t /**\n\t * Callback function to receive the result of the writeMetadata operation.\n\t * @callback module:api/WorkspaceApi~writeMetadataCallback\n\t * @param {String} error Error message, if any.\n\t * @param {module:model/RestOK} data The data returned by the service call.\n\t * @param {String} response The complete HTTP response.\n\t */\n\t\n\t /**\n\t * write a metadata file at given path. missing parents will be created.\n\t * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n\t * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n\t * @param {File} data file contents to write.\n\t * @param {module:api/WorkspaceApi~writeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n\t * data is of type: {module:model/RestOK}\n\t */\n\t this.writeMetadata = function(workspaceId, objectPath, data, callback) {\n\t var postBody = null;\n\t\n\t // verify the required parameter 'workspaceId' is set\n\t if (workspaceId == undefined || workspaceId == null) {\n\t throw \"Missing the required parameter 'workspaceId' when calling writeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'objectPath' is set\n\t if (objectPath == undefined || objectPath == null) {\n\t throw \"Missing the required parameter 'objectPath' when calling writeMetadata\";\n\t }\n\t\n\t // verify the required parameter 'data' is set\n\t if (data == undefined || data == null) {\n\t throw \"Missing the required parameter 'data' when calling writeMetadata\";\n\t }\n\t\n\t\n\t var pathParams = {\n\t 'workspaceId': workspaceId,\n\t 'objectPath': objectPath\n\t };\n\t var queryParams = {\n\t };\n\t var headerParams = {\n\t };\n\t var formParams = {\n\t 'data': data\n\t };\n\t\n\t var authNames = ['webida-simple-auth'];\n\t var contentTypes = ['application/json'];\n\t var accepts = ['application/json', 'application/octet-stream'];\n\t var returnType = RestOK;\n\t\n\t return this.apiClient.callApi(\n\t '/workspaces/{workspaceId}/metadata/{objectPath}', 'PUT',\n\t pathParams, queryParams, headerParams, formParams, postBody,\n\t authNames, contentTypes, accepts, returnType, callback\n\t );\n\t }\n\t };\n\t\n\t return exports;\n\t}));\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * Webida Restful API\n\t * Restful API for Webida clients to use server's data & features\n\t *\n\t * OpenAPI spec version: 0.3.0\n\t * \n\t *\n\t * NOTE: This class is auto generated by the swagger code generator program.\n\t * https://github.com/swagger-api/swagger-codegen.git\n\t * Do not edit the class manually.\n\t *\n\t * Licensed under the Apache License, Version 2.0 (the \"License\");\n\t * you may not use this file except in compliance with the License.\n\t * You may obtain a copy of the License at\n\t *\n\t * http://www.apache.org/licenses/LICENSE-2.0\n\t *\n\t * Unless required by applicable law or agreed to in writing, software\n\t * distributed under the License is distributed on an \"AS IS\" BASIS,\n\t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t * See the License for the specific language governing permissions and\n\t * limitations under the License.\n\t */\n\t\n\t(function(root, factory) {\n\t if (true) {\n\t // AMD. Register as an anonymous module.\n\t !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t } else if (typeof module === 'object' && module.exports) {\n\t // CommonJS-like environments that support module.exports, like Node.\n\t module.exports = factory(require('../ApiClient'));\n\t } else {\n\t // Browser globals (root is window)\n\t if (!root.WebidaRestfulApi) {\n\t root.WebidaRestfulApi = {};\n\t }\n\t root.WebidaRestfulApi.Match = factory(root.WebidaRestfulApi.ApiClient);\n\t }\n\t}(this, function(ApiClient) {\n\t 'use strict';\n\t\n\t\n\t\n\t\n\t /**\n\t * The Match model module.\n\t * @module model/Match\n\t * @version 0.3.0\n\t */\n\t\n\t /**\n\t * Constructs a new Match
.\n\t * search result for a file\n\t * @alias module:model/Match\n\t * @class\n\t * @param line {Integer} \n\t * @param text {String} \n\t */\n\t var exports = function(line, text) {\n\t var _this = this;\n\t\n\t _this['line'] = line;\n\t _this['text'] = text;\n\t };\n\t\n\t /**\n\t * Constructs a Match
from a plain JavaScript object, optionally creating a new instance.\n\t * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n\t * @param {Object} data The plain JavaScript object bearing properties of interest.\n\t * @param {module:model/Match} obj Optional instance to populate.\n\t * @return {module:model/Match} The populated Match
instance.\n\t */\n\t exports.constructFromObject = function(data, obj) {\n\t if (data) {\n\t obj = obj || new exports();\n\t\n\t if (data.hasOwnProperty('line')) {\n\t obj['line'] = ApiClient.convertToType(data['line'], 'Integer');\n\t }\n\t if (data.hasOwnProperty('text')) {\n\t obj['text'] = ApiClient.convertToType(data['text'], 'String');\n\t }\n\t }\n\t return obj;\n\t }\n\t\n\t /**\n\t * @member {Integer} line\n\t */\n\t exports.prototype['line'] = undefined;\n\t /**\n\t * @member {String} text\n\t */\n\t exports.prototype['text'] = undefined;\n\t\n\t\n\t\n\t return exports;\n\t}));\n\t\n\t\n\n\n/***/ }\n/******/ ])});;\n\n\n/** WEBPACK FOOTER **\n ** api-bundle.js\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 65910515fcfa796fbdcf\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/ChildProcess', 'model/Credential', 'model/DirEntry', 'model/Execution', 'model/ExecutionResult', 'model/Match', 'model/RemoteAccess', 'model/RestError', 'model/RestOK', 'model/Session', 'model/Stats', 'model/Token', 'model/User', 'model/Workspace', 'api/AuthApi', 'api/OpsApi', 'api/RemotesApi', 'api/SessionApi', 'api/WfsApi', 'api/WorkspaceApi'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('./ApiClient'), require('./model/ChildProcess'), require('./model/Credential'), require('./model/DirEntry'), require('./model/Execution'), require('./model/ExecutionResult'), require('./model/Match'), require('./model/RemoteAccess'), require('./model/RestError'), require('./model/RestOK'), require('./model/Session'), require('./model/Stats'), require('./model/Token'), require('./model/User'), require('./model/Workspace'), require('./api/AuthApi'), require('./api/OpsApi'), require('./api/RemotesApi'), require('./api/SessionApi'), require('./api/WfsApi'), require('./api/WorkspaceApi'));\n }\n}(function(ApiClient, ChildProcess, Credential, DirEntry, Execution, ExecutionResult, Match, RemoteAccess, RestError, RestOK, Session, Stats, Token, User, Workspace, AuthApi, OpsApi, RemotesApi, SessionApi, WfsApi, WorkspaceApi) {\n 'use strict';\n\n /**\n * Restful_API_for_Webida_clients_to_use_servers_data__features.
\n * The index
module provides access to constructors for all the classes which comprise the public API.\n * \n * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:\n *
\n * var WebidaRestfulApi = require('index'); // See note below*.\n * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n * var yyyModel = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n * yyyModel.someProperty = 'someValue';\n * ...\n * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n * ...\n *
\n * *NOTE: For a top-level AMD script, use require(['index'], function(){...})\n * and put the application logic within the callback function.\n * \n * \n * A non-AMD browser application (discouraged) might do something like this:\n *
\n * var xxxSvc = new WebidaRestfulApi.XxxApi(); // Allocate the API class we're going to use.\n * var yyy = new WebidaRestfulApi.Yyy(); // Construct a model instance.\n * yyyModel.someProperty = 'someValue';\n * ...\n * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n * ...\n *
\n * \n * @module index\n * @version 0.3.0\n */\n var exports = {\n /**\n * The ApiClient constructor.\n * @property {module:ApiClient}\n */\n ApiClient: ApiClient,\n /**\n * The ChildProcess model constructor.\n * @property {module:model/ChildProcess}\n */\n ChildProcess: ChildProcess,\n /**\n * The Credential model constructor.\n * @property {module:model/Credential}\n */\n Credential: Credential,\n /**\n * The DirEntry model constructor.\n * @property {module:model/DirEntry}\n */\n DirEntry: DirEntry,\n /**\n * The Execution model constructor.\n * @property {module:model/Execution}\n */\n Execution: Execution,\n /**\n * The ExecutionResult model constructor.\n * @property {module:model/ExecutionResult}\n */\n ExecutionResult: ExecutionResult,\n /**\n * The Match model constructor.\n * @property {module:model/Match}\n */\n Match: Match,\n /**\n * The RemoteAccess model constructor.\n * @property {module:model/RemoteAccess}\n */\n RemoteAccess: RemoteAccess,\n /**\n * The RestError model constructor.\n * @property {module:model/RestError}\n */\n RestError: RestError,\n /**\n * The RestOK model constructor.\n * @property {module:model/RestOK}\n */\n RestOK: RestOK,\n /**\n * The Session model constructor.\n * @property {module:model/Session}\n */\n Session: Session,\n /**\n * The Stats model constructor.\n * @property {module:model/Stats}\n */\n Stats: Stats,\n /**\n * The Token model constructor.\n * @property {module:model/Token}\n */\n Token: Token,\n /**\n * The User model constructor.\n * @property {module:model/User}\n */\n User: User,\n /**\n * The Workspace model constructor.\n * @property {module:model/Workspace}\n */\n Workspace: Workspace,\n /**\n * The AuthApi service constructor.\n * @property {module:api/AuthApi}\n */\n AuthApi: AuthApi,\n /**\n * The OpsApi service constructor.\n * @property {module:api/OpsApi}\n */\n OpsApi: OpsApi,\n /**\n * The RemotesApi service constructor.\n * @property {module:api/RemotesApi}\n */\n RemotesApi: RemotesApi,\n /**\n * The SessionApi service constructor.\n * @property {module:api/SessionApi}\n */\n SessionApi: SessionApi,\n /**\n * The WfsApi service constructor.\n * @property {module:api/WfsApi}\n */\n WfsApi: WfsApi,\n /**\n * The WorkspaceApi service constructor.\n * @property {module:api/WorkspaceApi}\n */\n WorkspaceApi: WorkspaceApi\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/index.js\n ** module id = 0\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['superagent'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('superagent'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ApiClient = factory(root.superagent);\n }\n}(this, function(superagent) {\n 'use strict';\n\n /**\n * @module ApiClient\n * @version 0.3.0\n */\n\n /**\n * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n * application to use this class directly - the *Api and model classes provide the public API for the service. The\n * contents of this file should be regarded as internal but are documented for completeness.\n * @alias module:ApiClient\n * @class\n */\n var exports = function() {\n /**\n * The base URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default https://localhost/api\n */\n this.basePath = 'https://localhost/api'.replace(/\\/+$/, '');\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.}\n */\n this.authentications = {\n 'webida-simple-auth': {type: 'apiKey', 'in': 'header', name: 'Authorization'}\n };\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.}\n * @default {}\n */\n this.defaultHeaders = {};\n\n /**\n * The default HTTP timeout for all API calls.\n * @type {Number}\n * @default 60000\n */\n this.timeout = 60000;\n };\n\n /**\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of param
.\n */\n exports.prototype.paramToString = function(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n return param.toString();\n };\n\n /**\n * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.\n * NOTE: query parameters are not handled here.\n * @param {String} path The path to append to the base URL.\n * @param {Object} pathParams The parameter values to append.\n * @returns {String} The encoded path with parameter values substituted.\n */\n exports.prototype.buildUrl = function(path, pathParams) {\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n var url = this.basePath + path;\n var _this = this;\n url = url.replace(/\\{([\\w-]+)\\}/g, function(fullMatch, key) {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = _this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n return encodeURIComponent(value);\n });\n return url;\n };\n\n /**\n * Checks whether the given content type represents JSON.
\n * JSON content type examples:
\n * \n * - application/json
\n * - application/json; charset=UTF8
\n * - APPLICATION/JSON
\n *
\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.\n */\n exports.prototype.isJsonMime = function(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n };\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n * @param {Array.} contentTypes\n * @returns {String} The chosen content type, preferring JSON.\n */\n exports.prototype.jsonPreferredMime = function(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (this.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n };\n\n /**\n * Checks whether the given parameter value represents file-like content.\n * @param param The parameter to check.\n * @returns {Boolean} true
if param
represents a file. \n */\n exports.prototype.isFileParam = function(param) {\n // fs.ReadStream in Node.js (but not in runtime like browserify)\n if (typeof window === 'undefined' &&\n typeof require === 'function' &&\n require('fs') &&\n param instanceof require('fs').ReadStream) {\n return true;\n }\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n // Blob in browser\n if (typeof Blob === 'function' && param instanceof Blob) {\n return true;\n }\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n return false;\n };\n\n /**\n * Normalizes parameter values:\n * \n * - remove nils
\n * - keep files and arrays
\n * - format to string with `paramToString` for other cases
\n *
\n * @param {Object.} params The parameters as object properties.\n * @returns {Object.} normalized parameters.\n */\n exports.prototype.normalizeParams = function(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (this.isFileParam(value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n return newParams;\n };\n\n /**\n * Enumeration of collection format separator strategies.\n * @enum {String} \n * @readonly\n */\n exports.CollectionFormatEnum = {\n /**\n * Comma-separated values. Value: csv
\n * @const\n */\n CSV: ',',\n /**\n * Space-separated values. Value: ssv
\n * @const\n */\n SSV: ' ',\n /**\n * Tab-separated values. Value: tsv
\n * @const\n */\n TSV: '\\t',\n /**\n * Pipe(|)-separated values. Value: pipes
\n * @const\n */\n PIPES: '|',\n /**\n * Native array. Value: multi
\n * @const\n */\n MULTI: 'multi'\n };\n\n /**\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * param
as is if collectionFormat
is multi
.\n */\n exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n // return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n };\n\n /**\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a superagent()
call.\n * @param {Array.} authNames An array of authentication method names.\n */\n exports.prototype.applyAuthToRequest = function(request, authNames) {\n var _this = this;\n authNames.forEach(function(authName) {\n var auth = _this.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n }\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({'Authorization': 'Bearer ' + auth.accessToken});\n }\n break;\n default:\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n };\n\n /**\n * Deserializes an HTTP response body into a value of the specified type.\n * @param {Object} response A SuperAgent response object.\n * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns A value of the specified type.\n */\n exports.prototype.deserialize = function deserialize(response, returnType) {\n if (response == null || returnType == null) {\n return null;\n }\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n return exports.convertToType(data, returnType);\n };\n\n /**\n * Callback function to receive the result of the operation.\n * @callback module:ApiClient~callApiCallback\n * @param {String} error Error message, if any.\n * @param data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.} pathParams A map of path parameters and their values.\n * @param {Object.} queryParams A map of query parameters and their values.\n * @param {Object.} headerParams A map of header parameters and their values.\n * @param {Object.} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.} authNames An array of authentication type names.\n * @param {Array.} contentTypes An array of request MIME types.\n * @param {Array.} accepts An array of acceptable response MIME types.\n * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @param {module:ApiClient~callApiCallback} callback The callback function.\n * @returns {Object} The SuperAgent request object.\n */\n exports.prototype.callApi = function callApi(path, httpMethod, pathParams,\n queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,\n returnType, callback) {\n\n var _this = this;\n var url = this.buildUrl(path, pathParams);\n var request = superagent(httpMethod, url);\n\n // apply authentications\n this.applyAuthToRequest(request, authNames);\n\n // set query parameters\n request.query(this.normalizeParams(queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));\n\n // set request timeout\n request.timeout(this.timeout);\n\n var contentType = this.jsonPreferredMime(contentTypes);\n if (contentType !== 'multipart/form-data') {\n if (contentType) {\n request.type(contentType);\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n }\n\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(this.normalizeParams(formParams));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = this.normalizeParams(formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (this.isFileParam(_formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n\n var accept = this.jsonPreferredMime(accepts);\n if (accept) {\n request.accept(accept);\n }\n\n\n request.end(function(error, response) {\n if (callback) {\n var data = null;\n if (!error) {\n data = _this.deserialize(response, returnType);\n }\n callback(error, data, response);\n }\n });\n\n return request;\n };\n\n /**\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n exports.parseDate = function(str) {\n return new Date(str.replace(/T/i, ' '));\n };\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns An instance of the specified type.\n */\n exports.convertToType = function(data, type) {\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return this.parseDate(String(data));\n default:\n if (type === Object || type === File) {\n // generic object or Blob - return directly\n return data;\n } else if (typeof type === 'function') {\n if (typeof type.constructFromObject !== 'function') {\n // some manually written models might have no factory function\n return data;\n } else {\n // for model type like: User\n return type.constructFromObject(data);\n }\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n return data.map(function(item) {\n return exports.convertToType(item, itemType);\n });\n } else if (typeof type === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = exports.convertToType(k, keyType);\n var value = exports.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n };\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n exports.constructFromObject = function(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i))\n obj[i] = exports.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k))\n obj[k] = exports.convertToType(data[k], itemType);\n }\n }\n };\n\n /**\n * The default API client implementation.\n * @type {module:ApiClient}\n */\n exports.instance = new exports();\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/ApiClient.js\n ** module id = 1\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RestError = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RestError model module.\n * @module model/RestError\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RestError
.\n * Error object with code and message. code is bound to status code, but not always same to standard HTTP status text. For example, some 409 error may have code \\"Invalid Argument\\" instead of \\"Conflic\\". So, Client should read message property to know what happend exactly when an error is returned from server. And, some 500 errors can have system errno instead of useless \\"internal\\". Like other errors, details are hidden in message. \n * @alias module:model/RestError\n * @class\n * @param message {String} \n */\n var exports = function(message) {\n var _this = this;\n\n\n _this['message'] = message;\n };\n\n /**\n * Constructs a RestError
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestError} obj Optional instance to populate.\n * @return {module:model/RestError} The populated RestError
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('code')) {\n obj['code'] = ApiClient.convertToType(data['code'], 'String');\n }\n if (data.hasOwnProperty('message')) {\n obj['message'] = ApiClient.convertToType(data['message'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} code\n */\n exports.prototype['code'] = undefined;\n /**\n * @member {String} message\n */\n exports.prototype['message'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RestError.js\n ** module id = 2\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RestOK = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RestOK model module.\n * @module model/RestOK\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RestOK
.\n * @alias module:model/RestOK\n * @class\n */\n var exports = function() {\n var _this = this;\n\n\n };\n\n /**\n * Constructs a RestOK
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestOK} obj Optional instance to populate.\n * @return {module:model/RestOK} The populated RestOK
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('message')) {\n obj['message'] = ApiClient.convertToType(data['message'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} message\n */\n exports.prototype['message'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RestOK.js\n ** module id = 3\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/DirEntry', 'model/Stats'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('./DirEntry'), require('./Stats'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.DirEntry = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n }\n}(this, function(ApiClient, DirEntry, Stats) {\n 'use strict';\n\n\n\n\n /**\n * The DirEntry model module.\n * @module model/DirEntry\n * @version 0.3.0\n */\n\n /**\n * Constructs a new DirEntry
.\n * a directory entry (file or directory) with children that represents a (sub) tree\n * @alias module:model/DirEntry\n * @class\n * @param name {String} \n * @param stats {module:model/Stats} \n * @param children {Array.} \n */\n var exports = function(name, stats, children) {\n var _this = this;\n\n _this['name'] = name;\n _this['stats'] = stats;\n _this['children'] = children;\n };\n\n /**\n * Constructs a DirEntry
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/DirEntry} obj Optional instance to populate.\n * @return {module:model/DirEntry} The populated DirEntry
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('stats')) {\n obj['stats'] = Stats.constructFromObject(data['stats']);\n }\n if (data.hasOwnProperty('children')) {\n obj['children'] = ApiClient.convertToType(data['children'], [DirEntry]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * @member {module:model/Stats} stats\n */\n exports.prototype['stats'] = undefined;\n /**\n * @member {Array.} children\n */\n exports.prototype['children'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/DirEntry.js\n ** module id = 4\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Stats = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Stats model module.\n * @module model/Stats\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Stats
.\n * simplified/augmented fs.Stats class - see node.js doc for all properties\n * @alias module:model/Stats\n * @class\n * @param type {module:model/Stats.TypeEnum} All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n * @param birthtime {Date} \n * @param mtime {Date} \n * @param mode {String} \n * @param size {Integer} \n * @param nlink {Integer} \n */\n var exports = function(type, birthtime, mtime, mode, size, nlink) {\n var _this = this;\n\n _this['type'] = type;\n _this['birthtime'] = birthtime;\n _this['mtime'] = mtime;\n _this['mode'] = mode;\n _this['size'] = size;\n _this['nlink'] = nlink;\n };\n\n /**\n * Constructs a Stats
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Stats} obj Optional instance to populate.\n * @return {module:model/Stats} The populated Stats
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('type')) {\n obj['type'] = ApiClient.convertToType(data['type'], 'String');\n }\n if (data.hasOwnProperty('birthtime')) {\n obj['birthtime'] = ApiClient.convertToType(data['birthtime'], 'Date');\n }\n if (data.hasOwnProperty('mtime')) {\n obj['mtime'] = ApiClient.convertToType(data['mtime'], 'Date');\n }\n if (data.hasOwnProperty('mode')) {\n obj['mode'] = ApiClient.convertToType(data['mode'], 'String');\n }\n if (data.hasOwnProperty('size')) {\n obj['size'] = ApiClient.convertToType(data['size'], 'Integer');\n }\n if (data.hasOwnProperty('nlink')) {\n obj['nlink'] = ApiClient.convertToType(data['nlink'], 'Integer');\n }\n }\n return obj;\n }\n\n /**\n * All types except 'DUMMY' come from fs.Stats is*** methods results. (e.g. if isFile() is true, then type will be 'FILE') If type is not decidable by the methods, default type is 'FILE', for everything on the file system is basically a file. 'DUMMY' type means that some object 'does not exist for now'. Client may use 'DUMMY' type to mark something dangling, not written or created on real file system yet but visible to user. \n * @member {module:model/Stats.TypeEnum} type\n */\n exports.prototype['type'] = undefined;\n /**\n * @member {Date} birthtime\n */\n exports.prototype['birthtime'] = undefined;\n /**\n * @member {Date} mtime\n */\n exports.prototype['mtime'] = undefined;\n /**\n * @member {String} mode\n */\n exports.prototype['mode'] = undefined;\n /**\n * @member {Integer} size\n */\n exports.prototype['size'] = undefined;\n /**\n * @member {Integer} nlink\n */\n exports.prototype['nlink'] = undefined;\n\n\n /**\n * Allowed values for the type
property.\n * @enum {String}\n * @readonly\n */\n exports.TypeEnum = {\n /**\n * value: \"FILE\"\n * @const\n */\n \"FILE\": \"FILE\",\n /**\n * value: \"DIRECTORY\"\n * @const\n */\n \"DIRECTORY\": \"DIRECTORY\",\n /**\n * value: \"BLOCK_DEVICE\"\n * @const\n */\n \"BLOCK_DEVICE\": \"BLOCK_DEVICE\",\n /**\n * value: \"CHARACTER_DEVICE\"\n * @const\n */\n \"CHARACTER_DEVICE\": \"CHARACTER_DEVICE\",\n /**\n * value: \"LINK\"\n * @const\n */\n \"LINK\": \"LINK\",\n /**\n * value: \"FIFO\"\n * @const\n */\n \"FIFO\": \"FIFO\",\n /**\n * value: \"SOCKET\"\n * @const\n */\n \"SOCKET\": \"SOCKET\",\n /**\n * value: \"DUMMY\"\n * @const\n */\n \"DUMMY\": \"DUMMY\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Stats.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ChildProcess = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The ChildProcess model module.\n * @module model/ChildProcess\n * @version 0.3.0\n */\n\n /**\n * Constructs a new ChildProcess
.\n * a process in execution\n * @alias module:model/ChildProcess\n * @class\n * @param pid {Integer} child process pid\n * @param command {String} the execution command in Execution request\n * @param args {Array.} arguments of the command in Execution request\n * @param executionId {String} execution id from Execution request\n * @param startedAt {Date} the time when this process is spawned\n * @param background {Array.} true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n */\n var exports = function(pid, command, args, executionId, startedAt, background) {\n var _this = this;\n\n _this['pid'] = pid;\n _this['command'] = command;\n _this['args'] = args;\n _this['executionId'] = executionId;\n _this['startedAt'] = startedAt;\n _this['background'] = background;\n };\n\n /**\n * Constructs a ChildProcess
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ChildProcess} obj Optional instance to populate.\n * @return {module:model/ChildProcess} The populated ChildProcess
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('pid')) {\n obj['pid'] = ApiClient.convertToType(data['pid'], 'Integer');\n }\n if (data.hasOwnProperty('command')) {\n obj['command'] = ApiClient.convertToType(data['command'], 'String');\n }\n if (data.hasOwnProperty('args')) {\n obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n }\n if (data.hasOwnProperty('executionId')) {\n obj['executionId'] = ApiClient.convertToType(data['executionId'], 'String');\n }\n if (data.hasOwnProperty('startedAt')) {\n obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date');\n }\n if (data.hasOwnProperty('background')) {\n obj['background'] = ApiClient.convertToType(data['background'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * child process pid\n * @member {Integer} pid\n */\n exports.prototype['pid'] = undefined;\n /**\n * the execution command in Execution request\n * @member {String} command\n */\n exports.prototype['command'] = undefined;\n /**\n * arguments of the command in Execution request\n * @member {Array.} args\n */\n exports.prototype['args'] = undefined;\n /**\n * execution id from Execution request\n * @member {String} executionId\n */\n exports.prototype['executionId'] = undefined;\n /**\n * the time when this process is spawned\n * @member {Date} startedAt\n */\n exports.prototype['startedAt'] = undefined;\n /**\n * true when this process is spawned by asynchronous exec request or some other ways to spawn processes in server. fasle when this process is spawened with plain, synchronous execution request. \n * @member {Array.} background\n */\n exports.prototype['background'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/ChildProcess.js\n ** module id = 7\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Credential = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Credential model module.\n * @module model/Credential\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Credential
.\n * user credential to login. Use https to protect credential.\n * @alias module:model/Credential\n * @class\n * @param loginId {String} \n * @param loginPassword {String} \n */\n var exports = function(loginId, loginPassword) {\n var _this = this;\n\n _this['loginId'] = loginId;\n _this['loginPassword'] = loginPassword;\n\n };\n\n /**\n * Constructs a Credential
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Credential} obj Optional instance to populate.\n * @return {module:model/Credential} The populated Credential
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('loginId')) {\n obj['loginId'] = ApiClient.convertToType(data['loginId'], 'String');\n }\n if (data.hasOwnProperty('loginPassword')) {\n obj['loginPassword'] = ApiClient.convertToType(data['loginPassword'], 'String');\n }\n if (data.hasOwnProperty('masterToken')) {\n obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} loginId\n */\n exports.prototype['loginId'] = undefined;\n /**\n * @member {String} loginPassword\n */\n exports.prototype['loginPassword'] = undefined;\n /**\n * a master token is issued when user wants to access webida api without id/password from remote or local desktop app. When masterToken is set, client should put some bogus id/password, non-empty. (The values can be used to identify client type) \n * @member {String} masterToken\n */\n exports.prototype['masterToken'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Credential.js\n ** module id = 8\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Execution = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Execution model module.\n * @module model/Execution\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Execution
.\n * execution request, simlilar to node.js spawn(). see node.js documentation for details of each properties. some properties are not configurable for portability - encoding : fixed to utf-8 - shell : fixed to system default. Using shell variables in command may not work. - killSignal : fixed to SIGTERM. If process does not die, server can send SIGKILL or invoke taskkill to ensure chlid process is killed. - uid & gid : will not be set for security - stdio : all streams are handled by server. no options are avaliable to client. - shell : always false. - detached : always false \n * @alias module:model/Execution\n * @class\n * @param command {String} command to run. should not contain any arguments, pipes, redirections \n * @param args {Array.} the arguments array\n */\n var exports = function(command, args) {\n var _this = this;\n\n\n _this['command'] = command;\n _this['args'] = args;\n\n\n\n };\n\n /**\n * Constructs a Execution
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Execution} obj Optional instance to populate.\n * @return {module:model/Execution} The populated Execution
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('command')) {\n obj['command'] = ApiClient.convertToType(data['command'], 'String');\n }\n if (data.hasOwnProperty('args')) {\n obj['args'] = ApiClient.convertToType(data['args'], ['String']);\n }\n if (data.hasOwnProperty('cwd')) {\n obj['cwd'] = ApiClient.convertToType(data['cwd'], 'String');\n }\n if (data.hasOwnProperty('input')) {\n obj['input'] = ApiClient.convertToType(data['input'], 'String');\n }\n if (data.hasOwnProperty('timeout')) {\n obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Integer');\n }\n }\n return obj;\n }\n\n /**\n * unique identifier of execution, to demux response stream or cancel request. async exec request should have id, always. For synchronous execution, missing id will be generated by server with random string & timestamp. \n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * command to run. should not contain any arguments, pipes, redirections \n * @member {String} command\n */\n exports.prototype['command'] = undefined;\n /**\n * the arguments array\n * @member {Array.} args\n */\n exports.prototype['args'] = undefined;\n /**\n * Current working directory of spawned process, relative to workspace root. If abscent, cwd will be the workspace root directory. Does not accept any evaluatable form like $HOME, %USERPROFILE%. As wfs operations, path should be unixified. But, unlikely, while the wfs operations cut heading \\\"/\\\" in path with URI normlization, this operation does not convert path to relateive and returns error for the argument. \n * @member {String} cwd\n */\n exports.prototype['cwd'] = undefined;\n /**\n * input string for child process. if falsy, no input will be available to child. (interactive execution via websocket is not supported for most of such processes requires tty, not standard i/o) \n * @member {String} input\n */\n exports.prototype['input'] = undefined;\n /**\n * The value which In \\\"milliseconds\\\" the maximum amount of time the child is allowed to run. (not idle time of stdout / stderr stream) if undefined, server sets default timeout value 5 min to synchronous execution requests. If request specifies async execution and sets this value to falsy, server should not kill the child process until 1) The process exists by self 2) cancel operation is invoked by api request 3) The workspace executing the process is removed by api request 4) Server Stops Terminiating any \\\"too-long-lived\\\" child process are not graceful, as cancel() is. \n * @member {Integer} timeout\n */\n exports.prototype['timeout'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Execution.js\n ** module id = 9\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.ExecutionResult = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The ExecutionResult model module.\n * @module model/ExecutionResult\n * @version 0.3.0\n */\n\n /**\n * Constructs a new ExecutionResult
.\n * execution response\n * @alias module:model/ExecutionResult\n * @class\n * @param exitCode {Integer} exit code of child process.\n * @param stdout {String} standard out of child process.\n * @param stderr {String} standard error of child process.\n */\n var exports = function(exitCode, stdout, stderr) {\n var _this = this;\n\n _this['exitCode'] = exitCode;\n _this['stdout'] = stdout;\n _this['stderr'] = stderr;\n };\n\n /**\n * Constructs a ExecutionResult
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ExecutionResult} obj Optional instance to populate.\n * @return {module:model/ExecutionResult} The populated ExecutionResult
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('exitCode')) {\n obj['exitCode'] = ApiClient.convertToType(data['exitCode'], 'Integer');\n }\n if (data.hasOwnProperty('stdout')) {\n obj['stdout'] = ApiClient.convertToType(data['stdout'], 'String');\n }\n if (data.hasOwnProperty('stderr')) {\n obj['stderr'] = ApiClient.convertToType(data['stderr'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * exit code of child process.\n * @member {Integer} exitCode\n */\n exports.prototype['exitCode'] = undefined;\n /**\n * standard out of child process.\n * @member {String} stdout\n */\n exports.prototype['stdout'] = undefined;\n /**\n * standard error of child process.\n * @member {String} stderr\n */\n exports.prototype['stderr'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/ExecutionResult.js\n ** module id = 10\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RemoteAccess = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The RemoteAccess model module.\n * @module model/RemoteAccess\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RemoteAccess
.\n * Access information of remote workspace in remote server\n * @alias module:model/RemoteAccess\n * @class\n * @param name {String} display text of remote workspace. can be different from original name. \n * @param serverUrl {String} the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n * @param workspaceId {String} the id of remote workspace, read from remote server\n * @param masterToken {String} master token to access service, issued from remote server\n */\n var exports = function(name, serverUrl, workspaceId, masterToken) {\n var _this = this;\n\n _this['name'] = name;\n _this['serverUrl'] = serverUrl;\n _this['workspaceId'] = workspaceId;\n\n _this['masterToken'] = masterToken;\n };\n\n /**\n * Constructs a RemoteAccess
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RemoteAccess} obj Optional instance to populate.\n * @return {module:model/RemoteAccess} The populated RemoteAccess
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('serverUrl')) {\n obj['serverUrl'] = ApiClient.convertToType(data['serverUrl'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n if (data.hasOwnProperty('workspacePath')) {\n obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n }\n if (data.hasOwnProperty('masterToken')) {\n obj['masterToken'] = ApiClient.convertToType(data['masterToken'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * display text of remote workspace. can be different from original name. \n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * the url of remote server. Should have no path/query parameters, even \\\"/\\\" in path. \n * @member {String} serverUrl\n */\n exports.prototype['serverUrl'] = undefined;\n /**\n * the id of remote workspace, read from remote server\n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n /**\n * Full path of remote workspace, read from remote server. this property will be removed when clients are able to work without \\\"named root directory\\\" in workspace fs tree. \n * @member {String} workspacePath\n */\n exports.prototype['workspacePath'] = undefined;\n /**\n * master token to access service, issued from remote server\n * @member {String} masterToken\n */\n exports.prototype['masterToken'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/RemoteAccess.js\n ** module id = 11\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Session = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Session model module.\n * @module model/Session\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Session
.\n * an application session per ide instance. bound to access token\n * @alias module:model/Session\n * @class\n * @param id {String} the id of a session. usually same to socket id.\n * @param name {String} human readable name, usually derived from workspace name.\n * @param state {module:model/Session.StateEnum} state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n * @param clientAddress {String} the peer address of session connection. not always\n * @param connectedAt {Date} the time when socket connection is established\n * @param disconnectedAt {Date} the time when socket is closed.\n */\n var exports = function(id, name, state, clientAddress, connectedAt, disconnectedAt) {\n var _this = this;\n\n _this['id'] = id;\n _this['name'] = name;\n _this['state'] = state;\n\n _this['clientAddress'] = clientAddress;\n _this['connectedAt'] = connectedAt;\n _this['disconnectedAt'] = disconnectedAt;\n\n\n };\n\n /**\n * Constructs a Session
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Session} obj Optional instance to populate.\n * @return {module:model/Session} The populated Session
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('state')) {\n obj['state'] = ApiClient.convertToType(data['state'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n if (data.hasOwnProperty('clientAddress')) {\n obj['clientAddress'] = ApiClient.convertToType(data['clientAddress'], 'String');\n }\n if (data.hasOwnProperty('connectedAt')) {\n obj['connectedAt'] = ApiClient.convertToType(data['connectedAt'], 'Date');\n }\n if (data.hasOwnProperty('disconnectedAt')) {\n obj['disconnectedAt'] = ApiClient.convertToType(data['disconnectedAt'], 'Date');\n }\n if (data.hasOwnProperty('willCloseAt')) {\n obj['willCloseAt'] = ApiClient.convertToType(data['willCloseAt'], 'Date');\n }\n if (data.hasOwnProperty('willLoseAt')) {\n obj['willLoseAt'] = ApiClient.convertToType(data['willLoseAt'], 'Date');\n }\n }\n return obj;\n }\n\n /**\n * the id of a session. usually same to socket id.\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * human readable name, usually derived from workspace name.\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * state of this session NORMAL = connected, normally working LOSING = disconnected, waiting reconnection. still accessible with api CLOSING = socket connection will close connection by server (clinet will be notified) there\\\"s no \\\"CLOSED\\\" / \\\"LOST\\\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout. \n * @member {module:model/Session.StateEnum} state\n */\n exports.prototype['state'] = undefined;\n /**\n * the id of workspace that this sessions is working on. If falsy, then this session is not belonged to any workpsace. Usually, dashboard / monitoring app will create a session without workspace id. \n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n /**\n * the peer address of session connection. not always\n * @member {String} clientAddress\n */\n exports.prototype['clientAddress'] = undefined;\n /**\n * the time when socket connection is established\n * @member {Date} connectedAt\n */\n exports.prototype['connectedAt'] = undefined;\n /**\n * the time when socket is closed.\n * @member {Date} disconnectedAt\n */\n exports.prototype['disconnectedAt'] = undefined;\n /**\n * when state becomes CLOSING, actual closing time will be updated by server.\n * @member {Date} willCloseAt\n */\n exports.prototype['willCloseAt'] = undefined;\n /**\n * when state becomes LOSING, server will not wait for reconnection after this time.\n * @member {Date} willLoseAt\n */\n exports.prototype['willLoseAt'] = undefined;\n\n\n /**\n * Allowed values for the state
property.\n * @enum {String}\n * @readonly\n */\n exports.StateEnum = {\n /**\n * value: \"NORMAL\"\n * @const\n */\n \"NORMAL\": \"NORMAL\",\n /**\n * value: \"LOSING\"\n * @const\n */\n \"LOSING\": \"LOSING\",\n /**\n * value: \"CLOSING\"\n * @const\n */\n \"CLOSING\": \"CLOSING\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Session.js\n ** module id = 12\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Token = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Token model module.\n * @module model/Token\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Token
.\n * a json webtoken and accessible data\n * @alias module:model/Token\n * @class\n * @param text {String} actual token text that should be shipped in header or query\n * @param tokenType {module:model/Token.TokenTypeEnum} MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n * @param expiresAt {Date} \n * @param issuedAt {Date} \n */\n var exports = function(text, tokenType, expiresAt, issuedAt) {\n var _this = this;\n\n _this['text'] = text;\n _this['tokenType'] = tokenType;\n _this['expiresAt'] = expiresAt;\n _this['issuedAt'] = issuedAt;\n\n\n };\n\n /**\n * Constructs a Token
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Token} obj Optional instance to populate.\n * @return {module:model/Token} The populated Token
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('text')) {\n obj['text'] = ApiClient.convertToType(data['text'], 'String');\n }\n if (data.hasOwnProperty('tokenType')) {\n obj['tokenType'] = ApiClient.convertToType(data['tokenType'], 'String');\n }\n if (data.hasOwnProperty('expiresAt')) {\n obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'Date');\n }\n if (data.hasOwnProperty('issuedAt')) {\n obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'Date');\n }\n if (data.hasOwnProperty('sessionId')) {\n obj['sessionId'] = ApiClient.convertToType(data['sessionId'], 'String');\n }\n if (data.hasOwnProperty('workspaceId')) {\n obj['workspaceId'] = ApiClient.convertToType(data['workspaceId'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * actual token text that should be shipped in header or query\n * @member {String} text\n */\n exports.prototype['text'] = undefined;\n /**\n * MASTER : used to create an access token from clients, without login credential ACCESS : protects api access. should be unique for each ide session Note that here\\\"s no REFRESH token, nor LOGIN token. The login api will create unrestricted access token & master token pair. Desktop app has a side-way to create an unrestricted master token before starting IDE instances. \n * @member {module:model/Token.TokenTypeEnum} tokenType\n */\n exports.prototype['tokenType'] = undefined;\n /**\n * @member {Date} expiresAt\n */\n exports.prototype['expiresAt'] = undefined;\n /**\n * @member {Date} issuedAt\n */\n exports.prototype['issuedAt'] = undefined;\n /**\n * mandatory for ACCESS token, identifying client instance\n * @member {String} sessionId\n */\n exports.prototype['sessionId'] = undefined;\n /**\n * If truthy, access rights are restricted to specified workspace only.\n * @member {String} workspaceId\n */\n exports.prototype['workspaceId'] = undefined;\n\n\n /**\n * Allowed values for the tokenType
property.\n * @enum {String}\n * @readonly\n */\n exports.TokenTypeEnum = {\n /**\n * value: \"MASTER\"\n * @const\n */\n \"MASTER\": \"MASTER\",\n /**\n * value: \"ACCESS\"\n * @const\n */\n \"ACCESS\": \"ACCESS\" };\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Token.js\n ** module id = 13\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.User = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The User model module.\n * @module model/User\n * @version 0.3.0\n */\n\n /**\n * Constructs a new User
.\n * Any services/products should define some admin apis to manage users in the system and expose what should be exposed to client app. So, no properties are mandatory. Currently, the properties are defined for compatiblity with legacy clients. \n * @alias module:model/User\n * @class\n */\n var exports = function() {\n var _this = this;\n\n\n\n\n };\n\n /**\n * Constructs a User
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/User} obj Optional instance to populate.\n * @return {module:model/User} The populated User
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('email')) {\n obj['email'] = ApiClient.convertToType(data['email'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * unique id per user (email is also unique)\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * @member {String} email\n */\n exports.prototype['email'] = undefined;\n /**\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/User.js\n ** module id = 14\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Workspace = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Workspace model module.\n * @module model/Workspace\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Workspace
.\n * A workspace in server\n * @alias module:model/Workspace\n * @class\n * @param id {String} the id of a workspace. usually same to file system id\n * @param name {String} display text of this workspace for UI\n * @param description {String} human readable description on this workspace\n * @param createdAt {Date} the time when this workspace is created (registered from local file system)\n * @param workspacePath {String} absolute path of this workspace in server.\n * @param excludedPaths {Array.} glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n * @param offlineCachePaths {Array.} any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n */\n var exports = function(id, name, description, createdAt, workspacePath, excludedPaths, offlineCachePaths) {\n var _this = this;\n\n _this['id'] = id;\n _this['name'] = name;\n _this['description'] = description;\n _this['createdAt'] = createdAt;\n\n _this['workspacePath'] = workspacePath;\n _this['excludedPaths'] = excludedPaths;\n _this['offlineCachePaths'] = offlineCachePaths;\n };\n\n /**\n * Constructs a Workspace
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Workspace} obj Optional instance to populate.\n * @return {module:model/Workspace} The populated Workspace
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('description')) {\n obj['description'] = ApiClient.convertToType(data['description'], 'String');\n }\n if (data.hasOwnProperty('createdAt')) {\n obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');\n }\n if (data.hasOwnProperty('accessedAt')) {\n obj['accessedAt'] = ApiClient.convertToType(data['accessedAt'], 'Date');\n }\n if (data.hasOwnProperty('workspacePath')) {\n obj['workspacePath'] = ApiClient.convertToType(data['workspacePath'], 'String');\n }\n if (data.hasOwnProperty('excludedPaths')) {\n obj['excludedPaths'] = ApiClient.convertToType(data['excludedPaths'], ['String']);\n }\n if (data.hasOwnProperty('offlineCachePaths')) {\n obj['offlineCachePaths'] = ApiClient.convertToType(data['offlineCachePaths'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * the id of a workspace. usually same to file system id\n * @member {String} id\n */\n exports.prototype['id'] = undefined;\n /**\n * display text of this workspace for UI\n * @member {String} name\n */\n exports.prototype['name'] = undefined;\n /**\n * human readable description on this workspace\n * @member {String} description\n */\n exports.prototype['description'] = undefined;\n /**\n * the time when this workspace is created (registered from local file system)\n * @member {Date} createdAt\n */\n exports.prototype['createdAt'] = undefined;\n /**\n * the time when the last session on this workspace was made. (optional)\n * @member {Date} accessedAt\n */\n exports.prototype['accessedAt'] = undefined;\n /**\n * absolute path of this workspace in server.\n * @member {String} workspacePath\n */\n exports.prototype['workspacePath'] = undefined;\n /**\n * glob patterns (Not regular expression!) or directory paths (Not a file path!) to be excluded for watch service and search & replace operation. If a value has no '*' char, it will be treated as directory path. Like most of operation parameters, paths (and patterns not prefixed with '*') should have relative, unixified form. If not, server should reject or discard the absolute values. If a directory is specified to be excluded, watch service may deliver unlinkDir/addDir events of the dir, but should not deliver any events from its sub-dirs and files. Search and replace operation should ignore any files under the directory. If path denotes a file, server may reject or discard the path. Server should support basic glob pattern, '**' and '*' in the glob pattern but not ! '!' prefix is optional. Client should not register any other extended glob features that server does not support. \n * @member {Array.} excludedPaths\n */\n exports.prototype['excludedPaths'] = undefined;\n /**\n * any paths (including excluded paths) to be cached in remote clients. Browser client should respect offline cache paths always. Desktop-app client may not use off-line cache for local (embedded) server but shall use cache for any remote servers, even for same host. All caches should be partitioned with workspace id, globally unique value through time and space. Client should pre-fetch the contents of offline cache paths when it start IDE sessions on a workspace to use for off-line state. When client goes to off-line, after losing connection to server, it can use cached data as reply of some WFS operations and can write some data to cache to save workspace data & metadata. The changes should be persistent on client side safely. C When a client recovers connectivity to server, it should check the stats of files and dirs to upload if it has got some changes in offline state. If server has more recents contents, client should drop chagnes and refill the cache with fresher data. Client may have some 'time-tolerance' to accept server's data is fresher than client's, smaller than serveral seconds. If server has more recent contents, client should drop the changes and refill the cache with fresher data. If not, client should replay the changes 1 by 1. Same protocol should be applied when client application starts with some 'unuploaded change' evertime. That means, client should save 'change history' with 'changed data' too, to process it later, when starting app again in normal condition. All Clients should not replay any 'delete' operations while replaying changes on client's cache, to protect from more serious problems with skewed timer or unexpected behaviors. And, of course, client should not rely on cached data while connection state is healthy. \n * @member {Array.} offlineCachePaths\n */\n exports.prototype['offlineCachePaths'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Workspace.js\n ** module id = 15\n ** module chunks = 0\n **/","(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= 200 && res.status < 300) {\n return self.callback(err, res);\n }\n\n var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n\n self.callback(new_err, res);\n } catch(e) {\n self.callback(e); // #985 touching res may cause INVALID_STATE_ERR on old Android\n }\n });\n}\n\n/**\n * Mixin `Emitter` and `requestBase`.\n */\n\nEmitter(Request.prototype);\nfor (var key in requestBase) {\n Request.prototype[key] = requestBase[key];\n}\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set responseType to `val`. Presently valid responseTypes are 'blob' and\n * 'arraybuffer'.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.responseType = function(val){\n this._responseType = val;\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} pass\n * @param {Object} options with 'type' property 'auto' or 'basic' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass, options){\n if (!options) {\n options = {\n type: 'basic'\n }\n }\n\n switch (options.type) {\n case 'basic':\n var str = btoa(user + ':' + pass);\n this.set('Authorization', 'Basic ' + str);\n break;\n\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n }\n return this;\n};\n\n/**\n* Add query-string `val`.\n*\n* Examples:\n*\n* request.get('/shoes')\n* .query('size=10')\n* .query({ color: 'blue' })\n*\n* @param {Object|String} val\n* @return {Request} for chaining\n* @api public\n*/\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `filename`.\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String} filename\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, filename){\n this._getFormData().append(field, file, filename || file.name);\n return this;\n};\n\nRequest.prototype._getFormData = function(){\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n var fn = this._callback;\n this.clearTimeout();\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n\n this.callback(err);\n};\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequest.prototype._timeoutError = function(){\n var timeout = this._timeout;\n var err = new Error('timeout of ' + timeout + 'ms exceeded');\n err.timeout = timeout;\n this.callback(err);\n};\n\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\n\nRequest.prototype._appendQueryString = function(){\n var query = this._query.join('&');\n if (query) {\n this.url += ~this.url.indexOf('?')\n ? '&' + query\n : '?' + query;\n }\n};\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n var self = this;\n var xhr = this.xhr = request.getXHR();\n var timeout = this._timeout;\n var data = this._formData || this._data;\n\n // store callback\n this._callback = fn || noop;\n\n // state change\n xhr.onreadystatechange = function(){\n if (4 != xhr.readyState) return;\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (0 == status) {\n if (self.timedout) return self._timeoutError();\n if (self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(e){\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n e.direction = 'download';\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n xhr.onprogress = handleProgress;\n }\n try {\n if (xhr.upload && this.hasListeners('progress')) {\n xhr.upload.onprogress = handleProgress;\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n\n // timeout\n if (timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self.timedout = true;\n self.abort();\n }, timeout);\n }\n\n // querystring\n this._appendQueryString();\n\n // initiate request\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n if (this._responseType) {\n xhr.responseType = this._responseType;\n }\n\n // send stuff\n this.emit('request', this);\n\n // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n xhr.send(typeof data !== 'undefined' ? data : null);\n return this;\n};\n\n\n/**\n * Expose `Request`.\n */\n\nrequest.Request = Request;\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn){\n var req = request('GET', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn){\n var req = request('HEAD', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.options = function(url, data, fn){\n var req = request('OPTIONS', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nfunction del(url, fn){\n var req = request('DELETE', url);\n if (fn) req.end(fn);\n return req;\n};\n\nrequest['del'] = del;\nrequest['delete'] = del;\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn){\n var req = request('PATCH', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn){\n var req = request('POST', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn){\n var req = request('PUT', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n},{\"./is-object\":1,\"./request\":3,\"./request-base\":2,\"emitter\":4,\"reduce\":5}]},{},[6])(6)\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/superagent/superagent.js\n ** module id = 16\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/User', 'model/RestError', 'model/Token', 'model/Credential'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/User'), require('../model/RestError'), require('../model/Token'), require('../model/Credential'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.AuthApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.User, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Token, root.WebidaRestfulApi.Credential);\n }\n}(this, function(ApiClient, User, RestError, Token, Credential) {\n 'use strict';\n\n /**\n * Auth service.\n * @module api/AuthApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new AuthApi. \n * @alias module:api/AuthApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the getInfo operation.\n * @callback module:api/AuthApi~getInfoCallback\n * @param {String} error Error message, if any.\n * @param {module:model/User} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Gets user information of that can be identified with current access token. Implementations should provide a more restful api based on domain data model, not extending this operation. (e.g. GET,PUT and DELETE on /Users/{userId} to read, update and delete user) \n * @param {module:api/AuthApi~getInfoCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/User}\n */\n this.getInfo = function(callback) {\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = User;\n\n return this.apiClient.callApi(\n '/auth/info', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the issueToken operation.\n * @callback module:api/AuthApi~issueTokenCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Token} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is (and should not be) parameterizable. Server should set proper duration, respecting \\"reconnect\\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server. Like login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do. \n * @param {module:model/String} type \n * @param {Object} opts Optional parameters\n * @param {String} opts.workspaceId recommended to issue a MASTER type token to restrict remote access\n * @param {module:api/AuthApi~issueTokenCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Token}\n */\n this.issueToken = function(type, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'type' is set\n if (type == undefined || type == null) {\n throw \"Missing the required parameter 'type' when calling issueToken\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'type': type,\n 'workspaceId': opts['workspaceId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Token;\n\n return this.apiClient.callApi(\n '/auth/token', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the login operation.\n * @callback module:api/AuthApi~loginCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Token} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * A \\"VERY\\" basic authentication, required to use webida-simple-auth security scheme. Service / Product implementations who need better security, should override this operation or add their own login api or some other specs like OAuth2. Simple auth is not suitable for large-sacle, multi-tennant service, for the scheme assumes a single, trusted user only. Logging-in with master token, the generated access token inherits all restriction from it. On the other hand, normal log-in with login id & password creates an unrestricted access token, with reasonably short expiration time. Every client should spawn another access token with issueToken API before current access token expires, inheriting session id from current token. To save remote access info, client should create a (restricted but long-ttl) master token to start IDE from remote. The remote client should not use the unrestricted acccess token from login to use any other perpose than finding available workspaces, and should not refresh the token. (Let user log-in again) Login API does not force any encryption. Server should provide secure transport channel, usually https, to provide remote access, always. \n * @param {module:model/Credential} body \n * @param {module:api/AuthApi~loginCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Token}\n */\n this.login = function(body, callback) {\n var postBody = body;\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling login\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Token;\n\n return this.apiClient.callApi(\n '/auth/login', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/AuthApi.js\n ** module id = 17\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.OpsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError);\n }\n}(this, function(ApiClient, RestOK, RestError) {\n 'use strict';\n\n /**\n * Ops service.\n * @module api/OpsApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new OpsApi. \n * @alias module:api/OpsApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the replace operation.\n * @callback module:api/OpsApi~replaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * replace file contents with regex matching\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {Array.} wfsPathList array of wfsPath, with heading / (collection format may be changed by implementation)\n * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n * @param {String} replaceTo string to replace with\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n * @param {module:api/OpsApi~replaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.replace = function(wfsId, wfsPathList, pattern, replaceTo, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling replace\";\n }\n\n // verify the required parameter 'wfsPathList' is set\n if (wfsPathList == undefined || wfsPathList == null) {\n throw \"Missing the required parameter 'wfsPathList' when calling replace\";\n }\n\n // verify the required parameter 'pattern' is set\n if (pattern == undefined || pattern == null) {\n throw \"Missing the required parameter 'pattern' when calling replace\";\n }\n\n // verify the required parameter 'replaceTo' is set\n if (replaceTo == undefined || replaceTo == null) {\n throw \"Missing the required parameter 'replaceTo' when calling replace\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId\n };\n var queryParams = {\n 'wfsPathList': this.apiClient.buildCollectionParam(wfsPathList, 'multi'),\n 'pattern': pattern,\n 'replaceTo': replaceTo,\n 'ignoreCase': opts['ignoreCase']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/ops/replace', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the search operation.\n * @callback module:api/OpsApi~searchCallback\n * @param {String} error Error message, if any.\n * @param {Object.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * search files in some path, with given pattern\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} pattern regex pattern to match in search or replace. In replace operation, pattern should be same to the parttern in search operation \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreCase regex matching option to ignore case. In replace operation, this option should be same to one used in search operation (default to false)\n * @param {module:api/OpsApi~searchCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Object.}\n */\n this.search = function(wfsId, wfsPath, pattern, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling search\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling search\";\n }\n\n // verify the required parameter 'pattern' is set\n if (pattern == undefined || pattern == null) {\n throw \"Missing the required parameter 'pattern' when calling search\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'pattern': pattern,\n 'ignoreCase': opts['ignoreCase']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = {'String': [Match]};\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/ops/search/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/OpsApi.js\n ** module id = 18\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestError', 'model/RemoteAccess', 'model/RestOK'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestError'), require('../model/RemoteAccess'), require('../model/RestOK'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.RemotesApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.RemoteAccess, root.WebidaRestfulApi.RestOK);\n }\n}(this, function(ApiClient, RestError, RemoteAccess, RestOK) {\n 'use strict';\n\n /**\n * Remotes service.\n * @module api/RemotesApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new RemotesApi. \n * @alias module:api/RemotesApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the findRemoteAccesses operation.\n * @callback module:api/RemotesApi~findRemoteAccessesCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Get all access informations See RemoteWorkspaceAccess definition for details (no fancy find / search feature yet) \n * @param {module:api/RemotesApi~findRemoteAccessesCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findRemoteAccesses = function(callback) {\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [RemoteAccess];\n\n return this.apiClient.callApi(\n '/remotes', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the putRemoteAccess operation.\n * @callback module:api/RemotesApi~putRemoteAccessCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * create or update a remote workspace access information\n * @param {module:model/RemoteAccess} body \n * @param {module:api/RemotesApi~putRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.putRemoteAccess = function(body, callback) {\n var postBody = body;\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling putRemoteAccess\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/remotes', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeRemoteAccess operation.\n * @callback module:api/RemotesApi~removeRemoteAccessCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RemoteAccess} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete a remote workspace\n * @param {String} workspaceId workspace Id of remote workspace\n * @param {module:api/RemotesApi~removeRemoteAccessCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RemoteAccess}\n */\n this.removeRemoteAccess = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeRemoteAccess\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'workspaceId': workspaceId\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RemoteAccess;\n\n return this.apiClient.callApi(\n '/remotes', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/RemotesApi.js\n ** module id = 19\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/Session'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Session'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.SessionApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Session);\n }\n}(this, function(ApiClient, RestOK, RestError, Session) {\n 'use strict';\n\n /**\n * Session service.\n * @module api/SessionApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new SessionApi. \n * @alias module:api/SessionApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the closeSession operation.\n * @callback module:api/SessionApi~closeSessionCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * close session with timeout\n * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n * @param {Integer} closeAfter waiting time before actual closing, to let client save files and prevent reconnect \n * @param {module:api/SessionApi~closeSessionCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.closeSession = function(sessionId, closeAfter, callback) {\n var postBody = null;\n\n // verify the required parameter 'sessionId' is set\n if (sessionId == undefined || sessionId == null) {\n throw \"Missing the required parameter 'sessionId' when calling closeSession\";\n }\n\n // verify the required parameter 'closeAfter' is set\n if (closeAfter == undefined || closeAfter == null) {\n throw \"Missing the required parameter 'closeAfter' when calling closeSession\";\n }\n\n\n var pathParams = {\n 'sessionId': sessionId\n };\n var queryParams = {\n 'closeAfter': closeAfter\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/sessions/{sessionId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the findSessions operation.\n * @callback module:api/SessionApi~findSessionsCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get all / some webida sessions established to server\n * @param {Object} opts Optional parameters\n * @param {String} opts.workspaceId find only sessions working on some given workspace\n * @param {module:api/SessionApi~findSessionsCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findSessions = function(opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n 'workspaceId': opts['workspaceId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [Session];\n\n return this.apiClient.callApi(\n '/sessions', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getSession operation.\n * @callback module:api/SessionApi~getSessionCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Session} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get a session object by id\n * @param {String} sessionId webida session id (usually different from socket id from sock.io)\n * @param {module:api/SessionApi~getSessionCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Session}\n */\n this.getSession = function(sessionId, callback) {\n var postBody = null;\n\n // verify the required parameter 'sessionId' is set\n if (sessionId == undefined || sessionId == null) {\n throw \"Missing the required parameter 'sessionId' when calling getSession\";\n }\n\n\n var pathParams = {\n 'sessionId': sessionId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Session;\n\n return this.apiClient.callApi(\n '/sessions/{sessionId}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/SessionApi.js\n ** module id = 20\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/DirEntry', 'model/Stats'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/DirEntry'), require('../model/Stats'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.WfsApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.DirEntry, root.WebidaRestfulApi.Stats);\n }\n}(this, function(ApiClient, RestOK, RestError, DirEntry, Stats) {\n 'use strict';\n\n /**\n * Wfs service.\n * @module api/WfsApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new WfsApi. \n * @alias module:api/WfsApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the copy operation.\n * @callback module:api/WfsApi~copyCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact path of the resource to be created. So, copying a file to directory always returns error and vice versa. this operation creates the parents dir of destination path always, and does not roll-back the creation when operation failed. So, clients should roll-back if needed. When destination path exists already, 1) copying file to file : follows noOverwrite flag. (does not return error) 2) copying file to dir : returns 409 error 3) copying dir to file : returns 409 error 4) copying dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)\n * @param {Boolean} opts.followSymbolicLinks dereference symlinks in source. (default to false)\n * @param {Boolean} opts.preserveTimestamps keep mtime/atime of source file(s) in destination. (default to false)\n * @param {module:api/WfsApi~copyCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.copy = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling copy\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling copy\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling copy\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'noOverwrite': opts['noOverwrite'],\n 'followSymbolicLinks': opts['followSymbolicLinks'],\n 'preserveTimestamps': opts['preserveTimestamps']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the createDir operation.\n * @callback module:api/WfsApi~createDirCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * create a directory at the path. returns error when wfsPath exists and not empty this API always creates parent directories if needed. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {module:api/WfsApi~createDirCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.createDir = function(wfsId, wfsPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling createDir\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling createDir\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/dir/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the dirTree operation.\n * @callback module:api/WfsApi~dirTreeCallback\n * @param {String} error Error message, if any.\n * @param {module:model/DirEntry} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * returns a directory tree of given path, for listing dir and managing file system errors while building sub-tree will be ignored and will not be included in result. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Integer} maxDepth Maximum depth of tree. -1 to build a full tree, 0 to stat, 1 to plain list.\n * @param {module:api/WfsApi~dirTreeCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/DirEntry}\n */\n this.dirTree = function(wfsId, wfsPath, maxDepth, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling dirTree\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling dirTree\";\n }\n\n // verify the required parameter 'maxDepth' is set\n if (maxDepth == undefined || maxDepth == null) {\n throw \"Missing the required parameter 'maxDepth' when calling dirTree\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'maxDepth': maxDepth\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = DirEntry;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/dir/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the move operation.\n * @callback module:api/WfsApi~moveCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact path of the resource to be created. So, moving a file to existing directory always returns error and vice versa. (So, This API works like 'rename' rather than 'mv' command) Like copy(), this operation creates parent path of destination, and does not roll-back when operation failes. When destination path exists already, 1) moving file to file : follows noOverwrite flag. 2) moving file to dir : returns 409 error 3) moving dir to file : returns 409 error 4) moving dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)\n * @param {module:api/WfsApi~moveCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.move = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling move\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling move\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling move\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'noOverwrite': opts['noOverwrite']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the readFile operation.\n * @callback module:api/WfsApi~readFileCallback\n * @param {String} error Error message, if any.\n * @param {File} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * read file data on path\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {module:api/WfsApi~readFileCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {File}\n */\n this.readFile = function(wfsId, wfsPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling readFile\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling readFile\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = File;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the remove operation.\n * @callback module:api/WfsApi~removeCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete file or directory\n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.unrecursive if set, deleting non-empty directory will return error. (default to false)\n * @param {module:api/WfsApi~removeCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.remove = function(wfsId, wfsPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling remove\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling remove\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'unrecursive': opts['unrecursive']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the rename operation.\n * @callback module:api/WfsApi~renameCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Renames a file or directory to wfsPath. Unlike POSIX rename() call semantics, this operation does not overwrite anything. Renaming to any 'existing' source will return error except only 1 case, with emulateMove option. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {String} srcPath source data path of some operations, with have heading /\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n * @param {Boolean} opts.emulateMove When rename file to existing dir, move file to the dir instead of returning error. This option is provided for legacy, dummy clients only to emulate legacy server's move behaviour. Newly written client app should not use this option & use move() operation to have clear behaviour. \n * @param {module:api/WfsApi~renameCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.rename = function(wfsId, wfsPath, srcPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling rename\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling rename\";\n }\n\n // verify the required parameter 'srcPath' is set\n if (srcPath == undefined || srcPath == null) {\n throw \"Missing the required parameter 'srcPath' when calling rename\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'srcPath': srcPath,\n 'ensureParents': opts['ensureParents'],\n 'emulateMove': opts['emulateMove']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the stat operation.\n * @callback module:api/WfsApi~statCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Stats} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Get stats of given path. (stat() returns \\"stats\\" object in node and POSIX system) Since we've no ctime/atime in Stats class, some file system changing events will send 'exactly same' stats object. This API should be called only when stats of some file system path is stale for unknown reason (e.g. losting change events). Use dirTree operation and session events to detect stats, if possible. This API can be used to check a path is valid, existing one, but it's not recommended to check existence of individual paths by API. Clients should use dirTree and session events to synchorize some in-app file system with webida file system. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ignoreError flag to ignore stat errors to check existence only. If this flag is true, server will returns 'DUMMY' type stats object instead of 404 error when given path does not exists. (invalid wfsId will produce 400 error, not 404) (default to false)\n * @param {module:api/WfsApi~statCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Stats}\n */\n this.stat = function(wfsId, wfsPath, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling stat\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling stat\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'ignoreError': opts['ignoreError']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Stats;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/any/{wfsPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the writeFile operation.\n * @callback module:api/WfsApi~writeFileCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates / updates file with body data. Server should write the file in 'atomic' manner, and should not write down request body into final destination path directly. In other words, wheather writeFile() succeeds or not, the contents of the file should not be corrupted nor half-written. \n * @param {String} wfsId webida file system id (same to workspace id) to access.\n * @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments \n * @param {File} data file contents to write.\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.ensureParents A flag to create all parent directories to create file or dir, like mkdir -p. This parameter does not create entire path, but creates to 'parent directory' of the path. (default to false)\n * @param {module:api/WfsApi~writeFileCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.writeFile = function(wfsId, wfsPath, data, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'wfsId' is set\n if (wfsId == undefined || wfsId == null) {\n throw \"Missing the required parameter 'wfsId' when calling writeFile\";\n }\n\n // verify the required parameter 'wfsPath' is set\n if (wfsPath == undefined || wfsPath == null) {\n throw \"Missing the required parameter 'wfsPath' when calling writeFile\";\n }\n\n // verify the required parameter 'data' is set\n if (data == undefined || data == null) {\n throw \"Missing the required parameter 'data' when calling writeFile\";\n }\n\n\n var pathParams = {\n 'wfsId': wfsId,\n 'wfsPath': wfsPath\n };\n var queryParams = {\n 'ensureParents': opts['ensureParents']\n };\n var headerParams = {\n };\n var formParams = {\n 'data': data\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['multipart/form-data'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/wfs/{wfsId}/file/{wfsPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/WfsApi.js\n ** module id = 21\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient', 'model/RestOK', 'model/RestError', 'model/Workspace', 'model/ChildProcess', 'model/Execution', 'model/ExecutionResult'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'), require('../model/RestOK'), require('../model/RestError'), require('../model/Workspace'), require('../model/ChildProcess'), require('../model/Execution'), require('../model/ExecutionResult'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.WorkspaceApi = factory(root.WebidaRestfulApi.ApiClient, root.WebidaRestfulApi.RestOK, root.WebidaRestfulApi.RestError, root.WebidaRestfulApi.Workspace, root.WebidaRestfulApi.ChildProcess, root.WebidaRestfulApi.Execution, root.WebidaRestfulApi.ExecutionResult);\n }\n}(this, function(ApiClient, RestOK, RestError, Workspace, ChildProcess, Execution, ExecutionResult) {\n 'use strict';\n\n /**\n * Workspace service.\n * @module api/WorkspaceApi\n * @version 0.3.0\n */\n\n /**\n * Constructs a new WorkspaceApi. \n * @alias module:api/WorkspaceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n var exports = function(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n\n\n /**\n * Callback function to receive the result of the cancel operation.\n * @callback module:api/WorkspaceApi~cancelCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * cancels an execution, if possible. Killing process may not be graceful.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {String} opts.execId the id of execution (different from pid!)\n * @param {module:api/WorkspaceApi~cancelCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.cancel = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling cancel\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'execId': opts['execId']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the createWorkspace operation.\n * @callback module:api/WorkspaceApi~createWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Creates a new workspace with given local path. Requires an unrestricted access token. \n * @param {String} localPath a real, local path of the system (not unixified)\n * @param {String} name workspace name property\n * @param {String} description workspace name property\n * @param {module:api/WorkspaceApi~createWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.createWorkspace = function(localPath, name, description, callback) {\n var postBody = null;\n\n // verify the required parameter 'localPath' is set\n if (localPath == undefined || localPath == null) {\n throw \"Missing the required parameter 'localPath' when calling createWorkspace\";\n }\n\n // verify the required parameter 'name' is set\n if (name == undefined || name == null) {\n throw \"Missing the required parameter 'name' when calling createWorkspace\";\n }\n\n // verify the required parameter 'description' is set\n if (description == undefined || description == null) {\n throw \"Missing the required parameter 'description' when calling createWorkspace\";\n }\n\n\n var pathParams = {\n };\n var queryParams = {\n 'localPath': localPath,\n 'name': name,\n 'description': description\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the exec operation.\n * @callback module:api/WorkspaceApi~execCallback\n * @param {String} error Error message, if any.\n * @param {module:model/ExecutionResult} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * execute a shell command on this workspace\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:model/Execution} body \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.async Spawn a child process for given command and returns a child process info only. , Actual output (stream of message) will be delivered to web socket channel, with room id /sessions/asyn-{Execution#id} (default to false)\n * @param {module:api/WorkspaceApi~execCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/ExecutionResult}\n */\n this.exec = function(workspaceId, body, opts, callback) {\n opts = opts || {};\n var postBody = body;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling exec\";\n }\n\n // verify the required parameter 'body' is set\n if (body == undefined || body == null) {\n throw \"Missing the required parameter 'body' when calling exec\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'async': opts['async']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = ExecutionResult;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the findWorkspaces operation.\n * @callback module:api/WorkspaceApi~findWorkspacesCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Finds workspaces (no find/search parameters yet). Requires an unrestricted access token. \n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.disposable include disposable workspaces or not (default to false)\n * @param {module:api/WorkspaceApi~findWorkspacesCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.findWorkspaces = function(opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n\n var pathParams = {\n };\n var queryParams = {\n 'disposable': opts['disposable']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [Workspace];\n\n return this.apiClient.callApi(\n '/workspaces', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getChildProcs operation.\n * @callback module:api/WorkspaceApi~getChildProcsCallback\n * @param {String} error Error message, if any.\n * @param {Array.} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get all spawned process info, created by exec api, on given workspace. set workspace id to \\"*\\" to all processes info. This operation requires proper access rights (unrestricted or matching workspace id in access token with parameter) \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.includeExec include processes created by synchronous exec request (default to false)\n * @param {module:api/WorkspaceApi~getChildProcsCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {Array.}\n */\n this.getChildProcs = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling getChildProcs\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'includeExec': opts['includeExec']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = [ChildProcess];\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/exec', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the getWorkspace operation.\n * @callback module:api/WorkspaceApi~getWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * get a workspace object by id\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:api/WorkspaceApi~getWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.getWorkspace = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling getWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the readMetadata operation.\n * @callback module:api/WorkspaceApi~readMetadataCallback\n * @param {String} error Error message, if any.\n * @param {File} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * read a metadata file from a workspace.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {module:api/WorkspaceApi~readMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {File}\n */\n this.readMetadata = function(workspaceId, objectPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling readMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling readMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = [];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = File;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeMetadata operation.\n * @callback module:api/WorkspaceApi~removeMetadataCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * delete metadata of given path\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {module:api/WorkspaceApi~removeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.removeMetadata = function(workspaceId, objectPath, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling removeMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the removeWorkspace operation.\n * @callback module:api/WorkspaceApi~removeWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * This operation will remove the requested workspace when 1) all sessions are closed for request (will be notified by server) 2) excedded time limit value in closeAfter parameter 3) server goes down after accepting remove request \\"willBeRemovedAt\\" property can be set \\"only\\" by this api. This API requires \\"unrestricted\\" access token. Even an access token has matching workspace id, removing an workspace is rejected. \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {Object} opts Optional parameters\n * @param {Integer} opts.closeAfter Time in seconds to wait for all sessions save & close their data. (default to 0)\n * @param {module:api/WorkspaceApi~removeWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.removeWorkspace = function(workspaceId, opts, callback) {\n opts = opts || {};\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling removeWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n 'closeAfter': opts['closeAfter']\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the updateWorkspace operation.\n * @callback module:api/WorkspaceApi~updateWorkspaceCallback\n * @param {String} error Error message, if any.\n * @param {module:model/Workspace} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * Updates workspace. Some protected properties will not be changed by this api. Requires proper access rights in access token. \n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {module:api/WorkspaceApi~updateWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/Workspace}\n */\n this.updateWorkspace = function(workspaceId, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling updateWorkspace\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = Workspace;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n\n /**\n * Callback function to receive the result of the writeMetadata operation.\n * @callback module:api/WorkspaceApi~writeMetadataCallback\n * @param {String} error Error message, if any.\n * @param {module:model/RestOK} data The data returned by the service call.\n * @param {String} response The complete HTTP response.\n */\n\n /**\n * write a metadata file at given path. missing parents will be created.\n * @param {String} workspaceId webida workspace id (usually same to file system id, wfsId)\n * @param {String} objectPath the path (filename without .json) of metadata, without heading /\n * @param {File} data file contents to write.\n * @param {module:api/WorkspaceApi~writeMetadataCallback} callback The callback function, accepting three arguments: error, data, response\n * data is of type: {module:model/RestOK}\n */\n this.writeMetadata = function(workspaceId, objectPath, data, callback) {\n var postBody = null;\n\n // verify the required parameter 'workspaceId' is set\n if (workspaceId == undefined || workspaceId == null) {\n throw \"Missing the required parameter 'workspaceId' when calling writeMetadata\";\n }\n\n // verify the required parameter 'objectPath' is set\n if (objectPath == undefined || objectPath == null) {\n throw \"Missing the required parameter 'objectPath' when calling writeMetadata\";\n }\n\n // verify the required parameter 'data' is set\n if (data == undefined || data == null) {\n throw \"Missing the required parameter 'data' when calling writeMetadata\";\n }\n\n\n var pathParams = {\n 'workspaceId': workspaceId,\n 'objectPath': objectPath\n };\n var queryParams = {\n };\n var headerParams = {\n };\n var formParams = {\n 'data': data\n };\n\n var authNames = ['webida-simple-auth'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json', 'application/octet-stream'];\n var returnType = RestOK;\n\n return this.apiClient.callApi(\n '/workspaces/{workspaceId}/metadata/{objectPath}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType, callback\n );\n }\n };\n\n return exports;\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/WorkspaceApi.js\n ** module id = 22\n ** module chunks = 0\n **/","/**\n * Webida Restful API\n * Restful API for Webida clients to use server's data & features\n *\n * OpenAPI spec version: 0.3.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['ApiClient'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // CommonJS-like environments that support module.exports, like Node.\n module.exports = factory(require('../ApiClient'));\n } else {\n // Browser globals (root is window)\n if (!root.WebidaRestfulApi) {\n root.WebidaRestfulApi = {};\n }\n root.WebidaRestfulApi.Match = factory(root.WebidaRestfulApi.ApiClient);\n }\n}(this, function(ApiClient) {\n 'use strict';\n\n\n\n\n /**\n * The Match model module.\n * @module model/Match\n * @version 0.3.0\n */\n\n /**\n * Constructs a new Match
.\n * search result for a file\n * @alias module:model/Match\n * @class\n * @param line {Integer} \n * @param text {String} \n */\n var exports = function(line, text) {\n var _this = this;\n\n _this['line'] = line;\n _this['text'] = text;\n };\n\n /**\n * Constructs a Match
from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data
to obj
if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/Match} obj Optional instance to populate.\n * @return {module:model/Match} The populated Match
instance.\n */\n exports.constructFromObject = function(data, obj) {\n if (data) {\n obj = obj || new exports();\n\n if (data.hasOwnProperty('line')) {\n obj['line'] = ApiClient.convertToType(data['line'], 'Integer');\n }\n if (data.hasOwnProperty('text')) {\n obj['text'] = ApiClient.convertToType(data['text'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Integer} line\n */\n exports.prototype['line'] = undefined;\n /**\n * @member {String} text\n */\n exports.prototype['text'] = undefined;\n\n\n\n return exports;\n}));\n\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/model/Match.js\n ** module id = 23\n ** module chunks = 0\n **/"],"sourceRoot":""}
\ No newline at end of file
diff --git a/api-spec/swagger.json b/api-spec/swagger.json
index 8a876b7..23383f7 100644
--- a/api-spec/swagger.json
+++ b/api-spec/swagger.json
@@ -349,10 +349,10 @@
} ],
"x-handler" : "handlers/wfs/stat.js"
},
- "put" : {
+ "post" : {
"tags" : [ "wfs" ],
- "description" : "Copy to given path. Works like cp -r command, with some funny options. That means,\nif destination is a directory, result will be put 'in' the directory with same base name\nto the source.\n\nIf removeExisting option is false, copying a directory onto a file will return error.\nOr, destination path will be 'clobbed' before copying file, regardless wheather the path\nis file or not.\n",
- "operationId" : "copy",
+ "description" : "Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact\npath of the resource to be created. So, moving a file to existing directory always\nreturns error and vice versa. (So, This API works like 'rename' rather than 'mv' command)\n\nLike copy(), this operation creates parent path of destination, and does not roll-back\nwhen operation failes.\n\nWhen destination path exists already,\n1) moving file to file : follows noOverwrite flag.\n2) moving file to dir : returns 409 error\n3) moving dir to file : returns 409 error\n4) moving dir to dir : merge srcPath/* to wfsPath, following noOverwite flag.\n",
+ "operationId" : "move",
"parameters" : [ {
"name" : "wfsId",
"in" : "path",
@@ -373,30 +373,73 @@
"required" : true,
"type" : "string"
}, {
- "name" : "ensurePath",
+ "name" : "noOverwrite",
"in" : "query",
- "description" : "Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag\ncreates entire path as a directory. If there's a existing file in the path, this flag will\nnot work and the operation will return error.\n\nWhile copying or moving, 'ensure' option can make same operation to have 2 possible results,\ndepending on the existence of wfsPath. (e.g. Moving to some/path from some/source\nwith ensure canm create some/source or some/path/source. With ensurePath option, the result\ncan be fixed to some/path/source) If client does now know the actual directory structure or\nhas false directory structure cache, that ambiguity can be a really painful bug.\n",
+ "description" : "does not overwrites any existing file while copying or moving",
"required" : false,
"type" : "boolean",
"default" : false
+ } ],
+ "responses" : {
+ "200" : {
+ "description" : "OK",
+ "schema" : {
+ "$ref" : "#/definitions/RestOK"
+ }
+ },
+ "default" : {
+ "description" : "Error",
+ "schema" : {
+ "$ref" : "#/definitions/RestError"
+ }
+ }
+ },
+ "security" : [ {
+ "webida-simple-auth" : [ ]
+ } ],
+ "x-handler" : "handlers/wfs/move.js"
+ },
+ "put" : {
+ "tags" : [ "wfs" ],
+ "description" : "Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact\npath of the resource to be created. So, copying a file to directory always returns error\nand vice versa.\n\nthis operation creates the parents dir of destination path always, and does not\nroll-back the creation when operation failed. So, clients should roll-back if needed.\n\nWhen destination path exists already,\n1) copying file to file : follows noOverwrite flag. (does not return error)\n2) copying file to dir : returns 409 error\n3) copying dir to file : returns 409 error\n4) copying dir to dir : merge srcPath/* to wfsPath, following noOverwite flag.\n",
+ "operationId" : "copy",
+ "parameters" : [ {
+ "name" : "wfsId",
+ "in" : "path",
+ "description" : "webida file system id (same to workspace id) to access.",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "wfsPath",
+ "in" : "path",
+ "description" : "webida file system path to access. without heading /. should be placed at the end of path arguments\n",
+ "required" : true,
+ "type" : "string",
+ "pattern" : ".*"
+ }, {
+ "name" : "srcPath",
+ "in" : "query",
+ "description" : "source data path of some operations, with have heading /",
+ "required" : true,
+ "type" : "string"
}, {
- "name" : "removeExisting",
+ "name" : "noOverwrite",
"in" : "query",
- "description" : "remove any existing file/dir before writing.",
+ "description" : "does not overwrites any existing file while copying or moving",
"required" : false,
"type" : "boolean",
"default" : false
}, {
"name" : "followSymbolicLinks",
"in" : "query",
- "description" : "dereference symlinks or not",
+ "description" : "dereference symlinks in source.",
"required" : false,
"type" : "boolean",
"default" : false
}, {
"name" : "preserveTimestamps",
"in" : "query",
- "description" : "to change default behavior, keep mtime/atime of source files in destination",
+ "description" : "keep mtime/atime of source file(s) in destination.",
"required" : false,
"type" : "boolean",
"default" : false
@@ -509,63 +552,6 @@
} ],
"x-handler" : "handlers/wfs/dirTree.js"
},
- "post" : {
- "tags" : [ "wfs" ],
- "description" : "move file or directory to given path. works like mv -r command",
- "operationId" : "move",
- "parameters" : [ {
- "name" : "wfsId",
- "in" : "path",
- "description" : "webida file system id (same to workspace id) to access.",
- "required" : true,
- "type" : "string"
- }, {
- "name" : "wfsPath",
- "in" : "path",
- "description" : "webida file system path to access. without heading /. should be placed at the end of path arguments\n",
- "required" : true,
- "type" : "string",
- "pattern" : ".*"
- }, {
- "name" : "srcPath",
- "in" : "query",
- "description" : "source data path of some operations, with have heading /",
- "required" : true,
- "type" : "string"
- }, {
- "name" : "ensurePath",
- "in" : "query",
- "description" : "Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag\ncreates entire path as a directory. If there's a existing file in the path, this flag will\nnot work and the operation will return error.\n\nWhile copying or moving, 'ensure' option can make same operation to have 2 possible results,\ndepending on the existence of wfsPath. (e.g. Moving to some/path from some/source\nwith ensure canm create some/source or some/path/source. With ensurePath option, the result\ncan be fixed to some/path/source) If client does now know the actual directory structure or\nhas false directory structure cache, that ambiguity can be a really painful bug.\n",
- "required" : false,
- "type" : "boolean",
- "default" : false
- }, {
- "name" : "removeExisting",
- "in" : "query",
- "description" : "remove any existing file/dir before writing.",
- "required" : false,
- "type" : "boolean",
- "default" : false
- } ],
- "responses" : {
- "200" : {
- "description" : "OK",
- "schema" : {
- "$ref" : "#/definitions/RestOK"
- }
- },
- "default" : {
- "description" : "Error",
- "schema" : {
- "$ref" : "#/definitions/RestError"
- }
- }
- },
- "security" : [ {
- "webida-simple-auth" : [ ]
- } ],
- "x-handler" : "handlers/wfs/move.js"
- },
"put" : {
"tags" : [ "wfs" ],
"description" : "create a directory at the path. returns error when wfsPath exists and not empty\nthis API always creates parent directories if needed.\n",
@@ -1695,18 +1681,10 @@
"type" : "boolean",
"default" : false
},
- "ensurePath" : {
- "name" : "ensurePath",
- "in" : "query",
- "description" : "Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag\ncreates entire path as a directory. If there's a existing file in the path, this flag will\nnot work and the operation will return error.\n\nWhile copying or moving, 'ensure' option can make same operation to have 2 possible results,\ndepending on the existence of wfsPath. (e.g. Moving to some/path from some/source\nwith ensure canm create some/source or some/path/source. With ensurePath option, the result\ncan be fixed to some/path/source) If client does now know the actual directory structure or\nhas false directory structure cache, that ambiguity can be a really painful bug.\n",
- "required" : false,
- "type" : "boolean",
- "default" : false
- },
- "removeExisting" : {
- "name" : "removeExisting",
+ "noOverwrite" : {
+ "name" : "noOverwrite",
"in" : "query",
- "description" : "remove any existing file/dir before writing.",
+ "description" : "does not overwrites any existing file while copying or moving",
"required" : false,
"type" : "boolean",
"default" : false
diff --git a/api-spec/swagger.yaml b/api-spec/swagger.yaml
index 3ef0bd5..a0a83f7 100644
--- a/api-spec/swagger.yaml
+++ b/api-spec/swagger.yaml
@@ -154,14 +154,13 @@ paths:
# /file/{wfsPath} file CRUD C,U is PUT, not POST
# GET - read file
# PUT - write file
- # POST?{src} - rename to (supports dir too)
# /dir/{wfsPath} directory CRUD
# GET - list (read) dir
# PUT - create (can be expanded to import, later)
- # POST?{src} - move to dir (supports file too)
# /any/{wfsPath}
# GET?{ignoreError} - stat / exists
# PUT?{src} - copy
+ # POST?{src} - move
# DELETE - delete
# /ops/search/{wfsPath} for search (GET) and replace (POST)
# /ops/replace?{wfsPath} for search (GET) and replace (POST)
@@ -316,31 +315,6 @@ paths:
schema:
$ref: "#/definitions/RestError"
- # move
- post:
- x-handler: handlers/wfs/move.js
- tags: ["wfs"]
- description: move file or directory to given path. works like mv -r command
- operationId: move
- security:
- - webida-simple-auth: []
- parameters:
- - $ref: "#/parameters/wfsId"
- - $ref: "#/parameters/wfsPath"
- - $ref: "#/parameters/srcPath"
- - $ref: "#/parameters/ensurePath"
- - $ref: "#/parameters/removeExisting"
- responses:
- "200":
- description: OK
- schema:
- $ref: "#/definitions/RestOK"
- default:
- description: Error
- schema:
- $ref: "#/definitions/RestError"
-
-
/wfs/{wfsId}/any/{wfsPath}:
# stat
get:
@@ -386,13 +360,19 @@ paths:
x-handler: handlers/wfs/copy.js
tags: ["wfs"]
description: |
- Copy to given path. Works like cp -r command, with some funny options. That means,
- if destination is a directory, result will be put 'in' the directory with same base name
- to the source.
+ Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact
+ path of the resource to be created. So, copying a file to directory always returns error
+ and vice versa.
+
+ this operation creates the parents dir of destination path always, and does not
+ roll-back the creation when operation failed. So, clients should roll-back if needed.
+
+ When destination path exists already,
+ 1) copying file to file : follows noOverwrite flag. (does not return error)
+ 2) copying file to dir : returns 409 error
+ 3) copying dir to file : returns 409 error
+ 4) copying dir to dir : merge srcPath/* to wfsPath, following noOverwite flag.
- If removeExisting option is false, copying a directory onto a file will return error.
- Or, destination path will be 'clobbed' before copying file, regardless wheather the path
- is file or not.
operationId: copy
security:
- webida-simple-auth: []
@@ -400,17 +380,16 @@ paths:
- $ref: "#/parameters/wfsId"
- $ref: "#/parameters/wfsPath"
- $ref: "#/parameters/srcPath"
- - $ref: "#/parameters/ensurePath"
- - $ref: "#/parameters/removeExisting"
+ - $ref: "#/parameters/noOverwrite"
- name: followSymbolicLinks
in: query
- description: dereference symlinks or not
+ description: dereference symlinks in source.
required: false
type: boolean
default: false
- name: preserveTimestamps
in: query
- description: to change default behavior, keep mtime/atime of source files in destination
+ description: keep mtime/atime of source file(s) in destination.
required: false
type: boolean
default: false
@@ -424,6 +403,42 @@ paths:
schema:
$ref: "#/definitions/RestError"
+ # move
+ post:
+ x-handler: handlers/wfs/move.js
+ tags: ["wfs"]
+ description: |
+ Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact
+ path of the resource to be created. So, moving a file to existing directory always
+ returns error and vice versa. (So, This API works like 'rename' rather than 'mv' command)
+
+ Like copy(), this operation creates parent path of destination, and does not roll-back
+ when operation failes.
+
+ When destination path exists already,
+ 1) moving file to file : follows noOverwrite flag.
+ 2) moving file to dir : returns 409 error
+ 3) moving dir to file : returns 409 error
+ 4) moving dir to dir : merge srcPath/* to wfsPath, following noOverwite flag.
+
+ operationId: move
+ security:
+ - webida-simple-auth: []
+ parameters:
+ - $ref: "#/parameters/wfsId"
+ - $ref: "#/parameters/wfsPath"
+ - $ref: "#/parameters/srcPath"
+ - $ref: "#/parameters/noOverwrite"
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: "#/definitions/RestOK"
+ default:
+ description: Error
+ schema:
+ $ref: "#/definitions/RestError"
+
# remove / delete
delete:
@@ -1021,27 +1036,10 @@ parameters:
required: false
default: false
- ensurePath:
- name: ensurePath
- in: query
- description: |
- Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag
- creates entire path as a directory. If there's a existing file in the path, this flag will
- not work and the operation will return error.
-
- While copying or moving, 'ensure' option can make same operation to have 2 possible results,
- depending on the existence of wfsPath. (e.g. Moving to some/path from some/source
- with ensure canm create some/source or some/path/source. With ensurePath option, the result
- can be fixed to some/path/source) If client does now know the actual directory structure or
- has false directory structure cache, that ambiguity can be a really painful bug.
- type: boolean
- required: false
- default: false
-
- removeExisting:
- name: removeExisting
+ noOverwrite:
+ name: noOverwrite
in: query
- description: remove any existing file/dir before writing.
+ description: does not overwrites any existing file while copying or moving
required: false
type: boolean
default: false
diff --git a/builder/templates/package.mustache b/builder/templates/package.mustache
index 19f8399..52aae58 100644
--- a/builder/templates/package.mustache
+++ b/builder/templates/package.mustache
@@ -1,6 +1,6 @@
{
"name": "webida-restful-api",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "Webida Restful API Spec & generated clients",
"license": "Apache-2.0",
"main": "{{sourceFolder}}{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js",
diff --git a/docs/WfsApi.md b/docs/WfsApi.md
index 977f58a..566b979 100644
--- a/docs/WfsApi.md
+++ b/docs/WfsApi.md
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**copy**](WfsApi.md#copy) | **PUT** /wfs/{wfsId}/any/{wfsPath} |
[**createDir**](WfsApi.md#createDir) | **PUT** /wfs/{wfsId}/dir/{wfsPath} |
[**dirTree**](WfsApi.md#dirTree) | **GET** /wfs/{wfsId}/dir/{wfsPath} |
-[**move**](WfsApi.md#move) | **POST** /wfs/{wfsId}/dir/{wfsPath} |
+[**move**](WfsApi.md#move) | **POST** /wfs/{wfsId}/any/{wfsPath} |
[**readFile**](WfsApi.md#readFile) | **GET** /wfs/{wfsId}/file/{wfsPath} |
[**remove**](WfsApi.md#remove) | **DELETE** /wfs/{wfsId}/any/{wfsPath} |
[**rename**](WfsApi.md#rename) | **POST** /wfs/{wfsId}/file/{wfsPath} |
@@ -21,7 +21,7 @@ Method | HTTP request | Description
-Copy to given path. Works like cp -r command, with some funny options. That means, if destination is a directory, result will be put 'in' the directory with same base name to the source. If removeExisting option is false, copying a directory onto a file will return error. Or, destination path will be 'clobbed' before copying file, regardless wheather the path is file or not.
+Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact path of the resource to be created. So, copying a file to directory always returns error and vice versa. this operation creates the parents dir of destination path always, and does not roll-back the creation when operation failed. So, clients should roll-back if needed. When destination path exists already, 1) copying file to file : follows noOverwrite flag. (does not return error) 2) copying file to dir : returns 409 error 3) copying dir to file : returns 409 error 4) copying dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag.
### Example
```javascript
@@ -43,10 +43,9 @@ var wfsPath = "wfsPath_example"; // String | webida file system path to access.
var srcPath = "srcPath_example"; // String | source data path of some operations, with have heading /
var opts = {
- 'ensurePath': false, // Boolean | Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug.
- 'removeExisting': false // Boolean | remove any existing file/dir before writing.
- 'followSymbolicLinks': false, // Boolean | dereference symlinks or not
- 'preserveTimestamps': false // Boolean | to change default behavior, keep mtime/atime of source files in destination
+ 'noOverwrite': false // Boolean | does not overwrites any existing file while copying or moving
+ 'followSymbolicLinks': false, // Boolean | dereference symlinks in source.
+ 'preserveTimestamps': false // Boolean | keep mtime/atime of source file(s) in destination.
};
var callback = function(error, data, response) {
@@ -66,10 +65,9 @@ Name | Type | Description | Notes
**wfsId** | **String**| webida file system id (same to workspace id) to access. |
**wfsPath** | **String**| webida file system path to access. without heading /. should be placed at the end of path arguments |
**srcPath** | **String**| source data path of some operations, with have heading / |
- **ensurePath** | **Boolean**| Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. | [optional] [default to false]
- **removeExisting** | **Boolean**| remove any existing file/dir before writing. | [optional] [default to false]
- **followSymbolicLinks** | **Boolean**| dereference symlinks or not | [optional] [default to false]
- **preserveTimestamps** | **Boolean**| to change default behavior, keep mtime/atime of source files in destination | [optional] [default to false]
+ **noOverwrite** | **Boolean**| does not overwrites any existing file while copying or moving | [optional] [default to false]
+ **followSymbolicLinks** | **Boolean**| dereference symlinks in source. | [optional] [default to false]
+ **preserveTimestamps** | **Boolean**| keep mtime/atime of source file(s) in destination. | [optional] [default to false]
### Return type
@@ -205,7 +203,7 @@ Name | Type | Description | Notes
-move file or directory to given path. works like mv -r command
+Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact path of the resource to be created. So, moving a file to existing directory always returns error and vice versa. (So, This API works like 'rename' rather than 'mv' command) Like copy(), this operation creates parent path of destination, and does not roll-back when operation failes. When destination path exists already, 1) moving file to file : follows noOverwrite flag. 2) moving file to dir : returns 409 error 3) moving dir to file : returns 409 error 4) moving dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag.
### Example
```javascript
@@ -227,8 +225,7 @@ var wfsPath = "wfsPath_example"; // String | webida file system path to access.
var srcPath = "srcPath_example"; // String | source data path of some operations, with have heading /
var opts = {
- 'ensurePath': false, // Boolean | Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug.
- 'removeExisting': false // Boolean | remove any existing file/dir before writing.
+ 'noOverwrite': false // Boolean | does not overwrites any existing file while copying or moving
};
var callback = function(error, data, response) {
@@ -248,8 +245,7 @@ Name | Type | Description | Notes
**wfsId** | **String**| webida file system id (same to workspace id) to access. |
**wfsPath** | **String**| webida file system path to access. without heading /. should be placed at the end of path arguments |
**srcPath** | **String**| source data path of some operations, with have heading / |
- **ensurePath** | **Boolean**| Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. | [optional] [default to false]
- **removeExisting** | **Boolean**| remove any existing file/dir before writing. | [optional] [default to false]
+ **noOverwrite** | **Boolean**| does not overwrites any existing file while copying or moving | [optional] [default to false]
### Return type
diff --git a/package.json b/package.json
index ae61d31..4e7b3f3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "webida-restful-api",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "Webida Restful API Spec & generated clients",
"license": "Apache-2.0",
"main": "src/index.js",
diff --git a/src/api/WfsApi.js b/src/api/WfsApi.js
index 878fa71..978484d 100644
--- a/src/api/WfsApi.js
+++ b/src/api/WfsApi.js
@@ -65,15 +65,14 @@
*/
/**
- * Copy to given path. Works like cp -r command, with some funny options. That means, if destination is a directory, result will be put 'in' the directory with same base name to the source. If removeExisting option is false, copying a directory onto a file will return error. Or, destination path will be 'clobbed' before copying file, regardless wheather the path is file or not.
+ * Creates a copy of source to given path. Unlike cp command, wfsPath always denotes an exact path of the resource to be created. So, copying a file to directory always returns error and vice versa. this operation creates the parents dir of destination path always, and does not roll-back the creation when operation failed. So, clients should roll-back if needed. When destination path exists already, 1) copying file to file : follows noOverwrite flag. (does not return error) 2) copying file to dir : returns 409 error 3) copying dir to file : returns 409 error 4) copying dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag.
* @param {String} wfsId webida file system id (same to workspace id) to access.
* @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments
* @param {String} srcPath source data path of some operations, with have heading /
* @param {Object} opts Optional parameters
- * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)
- * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)
- * @param {Boolean} opts.followSymbolicLinks dereference symlinks or not (default to false)
- * @param {Boolean} opts.preserveTimestamps to change default behavior, keep mtime/atime of source files in destination (default to false)
+ * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)
+ * @param {Boolean} opts.followSymbolicLinks dereference symlinks in source. (default to false)
+ * @param {Boolean} opts.preserveTimestamps keep mtime/atime of source file(s) in destination. (default to false)
* @param {module:api/WfsApi~copyCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {module:model/RestOK}
*/
@@ -103,8 +102,7 @@
};
var queryParams = {
'srcPath': srcPath,
- 'ensurePath': opts['ensurePath'],
- 'removeExisting': opts['removeExisting'],
+ 'noOverwrite': opts['noOverwrite'],
'followSymbolicLinks': opts['followSymbolicLinks'],
'preserveTimestamps': opts['preserveTimestamps']
};
@@ -245,13 +243,12 @@
*/
/**
- * move file or directory to given path. works like mv -r command
+ * Moves source resource to given path. Unlike mv command, wfsPath always denotes an exact path of the resource to be created. So, moving a file to existing directory always returns error and vice versa. (So, This API works like 'rename' rather than 'mv' command) Like copy(), this operation creates parent path of destination, and does not roll-back when operation failes. When destination path exists already, 1) moving file to file : follows noOverwrite flag. 2) moving file to dir : returns 409 error 3) moving dir to file : returns 409 error 4) moving dir to dir : merge srcPath/_* to wfsPath, following noOverwite flag.
* @param {String} wfsId webida file system id (same to workspace id) to access.
* @param {String} wfsPath webida file system path to access. without heading /. should be placed at the end of path arguments
* @param {String} srcPath source data path of some operations, with have heading /
* @param {Object} opts Optional parameters
- * @param {Boolean} opts.ensurePath Create a directory if wfsPath denotes unexisting path. Unlike 'ensure' parameter, this flag creates entire path as a directory. If there's a existing file in the path, this flag will not work and the operation will return error. While copying or moving, 'ensure' option can make same operation to have 2 possible results, depending on the existence of wfsPath. (e.g. Moving to some/path from some/source with ensure canm create some/source or some/path/source. With ensurePath option, the result can be fixed to some/path/source) If client does now know the actual directory structure or has false directory structure cache, that ambiguity can be a really painful bug. (default to false)
- * @param {Boolean} opts.removeExisting remove any existing file/dir before writing. (default to false)
+ * @param {Boolean} opts.noOverwrite does not overwrites any existing file while copying or moving (default to false)
* @param {module:api/WfsApi~moveCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {module:model/RestOK}
*/
@@ -281,8 +278,7 @@
};
var queryParams = {
'srcPath': srcPath,
- 'ensurePath': opts['ensurePath'],
- 'removeExisting': opts['removeExisting']
+ 'noOverwrite': opts['noOverwrite']
};
var headerParams = {
};
@@ -295,7 +291,7 @@
var returnType = RestOK;
return this.apiClient.callApi(
- '/wfs/{wfsId}/dir/{wfsPath}', 'POST',
+ '/wfs/{wfsId}/any/{wfsPath}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);