mirror of
https://github.com/openziti/zrok.git
synced 2025-06-21 10:17:51 +02:00
parent
598bfcc571
commit
3a08a840e3
@ -53,7 +53,7 @@ func (cmd *adminGenerateCommand) run(_ *cobra.Command, args []string) {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
req := admin.NewInviteTokenGenerateParams()
|
req := admin.NewInviteTokenGenerateParams()
|
||||||
req.Body.Tokens = tokens
|
req.Body.InviteTokens = tokens
|
||||||
|
|
||||||
_, err = zrok.Admin.InviteTokenGenerate(req, mustGetAdminAuth())
|
_, err = zrok.Admin.InviteTokenGenerate(req, mustGetAdminAuth())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -41,7 +41,7 @@ func (cmd *adminListOrgMembersCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
req := admin.NewListOrganizationMembersParams()
|
req := admin.NewListOrganizationMembersParams()
|
||||||
req.Body.Token = args[0]
|
req.Body.OrganizationToken = args[0]
|
||||||
|
|
||||||
resp, err := zrok.Admin.ListOrganizationMembers(req, mustGetAdminAuth())
|
resp, err := zrok.Admin.ListOrganizationMembers(req, mustGetAdminAuth())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -66,7 +66,7 @@ func (c *orgMembershipsCommand) run(_ *cobra.Command, _ []string) {
|
|||||||
t.SetStyle(table.StyleColoredDark)
|
t.SetStyle(table.StyleColoredDark)
|
||||||
t.AppendHeader(table.Row{"Organization Token", "Description", "Admin?"})
|
t.AppendHeader(table.Row{"Organization Token", "Description", "Admin?"})
|
||||||
for _, i := range in.Payload.Memberships {
|
for _, i := range in.Payload.Memberships {
|
||||||
t.AppendRow(table.Row{i.Token, i.Description, i.Admin})
|
t.AppendRow(table.Row{i.OrganizationToken, i.Description, i.Admin})
|
||||||
}
|
}
|
||||||
t.Render()
|
t.Render()
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
|
@ -22,14 +22,14 @@ func (handler *inviteTokenGenerateHandler) Handle(params admin.InviteTokenGenera
|
|||||||
return admin.NewInviteTokenGenerateUnauthorized()
|
return admin.NewInviteTokenGenerateUnauthorized()
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(params.Body.Tokens) == 0 {
|
if len(params.Body.InviteTokens) == 0 {
|
||||||
logrus.Error("missing tokens")
|
logrus.Error("missing tokens")
|
||||||
return admin.NewInviteTokenGenerateBadRequest()
|
return admin.NewInviteTokenGenerateBadRequest()
|
||||||
}
|
}
|
||||||
logrus.Infof("received invite generate request with %d tokens", len(params.Body.Tokens))
|
logrus.Infof("received invite generate request with %d tokens", len(params.Body.InviteTokens))
|
||||||
|
|
||||||
invites := make([]*store.InviteToken, len(params.Body.Tokens))
|
invites := make([]*store.InviteToken, len(params.Body.InviteTokens))
|
||||||
for i, token := range params.Body.Tokens {
|
for i, token := range params.Body.InviteTokens {
|
||||||
invites[i] = &store.InviteToken{
|
invites[i] = &store.InviteToken{
|
||||||
Token: token,
|
Token: token,
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ func (h *listMembershipsHandler) Handle(_ metadata.ListMembershipsParams, princi
|
|||||||
|
|
||||||
var out []*metadata.ListMembershipsOKBodyMembershipsItems0
|
var out []*metadata.ListMembershipsOKBodyMembershipsItems0
|
||||||
for _, om := range oms {
|
for _, om := range oms {
|
||||||
out = append(out, &metadata.ListMembershipsOKBodyMembershipsItems0{Token: om.Token, Description: om.Description, Admin: om.Admin})
|
out = append(out, &metadata.ListMembershipsOKBodyMembershipsItems0{OrganizationToken: om.Token, Description: om.Description, Admin: om.Admin})
|
||||||
}
|
}
|
||||||
return metadata.NewListMembershipsOK().WithPayload(&metadata.ListMembershipsOKBody{Memberships: out})
|
return metadata.NewListMembershipsOK().WithPayload(&metadata.ListMembershipsOKBody{Memberships: out})
|
||||||
}
|
}
|
||||||
|
@ -26,13 +26,13 @@ func (h *listOrganizationMembersHandler) Handle(params admin.ListOrganizationMem
|
|||||||
}
|
}
|
||||||
defer func() { _ = trx.Rollback() }()
|
defer func() { _ = trx.Rollback() }()
|
||||||
|
|
||||||
org, err := str.FindOrganizationByToken(params.Body.Token, trx)
|
org, err := str.FindOrganizationByToken(params.Body.OrganizationToken, trx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error finding organization by token: %v", err)
|
logrus.Errorf("error finding organization by token: %v", err)
|
||||||
return admin.NewListOrganizationMembersNotFound()
|
return admin.NewListOrganizationMembersNotFound()
|
||||||
}
|
}
|
||||||
if org == nil {
|
if org == nil {
|
||||||
logrus.Errorf("organization '%v' not found", params.Body.Token)
|
logrus.Errorf("organization '%v' not found", params.Body.OrganizationToken)
|
||||||
return admin.NewListOrganizationMembersNotFound()
|
return admin.NewListOrganizationMembersNotFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ func newVerifyHandler() *verifyHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *verifyHandler) Handle(params account.VerifyParams) middleware.Responder {
|
func (h *verifyHandler) Handle(params account.VerifyParams) middleware.Responder {
|
||||||
if params.Body.Token != "" {
|
if params.Body.RegistrationToken != "" {
|
||||||
logrus.Debugf("received verify request for token '%v'", params.Body.Token)
|
logrus.Debugf("received verify request for registration token '%v'", params.Body.RegistrationToken)
|
||||||
tx, err := str.Begin()
|
tx, err := str.Begin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error starting transaction: %v", err)
|
logrus.Errorf("error starting transaction: %v", err)
|
||||||
@ -22,9 +22,9 @@ func (h *verifyHandler) Handle(params account.VerifyParams) middleware.Responder
|
|||||||
}
|
}
|
||||||
defer func() { _ = tx.Rollback() }()
|
defer func() { _ = tx.Rollback() }()
|
||||||
|
|
||||||
ar, err := str.FindAccountRequestWithToken(params.Body.Token, tx)
|
ar, err := str.FindAccountRequestWithToken(params.Body.RegistrationToken, tx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error finding account request with token '%v': %v", params.Body.Token, err)
|
logrus.Errorf("error finding account request with registration token '%v': %v", params.Body.RegistrationToken, err)
|
||||||
return account.NewVerifyNotFound()
|
return account.NewVerifyNotFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ func NewVerifyOK() *VerifyOK {
|
|||||||
/*
|
/*
|
||||||
VerifyOK describes a response with status code 200, with default header values.
|
VerifyOK describes a response with status code 200, with default header values.
|
||||||
|
|
||||||
token ready
|
registration token ready
|
||||||
*/
|
*/
|
||||||
type VerifyOK struct {
|
type VerifyOK struct {
|
||||||
Payload *VerifyOKBody
|
Payload *VerifyOKBody
|
||||||
@ -122,7 +122,7 @@ func NewVerifyNotFound() *VerifyNotFound {
|
|||||||
/*
|
/*
|
||||||
VerifyNotFound describes a response with status code 404, with default header values.
|
VerifyNotFound describes a response with status code 404, with default header values.
|
||||||
|
|
||||||
token not found
|
registration token not found
|
||||||
*/
|
*/
|
||||||
type VerifyNotFound struct {
|
type VerifyNotFound struct {
|
||||||
}
|
}
|
||||||
@ -232,8 +232,8 @@ swagger:model VerifyBody
|
|||||||
*/
|
*/
|
||||||
type VerifyBody struct {
|
type VerifyBody struct {
|
||||||
|
|
||||||
// token
|
// registration token
|
||||||
Token string `json:"token,omitempty"`
|
RegistrationToken string `json:"registrationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this verify body
|
// Validate validates this verify body
|
||||||
|
@ -59,7 +59,7 @@ func NewInviteTokenGenerateCreated() *InviteTokenGenerateCreated {
|
|||||||
/*
|
/*
|
||||||
InviteTokenGenerateCreated describes a response with status code 201, with default header values.
|
InviteTokenGenerateCreated describes a response with status code 201, with default header values.
|
||||||
|
|
||||||
invitation tokens created
|
invite tokens created
|
||||||
*/
|
*/
|
||||||
type InviteTokenGenerateCreated struct {
|
type InviteTokenGenerateCreated struct {
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ func NewInviteTokenGenerateBadRequest() *InviteTokenGenerateBadRequest {
|
|||||||
/*
|
/*
|
||||||
InviteTokenGenerateBadRequest describes a response with status code 400, with default header values.
|
InviteTokenGenerateBadRequest describes a response with status code 400, with default header values.
|
||||||
|
|
||||||
invitation tokens not created
|
invite tokens not created
|
||||||
*/
|
*/
|
||||||
type InviteTokenGenerateBadRequest struct {
|
type InviteTokenGenerateBadRequest struct {
|
||||||
}
|
}
|
||||||
@ -281,8 +281,8 @@ swagger:model InviteTokenGenerateBody
|
|||||||
*/
|
*/
|
||||||
type InviteTokenGenerateBody struct {
|
type InviteTokenGenerateBody struct {
|
||||||
|
|
||||||
// tokens
|
// invite tokens
|
||||||
Tokens []string `json:"tokens"`
|
InviteTokens []string `json:"inviteTokens"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this invite token generate body
|
// Validate validates this invite token generate body
|
||||||
|
@ -296,8 +296,8 @@ swagger:model ListOrganizationMembersBody
|
|||||||
*/
|
*/
|
||||||
type ListOrganizationMembersBody struct {
|
type ListOrganizationMembersBody struct {
|
||||||
|
|
||||||
// token
|
// organization token
|
||||||
Token string `json:"token,omitempty"`
|
OrganizationToken string `json:"organizationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this list organization members body
|
// Validate validates this list organization members body
|
||||||
|
@ -285,8 +285,8 @@ type ListMembershipsOKBodyMembershipsItems0 struct {
|
|||||||
// description
|
// description
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
|
|
||||||
// token
|
// organization token
|
||||||
Token string `json:"token,omitempty"`
|
OrganizationToken string `json:"organizationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this list memberships o k body memberships items0
|
// Validate validates this list memberships o k body memberships items0
|
||||||
|
@ -775,7 +775,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"tokens": {
|
"inviteTokens": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -787,10 +787,10 @@ func init() {
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"201": {
|
"201": {
|
||||||
"description": "invitation tokens created"
|
"description": "invite tokens created"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "invitation tokens not created"
|
"description": "invite tokens not created"
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
"description": "unauthorized"
|
"description": "unauthorized"
|
||||||
@ -911,7 +911,7 @@ func init() {
|
|||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"token": {
|
"organizationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1191,7 +1191,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"token": {
|
"organizationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1818,7 +1818,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"token": {
|
"registrationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1827,7 +1827,7 @@ func init() {
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "token ready",
|
"description": "registration token ready",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {
|
"email": {
|
||||||
@ -1837,7 +1837,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "token not found"
|
"description": "registration token not found"
|
||||||
},
|
},
|
||||||
"500": {
|
"500": {
|
||||||
"description": "internal server error"
|
"description": "internal server error"
|
||||||
@ -2952,7 +2952,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"tokens": {
|
"inviteTokens": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -2964,10 +2964,10 @@ func init() {
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"201": {
|
"201": {
|
||||||
"description": "invitation tokens created"
|
"description": "invite tokens created"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "invitation tokens not created"
|
"description": "invite tokens not created"
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
"description": "unauthorized"
|
"description": "unauthorized"
|
||||||
@ -3351,7 +3351,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"token": {
|
"organizationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3964,7 +3964,7 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"token": {
|
"registrationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3973,7 +3973,7 @@ func init() {
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "token ready",
|
"description": "registration token ready",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {
|
"email": {
|
||||||
@ -3983,7 +3983,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "token not found"
|
"description": "registration token not found"
|
||||||
},
|
},
|
||||||
"500": {
|
"500": {
|
||||||
"description": "internal server error"
|
"description": "internal server error"
|
||||||
@ -4050,7 +4050,7 @@ func init() {
|
|||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"token": {
|
"organizationToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,8 @@ func (o *Verify) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
|
|||||||
// swagger:model VerifyBody
|
// swagger:model VerifyBody
|
||||||
type VerifyBody struct {
|
type VerifyBody struct {
|
||||||
|
|
||||||
// token
|
// registration token
|
||||||
Token string `json:"token,omitempty"`
|
RegistrationToken string `json:"registrationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this verify body
|
// Validate validates this verify body
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
const VerifyOKCode int = 200
|
const VerifyOKCode int = 200
|
||||||
|
|
||||||
/*
|
/*
|
||||||
VerifyOK token ready
|
VerifyOK registration token ready
|
||||||
|
|
||||||
swagger:response verifyOK
|
swagger:response verifyOK
|
||||||
*/
|
*/
|
||||||
@ -60,7 +60,7 @@ func (o *VerifyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produc
|
|||||||
const VerifyNotFoundCode int = 404
|
const VerifyNotFoundCode int = 404
|
||||||
|
|
||||||
/*
|
/*
|
||||||
VerifyNotFound token not found
|
VerifyNotFound registration token not found
|
||||||
|
|
||||||
swagger:response verifyNotFound
|
swagger:response verifyNotFound
|
||||||
*/
|
*/
|
||||||
|
@ -78,8 +78,8 @@ func (o *InviteTokenGenerate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
// swagger:model InviteTokenGenerateBody
|
// swagger:model InviteTokenGenerateBody
|
||||||
type InviteTokenGenerateBody struct {
|
type InviteTokenGenerateBody struct {
|
||||||
|
|
||||||
// tokens
|
// invite tokens
|
||||||
Tokens []string `json:"tokens"`
|
InviteTokens []string `json:"inviteTokens"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this invite token generate body
|
// Validate validates this invite token generate body
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
const InviteTokenGenerateCreatedCode int = 201
|
const InviteTokenGenerateCreatedCode int = 201
|
||||||
|
|
||||||
/*
|
/*
|
||||||
InviteTokenGenerateCreated invitation tokens created
|
InviteTokenGenerateCreated invite tokens created
|
||||||
|
|
||||||
swagger:response inviteTokenGenerateCreated
|
swagger:response inviteTokenGenerateCreated
|
||||||
*/
|
*/
|
||||||
@ -40,7 +40,7 @@ func (o *InviteTokenGenerateCreated) WriteResponse(rw http.ResponseWriter, produ
|
|||||||
const InviteTokenGenerateBadRequestCode int = 400
|
const InviteTokenGenerateBadRequestCode int = 400
|
||||||
|
|
||||||
/*
|
/*
|
||||||
InviteTokenGenerateBadRequest invitation tokens not created
|
InviteTokenGenerateBadRequest invite tokens not created
|
||||||
|
|
||||||
swagger:response inviteTokenGenerateBadRequest
|
swagger:response inviteTokenGenerateBadRequest
|
||||||
*/
|
*/
|
||||||
|
@ -80,8 +80,8 @@ func (o *ListOrganizationMembers) ServeHTTP(rw http.ResponseWriter, r *http.Requ
|
|||||||
// swagger:model ListOrganizationMembersBody
|
// swagger:model ListOrganizationMembersBody
|
||||||
type ListOrganizationMembersBody struct {
|
type ListOrganizationMembersBody struct {
|
||||||
|
|
||||||
// token
|
// organization token
|
||||||
Token string `json:"token,omitempty"`
|
OrganizationToken string `json:"organizationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this list organization members body
|
// Validate validates this list organization members body
|
||||||
|
@ -192,8 +192,8 @@ type ListMembershipsOKBodyMembershipsItems0 struct {
|
|||||||
// description
|
// description
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
|
|
||||||
// token
|
// organization token
|
||||||
Token string `json:"token,omitempty"`
|
OrganizationToken string `json:"organizationToken,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates this list memberships o k body memberships items0
|
// Validate validates this list memberships o k body memberships items0
|
||||||
|
@ -31,7 +31,6 @@ import { RegenerateAccountToken200Response } from '../model/regenerateAccountTok
|
|||||||
import { RemoveOrganizationMemberRequest } from '../model/removeOrganizationMemberRequest';
|
import { RemoveOrganizationMemberRequest } from '../model/removeOrganizationMemberRequest';
|
||||||
import { UpdateFrontendRequest } from '../model/updateFrontendRequest';
|
import { UpdateFrontendRequest } from '../model/updateFrontendRequest';
|
||||||
import { Verify200Response } from '../model/verify200Response';
|
import { Verify200Response } from '../model/verify200Response';
|
||||||
import { VerifyRequest } from '../model/verifyRequest';
|
|
||||||
|
|
||||||
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
||||||
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
||||||
@ -727,7 +726,7 @@ export class AdminApi {
|
|||||||
*
|
*
|
||||||
* @param body
|
* @param body
|
||||||
*/
|
*/
|
||||||
public async listOrganizationMembers (body?: VerifyRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListOrganizationMembers200Response; }> {
|
public async listOrganizationMembers (body?: CreateOrganization201Response, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListOrganizationMembers200Response; }> {
|
||||||
const localVarPath = this.basePath + '/organization/list';
|
const localVarPath = this.basePath + '/organization/list';
|
||||||
let localVarQueryParameters: any = {};
|
let localVarQueryParameters: any = {};
|
||||||
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
||||||
@ -751,7 +750,7 @@ export class AdminApi {
|
|||||||
uri: localVarPath,
|
uri: localVarPath,
|
||||||
useQuerystring: this._useQuerystring,
|
useQuerystring: this._useQuerystring,
|
||||||
json: true,
|
json: true,
|
||||||
body: ObjectSerializer.serialize(body, "VerifyRequest")
|
body: ObjectSerializer.serialize(body, "CreateOrganization201Response")
|
||||||
};
|
};
|
||||||
|
|
||||||
let authenticationPromise = Promise.resolve();
|
let authenticationPromise = Promise.resolve();
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
import { RequestFile } from './models';
|
import { RequestFile } from './models';
|
||||||
|
|
||||||
export class InviteTokenGenerateRequest {
|
export class InviteTokenGenerateRequest {
|
||||||
'tokens'?: Array<string>;
|
'inviteTokens'?: Array<string>;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
static discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "tokens",
|
"name": "inviteTokens",
|
||||||
"baseName": "tokens",
|
"baseName": "inviteTokens",
|
||||||
"type": "Array<string>"
|
"type": "Array<string>"
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
import { RequestFile } from './models';
|
import { RequestFile } from './models';
|
||||||
|
|
||||||
export class ListMemberships200ResponseMembershipsInner {
|
export class ListMemberships200ResponseMembershipsInner {
|
||||||
'token'?: string;
|
'organizationToken'?: string;
|
||||||
'description'?: string;
|
'description'?: string;
|
||||||
'admin'?: boolean;
|
'admin'?: boolean;
|
||||||
|
|
||||||
@ -21,8 +21,8 @@ export class ListMemberships200ResponseMembershipsInner {
|
|||||||
|
|
||||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "token",
|
"name": "organizationToken",
|
||||||
"baseName": "token",
|
"baseName": "organizationToken",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
import { RequestFile } from './models';
|
import { RequestFile } from './models';
|
||||||
|
|
||||||
export class VerifyRequest {
|
export class VerifyRequest {
|
||||||
'token'?: string;
|
'registrationToken'?: string;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
static discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "token",
|
"name": "registrationToken",
|
||||||
"baseName": "token",
|
"baseName": "registrationToken",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**token** | **str** | | [optional]
|
**organization_token** | **str** | | [optional]
|
||||||
**description** | **str** | | [optional]
|
**description** | **str** | | [optional]
|
||||||
**admin** | **bool** | | [optional]
|
**admin** | **bool** | | [optional]
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**token** | **str** | | [optional]
|
**organization_token** | **str** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**tokens** | **list[str]** | | [optional]
|
**invite_tokens** | **list[str]** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**token** | **str** | | [optional]
|
**registration_token** | **str** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -28,50 +28,50 @@ class InlineResponse2005Memberships(object):
|
|||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
swagger_types = {
|
||||||
'token': 'str',
|
'organization_token': 'str',
|
||||||
'description': 'str',
|
'description': 'str',
|
||||||
'admin': 'bool'
|
'admin': 'bool'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'token': 'token',
|
'organization_token': 'organizationToken',
|
||||||
'description': 'description',
|
'description': 'description',
|
||||||
'admin': 'admin'
|
'admin': 'admin'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, token=None, description=None, admin=None): # noqa: E501
|
def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501
|
||||||
"""InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501
|
"""InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501
|
||||||
self._token = None
|
self._organization_token = None
|
||||||
self._description = None
|
self._description = None
|
||||||
self._admin = None
|
self._admin = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
if token is not None:
|
if organization_token is not None:
|
||||||
self.token = token
|
self.organization_token = organization_token
|
||||||
if description is not None:
|
if description is not None:
|
||||||
self.description = description
|
self.description = description
|
||||||
if admin is not None:
|
if admin is not None:
|
||||||
self.admin = admin
|
self.admin = admin
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def token(self):
|
def organization_token(self):
|
||||||
"""Gets the token of this InlineResponse2005Memberships. # noqa: E501
|
"""Gets the organization_token of this InlineResponse2005Memberships. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
:return: The token of this InlineResponse2005Memberships. # noqa: E501
|
:return: The organization_token of this InlineResponse2005Memberships. # noqa: E501
|
||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return self._token
|
return self._organization_token
|
||||||
|
|
||||||
@token.setter
|
@organization_token.setter
|
||||||
def token(self, token):
|
def organization_token(self, organization_token):
|
||||||
"""Sets the token of this InlineResponse2005Memberships.
|
"""Sets the organization_token of this InlineResponse2005Memberships.
|
||||||
|
|
||||||
|
|
||||||
:param token: The token of this InlineResponse2005Memberships. # noqa: E501
|
:param organization_token: The organization_token of this InlineResponse2005Memberships. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._token = token
|
self._organization_token = organization_token
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self):
|
def description(self):
|
||||||
|
@ -28,40 +28,40 @@ class OrganizationListBody(object):
|
|||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
swagger_types = {
|
||||||
'token': 'str'
|
'organization_token': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'token': 'token'
|
'organization_token': 'organizationToken'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, token=None): # noqa: E501
|
def __init__(self, organization_token=None): # noqa: E501
|
||||||
"""OrganizationListBody - a model defined in Swagger""" # noqa: E501
|
"""OrganizationListBody - a model defined in Swagger""" # noqa: E501
|
||||||
self._token = None
|
self._organization_token = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
if token is not None:
|
if organization_token is not None:
|
||||||
self.token = token
|
self.organization_token = organization_token
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def token(self):
|
def organization_token(self):
|
||||||
"""Gets the token of this OrganizationListBody. # noqa: E501
|
"""Gets the organization_token of this OrganizationListBody. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
:return: The token of this OrganizationListBody. # noqa: E501
|
:return: The organization_token of this OrganizationListBody. # noqa: E501
|
||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return self._token
|
return self._organization_token
|
||||||
|
|
||||||
@token.setter
|
@organization_token.setter
|
||||||
def token(self, token):
|
def organization_token(self, organization_token):
|
||||||
"""Sets the token of this OrganizationListBody.
|
"""Sets the organization_token of this OrganizationListBody.
|
||||||
|
|
||||||
|
|
||||||
:param token: The token of this OrganizationListBody. # noqa: E501
|
:param organization_token: The organization_token of this OrganizationListBody. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._token = token
|
self._organization_token = organization_token
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
|
@ -28,40 +28,40 @@ class TokenGenerateBody(object):
|
|||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
swagger_types = {
|
||||||
'tokens': 'list[str]'
|
'invite_tokens': 'list[str]'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'tokens': 'tokens'
|
'invite_tokens': 'inviteTokens'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, tokens=None): # noqa: E501
|
def __init__(self, invite_tokens=None): # noqa: E501
|
||||||
"""TokenGenerateBody - a model defined in Swagger""" # noqa: E501
|
"""TokenGenerateBody - a model defined in Swagger""" # noqa: E501
|
||||||
self._tokens = None
|
self._invite_tokens = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
if tokens is not None:
|
if invite_tokens is not None:
|
||||||
self.tokens = tokens
|
self.invite_tokens = invite_tokens
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tokens(self):
|
def invite_tokens(self):
|
||||||
"""Gets the tokens of this TokenGenerateBody. # noqa: E501
|
"""Gets the invite_tokens of this TokenGenerateBody. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
:return: The tokens of this TokenGenerateBody. # noqa: E501
|
:return: The invite_tokens of this TokenGenerateBody. # noqa: E501
|
||||||
:rtype: list[str]
|
:rtype: list[str]
|
||||||
"""
|
"""
|
||||||
return self._tokens
|
return self._invite_tokens
|
||||||
|
|
||||||
@tokens.setter
|
@invite_tokens.setter
|
||||||
def tokens(self, tokens):
|
def invite_tokens(self, invite_tokens):
|
||||||
"""Sets the tokens of this TokenGenerateBody.
|
"""Sets the invite_tokens of this TokenGenerateBody.
|
||||||
|
|
||||||
|
|
||||||
:param tokens: The tokens of this TokenGenerateBody. # noqa: E501
|
:param invite_tokens: The invite_tokens of this TokenGenerateBody. # noqa: E501
|
||||||
:type: list[str]
|
:type: list[str]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._tokens = tokens
|
self._invite_tokens = invite_tokens
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
|
@ -28,40 +28,40 @@ class VerifyBody(object):
|
|||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
swagger_types = {
|
||||||
'token': 'str'
|
'registration_token': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'token': 'token'
|
'registration_token': 'registrationToken'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, token=None): # noqa: E501
|
def __init__(self, registration_token=None): # noqa: E501
|
||||||
"""VerifyBody - a model defined in Swagger""" # noqa: E501
|
"""VerifyBody - a model defined in Swagger""" # noqa: E501
|
||||||
self._token = None
|
self._registration_token = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
if token is not None:
|
if registration_token is not None:
|
||||||
self.token = token
|
self.registration_token = registration_token
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def token(self):
|
def registration_token(self):
|
||||||
"""Gets the token of this VerifyBody. # noqa: E501
|
"""Gets the registration_token of this VerifyBody. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
:return: The token of this VerifyBody. # noqa: E501
|
:return: The registration_token of this VerifyBody. # noqa: E501
|
||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return self._token
|
return self._registration_token
|
||||||
|
|
||||||
@token.setter
|
@registration_token.setter
|
||||||
def token(self, token):
|
def registration_token(self, registration_token):
|
||||||
"""Sets the token of this VerifyBody.
|
"""Sets the registration_token of this VerifyBody.
|
||||||
|
|
||||||
|
|
||||||
:param token: The token of this VerifyBody. # noqa: E501
|
:param registration_token: The registration_token of this VerifyBody. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._token = token
|
self._registration_token = registration_token
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
|
@ -207,17 +207,17 @@ paths:
|
|||||||
in: body
|
in: body
|
||||||
schema:
|
schema:
|
||||||
properties:
|
properties:
|
||||||
token:
|
registrationToken:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: token ready
|
description: registration token ready
|
||||||
schema:
|
schema:
|
||||||
properties:
|
properties:
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
404:
|
404:
|
||||||
description: token not found
|
description: registration token not found
|
||||||
500:
|
500:
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -438,15 +438,15 @@ paths:
|
|||||||
in: body
|
in: body
|
||||||
schema:
|
schema:
|
||||||
properties:
|
properties:
|
||||||
tokens:
|
inviteTokens:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
201:
|
201:
|
||||||
description: invitation tokens created
|
description: invite tokens created
|
||||||
400:
|
400:
|
||||||
description: invitation tokens not created
|
description: invite tokens not created
|
||||||
401:
|
401:
|
||||||
description: unauthorized
|
description: unauthorized
|
||||||
500:
|
500:
|
||||||
@ -540,7 +540,7 @@ paths:
|
|||||||
in: body
|
in: body
|
||||||
schema:
|
schema:
|
||||||
properties:
|
properties:
|
||||||
token:
|
organizationToken:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
@ -817,7 +817,7 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
properties:
|
properties:
|
||||||
token:
|
organizationToken:
|
||||||
type: string
|
type: string
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
|
@ -186,7 +186,7 @@ const Register = () => {
|
|||||||
new AccountApi().register({body: {token: regToken, password: v.password}})
|
new AccountApi().register({body: {token: regToken, password: v.password}})
|
||||||
.then(d => {
|
.then(d => {
|
||||||
console.log(d);
|
console.log(d);
|
||||||
setComponent(<RegistrationComplete token={d.token!} />);
|
setComponent(<RegistrationComplete token={d.accountToken!} />);
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
console.log("doRegistration", e);
|
console.log("doRegistration", e);
|
||||||
@ -195,7 +195,7 @@ const Register = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(regToken) {
|
if(regToken) {
|
||||||
new AccountApi().verify({body: {token: regToken}})
|
new AccountApi().verify({body: {registrationToken: regToken}})
|
||||||
.then((d) => {
|
.then((d) => {
|
||||||
console.log(d);
|
console.log(d);
|
||||||
setEmail(d.email);
|
setEmail(d.email);
|
||||||
|
@ -31,7 +31,6 @@ import type {
|
|||||||
RemoveOrganizationMemberRequest,
|
RemoveOrganizationMemberRequest,
|
||||||
UpdateFrontendRequest,
|
UpdateFrontendRequest,
|
||||||
Verify200Response,
|
Verify200Response,
|
||||||
VerifyRequest,
|
|
||||||
} from '../models/index';
|
} from '../models/index';
|
||||||
import {
|
import {
|
||||||
AddOrganizationMemberRequestFromJSON,
|
AddOrganizationMemberRequestFromJSON,
|
||||||
@ -66,8 +65,6 @@ import {
|
|||||||
UpdateFrontendRequestToJSON,
|
UpdateFrontendRequestToJSON,
|
||||||
Verify200ResponseFromJSON,
|
Verify200ResponseFromJSON,
|
||||||
Verify200ResponseToJSON,
|
Verify200ResponseToJSON,
|
||||||
VerifyRequestFromJSON,
|
|
||||||
VerifyRequestToJSON,
|
|
||||||
} from '../models/index';
|
} from '../models/index';
|
||||||
|
|
||||||
export interface AddOrganizationMemberOperationRequest {
|
export interface AddOrganizationMemberOperationRequest {
|
||||||
@ -107,7 +104,7 @@ export interface InviteTokenGenerateOperationRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ListOrganizationMembersRequest {
|
export interface ListOrganizationMembersRequest {
|
||||||
body?: VerifyRequest;
|
body?: CreateOrganization201Response;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RemoveOrganizationMemberOperationRequest {
|
export interface RemoveOrganizationMemberOperationRequest {
|
||||||
@ -443,7 +440,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: headerParameters,
|
headers: headerParameters,
|
||||||
query: queryParameters,
|
query: queryParameters,
|
||||||
body: VerifyRequestToJSON(requestParameters['body']),
|
body: CreateOrganization201ResponseToJSON(requestParameters['body']),
|
||||||
}, initOverrides);
|
}, initOverrides);
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => ListOrganizationMembers200ResponseFromJSON(jsonValue));
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListOrganizationMembers200ResponseFromJSON(jsonValue));
|
||||||
|
@ -24,7 +24,7 @@ export interface InviteTokenGenerateRequest {
|
|||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof InviteTokenGenerateRequest
|
* @memberof InviteTokenGenerateRequest
|
||||||
*/
|
*/
|
||||||
tokens?: Array<string>;
|
inviteTokens?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,7 +44,7 @@ export function InviteTokenGenerateRequestFromJSONTyped(json: any, ignoreDiscrim
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'tokens': json['tokens'] == null ? undefined : json['tokens'],
|
'inviteTokens': json['inviteTokens'] == null ? undefined : json['inviteTokens'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ export function InviteTokenGenerateRequestToJSON(value?: InviteTokenGenerateRequ
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'tokens': value['tokens'],
|
'inviteTokens': value['inviteTokens'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ export interface ListMemberships200ResponseMembershipsInner {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ListMemberships200ResponseMembershipsInner
|
* @memberof ListMemberships200ResponseMembershipsInner
|
||||||
*/
|
*/
|
||||||
token?: string;
|
organizationToken?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@ -56,7 +56,7 @@ export function ListMemberships200ResponseMembershipsInnerFromJSONTyped(json: an
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': json['token'] == null ? undefined : json['token'],
|
'organizationToken': json['organizationToken'] == null ? undefined : json['organizationToken'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'admin': json['admin'] == null ? undefined : json['admin'],
|
'admin': json['admin'] == null ? undefined : json['admin'],
|
||||||
};
|
};
|
||||||
@ -68,7 +68,7 @@ export function ListMemberships200ResponseMembershipsInnerToJSON(value?: ListMem
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': value['token'],
|
'organizationToken': value['organizationToken'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
'admin': value['admin'],
|
'admin': value['admin'],
|
||||||
};
|
};
|
||||||
|
@ -24,7 +24,7 @@ export interface VerifyRequest {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof VerifyRequest
|
* @memberof VerifyRequest
|
||||||
*/
|
*/
|
||||||
token?: string;
|
registrationToken?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,7 +44,7 @@ export function VerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': json['token'] == null ? undefined : json['token'],
|
'registrationToken': json['registrationToken'] == null ? undefined : json['registrationToken'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ export function VerifyRequestToJSON(value?: VerifyRequest | null): any {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': value['token'],
|
'registrationToken': value['registrationToken'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user