From 433290d74d87ef85bc6e4995e93959523b87181c Mon Sep 17 00:00:00 2001
From: Michael Quigley
+* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
+* param
.
+ */
+ paramToString(param) {
+ if (param == undefined || param == null) {
+ return '';
+ }
+ if (param instanceof Date) {
+ return param.toJSON();
+ }
+ if (ApiClient.canBeJsonified(param)) {
+ return JSON.stringify(param);
+ }
+
+ return param.toString();
+ }
+
+ /**
+ * Returns a boolean indicating if the parameter could be JSON.stringified
+ * @param param The actual parameter
+ * @returns {Boolean} Flag indicating if param
can be JSON.stringified
+ */
+ static canBeJsonified(str) {
+ if (typeof str !== 'string' && typeof str !== 'object') return false;
+ try {
+ const type = str.toString();
+ return type === '[object Object]'
+ || type === '[object Array]';
+ } catch (err) {
+ return false;
+ }
+ };
+
+ /**
+ * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
+ * NOTE: query parameters are not handled here.
+ * @param {String} path The path to append to the base URL.
+ * @param {Object} pathParams The parameter values to append.
+ * @param {String} apiBasePath Base path defined in the path, operation level to override the default one
+ * @returns {String} The encoded path with parameter values substituted.
+ */
+ buildUrl(path, pathParams, apiBasePath) {
+ if (!path.match(/^\//)) {
+ path = '/' + path;
+ }
+
+ var url = this.basePath + path;
+
+ // use API (operation, path) base path if defined
+ if (apiBasePath !== null && apiBasePath !== undefined) {
+ url = apiBasePath + path;
+ }
+
+ url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
+ var value;
+ if (pathParams.hasOwnProperty(key)) {
+ value = this.paramToString(pathParams[key]);
+ } else {
+ value = fullMatch;
+ }
+
+ return encodeURIComponent(value);
+ });
+
+ return url;
+ }
+
+ /**
+ * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
+ *
+ * @param {String} contentType The MIME content type to check.
+ * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.
+ */
+ isJsonMime(contentType) {
+ return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
+ }
+
+ /**
+ * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
+ * @param {Array.true
if param
represents a file.
+ */
+ isFileParam(param) {
+ // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
+ if (typeof require === 'function') {
+ let fs;
+ try {
+ fs = require('fs');
+ } catch (err) {}
+ if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
+ return true;
+ }
+ }
+
+ // Buffer in Node.js
+ if (typeof Buffer === 'function' && param instanceof Buffer) {
+ return true;
+ }
+
+ // Blob in browser
+ if (typeof Blob === 'function' && param instanceof Blob) {
+ return true;
+ }
+
+ // File in browser (it seems File object is also instance of Blob, but keep this for safe)
+ if (typeof File === 'function' && param instanceof File) {
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Normalizes parameter values:
+ *
+ *
+ * @param {Object.param
as is if collectionFormat
is multi
.
+ */
+ buildCollectionParam(param, collectionFormat) {
+ if (param == null) {
+ return null;
+ }
+ switch (collectionFormat) {
+ case 'csv':
+ return param.map(this.paramToString, this).join(',');
+ case 'ssv':
+ return param.map(this.paramToString, this).join(' ');
+ case 'tsv':
+ return param.map(this.paramToString, this).join('\t');
+ case 'pipes':
+ return param.map(this.paramToString, this).join('|');
+ case 'multi':
+ //return the array directly as SuperAgent will handle it as expected
+ return param.map(this.paramToString, this);
+ case 'passthrough':
+ return param;
+ default:
+ throw new Error('Unknown collection format: ' + collectionFormat);
+ }
+ }
+
+ /**
+ * Applies authentication headers to the request.
+ * @param {Object} request The request object created by a superagent()
call.
+ * @param {Array.data
will be converted to this type.
+ * @returns A value of the specified type.
+ */
+ deserialize(response, returnType) {
+ if (response == null || returnType == null || response.status == 204) {
+ return null;
+ }
+
+ // Rely on SuperAgent for parsing response body.
+ // See http://visionmedia.github.io/superagent/#parsing-response-bodies
+ var data = response.body;
+ if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
+ // SuperAgent does not always produce a body; use the unparsed response as a fallback
+ data = response.text;
+ }
+
+ return ApiClient.convertToType(data, returnType);
+ }
+
+ /**
+ * Callback function to receive the result of the operation.
+ * @callback module:ApiClient~callApiCallback
+ * @param {String} error Error message, if any.
+ * @param data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Invokes the REST service using the supplied settings and parameters.
+ * @param {String} path The base URL to invoke.
+ * @param {String} httpMethod The HTTP method to use.
+ * @param {Object.
data
will be converted to this type.
+ * @returns An instance of the specified type or null or undefined if data is null or undefined.
+ */
+ static convertToType(data, type) {
+ if (data === null || data === undefined)
+ return data
+
+ switch (type) {
+ case 'Boolean':
+ return Boolean(data);
+ case 'Integer':
+ return parseInt(data, 10);
+ case 'Number':
+ return parseFloat(data);
+ case 'String':
+ return String(data);
+ case 'Date':
+ return ApiClient.parseDate(String(data));
+ case 'Blob':
+ return data;
+ default:
+ if (type === Object) {
+ // generic object, return directly
+ return data;
+ } else if (typeof type.constructFromObject === 'function') {
+ // for model type like User and enum class
+ return type.constructFromObject(data);
+ } else if (Array.isArray(type)) {
+ // for array type like: ['String']
+ var itemType = type[0];
+
+ return data.map((item) => {
+ return ApiClient.convertToType(item, itemType);
+ });
+ } else if (typeof type === 'object') {
+ // for plain object type like: {'String': 'Integer'}
+ var keyType, valueType;
+ for (var k in type) {
+ if (type.hasOwnProperty(k)) {
+ keyType = k;
+ valueType = type[k];
+ break;
+ }
+ }
+
+ var result = {};
+ for (var k in data) {
+ if (data.hasOwnProperty(k)) {
+ var key = ApiClient.convertToType(k, keyType);
+ var value = ApiClient.convertToType(data[k], valueType);
+ result[key] = value;
+ }
+ }
+
+ return result;
+ } else {
+ // for unknown type, return the data directly
+ return data;
+ }
+ }
+ }
+
+ /**
+ * Gets an array of host settings
+ * @returns An array of host settings
+ */
+ hostSettings() {
+ return [
+ {
+ 'url': "",
+ 'description': "No description provided",
+ }
+ ];
+ }
+
+ getBasePathFromSettings(index, variables={}) {
+ var servers = this.hostSettings();
+
+ // check array index out of bound
+ if (index < 0 || index >= servers.length) {
+ throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length);
+ }
+
+ var server = servers[index];
+ var url = server['url'];
+
+ // go through variable and assign a value
+ for (var variable_name in server['variables']) {
+ if (variable_name in variables) {
+ let variable = server['variables'][variable_name];
+ if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) {
+ url = url.replace("{" + variable_name + "}", variables[variable_name]);
+ } else {
+ throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + ".");
+ }
+ } else {
+ // use default value
+ url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value'])
+ }
+ }
+ return url;
+ }
+
+ /**
+ * Constructs a new map or array model from REST data.
+ * @param data {Object|Array} The REST data.
+ * @param obj {Object|Array} The target object or array.
+ */
+ static constructFromObject(data, obj, itemType) {
+ if (Array.isArray(data)) {
+ for (var i = 0; i < data.length; i++) {
+ if (data.hasOwnProperty(i))
+ obj[i] = ApiClient.convertToType(data[i], itemType);
+ }
+ } else {
+ for (var k in data) {
+ if (data.hasOwnProperty(k))
+ obj[k] = ApiClient.convertToType(data[k], itemType);
+ }
+ }
+ };
+}
+
+/**
+ * Enumeration of collection format separator strategies.
+ * @enum {String}
+ * @readonly
+ */
+ApiClient.CollectionFormatEnum = {
+ /**
+ * Comma-separated values. Value:
csv
+ * @const
+ */
+ CSV: ',',
+
+ /**
+ * Space-separated values. Value: ssv
+ * @const
+ */
+ SSV: ' ',
+
+ /**
+ * Tab-separated values. Value: tsv
+ * @const
+ */
+ TSV: '\t',
+
+ /**
+ * Pipe(|)-separated values. Value: pipes
+ * @const
+ */
+ PIPES: '|',
+
+ /**
+ * Native array. Value: multi
+ * @const
+ */
+ MULTI: 'multi'
+};
+
+/**
+* The default API client implementation.
+* @type {module:ApiClient}
+*/
+ApiClient.instance = new ApiClient();
+export default ApiClient;
diff --git a/agent/agent-ui/src/api/src/api/AgentApi.js b/agent/agent-ui/src/api/src/api/AgentApi.js
new file mode 100644
index 00000000..28b8fca7
--- /dev/null
+++ b/agent/agent-ui/src/api/src/api/AgentApi.js
@@ -0,0 +1,110 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import RpcStatus from '../model/RpcStatus';
+import StatusResponse from '../model/StatusResponse';
+import VersionResponse from '../model/VersionResponse';
+
+/**
+* Agent service.
+* @module api/AgentApi
+* @version version not set
+*/
+export default class AgentApi {
+
+ /**
+ * Constructs a new AgentApi.
+ * @alias module:api/AgentApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the agentStatus operation.
+ * @callback module:api/AgentApi~agentStatusCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/StatusResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * @param {module:api/AgentApi~agentStatusCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/StatusResponse}
+ */
+ agentStatus(callback) {
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = StatusResponse;
+ return this.apiClient.callApi(
+ '/v1/agent/status', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+ /**
+ * Callback function to receive the result of the agentVersion operation.
+ * @callback module:api/AgentApi~agentVersionCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/VersionResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * @param {module:api/AgentApi~agentVersionCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/VersionResponse}
+ */
+ agentVersion(callback) {
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = VersionResponse;
+ return this.apiClient.callApi(
+ '/v1/agent/version', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/agent/agent-ui/src/api/src/index.js b/agent/agent-ui/src/api/src/index.js
new file mode 100644
index 00000000..c8dba708
--- /dev/null
+++ b/agent/agent-ui/src/api/src/index.js
@@ -0,0 +1,132 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from './ApiClient';
+import AccessDetail from './model/AccessDetail';
+import AccessPrivateResponse from './model/AccessPrivateResponse';
+import ProtobufAny from './model/ProtobufAny';
+import RpcStatus from './model/RpcStatus';
+import ShareDetail from './model/ShareDetail';
+import SharePrivateResponse from './model/SharePrivateResponse';
+import SharePublicResponse from './model/SharePublicResponse';
+import ShareReservedResponse from './model/ShareReservedResponse';
+import StatusResponse from './model/StatusResponse';
+import VersionResponse from './model/VersionResponse';
+import AgentApi from './api/AgentApi';
+
+
+/**
+* JS API client generated by OpenAPI Generator.
+* The index
module provides access to constructors for all the classes which comprise the public API.
+*
+* var AgentAgentGrpcAgentProto = require('index'); // See note below*.
+* var xxxSvc = new AgentAgentGrpcAgentProto.XxxApi(); // Allocate the API class we're going to use.
+* var yyyModel = new AgentAgentGrpcAgentProto.Yyy(); // Construct a model instance.
+* yyyModel.someProperty = 'someValue';
+* ...
+* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+* ...
+*
+* *NOTE: For a top-level AMD script, use require(['index'], function(){...})
+* and put the application logic within the callback function.
+*
+* A non-AMD browser application (discouraged) might do something like this: +*
+* var xxxSvc = new AgentAgentGrpcAgentProto.XxxApi(); // Allocate the API class we're going to use. +* var yyy = new AgentAgentGrpcAgentProto.Yyy(); // Construct a model instance. +* yyyModel.someProperty = 'someValue'; +* ... +* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. +* ... +*+* +* @module index +* @version version not set +*/ +export { + /** + * The ApiClient constructor. + * @property {module:ApiClient} + */ + ApiClient, + + /** + * The AccessDetail model constructor. + * @property {module:model/AccessDetail} + */ + AccessDetail, + + /** + * The AccessPrivateResponse model constructor. + * @property {module:model/AccessPrivateResponse} + */ + AccessPrivateResponse, + + /** + * The ProtobufAny model constructor. + * @property {module:model/ProtobufAny} + */ + ProtobufAny, + + /** + * The RpcStatus model constructor. + * @property {module:model/RpcStatus} + */ + RpcStatus, + + /** + * The ShareDetail model constructor. + * @property {module:model/ShareDetail} + */ + ShareDetail, + + /** + * The SharePrivateResponse model constructor. + * @property {module:model/SharePrivateResponse} + */ + SharePrivateResponse, + + /** + * The SharePublicResponse model constructor. + * @property {module:model/SharePublicResponse} + */ + SharePublicResponse, + + /** + * The ShareReservedResponse model constructor. + * @property {module:model/ShareReservedResponse} + */ + ShareReservedResponse, + + /** + * The StatusResponse model constructor. + * @property {module:model/StatusResponse} + */ + StatusResponse, + + /** + * The VersionResponse model constructor. + * @property {module:model/VersionResponse} + */ + VersionResponse, + + /** + * The AgentApi service constructor. + * @property {module:api/AgentApi} + */ + AgentApi +}; diff --git a/agent/agent-ui/src/api/src/model/AccessDetail.js b/agent/agent-ui/src/api/src/model/AccessDetail.js new file mode 100644 index 00000000..db049b72 --- /dev/null +++ b/agent/agent-ui/src/api/src/model/AccessDetail.js @@ -0,0 +1,123 @@ +/** + * agent/agentGrpc/agent.proto + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: version not set + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AccessDetail model module. + * @module model/AccessDetail + * @version version not set + */ +class AccessDetail { + /** + * Constructs a new
AccessDetail
.
+ * @alias module:model/AccessDetail
+ */
+ constructor() {
+
+ AccessDetail.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AccessDetail
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AccessDetail} obj Optional instance to populate.
+ * @return {module:model/AccessDetail} The populated AccessDetail
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AccessDetail();
+
+ if (data.hasOwnProperty('frontendToken')) {
+ obj['frontendToken'] = ApiClient.convertToType(data['frontendToken'], 'String');
+ }
+ if (data.hasOwnProperty('token')) {
+ obj['token'] = ApiClient.convertToType(data['token'], 'String');
+ }
+ if (data.hasOwnProperty('bindAddress')) {
+ obj['bindAddress'] = ApiClient.convertToType(data['bindAddress'], 'String');
+ }
+ if (data.hasOwnProperty('responseHeaders')) {
+ obj['responseHeaders'] = ApiClient.convertToType(data['responseHeaders'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AccessDetail
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AccessDetail
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['frontendToken'] && !(typeof data['frontendToken'] === 'string' || data['frontendToken'] instanceof String)) {
+ throw new Error("Expected the field `frontendToken` to be a primitive type in the JSON string but got " + data['frontendToken']);
+ }
+ // ensure the json data is a string
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
+ }
+ // ensure the json data is a string
+ if (data['bindAddress'] && !(typeof data['bindAddress'] === 'string' || data['bindAddress'] instanceof String)) {
+ throw new Error("Expected the field `bindAddress` to be a primitive type in the JSON string but got " + data['bindAddress']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['responseHeaders'])) {
+ throw new Error("Expected the field `responseHeaders` to be an array in the JSON data but got " + data['responseHeaders']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} frontendToken
+ */
+AccessDetail.prototype['frontendToken'] = undefined;
+
+/**
+ * @member {String} token
+ */
+AccessDetail.prototype['token'] = undefined;
+
+/**
+ * @member {String} bindAddress
+ */
+AccessDetail.prototype['bindAddress'] = undefined;
+
+/**
+ * @member {Array.AccessPrivateResponse
.
+ * @alias module:model/AccessPrivateResponse
+ */
+ constructor() {
+
+ AccessPrivateResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AccessPrivateResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AccessPrivateResponse} obj Optional instance to populate.
+ * @return {module:model/AccessPrivateResponse} The populated AccessPrivateResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AccessPrivateResponse();
+
+ if (data.hasOwnProperty('frontendToken')) {
+ obj['frontendToken'] = ApiClient.convertToType(data['frontendToken'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AccessPrivateResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AccessPrivateResponse
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['frontendToken'] && !(typeof data['frontendToken'] === 'string' || data['frontendToken'] instanceof String)) {
+ throw new Error("Expected the field `frontendToken` to be a primitive type in the JSON string but got " + data['frontendToken']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} frontendToken
+ */
+AccessPrivateResponse.prototype['frontendToken'] = undefined;
+
+
+
+
+
+
+export default AccessPrivateResponse;
+
diff --git a/agent/agent-ui/src/api/src/model/ProtobufAny.js b/agent/agent-ui/src/api/src/model/ProtobufAny.js
new file mode 100644
index 00000000..dec26173
--- /dev/null
+++ b/agent/agent-ui/src/api/src/model/ProtobufAny.js
@@ -0,0 +1,91 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The ProtobufAny model module.
+ * @module model/ProtobufAny
+ * @version version not set
+ */
+class ProtobufAny {
+ /**
+ * Constructs a new ProtobufAny
.
+ * @alias module:model/ProtobufAny
+ * @extends Object
+ */
+ constructor() {
+
+ ProtobufAny.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ProtobufAny
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ProtobufAny} obj Optional instance to populate.
+ * @return {module:model/ProtobufAny} The populated ProtobufAny
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ProtobufAny();
+
+ ApiClient.constructFromObject(data, obj, 'Object');
+
+
+ if (data.hasOwnProperty('@type')) {
+ obj['@type'] = ApiClient.convertToType(data['@type'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ProtobufAny
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ProtobufAny
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['@type'] && !(typeof data['@type'] === 'string' || data['@type'] instanceof String)) {
+ throw new Error("Expected the field `@type` to be a primitive type in the JSON string but got " + data['@type']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} @type
+ */
+ProtobufAny.prototype['@type'] = undefined;
+
+
+
+
+
+
+export default ProtobufAny;
+
diff --git a/agent/agent-ui/src/api/src/model/RpcStatus.js b/agent/agent-ui/src/api/src/model/RpcStatus.js
new file mode 100644
index 00000000..66db9520
--- /dev/null
+++ b/agent/agent-ui/src/api/src/model/RpcStatus.js
@@ -0,0 +1,108 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ProtobufAny from './ProtobufAny';
+
+/**
+ * The RpcStatus model module.
+ * @module model/RpcStatus
+ * @version version not set
+ */
+class RpcStatus {
+ /**
+ * Constructs a new RpcStatus
.
+ * @alias module:model/RpcStatus
+ */
+ constructor() {
+
+ RpcStatus.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a RpcStatus
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/RpcStatus} obj Optional instance to populate.
+ * @return {module:model/RpcStatus} The populated RpcStatus
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new RpcStatus();
+
+ if (data.hasOwnProperty('code')) {
+ obj['code'] = ApiClient.convertToType(data['code'], 'Number');
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('details')) {
+ obj['details'] = ApiClient.convertToType(data['details'], [ProtobufAny]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to RpcStatus
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to RpcStatus
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['details'])) {
+ throw new Error("Expected the field `details` to be an array in the JSON data but got " + data['details']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} code
+ */
+RpcStatus.prototype['code'] = undefined;
+
+/**
+ * @member {String} message
+ */
+RpcStatus.prototype['message'] = undefined;
+
+/**
+ * @member {Array.ShareDetail
.
+ * @alias module:model/ShareDetail
+ */
+ constructor() {
+
+ ShareDetail.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ShareDetail
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ShareDetail} obj Optional instance to populate.
+ * @return {module:model/ShareDetail} The populated ShareDetail
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ShareDetail();
+
+ if (data.hasOwnProperty('token')) {
+ obj['token'] = ApiClient.convertToType(data['token'], 'String');
+ }
+ if (data.hasOwnProperty('shareMode')) {
+ obj['shareMode'] = ApiClient.convertToType(data['shareMode'], 'String');
+ }
+ if (data.hasOwnProperty('backendMode')) {
+ obj['backendMode'] = ApiClient.convertToType(data['backendMode'], 'String');
+ }
+ if (data.hasOwnProperty('reserved')) {
+ obj['reserved'] = ApiClient.convertToType(data['reserved'], 'Boolean');
+ }
+ if (data.hasOwnProperty('frontendEndpoint')) {
+ obj['frontendEndpoint'] = ApiClient.convertToType(data['frontendEndpoint'], ['String']);
+ }
+ if (data.hasOwnProperty('backendEndpoint')) {
+ obj['backendEndpoint'] = ApiClient.convertToType(data['backendEndpoint'], 'String');
+ }
+ if (data.hasOwnProperty('closed')) {
+ obj['closed'] = ApiClient.convertToType(data['closed'], 'Boolean');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ShareDetail
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ShareDetail
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
+ }
+ // ensure the json data is a string
+ if (data['shareMode'] && !(typeof data['shareMode'] === 'string' || data['shareMode'] instanceof String)) {
+ throw new Error("Expected the field `shareMode` to be a primitive type in the JSON string but got " + data['shareMode']);
+ }
+ // ensure the json data is a string
+ if (data['backendMode'] && !(typeof data['backendMode'] === 'string' || data['backendMode'] instanceof String)) {
+ throw new Error("Expected the field `backendMode` to be a primitive type in the JSON string but got " + data['backendMode']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['frontendEndpoint'])) {
+ throw new Error("Expected the field `frontendEndpoint` to be an array in the JSON data but got " + data['frontendEndpoint']);
+ }
+ // ensure the json data is a string
+ if (data['backendEndpoint'] && !(typeof data['backendEndpoint'] === 'string' || data['backendEndpoint'] instanceof String)) {
+ throw new Error("Expected the field `backendEndpoint` to be a primitive type in the JSON string but got " + data['backendEndpoint']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} token
+ */
+ShareDetail.prototype['token'] = undefined;
+
+/**
+ * @member {String} shareMode
+ */
+ShareDetail.prototype['shareMode'] = undefined;
+
+/**
+ * @member {String} backendMode
+ */
+ShareDetail.prototype['backendMode'] = undefined;
+
+/**
+ * @member {Boolean} reserved
+ */
+ShareDetail.prototype['reserved'] = undefined;
+
+/**
+ * @member {Array.SharePrivateResponse
.
+ * @alias module:model/SharePrivateResponse
+ */
+ constructor() {
+
+ SharePrivateResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a SharePrivateResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SharePrivateResponse} obj Optional instance to populate.
+ * @return {module:model/SharePrivateResponse} The populated SharePrivateResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new SharePrivateResponse();
+
+ if (data.hasOwnProperty('token')) {
+ obj['token'] = ApiClient.convertToType(data['token'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to SharePrivateResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to SharePrivateResponse
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} token
+ */
+SharePrivateResponse.prototype['token'] = undefined;
+
+
+
+
+
+
+export default SharePrivateResponse;
+
diff --git a/agent/agent-ui/src/api/src/model/SharePublicResponse.js b/agent/agent-ui/src/api/src/model/SharePublicResponse.js
new file mode 100644
index 00000000..cf1c724c
--- /dev/null
+++ b/agent/agent-ui/src/api/src/model/SharePublicResponse.js
@@ -0,0 +1,99 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The SharePublicResponse model module.
+ * @module model/SharePublicResponse
+ * @version version not set
+ */
+class SharePublicResponse {
+ /**
+ * Constructs a new SharePublicResponse
.
+ * @alias module:model/SharePublicResponse
+ */
+ constructor() {
+
+ SharePublicResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a SharePublicResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SharePublicResponse} obj Optional instance to populate.
+ * @return {module:model/SharePublicResponse} The populated SharePublicResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new SharePublicResponse();
+
+ if (data.hasOwnProperty('token')) {
+ obj['token'] = ApiClient.convertToType(data['token'], 'String');
+ }
+ if (data.hasOwnProperty('frontendEndpoints')) {
+ obj['frontendEndpoints'] = ApiClient.convertToType(data['frontendEndpoints'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to SharePublicResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to SharePublicResponse
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['frontendEndpoints'])) {
+ throw new Error("Expected the field `frontendEndpoints` to be an array in the JSON data but got " + data['frontendEndpoints']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} token
+ */
+SharePublicResponse.prototype['token'] = undefined;
+
+/**
+ * @member {Array.ShareReservedResponse
.
+ * @alias module:model/ShareReservedResponse
+ */
+ constructor() {
+
+ ShareReservedResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ShareReservedResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ShareReservedResponse} obj Optional instance to populate.
+ * @return {module:model/ShareReservedResponse} The populated ShareReservedResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ShareReservedResponse();
+
+ if (data.hasOwnProperty('token')) {
+ obj['token'] = ApiClient.convertToType(data['token'], 'String');
+ }
+ if (data.hasOwnProperty('backendMode')) {
+ obj['backendMode'] = ApiClient.convertToType(data['backendMode'], 'String');
+ }
+ if (data.hasOwnProperty('shareMode')) {
+ obj['shareMode'] = ApiClient.convertToType(data['shareMode'], 'String');
+ }
+ if (data.hasOwnProperty('frontendEndpoints')) {
+ obj['frontendEndpoints'] = ApiClient.convertToType(data['frontendEndpoints'], ['String']);
+ }
+ if (data.hasOwnProperty('target')) {
+ obj['target'] = ApiClient.convertToType(data['target'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ShareReservedResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ShareReservedResponse
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
+ }
+ // ensure the json data is a string
+ if (data['backendMode'] && !(typeof data['backendMode'] === 'string' || data['backendMode'] instanceof String)) {
+ throw new Error("Expected the field `backendMode` to be a primitive type in the JSON string but got " + data['backendMode']);
+ }
+ // ensure the json data is a string
+ if (data['shareMode'] && !(typeof data['shareMode'] === 'string' || data['shareMode'] instanceof String)) {
+ throw new Error("Expected the field `shareMode` to be a primitive type in the JSON string but got " + data['shareMode']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['frontendEndpoints'])) {
+ throw new Error("Expected the field `frontendEndpoints` to be an array in the JSON data but got " + data['frontendEndpoints']);
+ }
+ // ensure the json data is a string
+ if (data['target'] && !(typeof data['target'] === 'string' || data['target'] instanceof String)) {
+ throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data['target']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} token
+ */
+ShareReservedResponse.prototype['token'] = undefined;
+
+/**
+ * @member {String} backendMode
+ */
+ShareReservedResponse.prototype['backendMode'] = undefined;
+
+/**
+ * @member {String} shareMode
+ */
+ShareReservedResponse.prototype['shareMode'] = undefined;
+
+/**
+ * @member {Array.StatusResponse
.
+ * @alias module:model/StatusResponse
+ */
+ constructor() {
+
+ StatusResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a StatusResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/StatusResponse} obj Optional instance to populate.
+ * @return {module:model/StatusResponse} The populated StatusResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new StatusResponse();
+
+ if (data.hasOwnProperty('accesses')) {
+ obj['accesses'] = ApiClient.convertToType(data['accesses'], [AccessDetail]);
+ }
+ if (data.hasOwnProperty('shares')) {
+ obj['shares'] = ApiClient.convertToType(data['shares'], [ShareDetail]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to StatusResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to StatusResponse
.
+ */
+ static validateJSON(data) {
+ if (data['accesses']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['accesses'])) {
+ throw new Error("Expected the field `accesses` to be an array in the JSON data but got " + data['accesses']);
+ }
+ // validate the optional field `accesses` (array)
+ for (const item of data['accesses']) {
+ AccessDetail.validateJSON(item);
+ };
+ }
+ if (data['shares']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['shares'])) {
+ throw new Error("Expected the field `shares` to be an array in the JSON data but got " + data['shares']);
+ }
+ // validate the optional field `shares` (array)
+ for (const item of data['shares']) {
+ ShareDetail.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Array.VersionResponse
.
+ * @alias module:model/VersionResponse
+ */
+ constructor() {
+
+ VersionResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a VersionResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/VersionResponse} obj Optional instance to populate.
+ * @return {module:model/VersionResponse} The populated VersionResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new VersionResponse();
+
+ if (data.hasOwnProperty('v')) {
+ obj['v'] = ApiClient.convertToType(data['v'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to VersionResponse
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to VersionResponse
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['v'] && !(typeof data['v'] === 'string' || data['v'] instanceof String)) {
+ throw new Error("Expected the field `v` to be a primitive type in the JSON string but got " + data['v']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} v
+ */
+VersionResponse.prototype['v'] = undefined;
+
+
+
+
+
+
+export default VersionResponse;
+
diff --git a/agent/agent-ui/src/api/test/api/AgentApi.spec.js b/agent/agent-ui/src/api/test/api/AgentApi.spec.js
new file mode 100644
index 00000000..8b1e7883
--- /dev/null
+++ b/agent/agent-ui/src/api/test/api/AgentApi.spec.js
@@ -0,0 +1,73 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.AgentApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AgentApi', function() {
+ describe('agentStatus', function() {
+ it('should call agentStatus successfully', function(done) {
+ //uncomment below and update the code to test agentStatus
+ //instance.agentStatus(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ describe('agentVersion', function() {
+ it('should call agentVersion successfully', function(done) {
+ //uncomment below and update the code to test agentVersion
+ //instance.agentVersion(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/AccessDetail.spec.js b/agent/agent-ui/src/api/test/model/AccessDetail.spec.js
new file mode 100644
index 00000000..465a3167
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/AccessDetail.spec.js
@@ -0,0 +1,83 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AccessDetail', function() {
+ it('should create an instance of AccessDetail', function() {
+ // uncomment below and update the code to test AccessDetail
+ //var instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.AccessDetail);
+ });
+
+ it('should have the property frontendToken (base name: "frontendToken")', function() {
+ // uncomment below and update the code to test the property frontendToken
+ //var instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property token (base name: "token")', function() {
+ // uncomment below and update the code to test the property token
+ //var instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property bindAddress (base name: "bindAddress")', function() {
+ // uncomment below and update the code to test the property bindAddress
+ //var instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property responseHeaders (base name: "responseHeaders")', function() {
+ // uncomment below and update the code to test the property responseHeaders
+ //var instance = new AgentAgentGrpcAgentProto.AccessDetail();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/AccessPrivateResponse.spec.js b/agent/agent-ui/src/api/test/model/AccessPrivateResponse.spec.js
new file mode 100644
index 00000000..bcbbf7e7
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/AccessPrivateResponse.spec.js
@@ -0,0 +1,65 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.AccessPrivateResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AccessPrivateResponse', function() {
+ it('should create an instance of AccessPrivateResponse', function() {
+ // uncomment below and update the code to test AccessPrivateResponse
+ //var instance = new AgentAgentGrpcAgentProto.AccessPrivateResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.AccessPrivateResponse);
+ });
+
+ it('should have the property frontendToken (base name: "frontendToken")', function() {
+ // uncomment below and update the code to test the property frontendToken
+ //var instance = new AgentAgentGrpcAgentProto.AccessPrivateResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/ProtobufAny.spec.js b/agent/agent-ui/src/api/test/model/ProtobufAny.spec.js
new file mode 100644
index 00000000..bd2ddb7c
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/ProtobufAny.spec.js
@@ -0,0 +1,65 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.ProtobufAny();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ProtobufAny', function() {
+ it('should create an instance of ProtobufAny', function() {
+ // uncomment below and update the code to test ProtobufAny
+ //var instance = new AgentAgentGrpcAgentProto.ProtobufAny();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.ProtobufAny);
+ });
+
+ it('should have the property type (base name: "@type")', function() {
+ // uncomment below and update the code to test the property type
+ //var instance = new AgentAgentGrpcAgentProto.ProtobufAny();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/RpcStatus.spec.js b/agent/agent-ui/src/api/test/model/RpcStatus.spec.js
new file mode 100644
index 00000000..8f3b877f
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/RpcStatus.spec.js
@@ -0,0 +1,77 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.RpcStatus();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('RpcStatus', function() {
+ it('should create an instance of RpcStatus', function() {
+ // uncomment below and update the code to test RpcStatus
+ //var instance = new AgentAgentGrpcAgentProto.RpcStatus();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.RpcStatus);
+ });
+
+ it('should have the property code (base name: "code")', function() {
+ // uncomment below and update the code to test the property code
+ //var instance = new AgentAgentGrpcAgentProto.RpcStatus();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property message (base name: "message")', function() {
+ // uncomment below and update the code to test the property message
+ //var instance = new AgentAgentGrpcAgentProto.RpcStatus();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property details (base name: "details")', function() {
+ // uncomment below and update the code to test the property details
+ //var instance = new AgentAgentGrpcAgentProto.RpcStatus();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/ShareDetail.spec.js b/agent/agent-ui/src/api/test/model/ShareDetail.spec.js
new file mode 100644
index 00000000..c4f50df0
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/ShareDetail.spec.js
@@ -0,0 +1,107 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ShareDetail', function() {
+ it('should create an instance of ShareDetail', function() {
+ // uncomment below and update the code to test ShareDetail
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.ShareDetail);
+ });
+
+ it('should have the property token (base name: "token")', function() {
+ // uncomment below and update the code to test the property token
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property shareMode (base name: "shareMode")', function() {
+ // uncomment below and update the code to test the property shareMode
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property backendMode (base name: "backendMode")', function() {
+ // uncomment below and update the code to test the property backendMode
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property reserved (base name: "reserved")', function() {
+ // uncomment below and update the code to test the property reserved
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property frontendEndpoint (base name: "frontendEndpoint")', function() {
+ // uncomment below and update the code to test the property frontendEndpoint
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property backendEndpoint (base name: "backendEndpoint")', function() {
+ // uncomment below and update the code to test the property backendEndpoint
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property closed (base name: "closed")', function() {
+ // uncomment below and update the code to test the property closed
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property status (base name: "status")', function() {
+ // uncomment below and update the code to test the property status
+ //var instance = new AgentAgentGrpcAgentProto.ShareDetail();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/SharePrivateResponse.spec.js b/agent/agent-ui/src/api/test/model/SharePrivateResponse.spec.js
new file mode 100644
index 00000000..30535a34
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/SharePrivateResponse.spec.js
@@ -0,0 +1,65 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.SharePrivateResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('SharePrivateResponse', function() {
+ it('should create an instance of SharePrivateResponse', function() {
+ // uncomment below and update the code to test SharePrivateResponse
+ //var instance = new AgentAgentGrpcAgentProto.SharePrivateResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.SharePrivateResponse);
+ });
+
+ it('should have the property token (base name: "token")', function() {
+ // uncomment below and update the code to test the property token
+ //var instance = new AgentAgentGrpcAgentProto.SharePrivateResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/SharePublicResponse.spec.js b/agent/agent-ui/src/api/test/model/SharePublicResponse.spec.js
new file mode 100644
index 00000000..35cb6dc9
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/SharePublicResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.SharePublicResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('SharePublicResponse', function() {
+ it('should create an instance of SharePublicResponse', function() {
+ // uncomment below and update the code to test SharePublicResponse
+ //var instance = new AgentAgentGrpcAgentProto.SharePublicResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.SharePublicResponse);
+ });
+
+ it('should have the property token (base name: "token")', function() {
+ // uncomment below and update the code to test the property token
+ //var instance = new AgentAgentGrpcAgentProto.SharePublicResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property frontendEndpoints (base name: "frontendEndpoints")', function() {
+ // uncomment below and update the code to test the property frontendEndpoints
+ //var instance = new AgentAgentGrpcAgentProto.SharePublicResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/ShareReservedResponse.spec.js b/agent/agent-ui/src/api/test/model/ShareReservedResponse.spec.js
new file mode 100644
index 00000000..5ff3f013
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/ShareReservedResponse.spec.js
@@ -0,0 +1,89 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ShareReservedResponse', function() {
+ it('should create an instance of ShareReservedResponse', function() {
+ // uncomment below and update the code to test ShareReservedResponse
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.ShareReservedResponse);
+ });
+
+ it('should have the property token (base name: "token")', function() {
+ // uncomment below and update the code to test the property token
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property backendMode (base name: "backendMode")', function() {
+ // uncomment below and update the code to test the property backendMode
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property shareMode (base name: "shareMode")', function() {
+ // uncomment below and update the code to test the property shareMode
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property frontendEndpoints (base name: "frontendEndpoints")', function() {
+ // uncomment below and update the code to test the property frontendEndpoints
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property target (base name: "target")', function() {
+ // uncomment below and update the code to test the property target
+ //var instance = new AgentAgentGrpcAgentProto.ShareReservedResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/StatusResponse.spec.js b/agent/agent-ui/src/api/test/model/StatusResponse.spec.js
new file mode 100644
index 00000000..409de0a8
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/StatusResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.StatusResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('StatusResponse', function() {
+ it('should create an instance of StatusResponse', function() {
+ // uncomment below and update the code to test StatusResponse
+ //var instance = new AgentAgentGrpcAgentProto.StatusResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.StatusResponse);
+ });
+
+ it('should have the property accesses (base name: "accesses")', function() {
+ // uncomment below and update the code to test the property accesses
+ //var instance = new AgentAgentGrpcAgentProto.StatusResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property shares (base name: "shares")', function() {
+ // uncomment below and update the code to test the property shares
+ //var instance = new AgentAgentGrpcAgentProto.StatusResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/api/test/model/VersionResponse.spec.js b/agent/agent-ui/src/api/test/model/VersionResponse.spec.js
new file mode 100644
index 00000000..0b95d175
--- /dev/null
+++ b/agent/agent-ui/src/api/test/model/VersionResponse.spec.js
@@ -0,0 +1,65 @@
+/**
+ * agent/agentGrpc/agent.proto
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: version not set
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.AgentAgentGrpcAgentProto);
+ }
+}(this, function(expect, AgentAgentGrpcAgentProto) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new AgentAgentGrpcAgentProto.VersionResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('VersionResponse', function() {
+ it('should create an instance of VersionResponse', function() {
+ // uncomment below and update the code to test VersionResponse
+ //var instance = new AgentAgentGrpcAgentProto.VersionResponse();
+ //expect(instance).to.be.a(AgentAgentGrpcAgentProto.VersionResponse);
+ });
+
+ it('should have the property v (base name: "v")', function() {
+ // uncomment below and update the code to test the property v
+ //var instance = new AgentAgentGrpcAgentProto.VersionResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/agent/agent-ui/src/app/page.js b/agent/agent-ui/src/app/page.js
index a7d22b30..ad142bb5 100644
--- a/agent/agent-ui/src/app/page.js
+++ b/agent/agent-ui/src/app/page.js
@@ -1,7 +1,26 @@
+"use client";
+
+import {useEffect, useState} from "react";
+import {AgentApi, ApiClient} from "@/api/src";
+
export default function Home() {
- return (
- Agent
-Agent: {version}
+