mirror of
https://github.com/openziti/zrok.git
synced 2025-08-13 01:37:24 +02:00
regenerate api
This commit is contained in:
@ -1 +1 @@
|
|||||||
3.0.51
|
3.0.52
|
@ -219,9 +219,12 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|||||||
|
|
||||||
:return: The token for basic HTTP authentication.
|
:return: The token for basic HTTP authentication.
|
||||||
"""
|
"""
|
||||||
return urllib3.util.make_headers(
|
token = ""
|
||||||
basic_auth=self.username + ':' + self.password
|
if self.username or self.password:
|
||||||
).get('authorization')
|
token = urllib3.util.make_headers(
|
||||||
|
basic_auth=self.username + ':' + self.password
|
||||||
|
).get('authorization')
|
||||||
|
return token
|
||||||
|
|
||||||
def auth_settings(self):
|
def auth_settings(self):
|
||||||
"""Gets Auth Settings dict for api client.
|
"""Gets Auth Settings dict for api client.
|
||||||
|
@ -42,11 +42,11 @@ class RESTResponse(io.IOBase):
|
|||||||
|
|
||||||
def getheaders(self):
|
def getheaders(self):
|
||||||
"""Returns a dictionary of the response headers."""
|
"""Returns a dictionary of the response headers."""
|
||||||
return self.urllib3_response.getheaders()
|
return self.urllib3_response.headers
|
||||||
|
|
||||||
def getheader(self, name, default=None):
|
def getheader(self, name, default=None):
|
||||||
"""Returns a given response header."""
|
"""Returns a given response header."""
|
||||||
return self.urllib3_response.getheader(name, default)
|
return self.urllib3_response.headers.get(name, default)
|
||||||
|
|
||||||
|
|
||||||
class RESTClientObject(object):
|
class RESTClientObject(object):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
.babelrc
|
.babelrc
|
||||||
.gitignore
|
.gitignore
|
||||||
.travis.yml
|
|
||||||
README.md
|
README.md
|
||||||
docs/AccessRequest.md
|
docs/AccessRequest.md
|
||||||
docs/AccessResponse.md
|
docs/AccessResponse.md
|
||||||
@ -31,11 +30,11 @@ docs/Overview.md
|
|||||||
docs/PasswordRequirements.md
|
docs/PasswordRequirements.md
|
||||||
docs/Principal.md
|
docs/Principal.md
|
||||||
docs/PublicFrontend.md
|
docs/PublicFrontend.md
|
||||||
|
docs/RegenerateToken200Response.md
|
||||||
|
docs/RegenerateTokenRequest.md
|
||||||
docs/RegisterRequest.md
|
docs/RegisterRequest.md
|
||||||
docs/RegisterResponse.md
|
docs/RegisterResponse.md
|
||||||
docs/ResetPasswordRequest.md
|
docs/ResetPasswordRequest.md
|
||||||
docs/ResetPasswordRequestRequest.md
|
|
||||||
docs/ResetToken200Response.md
|
|
||||||
docs/Share.md
|
docs/Share.md
|
||||||
docs/ShareApi.md
|
docs/ShareApi.md
|
||||||
docs/ShareRequest.md
|
docs/ShareRequest.md
|
||||||
@ -47,7 +46,6 @@ docs/UpdateFrontendRequest.md
|
|||||||
docs/UpdateShareRequest.md
|
docs/UpdateShareRequest.md
|
||||||
docs/VerifyRequest.md
|
docs/VerifyRequest.md
|
||||||
docs/VerifyResponse.md
|
docs/VerifyResponse.md
|
||||||
git_push.sh
|
|
||||||
mocha.opts
|
mocha.opts
|
||||||
package.json
|
package.json
|
||||||
src/ApiClient.js
|
src/ApiClient.js
|
||||||
@ -82,11 +80,11 @@ src/model/Overview.js
|
|||||||
src/model/PasswordRequirements.js
|
src/model/PasswordRequirements.js
|
||||||
src/model/Principal.js
|
src/model/Principal.js
|
||||||
src/model/PublicFrontend.js
|
src/model/PublicFrontend.js
|
||||||
|
src/model/RegenerateToken200Response.js
|
||||||
|
src/model/RegenerateTokenRequest.js
|
||||||
src/model/RegisterRequest.js
|
src/model/RegisterRequest.js
|
||||||
src/model/RegisterResponse.js
|
src/model/RegisterResponse.js
|
||||||
src/model/ResetPasswordRequest.js
|
src/model/ResetPasswordRequest.js
|
||||||
src/model/ResetPasswordRequestRequest.js
|
|
||||||
src/model/ResetToken200Response.js
|
|
||||||
src/model/Share.js
|
src/model/Share.js
|
||||||
src/model/ShareRequest.js
|
src/model/ShareRequest.js
|
||||||
src/model/ShareResponse.js
|
src/model/ShareResponse.js
|
||||||
@ -97,3 +95,5 @@ src/model/UpdateFrontendRequest.js
|
|||||||
src/model/UpdateShareRequest.js
|
src/model/UpdateShareRequest.js
|
||||||
src/model/VerifyRequest.js
|
src/model/VerifyRequest.js
|
||||||
src/model/VerifyResponse.js
|
src/model/VerifyResponse.js
|
||||||
|
test/model/RegenerateToken200Response.spec.js
|
||||||
|
test/model/RegenerateTokenRequest.spec.js
|
||||||
|
@ -129,10 +129,10 @@ Class | Method | HTTP request | Description
|
|||||||
*Zrok.AccountApi* | [**changePassword**](docs/AccountApi.md#changePassword) | **POST** /changePassword |
|
*Zrok.AccountApi* | [**changePassword**](docs/AccountApi.md#changePassword) | **POST** /changePassword |
|
||||||
*Zrok.AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite |
|
*Zrok.AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite |
|
||||||
*Zrok.AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login |
|
*Zrok.AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login |
|
||||||
|
*Zrok.AccountApi* | [**regenerateToken**](docs/AccountApi.md#regenerateToken) | **POST** /regenerateToken |
|
||||||
*Zrok.AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register |
|
*Zrok.AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register |
|
||||||
*Zrok.AccountApi* | [**resetPassword**](docs/AccountApi.md#resetPassword) | **POST** /resetPassword |
|
*Zrok.AccountApi* | [**resetPassword**](docs/AccountApi.md#resetPassword) | **POST** /resetPassword |
|
||||||
*Zrok.AccountApi* | [**resetPasswordRequest**](docs/AccountApi.md#resetPasswordRequest) | **POST** /resetPasswordRequest |
|
*Zrok.AccountApi* | [**resetPasswordRequest**](docs/AccountApi.md#resetPasswordRequest) | **POST** /resetPasswordRequest |
|
||||||
*Zrok.AccountApi* | [**resetToken**](docs/AccountApi.md#resetToken) | **POST** /resetToken |
|
|
||||||
*Zrok.AccountApi* | [**verify**](docs/AccountApi.md#verify) | **POST** /verify |
|
*Zrok.AccountApi* | [**verify**](docs/AccountApi.md#verify) | **POST** /verify |
|
||||||
*Zrok.AdminApi* | [**createFrontend**](docs/AdminApi.md#createFrontend) | **POST** /frontend |
|
*Zrok.AdminApi* | [**createFrontend**](docs/AdminApi.md#createFrontend) | **POST** /frontend |
|
||||||
*Zrok.AdminApi* | [**createIdentity**](docs/AdminApi.md#createIdentity) | **POST** /identity |
|
*Zrok.AdminApi* | [**createIdentity**](docs/AdminApi.md#createIdentity) | **POST** /identity |
|
||||||
@ -186,11 +186,11 @@ Class | Method | HTTP request | Description
|
|||||||
- [Zrok.PasswordRequirements](docs/PasswordRequirements.md)
|
- [Zrok.PasswordRequirements](docs/PasswordRequirements.md)
|
||||||
- [Zrok.Principal](docs/Principal.md)
|
- [Zrok.Principal](docs/Principal.md)
|
||||||
- [Zrok.PublicFrontend](docs/PublicFrontend.md)
|
- [Zrok.PublicFrontend](docs/PublicFrontend.md)
|
||||||
|
- [Zrok.RegenerateToken200Response](docs/RegenerateToken200Response.md)
|
||||||
|
- [Zrok.RegenerateTokenRequest](docs/RegenerateTokenRequest.md)
|
||||||
- [Zrok.RegisterRequest](docs/RegisterRequest.md)
|
- [Zrok.RegisterRequest](docs/RegisterRequest.md)
|
||||||
- [Zrok.RegisterResponse](docs/RegisterResponse.md)
|
- [Zrok.RegisterResponse](docs/RegisterResponse.md)
|
||||||
- [Zrok.ResetPasswordRequest](docs/ResetPasswordRequest.md)
|
- [Zrok.ResetPasswordRequest](docs/ResetPasswordRequest.md)
|
||||||
- [Zrok.ResetPasswordRequestRequest](docs/ResetPasswordRequestRequest.md)
|
|
||||||
- [Zrok.ResetToken200Response](docs/ResetToken200Response.md)
|
|
||||||
- [Zrok.Share](docs/Share.md)
|
- [Zrok.Share](docs/Share.md)
|
||||||
- [Zrok.ShareRequest](docs/ShareRequest.md)
|
- [Zrok.ShareRequest](docs/ShareRequest.md)
|
||||||
- [Zrok.ShareResponse](docs/ShareResponse.md)
|
- [Zrok.ShareResponse](docs/ShareResponse.md)
|
||||||
|
@ -7,10 +7,10 @@ Method | HTTP request | Description
|
|||||||
[**changePassword**](AccountApi.md#changePassword) | **POST** /changePassword |
|
[**changePassword**](AccountApi.md#changePassword) | **POST** /changePassword |
|
||||||
[**invite**](AccountApi.md#invite) | **POST** /invite |
|
[**invite**](AccountApi.md#invite) | **POST** /invite |
|
||||||
[**login**](AccountApi.md#login) | **POST** /login |
|
[**login**](AccountApi.md#login) | **POST** /login |
|
||||||
|
[**regenerateToken**](AccountApi.md#regenerateToken) | **POST** /regenerateToken |
|
||||||
[**register**](AccountApi.md#register) | **POST** /register |
|
[**register**](AccountApi.md#register) | **POST** /register |
|
||||||
[**resetPassword**](AccountApi.md#resetPassword) | **POST** /resetPassword |
|
[**resetPassword**](AccountApi.md#resetPassword) | **POST** /resetPassword |
|
||||||
[**resetPasswordRequest**](AccountApi.md#resetPasswordRequest) | **POST** /resetPasswordRequest |
|
[**resetPasswordRequest**](AccountApi.md#resetPasswordRequest) | **POST** /resetPasswordRequest |
|
||||||
[**resetToken**](AccountApi.md#resetToken) | **POST** /resetToken |
|
|
||||||
[**verify**](AccountApi.md#verify) | **POST** /verify |
|
[**verify**](AccountApi.md#verify) | **POST** /verify |
|
||||||
|
|
||||||
|
|
||||||
@ -153,6 +153,56 @@ No authorization required
|
|||||||
- **Accept**: application/zrok.v1+json
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
|
||||||
|
## regenerateToken
|
||||||
|
|
||||||
|
> RegenerateToken200Response regenerateToken(opts)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import Zrok from 'zrok';
|
||||||
|
let defaultClient = Zrok.ApiClient.instance;
|
||||||
|
// Configure API key authorization: key
|
||||||
|
let key = defaultClient.authentications['key'];
|
||||||
|
key.apiKey = 'YOUR API KEY';
|
||||||
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||||
|
//key.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
|
let apiInstance = new Zrok.AccountApi();
|
||||||
|
let opts = {
|
||||||
|
'body': new Zrok.RegenerateTokenRequest() // RegenerateTokenRequest |
|
||||||
|
};
|
||||||
|
apiInstance.regenerateToken(opts).then((data) => {
|
||||||
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
|
}, (error) => {
|
||||||
|
console.error(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**RegenerateTokenRequest**](RegenerateTokenRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**RegenerateToken200Response**](RegenerateToken200Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
|
||||||
## register
|
## register
|
||||||
|
|
||||||
> RegisterResponse register(opts)
|
> RegisterResponse register(opts)
|
||||||
@ -254,7 +304,7 @@ import Zrok from 'zrok';
|
|||||||
|
|
||||||
let apiInstance = new Zrok.AccountApi();
|
let apiInstance = new Zrok.AccountApi();
|
||||||
let opts = {
|
let opts = {
|
||||||
'body': new Zrok.ResetPasswordRequestRequest() // ResetPasswordRequestRequest |
|
'body': new Zrok.RegenerateTokenRequest() // RegenerateTokenRequest |
|
||||||
};
|
};
|
||||||
apiInstance.resetPasswordRequest(opts).then(() => {
|
apiInstance.resetPasswordRequest(opts).then(() => {
|
||||||
console.log('API called successfully.');
|
console.log('API called successfully.');
|
||||||
@ -269,7 +319,7 @@ apiInstance.resetPasswordRequest(opts).then(() => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ResetPasswordRequestRequest**](ResetPasswordRequestRequest.md)| | [optional]
|
**body** | [**RegenerateTokenRequest**](RegenerateTokenRequest.md)| | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -285,56 +335,6 @@ No authorization required
|
|||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
## resetToken
|
|
||||||
|
|
||||||
> ResetToken200Response resetToken(opts)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import Zrok from 'zrok';
|
|
||||||
let defaultClient = Zrok.ApiClient.instance;
|
|
||||||
// Configure API key authorization: key
|
|
||||||
let key = defaultClient.authentications['key'];
|
|
||||||
key.apiKey = 'YOUR API KEY';
|
|
||||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
||||||
//key.apiKeyPrefix = 'Token';
|
|
||||||
|
|
||||||
let apiInstance = new Zrok.AccountApi();
|
|
||||||
let opts = {
|
|
||||||
'body': new Zrok.ResetPasswordRequestRequest() // ResetPasswordRequestRequest |
|
|
||||||
};
|
|
||||||
apiInstance.resetToken(opts).then((data) => {
|
|
||||||
console.log('API called successfully. Returned data: ' + data);
|
|
||||||
}, (error) => {
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**body** | [**ResetPasswordRequestRequest**](ResetPasswordRequestRequest.md)| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**ResetToken200Response**](ResetToken200Response.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[key](../README.md#key)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/zrok.v1+json
|
|
||||||
- **Accept**: application/zrok.v1+json
|
|
||||||
|
|
||||||
|
|
||||||
## verify
|
## verify
|
||||||
|
|
||||||
> VerifyResponse verify(opts)
|
> VerifyResponse verify(opts)
|
||||||
|
9
ui/src/api/docs/RegenerateToken200Response.md
Normal file
9
ui/src/api/docs/RegenerateToken200Response.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Zrok.RegenerateToken200Response
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**token** | **String** | | [optional]
|
||||||
|
|
||||||
|
|
9
ui/src/api/docs/RegenerateTokenRequest.md
Normal file
9
ui/src/api/docs/RegenerateTokenRequest.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Zrok.RegenerateTokenRequest
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**emailAddress** | **String** | | [optional]
|
||||||
|
|
||||||
|
|
@ -16,11 +16,11 @@ import ApiClient from "../ApiClient";
|
|||||||
import ChangePasswordRequest from '../model/ChangePasswordRequest';
|
import ChangePasswordRequest from '../model/ChangePasswordRequest';
|
||||||
import InviteRequest from '../model/InviteRequest';
|
import InviteRequest from '../model/InviteRequest';
|
||||||
import LoginRequest from '../model/LoginRequest';
|
import LoginRequest from '../model/LoginRequest';
|
||||||
|
import RegenerateToken200Response from '../model/RegenerateToken200Response';
|
||||||
|
import RegenerateTokenRequest from '../model/RegenerateTokenRequest';
|
||||||
import RegisterRequest from '../model/RegisterRequest';
|
import RegisterRequest from '../model/RegisterRequest';
|
||||||
import RegisterResponse from '../model/RegisterResponse';
|
import RegisterResponse from '../model/RegisterResponse';
|
||||||
import ResetPasswordRequest from '../model/ResetPasswordRequest';
|
import ResetPasswordRequest from '../model/ResetPasswordRequest';
|
||||||
import ResetPasswordRequestRequest from '../model/ResetPasswordRequestRequest';
|
|
||||||
import ResetToken200Response from '../model/ResetToken200Response';
|
|
||||||
import VerifyRequest from '../model/VerifyRequest';
|
import VerifyRequest from '../model/VerifyRequest';
|
||||||
import VerifyResponse from '../model/VerifyResponse';
|
import VerifyResponse from '../model/VerifyResponse';
|
||||||
|
|
||||||
@ -170,6 +170,48 @@ export default class AccountApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Object} opts Optional parameters
|
||||||
|
* @param {module:model/RegenerateTokenRequest} [body]
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegenerateToken200Response} and HTTP response
|
||||||
|
*/
|
||||||
|
regenerateTokenWithHttpInfo(opts) {
|
||||||
|
opts = opts || {};
|
||||||
|
let postBody = opts['body'];
|
||||||
|
|
||||||
|
let pathParams = {
|
||||||
|
};
|
||||||
|
let queryParams = {
|
||||||
|
};
|
||||||
|
let headerParams = {
|
||||||
|
};
|
||||||
|
let formParams = {
|
||||||
|
};
|
||||||
|
|
||||||
|
let authNames = ['key'];
|
||||||
|
let contentTypes = ['application/zrok.v1+json'];
|
||||||
|
let accepts = ['application/zrok.v1+json'];
|
||||||
|
let returnType = RegenerateToken200Response;
|
||||||
|
return this.apiClient.callApi(
|
||||||
|
'/regenerateToken', 'POST',
|
||||||
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
|
authNames, contentTypes, accepts, returnType, null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Object} opts Optional parameters
|
||||||
|
* @param {module:model/RegenerateTokenRequest} opts.body
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegenerateToken200Response}
|
||||||
|
*/
|
||||||
|
regenerateToken(opts) {
|
||||||
|
return this.regenerateTokenWithHttpInfo(opts)
|
||||||
|
.then(function(response_and_data) {
|
||||||
|
return response_and_data.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} opts Optional parameters
|
* @param {Object} opts Optional parameters
|
||||||
* @param {module:model/RegisterRequest} [body]
|
* @param {module:model/RegisterRequest} [body]
|
||||||
@ -256,7 +298,7 @@ export default class AccountApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} opts Optional parameters
|
* @param {Object} opts Optional parameters
|
||||||
* @param {module:model/ResetPasswordRequestRequest} [body]
|
* @param {module:model/RegenerateTokenRequest} [body]
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
resetPasswordRequestWithHttpInfo(opts) {
|
resetPasswordRequestWithHttpInfo(opts) {
|
||||||
@ -285,7 +327,7 @@ export default class AccountApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} opts Optional parameters
|
* @param {Object} opts Optional parameters
|
||||||
* @param {module:model/ResetPasswordRequestRequest} opts.body
|
* @param {module:model/RegenerateTokenRequest} opts.body
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
resetPasswordRequest(opts) {
|
resetPasswordRequest(opts) {
|
||||||
@ -296,48 +338,6 @@ export default class AccountApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {Object} opts Optional parameters
|
|
||||||
* @param {module:model/ResetPasswordRequestRequest} [body]
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetToken200Response} and HTTP response
|
|
||||||
*/
|
|
||||||
resetTokenWithHttpInfo(opts) {
|
|
||||||
opts = opts || {};
|
|
||||||
let postBody = opts['body'];
|
|
||||||
|
|
||||||
let pathParams = {
|
|
||||||
};
|
|
||||||
let queryParams = {
|
|
||||||
};
|
|
||||||
let headerParams = {
|
|
||||||
};
|
|
||||||
let formParams = {
|
|
||||||
};
|
|
||||||
|
|
||||||
let authNames = ['key'];
|
|
||||||
let contentTypes = ['application/zrok.v1+json'];
|
|
||||||
let accepts = ['application/zrok.v1+json'];
|
|
||||||
let returnType = ResetToken200Response;
|
|
||||||
return this.apiClient.callApi(
|
|
||||||
'/resetToken', 'POST',
|
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
|
||||||
authNames, contentTypes, accepts, returnType, null
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {Object} opts Optional parameters
|
|
||||||
* @param {module:model/ResetPasswordRequestRequest} opts.body
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetToken200Response}
|
|
||||||
*/
|
|
||||||
resetToken(opts) {
|
|
||||||
return this.resetTokenWithHttpInfo(opts)
|
|
||||||
.then(function(response_and_data) {
|
|
||||||
return response_and_data.data;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} opts Optional parameters
|
* @param {Object} opts Optional parameters
|
||||||
* @param {module:model/VerifyRequest} [body]
|
* @param {module:model/VerifyRequest} [body]
|
||||||
|
@ -38,11 +38,11 @@ import Overview from './model/Overview';
|
|||||||
import PasswordRequirements from './model/PasswordRequirements';
|
import PasswordRequirements from './model/PasswordRequirements';
|
||||||
import Principal from './model/Principal';
|
import Principal from './model/Principal';
|
||||||
import PublicFrontend from './model/PublicFrontend';
|
import PublicFrontend from './model/PublicFrontend';
|
||||||
|
import RegenerateToken200Response from './model/RegenerateToken200Response';
|
||||||
|
import RegenerateTokenRequest from './model/RegenerateTokenRequest';
|
||||||
import RegisterRequest from './model/RegisterRequest';
|
import RegisterRequest from './model/RegisterRequest';
|
||||||
import RegisterResponse from './model/RegisterResponse';
|
import RegisterResponse from './model/RegisterResponse';
|
||||||
import ResetPasswordRequest from './model/ResetPasswordRequest';
|
import ResetPasswordRequest from './model/ResetPasswordRequest';
|
||||||
import ResetPasswordRequestRequest from './model/ResetPasswordRequestRequest';
|
|
||||||
import ResetToken200Response from './model/ResetToken200Response';
|
|
||||||
import Share from './model/Share';
|
import Share from './model/Share';
|
||||||
import ShareRequest from './model/ShareRequest';
|
import ShareRequest from './model/ShareRequest';
|
||||||
import ShareResponse from './model/ShareResponse';
|
import ShareResponse from './model/ShareResponse';
|
||||||
@ -248,6 +248,18 @@ export {
|
|||||||
*/
|
*/
|
||||||
PublicFrontend,
|
PublicFrontend,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The RegenerateToken200Response model constructor.
|
||||||
|
* @property {module:model/RegenerateToken200Response}
|
||||||
|
*/
|
||||||
|
RegenerateToken200Response,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The RegenerateTokenRequest model constructor.
|
||||||
|
* @property {module:model/RegenerateTokenRequest}
|
||||||
|
*/
|
||||||
|
RegenerateTokenRequest,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The RegisterRequest model constructor.
|
* The RegisterRequest model constructor.
|
||||||
* @property {module:model/RegisterRequest}
|
* @property {module:model/RegisterRequest}
|
||||||
@ -266,18 +278,6 @@ export {
|
|||||||
*/
|
*/
|
||||||
ResetPasswordRequest,
|
ResetPasswordRequest,
|
||||||
|
|
||||||
/**
|
|
||||||
* The ResetPasswordRequestRequest model constructor.
|
|
||||||
* @property {module:model/ResetPasswordRequestRequest}
|
|
||||||
*/
|
|
||||||
ResetPasswordRequestRequest,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The ResetToken200Response model constructor.
|
|
||||||
* @property {module:model/ResetToken200Response}
|
|
||||||
*/
|
|
||||||
ResetToken200Response,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Share model constructor.
|
* The Share model constructor.
|
||||||
* @property {module:model/Share}
|
* @property {module:model/Share}
|
||||||
|
87
ui/src/api/src/model/RegenerateToken200Response.js
Normal file
87
ui/src/api/src/model/RegenerateToken200Response.js
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
/**
|
||||||
|
* zrok
|
||||||
|
* zrok client access
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.3.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* 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 RegenerateToken200Response model module.
|
||||||
|
* @module model/RegenerateToken200Response
|
||||||
|
* @version 0.3.0
|
||||||
|
*/
|
||||||
|
class RegenerateToken200Response {
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>RegenerateToken200Response</code>.
|
||||||
|
* @alias module:model/RegenerateToken200Response
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
RegenerateToken200Response.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 <code>RegenerateToken200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/RegenerateToken200Response} obj Optional instance to populate.
|
||||||
|
* @return {module:model/RegenerateToken200Response} The populated <code>RegenerateToken200Response</code> instance.
|
||||||
|
*/
|
||||||
|
static constructFromObject(data, obj) {
|
||||||
|
if (data) {
|
||||||
|
obj = obj || new RegenerateToken200Response();
|
||||||
|
|
||||||
|
if (data.hasOwnProperty('token')) {
|
||||||
|
obj['token'] = ApiClient.convertToType(data['token'], 'String');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates the JSON data with respect to <code>RegenerateToken200Response</code>.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RegenerateToken200Response</code>.
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
*/
|
||||||
|
RegenerateToken200Response.prototype['token'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default RegenerateToken200Response;
|
||||||
|
|
87
ui/src/api/src/model/RegenerateTokenRequest.js
Normal file
87
ui/src/api/src/model/RegenerateTokenRequest.js
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
/**
|
||||||
|
* zrok
|
||||||
|
* zrok client access
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.3.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* 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 RegenerateTokenRequest model module.
|
||||||
|
* @module model/RegenerateTokenRequest
|
||||||
|
* @version 0.3.0
|
||||||
|
*/
|
||||||
|
class RegenerateTokenRequest {
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>RegenerateTokenRequest</code>.
|
||||||
|
* @alias module:model/RegenerateTokenRequest
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
RegenerateTokenRequest.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 <code>RegenerateTokenRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/RegenerateTokenRequest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/RegenerateTokenRequest} The populated <code>RegenerateTokenRequest</code> instance.
|
||||||
|
*/
|
||||||
|
static constructFromObject(data, obj) {
|
||||||
|
if (data) {
|
||||||
|
obj = obj || new RegenerateTokenRequest();
|
||||||
|
|
||||||
|
if (data.hasOwnProperty('emailAddress')) {
|
||||||
|
obj['emailAddress'] = ApiClient.convertToType(data['emailAddress'], 'String');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates the JSON data with respect to <code>RegenerateTokenRequest</code>.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RegenerateTokenRequest</code>.
|
||||||
|
*/
|
||||||
|
static validateJSON(data) {
|
||||||
|
// ensure the json data is a string
|
||||||
|
if (data['emailAddress'] && !(typeof data['emailAddress'] === 'string' || data['emailAddress'] instanceof String)) {
|
||||||
|
throw new Error("Expected the field `emailAddress` to be a primitive type in the JSON string but got " + data['emailAddress']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} emailAddress
|
||||||
|
*/
|
||||||
|
RegenerateTokenRequest.prototype['emailAddress'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default RegenerateTokenRequest;
|
||||||
|
|
65
ui/src/api/test/model/RegenerateToken200Response.spec.js
Normal file
65
ui/src/api/test/model/RegenerateToken200Response.spec.js
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* zrok
|
||||||
|
* zrok client access
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.3.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* 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.Zrok);
|
||||||
|
}
|
||||||
|
}(this, function(expect, Zrok) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new Zrok.RegenerateToken200Response();
|
||||||
|
});
|
||||||
|
|
||||||
|
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('RegenerateToken200Response', function() {
|
||||||
|
it('should create an instance of RegenerateToken200Response', function() {
|
||||||
|
// uncomment below and update the code to test RegenerateToken200Response
|
||||||
|
//var instance = new Zrok.RegenerateToken200Response();
|
||||||
|
//expect(instance).to.be.a(Zrok.RegenerateToken200Response);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property token (base name: "token")', function() {
|
||||||
|
// uncomment below and update the code to test the property token
|
||||||
|
//var instance = new Zrok.RegenerateToken200Response();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
65
ui/src/api/test/model/RegenerateTokenRequest.spec.js
Normal file
65
ui/src/api/test/model/RegenerateTokenRequest.spec.js
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* zrok
|
||||||
|
* zrok client access
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.3.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* 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.Zrok);
|
||||||
|
}
|
||||||
|
}(this, function(expect, Zrok) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new Zrok.RegenerateTokenRequest();
|
||||||
|
});
|
||||||
|
|
||||||
|
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('RegenerateTokenRequest', function() {
|
||||||
|
it('should create an instance of RegenerateTokenRequest', function() {
|
||||||
|
// uncomment below and update the code to test RegenerateTokenRequest
|
||||||
|
//var instance = new Zrok.RegenerateTokenRequest();
|
||||||
|
//expect(instance).to.be.a(Zrok.RegenerateTokenRequest);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property emailAddress (base name: "emailAddress")', function() {
|
||||||
|
// uncomment below and update the code to test the property emailAddress
|
||||||
|
//var instance = new Zrok.RegenerateTokenRequest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
Reference in New Issue
Block a user