diff --git a/sdkgen.lock b/sdkgen.lock index 1591450..4361cff 100644 --- a/sdkgen.lock +++ b/sdkgen.lock @@ -1 +1 @@ -{"./spec/backend.json":{"import":{"common":"https://raw.githubusercontent.com/apioo/fusio-model/main/spec/common.json"},"definitions":{"Account_ChangePassword":{"type":"object","properties":{"oldPassword":{"type":"string"},"newPassword":{"type":"string"},"verifyPassword":{"type":"string"}}},"Action":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"class":{"type":"string"},"async":{"type":"boolean"},"config":{"$ref":"Action_Config"},"metadata":{"$ref":"common:Metadata"}}},"Action_Config":{"type":"map","schema":{"type":"any"}},"Action_Create":{"$extends":"Action"},"Action_Update":{"$extends":"Action"},"Action_Index":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"Action_Index_Entry"}}}},"Action_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Action_Collection":{"$ref":"common:Collection","$template":{"T":"Action"}},"Action_Execute_Request_Body":{"type":"map","schema":{"type":"any"}},"Action_Execute_Request":{"type":"object","properties":{"method":{"type":"string"},"uriFragments":{"type":"string"},"parameters":{"type":"string"},"headers":{"type":"string"},"body":{"$ref":"Action_Execute_Request_Body"}}},"Action_Execute_Response_Headers":{"type":"object","additionalProperties":{"type":"string"}},"Action_Execute_Response_Body":{"type":"map","schema":{"type":"any"}},"Action_Execute_Response":{"type":"object","properties":{"statusCode":{"type":"integer"},"headers":{"$ref":"Action_Execute_Response_Headers"},"body":{"$ref":"Action_Execute_Response_Body"}}},"App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"parameters":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"},"scopes":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"$ref":"Token"}}}},"App_Create":{"$extends":"App"},"App_Update":{"$extends":"App"},"App_Collection":{"$ref":"common:Collection","$template":{"T":"App"}},"Audit":{"type":"object","properties":{"id":{"type":"integer"},"app":{"$ref":"App"},"user":{"$ref":"User"},"event":{"type":"string"},"ip":{"type":"string"},"message":{"type":"string"},"content":{"$ref":"Audit_Object"},"date":{"type":"string","format":"date-time"}}},"Audit_Object":{"description":"A key value object containing the changes","type":"map","schema":{"type":"any"}},"Audit_Collection":{"$ref":"common:Collection","$template":{"T":"Audit"}},"Backup_Export":{"type":"object","properties":{"export":{"type":"string"}}},"Backup_Import":{"type":"object","properties":{"import":{"type":"string"}}},"Backup_Import_Result":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"logs":{"type":"array","items":{"type":"string"}}}},"Category":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"Category_Collection":{"$ref":"common:Collection","$template":{"T":"Category"}},"Category_Create":{"$extends":"Category"},"Category_Update":{"$extends":"Category"},"Config":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"value":{"type":"any"}}},"Config_Collection":{"$ref":"common:Collection","$template":{"T":"Config"}},"Config_Update":{"$extends":"Config"},"Connection":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"class":{"type":"string"},"oauth2":{"description":"Indicates whether it is possible to start an OAuth2 authorization code flow on this connection","type":"boolean"},"config":{"$ref":"Connection_Config"},"metadata":{"$ref":"common:Metadata"}}},"Connection_Config":{"type":"map","schema":{"type":"any"}},"Connection_Collection":{"$ref":"common:Collection","$template":{"T":"Connection"}},"Connection_Create":{"$extends":"Connection"},"Connection_Update":{"$extends":"Connection"},"Connection_Index":{"type":"object","properties":{"connections":{"type":"array","items":{"$ref":"Connection_Index_Entry"}}}},"Connection_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Connection_Introspection_Entities":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"string"}}}},"Connection_Introspection_Entity":{"type":"object","properties":{"name":{"type":"string"},"headers":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"$ref":"Connection_Introspection_Entity_Row"}}}},"Connection_Introspection_Entity_Row":{"type":"object","properties":{"values":{"type":"array","items":{"type":"string"}}}},"Connection_Redirect_Response":{"type":"object","properties":{"redirectUri":{"type":"string"}}},"Cronjob":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"cron":{"type":"string"},"action":{"type":"string"},"executeDate":{"type":"string","format":"date-time"},"exitCode":{"type":"integer"},"metadata":{"$ref":"common:Metadata"},"errors":{"type":"array","items":{"$ref":"Cronjob_Error"}}}},"Cronjob_Error":{"type":"object","properties":{"message":{"type":"string"},"trace":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer"}}},"Cronjob_Collection":{"$ref":"common:Collection","$template":{"T":"Cronjob"}},"Cronjob_Create":{"$extends":"Cronjob"},"Cronjob_Update":{"$extends":"Cronjob"},"Database_Connections":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"string"}}}},"Database_Tables":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"string"}}}},"Database_Table":{"type":"object","properties":{"name":{"type":"string"},"columns":{"type":"array","items":{"$ref":"Database_Table_Column"}},"primaryKey":{"type":"string"},"indexes":{"type":"array","items":{"$ref":"Database_Table_Index"}},"foreignKeys":{"type":"array","items":{"$ref":"Database_Table_ForeignKeyConstraint"}}}},"Database_Table_Column":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"length":{"type":"integer"},"precision":{"type":"integer"},"scale":{"type":"integer"},"unsigned":{"type":"boolean"},"fixed":{"type":"boolean"},"notNull":{"type":"boolean"},"autoIncrement":{"type":"boolean"},"default":{"type":"any"},"comment":{"type":"string"}}},"Database_Table_Index":{"type":"object","properties":{"name":{"type":"string"},"unique":{"type":"boolean"},"columns":{"type":"array","items":{"type":"string"}}}},"Database_Table_ForeignKeyConstraint":{"type":"object","properties":{"name":{"type":"string"},"foreignTable":{"type":"string"},"localColumnNames":{"type":"array","items":{"type":"string"}},"foreignColumnNames":{"type":"array","items":{"type":"string"}}}},"Database_Rows":{"$ref":"common:Collection","$template":{"T":"Database_Row"}},"Database_Row":{"type":"object","additionalProperties":{"type":"any"}},"Dashboard":{"type":"object","properties":{"errorsPerOperation":{"$ref":"Statistic_Chart"},"incomingRequests":{"$ref":"Statistic_Chart"},"incomingTransactions":{"$ref":"Statistic_Chart"},"mostUsedOperations":{"$ref":"Statistic_Chart"},"timePerOperation":{"$ref":"Statistic_Chart"},"testCoverage":{"$ref":"Statistic_Chart"},"mostUsedActivities":{"$ref":"Statistic_Chart"},"activitiesPerUser":{"$ref":"Statistic_Chart"},"userRegistrations":{"$ref":"Statistic_Chart"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"schema":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Event_Collection":{"$ref":"common:Collection","$template":{"T":"Event"}},"Event_Create":{"$extends":"Event"},"Event_Update":{"$extends":"Event"},"Identity":{"type":"object","properties":{"id":{"type":"integer"},"appId":{"type":"integer"},"roleId":{"type":"integer"},"name":{"type":"string"},"icon":{"type":"string"},"class":{"type":"string"},"config":{"$ref":"Identity_Config"},"allowCreate":{"type":"boolean"}}},"Identity_Config":{"type":"map","schema":{"type":"any"}},"Identity_Collection":{"$ref":"common:Collection","$template":{"T":"Identity"}},"Identity_Create":{"$extends":"Identity"},"Identity_Update":{"$extends":"Identity"},"Identity_Index":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"Identity_Index_Entry"}}}},"Identity_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Generator_Index_Providers":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"Generator_Index_Provider"}}}},"Generator_Index_Provider":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Generator_Provider":{"type":"object","properties":{"path":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"public":{"type":"boolean"},"config":{"$ref":"Generator_Provider_Config"}}},"Generator_Provider_Config":{"type":"map","schema":{"type":"any"}},"Generator_Provider_Changelog":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"Schema"}},"actions":{"type":"array","items":{"$ref":"Action"}},"operations":{"type":"array","items":{"$ref":"Operation"}}}},"Log":{"type":"object","properties":{"id":{"type":"integer"},"ip":{"type":"string"},"userAgent":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"header":{"type":"string"},"body":{"type":"string"},"date":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"$ref":"Log_Error"}}}},"Log_Collection":{"$ref":"common:Collection","$template":{"T":"Log"}},"Log_Error":{"type":"object","properties":{"id":{"type":"integer"},"message":{"type":"integer"},"trace":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer"}}},"Log_Error_Collection":{"$ref":"common:Collection","$template":{"T":"Log_Error"}},"Operation":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"active":{"type":"boolean"},"public":{"type":"boolean"},"stability":{"type":"integer"},"description":{"type":"string"},"httpMethod":{"type":"string"},"httpPath":{"type":"string"},"httpCode":{"type":"integer"},"name":{"type":"string"},"parameters":{"$ref":"Operation_Parameters"},"incoming":{"type":"string"},"outgoing":{"type":"string"},"throws":{"$ref":"Operation_Throws"},"action":{"type":"string"},"costs":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"Operation_Parameters":{"type":"object","additionalProperties":{"$ref":"Operation_Schema"}},"Operation_Throws":{"type":"object","additionalProperties":{"type":"string"}},"Operation_Schema":{"type":"object","properties":{"description":{"type":"string"},"type":{"type":"string"},"format":{"type":"string"},"enum":{"type":"string"}}},"Operation_Collection":{"$ref":"common:Collection","$template":{"T":"Operation"}},"Operation_Create":{"$extends":"Operation"},"Operation_Update":{"$extends":"Operation"},"Page":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"content":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Page_Collection":{"$ref":"common:Collection","$template":{"T":"Page"}},"Page_Create":{"$extends":"Page"},"Page_Update":{"$extends":"Page"},"Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"points":{"type":"integer"},"period":{"type":"integer"},"externalId":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"Plan_Collection":{"$ref":"common:Collection","$template":{"T":"Plan"}},"Plan_Create":{"$extends":"Plan"},"Plan_Update":{"$extends":"Plan"},"Role":{"type":"object","properties":{"id":{"type":"integer"},"categoryId":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"Role_Collection":{"$ref":"common:Collection","$template":{"T":"Role"}},"Role_Create":{"$extends":"Role"},"Role_Update":{"$extends":"Role"},"Rate":{"type":"object","properties":{"id":{"type":"integer"},"priority":{"type":"integer"},"name":{"type":"string"},"rateLimit":{"type":"integer"},"timespan":{"type":"string"},"allocation":{"type":"array","items":{"$ref":"Rate_Allocation"}},"metadata":{"$ref":"common:Metadata"}}},"Rate_Collection":{"$ref":"common:Collection","$template":{"T":"Rate"}},"Rate_Create":{"$extends":"Rate"},"Rate_Update":{"$extends":"Rate"},"Rate_Allocation":{"type":"object","properties":{"id":{"type":"integer"},"operationId":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"appId":{"type":"integer"},"authenticated":{"type":"boolean"}}},"Schema":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"source":{"$ref":"Schema_Source"},"form":{"$ref":"Schema_Form"},"metadata":{"$ref":"common:Metadata"}}},"Schema_Source":{"description":"Contains the TypeSchema specification","type":"map","schema":{"type":"any"}},"Schema_Form":{"description":"Contains a UI vocabulary to describe the UI of the schema","type":"map","schema":{"type":"any"}},"Schema_Collection":{"$ref":"common:Collection","$template":{"T":"Schema"}},"Schema_Create":{"$extends":"Schema"},"Schema_Update":{"$extends":"Schema"},"Schema_Preview_Response":{"type":"object","properties":{"preview":{"type":"string"}}},"Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"Scope_Operation"}},"metadata":{"$ref":"common:Metadata"}}},"Scope_Operation":{"type":"object","properties":{"operationId":{"type":"integer"},"allow":{"type":"boolean"}}},"Scope_Collection":{"$ref":"common:Collection","$template":{"T":"Scope"}},"Scope_Create":{"$extends":"Scope"},"Scope_Update":{"$extends":"Scope"},"Scope_Categories":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"Scope_Category"}}}},"Scope_Category":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"Scope_Category_Scope"}}}},"Scope_Category_Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"}}},"Statistic_Chart_Data":{"type":"map","schema":{"type":"any"}},"Statistic_Chart":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"$ref":"Statistic_Chart_Data"}},"series":{"type":"array","items":{"type":"string"}}}},"Statistic_Count":{"type":"object","properties":{"count":{"type":"integer"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"Sdk_Response":{"type":"object","properties":{"types":{"$ref":"Sdk_Types"}}},"Sdk_Types":{"type":"object","additionalProperties":{"type":"string"}},"Sdk_Generate":{"type":"object","properties":{"format":{"type":"string"},"config":{"type":"string"}}},"Sdk_Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"link":{"type":"string"}}},"Test":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"operationName":{"type":"string"},"message":{"type":"string"},"response":{"type":"string"},"config":{"$ref":"Test_Config"}}},"Test_Config":{"$extends":"Action_Execute_Request"},"Test_Collection":{"$ref":"common:Collection","$template":{"T":"Test"}},"Transaction":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"transactionId":{"type":"string"},"amount":{"type":"number"},"points":{"type":"number"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"insertDate":{"type":"string","format":"date-time"}}},"Transaction_Collection":{"$ref":"common:Collection","$template":{"T":"Transaction"}},"Trash_Types":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}}}},"Trash_Data":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"}}},"Trash_Data_Collection":{"$ref":"common:Collection","$template":{"T":"Trash_Data"}},"Trash_Restore":{"type":"object","properties":{"id":{"type":"integer"}}},"Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"type":"string","format":"date-time"},"date":{"type":"string","format":"date-time"}}},"Token_Collection":{"$ref":"common:Collection","$template":{"T":"Token"}},"User":{"type":"object","properties":{"id":{"type":"integer"},"roleId":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"type":"array","items":{"$ref":"App"}},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"}}},"User_Attributes":{"type":"object","additionalProperties":{"type":"string"}},"User_Collection":{"$ref":"common:Collection","$template":{"T":"User"}},"User_Create":{"$extends":"User","type":"object","properties":{"password":{"type":"string"}}},"User_Update":{"$extends":"User"},"Webhook":{"type":"object","properties":{"id":{"type":"integer"},"eventId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"endpoint":{"type":"string"},"responses":{"type":"array","items":{"$ref":"Webhook_Response"}}}},"Webhook_Response":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"code":{"type":"integer"},"attempts":{"type":"integer"},"error":{"type":"string"},"executeDate":{"type":"string","format":"date-time"}}},"Webhook_Collection":{"$ref":"common:Collection","$template":{"T":"Webhook"}},"Webhook_Create":{"$extends":"Webhook"},"Webhook_Update":{"$extends":"Webhook"}}},"./spec/common.json":{"definitions":{"Collection":{"type":"object","properties":{"totalResults":{"type":"integer"},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"},"entry":{"type":"array","items":{"$generic":"T"}}}},"Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"id":{"type":"string"}}},"Metadata":{"type":"object","additionalProperties":{"type":"string"}},"Form_Container":{"type":"object","properties":{"element":{"type":"array","schema":{"type":"reference","target":"Form_Element"}}}},"Form_Element":{"type":"object","base":true,"discriminator":"type","mapping":{"Form_Element_Input":"http://fusio-project.org/ns/2015/form/input","Form_Element_Select":"http://fusio-project.org/ns/2015/form/select","Form_Element_Tag":"http://fusio-project.org/ns/2015/form/tag","Form_Element_TextArea":"http://fusio-project.org/ns/2015/form/textarea"},"properties":{"type":{"type":"string"},"element":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"help":{"type":"string"}}},"Form_Element_Input":{"type":"struct","parent":{"type":"reference","target":"Form_Element"}},"Form_Element_Select":{"type":"struct","parent":{"type":"reference","target":"Form_Element"},"properties":{"options":{"type":"array","items":{"$ref":"Form_Element_Select_Option"}}}},"Form_Element_Select_Option":{"type":"struct","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"Form_Element_Tag":{"type":"struct","parent":{"type":"reference","target":"Form_Element"}},"Form_Element_TextArea":{"type":"struct","parent":{"type":"reference","target":"Form_Element"},"properties":{"mode":{"type":"string"}}}}},"./spec/consumer.json":{"import":{"common":"https://raw.githubusercontent.com/apioo/fusio-model/main/spec/common.json"},"definitions":{"App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"date":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"App_Collection":{"$ref":"common:Collection","$template":{"T":"App"}},"App_Create":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"App_Update":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"Authorize_Meta":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"Scope"}}}},"Authorize_Request":{"type":"object","properties":{"responseType":{"type":"string"},"clientId":{"type":"string"},"redirectUri":{"type":"string"},"scope":{"type":"string"},"state":{"type":"string"},"allow":{"type":"boolean"}}},"Authorize_Response":{"type":"object","properties":{"type":{"type":"string"},"token":{"$ref":"Authorize_Response_Token"},"code":{"type":"string"},"redirectUri":{"type":"string"}}},"Authorize_Response_Token":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"string"},"scope":{"type":"string"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Event_Collection":{"$ref":"common:Collection","$template":{"T":"Event"}},"Identity":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"icon":{"type":"string"},"redirect":{"type":"string"}}},"Identity_Collection":{"$ref":"common:Collection","$template":{"T":"Identity"}},"Log":{"type":"object","properties":{"id":{"type":"integer"},"appId":{"type":"integer"},"ip":{"type":"string"},"userAgent":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"header":{"type":"string"},"body":{"type":"string"},"date":{"type":"string","format":"date-time"}}},"Log_Collection":{"$ref":"common:Collection","$template":{"T":"Log"}},"Grant":{"type":"object","properties":{"id":{"type":"integer"},"app":{"$ref":"App"},"createDate":{"type":"string","format":"date-time"}}},"Grant_Collection":{"$ref":"common:Collection","$template":{"T":"Grant"}},"Page":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"content":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Page_Collection":{"$ref":"common:Collection","$template":{"T":"Page"}},"Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"points":{"type":"integer"},"period":{"type":"integer"},"metadata":{"$ref":"common:Metadata"}}},"Plan_Collection":{"$ref":"common:Collection","$template":{"T":"Plan"}},"Payment_Checkout_Request":{"type":"object","properties":{"planId":{"type":"integer"},"returnUrl":{"type":"string"}}},"Payment_Checkout_Response":{"type":"object","properties":{"approvalUrl":{"type":"string"}}},"Payment_Portal_Request":{"type":"object","properties":{"returnUrl":{"type":"string"}}},"Payment_Portal_Response":{"type":"object","properties":{"redirectUrl":{"type":"string"}}},"Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Scope_Collection":{"$ref":"common:Collection","$template":{"T":"Scope"}},"Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"type":"string","format":"date"},"date":{"type":"string","format":"date-time"}}},"Token_Collection":{"$ref":"common:Collection","$template":{"T":"Token"}},"Token_Create":{"type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"expire":{"type":"string","format":"date"}}},"Token_Update":{"type":"object","properties":{"name":{"type":"string"},"expire":{"type":"string","format":"date"}}},"Token_AccessToken":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"integer"},"refresh_token":{"type":"string"},"scope":{"type":"string"}}},"Transaction":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"plan":{"$ref":"Plan"},"transactionId":{"type":"string"},"amount":{"type":"number"},"points":{"type":"number"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"insertDate":{"type":"string","format":"date-time"}}},"Transaction_Collection":{"$ref":"common:Collection","$template":{"T":"Transaction"}},"User_Account":{"type":"object","properties":{"id":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"plans":{"type":"array","items":{"$ref":"User_Plan"}},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"}}},"User_Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"price":{"type":"integer"},"points":{"type":"integer"},"period":{"type":"integer"}}},"User_Activate":{"type":"object","properties":{"token":{"type":"string"}}},"User_Email":{"type":"object","properties":{"email":{"type":"string"},"captcha":{"type":"string"}}},"User_JWT":{"type":"object","properties":{"token":{"type":"string"},"expires_in":{"type":"integer"},"refresh_token":{"type":"string"},"scope":{"type":"string"}}},"User_Login":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"User_PasswordReset":{"type":"object","properties":{"token":{"type":"string"},"newPassword":{"type":"string"}}},"User_Refresh":{"type":"object","properties":{"refresh_token":{"type":"string"}}},"User_Register":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"captcha":{"type":"string"}}},"Webhook":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"},"responses":{"type":"array","items":{"$ref":"Webhook_Response"}}}},"Webhook_Response":{"type":"object","properties":{"status":{"type":"integer"},"code":{"type":"integer"},"attempts":{"type":"string"},"executeDate":{"type":"string"}}},"Webhook_Collection":{"$ref":"common:Collection","$template":{"T":"Webhook"}},"Webhook_Create":{"type":"object","properties":{"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"}}},"Webhook_Update":{"type":"object","properties":{"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"}}}}},"./spec/system.json":{"definitions":{"About":{"type":"struct","properties":{"apiVersion":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contactName":{"type":"string"},"contactUrl":{"type":"string"},"contactEmail":{"type":"string"},"licenseName":{"type":"string"},"licenseUrl":{"type":"string"},"paymentCurrency":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"$ref":"About_Apps"},"links":{"type":"array","items":{"$ref":"About_Link"}}}},"About_Apps":{"type":"object","additionalProperties":{"type":"string"}},"About_Link":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"}}},"Debug":{"type":"object","properties":{"headers":{"$ref":"Debug_Headers"},"parameters":{"$ref":"Debug_Parameters"},"body":{"$ref":"Debug_Body"}}},"Debug_Headers":{"type":"object","additionalProperties":true},"Debug_Parameters":{"type":"object","additionalProperties":true},"Debug_Body":{"type":"object","additionalProperties":true},"Health":{"type":"object","additionalProperties":{"$ref":"Health_Check"}},"Health_Check":{"type":"object","properties":{"healthy":{"type":"boolean"},"error":{"type":"string"}}},"OAuth_Configuration":{"type":"object","properties":{"issuer":{"type":"string"},"token_endpoint":{"type":"string"},"token_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"}},"userinfo_endpoint":{"type":"string"},"scopes_supported":{"type":"array","items":{"type":"string"}},"claims_supported":{"type":"array","items":{"type":"string"}}}},"Route":{"type":"object","properties":{"routes":{"$ref":"Route_Path"}}},"Route_Path":{"type":"object","additionalProperties":{"$ref":"Route_Method"}},"Route_Method":{"type":"object","additionalProperties":{"$ref":"string"}},"Schema":{"type":"object","properties":{"schema":{"$ref":"Schema_TypeSchema"},"form":{"$ref":"Schema_Form"}}},"Schema_TypeSchema":{"type":"map","schema":{"type":"any"}},"Schema_Form":{"type":"map","schema":{"type":"any"}}}}} \ No newline at end of file +{"./spec/backend.json":{"import":{"common":"https://raw.githubusercontent.com/apioo/fusio-model/main/spec/common.json"},"definitions":{"Account_ChangePassword":{"type":"object","properties":{"oldPassword":{"type":"string"},"newPassword":{"type":"string"},"verifyPassword":{"type":"string"}}},"Action":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"class":{"type":"string"},"async":{"type":"boolean"},"config":{"$ref":"Action_Config"},"metadata":{"$ref":"common:Metadata"}}},"Action_Config":{"type":"map","schema":{"type":"any"}},"Action_Create":{"$extends":"Action"},"Action_Update":{"$extends":"Action"},"Action_Index":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"Action_Index_Entry"}}}},"Action_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Action_Collection":{"$ref":"common:Collection","$template":{"T":"Action"}},"Action_Execute_Request_Body":{"type":"map","schema":{"type":"any"}},"Action_Execute_Request":{"type":"object","properties":{"method":{"type":"string"},"uriFragments":{"type":"string"},"parameters":{"type":"string"},"headers":{"type":"string"},"body":{"$ref":"Action_Execute_Request_Body"}}},"Action_Execute_Response_Headers":{"type":"object","additionalProperties":{"type":"string"}},"Action_Execute_Response_Body":{"type":"map","schema":{"type":"any"}},"Action_Execute_Response":{"type":"object","properties":{"statusCode":{"type":"integer"},"headers":{"$ref":"Action_Execute_Response_Headers"},"body":{"$ref":"Action_Execute_Response_Body"}}},"App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"parameters":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"},"scopes":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"$ref":"Token"}}}},"App_Create":{"$extends":"App"},"App_Update":{"$extends":"App"},"App_Collection":{"$ref":"common:Collection","$template":{"T":"App"}},"Audit":{"type":"object","properties":{"id":{"type":"integer"},"app":{"$ref":"App"},"user":{"$ref":"User"},"event":{"type":"string"},"ip":{"type":"string"},"message":{"type":"string"},"content":{"$ref":"Audit_Object"},"date":{"type":"string","format":"date-time"}}},"Audit_Object":{"description":"A key value object containing the changes","type":"map","schema":{"type":"any"}},"Audit_Collection":{"$ref":"common:Collection","$template":{"T":"Audit"}},"Backup_Export":{"type":"object","properties":{"export":{"type":"string"}}},"Backup_Import":{"type":"object","properties":{"import":{"type":"string"}}},"Backup_Import_Result":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"logs":{"type":"array","items":{"type":"string"}}}},"Category":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"Category_Collection":{"$ref":"common:Collection","$template":{"T":"Category"}},"Category_Create":{"$extends":"Category"},"Category_Update":{"$extends":"Category"},"Config":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"value":{"type":"any"}}},"Config_Collection":{"$ref":"common:Collection","$template":{"T":"Config"}},"Config_Update":{"$extends":"Config"},"Connection":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"class":{"type":"string"},"oauth2":{"description":"Indicates whether it is possible to start an OAuth2 authorization code flow on this connection","type":"boolean"},"config":{"$ref":"Connection_Config"},"metadata":{"$ref":"common:Metadata"}}},"Connection_Config":{"type":"map","schema":{"type":"any"}},"Connection_Collection":{"$ref":"common:Collection","$template":{"T":"Connection"}},"Connection_Create":{"$extends":"Connection"},"Connection_Update":{"$extends":"Connection"},"Connection_Index":{"type":"object","properties":{"connections":{"type":"array","items":{"$ref":"Connection_Index_Entry"}}}},"Connection_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Connection_Introspection_Entities":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"string"}}}},"Connection_Introspection_Entity":{"type":"object","properties":{"name":{"type":"string"},"headers":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"$ref":"Connection_Introspection_Entity_Row"}}}},"Connection_Introspection_Entity_Row":{"type":"object","properties":{"values":{"type":"array","items":{"type":"string"}}}},"Connection_Redirect_Response":{"type":"object","properties":{"redirectUri":{"type":"string"}}},"Cronjob":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"cron":{"type":"string"},"action":{"type":"string"},"executeDate":{"type":"string","format":"date-time"},"exitCode":{"type":"integer"},"metadata":{"$ref":"common:Metadata"},"errors":{"type":"array","items":{"$ref":"Cronjob_Error"}}}},"Cronjob_Error":{"type":"object","properties":{"message":{"type":"string"},"trace":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer"}}},"Cronjob_Collection":{"$ref":"common:Collection","$template":{"T":"Cronjob"}},"Cronjob_Create":{"$extends":"Cronjob"},"Cronjob_Update":{"$extends":"Cronjob"},"Database_Connections":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"string"}}}},"Database_Tables":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"string"}}}},"Database_Table":{"type":"object","properties":{"name":{"type":"string"},"columns":{"type":"array","items":{"$ref":"Database_Table_Column"}},"primaryKey":{"type":"string"},"indexes":{"type":"array","items":{"$ref":"Database_Table_Index"}},"foreignKeys":{"type":"array","items":{"$ref":"Database_Table_ForeignKeyConstraint"}}}},"Database_Table_Column":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"length":{"type":"integer"},"precision":{"type":"integer"},"scale":{"type":"integer"},"unsigned":{"type":"boolean"},"fixed":{"type":"boolean"},"notNull":{"type":"boolean"},"autoIncrement":{"type":"boolean"},"default":{"type":"any"},"comment":{"type":"string"}}},"Database_Table_Index":{"type":"object","properties":{"name":{"type":"string"},"unique":{"type":"boolean"},"columns":{"type":"array","items":{"type":"string"}}}},"Database_Table_ForeignKeyConstraint":{"type":"object","properties":{"name":{"type":"string"},"foreignTable":{"type":"string"},"localColumnNames":{"type":"array","items":{"type":"string"}},"foreignColumnNames":{"type":"array","items":{"type":"string"}}}},"Database_Rows":{"$ref":"common:Collection","$template":{"T":"Database_Row"}},"Database_Row":{"type":"object","additionalProperties":{"type":"any"}},"Dashboard":{"type":"object","properties":{"errorsPerOperation":{"$ref":"Statistic_Chart"},"incomingRequests":{"$ref":"Statistic_Chart"},"incomingTransactions":{"$ref":"Statistic_Chart"},"mostUsedOperations":{"$ref":"Statistic_Chart"},"timePerOperation":{"$ref":"Statistic_Chart"},"testCoverage":{"$ref":"Statistic_Chart"},"mostUsedActivities":{"$ref":"Statistic_Chart"},"activitiesPerUser":{"$ref":"Statistic_Chart"},"userRegistrations":{"$ref":"Statistic_Chart"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"schema":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Event_Collection":{"$ref":"common:Collection","$template":{"T":"Event"}},"Event_Create":{"$extends":"Event"},"Event_Update":{"$extends":"Event"},"Identity":{"type":"object","properties":{"id":{"type":"integer"},"appId":{"type":"integer"},"roleId":{"type":"integer"},"name":{"type":"string"},"icon":{"type":"string"},"class":{"type":"string"},"config":{"$ref":"Identity_Config"},"allowCreate":{"type":"boolean"}}},"Identity_Config":{"type":"map","schema":{"type":"any"}},"Identity_Collection":{"$ref":"common:Collection","$template":{"T":"Identity"}},"Identity_Create":{"$extends":"Identity"},"Identity_Update":{"$extends":"Identity"},"Identity_Index":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"Identity_Index_Entry"}}}},"Identity_Index_Entry":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Generator_Index_Providers":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"Generator_Index_Provider"}}}},"Generator_Index_Provider":{"type":"object","properties":{"name":{"type":"string"},"class":{"type":"string"}}},"Generator_Provider":{"type":"object","properties":{"path":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"public":{"type":"boolean"},"config":{"$ref":"Generator_Provider_Config"}}},"Generator_Provider_Config":{"type":"map","schema":{"type":"any"}},"Generator_Provider_Changelog":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"Schema"}},"actions":{"type":"array","items":{"$ref":"Action"}},"operations":{"type":"array","items":{"$ref":"Operation"}}}},"Log":{"type":"object","properties":{"id":{"type":"integer"},"ip":{"type":"string"},"userAgent":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"header":{"type":"string"},"body":{"type":"string"},"date":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"$ref":"Log_Error"}}}},"Log_Collection":{"$ref":"common:Collection","$template":{"T":"Log"}},"Log_Error":{"type":"object","properties":{"id":{"type":"integer"},"message":{"type":"integer"},"trace":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer"}}},"Log_Error_Collection":{"$ref":"common:Collection","$template":{"T":"Log_Error"}},"Operation":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"active":{"type":"boolean"},"public":{"type":"boolean"},"stability":{"type":"integer"},"description":{"type":"string"},"httpMethod":{"type":"string"},"httpPath":{"type":"string"},"httpCode":{"type":"integer"},"name":{"type":"string"},"parameters":{"$ref":"Operation_Parameters"},"incoming":{"type":"string"},"outgoing":{"type":"string"},"throws":{"$ref":"Operation_Throws"},"action":{"type":"string"},"costs":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"Operation_Parameters":{"type":"object","additionalProperties":{"$ref":"Operation_Schema"}},"Operation_Throws":{"type":"object","additionalProperties":{"type":"string"}},"Operation_Schema":{"type":"object","properties":{"description":{"type":"string"},"type":{"type":"string"},"format":{"type":"string"},"enum":{"type":"string"}}},"Operation_Collection":{"$ref":"common:Collection","$template":{"T":"Operation"}},"Operation_Create":{"$extends":"Operation"},"Operation_Update":{"$extends":"Operation"},"Page":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"content":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Page_Collection":{"$ref":"common:Collection","$template":{"T":"Page"}},"Page_Create":{"$extends":"Page"},"Page_Update":{"$extends":"Page"},"Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"points":{"type":"integer"},"period":{"type":"integer"},"externalId":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"Plan_Collection":{"$ref":"common:Collection","$template":{"T":"Plan"}},"Plan_Create":{"$extends":"Plan"},"Plan_Update":{"$extends":"Plan"},"Role":{"type":"object","properties":{"id":{"type":"integer"},"categoryId":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"Role_Collection":{"$ref":"common:Collection","$template":{"T":"Role"}},"Role_Create":{"$extends":"Role"},"Role_Update":{"$extends":"Role"},"Rate":{"type":"object","properties":{"id":{"type":"integer"},"priority":{"type":"integer"},"name":{"type":"string"},"rateLimit":{"type":"integer"},"timespan":{"type":"string"},"allocation":{"type":"array","items":{"$ref":"Rate_Allocation"}},"metadata":{"$ref":"common:Metadata"}}},"Rate_Collection":{"$ref":"common:Collection","$template":{"T":"Rate"}},"Rate_Create":{"$extends":"Rate"},"Rate_Update":{"$extends":"Rate"},"Rate_Allocation":{"type":"object","properties":{"id":{"type":"integer"},"operationId":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"appId":{"type":"integer"},"authenticated":{"type":"boolean"}}},"Schema":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"source":{"$ref":"Schema_Source"},"form":{"$ref":"Schema_Form"},"metadata":{"$ref":"common:Metadata"}}},"Schema_Source":{"description":"Contains the TypeSchema specification","type":"map","schema":{"type":"any"}},"Schema_Form":{"description":"Contains a UI vocabulary to describe the UI of the schema","type":"map","schema":{"type":"any"}},"Schema_Collection":{"$ref":"common:Collection","$template":{"T":"Schema"}},"Schema_Create":{"$extends":"Schema"},"Schema_Update":{"$extends":"Schema"},"Schema_Preview_Response":{"type":"object","properties":{"preview":{"type":"string"}}},"Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"Scope_Operation"}},"metadata":{"$ref":"common:Metadata"}}},"Scope_Operation":{"type":"object","properties":{"operationId":{"type":"integer"},"allow":{"type":"boolean"}}},"Scope_Collection":{"$ref":"common:Collection","$template":{"T":"Scope"}},"Scope_Create":{"$extends":"Scope"},"Scope_Update":{"$extends":"Scope"},"Scope_Categories":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"Scope_Category"}}}},"Scope_Category":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"Scope_Category_Scope"}}}},"Scope_Category_Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"}}},"Statistic_Chart_Data":{"type":"map","schema":{"type":"any"}},"Statistic_Chart":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}},"data":{"type":"array","items":{"$ref":"Statistic_Chart_Data"}},"series":{"type":"array","items":{"type":"string"}}}},"Statistic_Count":{"type":"object","properties":{"count":{"type":"integer"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"Sdk_Response":{"type":"object","properties":{"types":{"$ref":"Sdk_Types"}}},"Sdk_Types":{"type":"object","additionalProperties":{"type":"string"}},"Sdk_Generate":{"type":"object","properties":{"format":{"type":"string"},"config":{"type":"string"}}},"Sdk_Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"link":{"type":"string"}}},"Test":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"operationName":{"type":"string"},"message":{"type":"string"},"response":{"type":"string"},"config":{"$ref":"Test_Config"}}},"Test_Config":{"$extends":"Action_Execute_Request"},"Test_Collection":{"$ref":"common:Collection","$template":{"T":"Test"}},"Transaction":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"transactionId":{"type":"string"},"amount":{"type":"number"},"points":{"type":"number"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"insertDate":{"type":"string","format":"date-time"}}},"Transaction_Collection":{"$ref":"common:Collection","$template":{"T":"Transaction"}},"Trash_Types":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}}}},"Trash_Data":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"}}},"Trash_Data_Collection":{"$ref":"common:Collection","$template":{"T":"Trash_Data"}},"Trash_Restore":{"type":"object","properties":{"id":{"type":"integer"}}},"Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"type":"string","format":"date-time"},"date":{"type":"string","format":"date-time"}}},"Token_Collection":{"$ref":"common:Collection","$template":{"T":"Token"}},"User":{"type":"object","properties":{"id":{"type":"integer"},"roleId":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"type":"array","items":{"$ref":"App"}},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"}}},"User_Attributes":{"type":"object","additionalProperties":{"type":"string"}},"User_Collection":{"$ref":"common:Collection","$template":{"T":"User"}},"User_Create":{"$extends":"User","type":"object","properties":{"password":{"type":"string"}}},"User_Update":{"$extends":"User"},"Webhook":{"type":"object","properties":{"id":{"type":"integer"},"eventId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"endpoint":{"type":"string"},"responses":{"type":"array","items":{"$ref":"Webhook_Response"}}}},"Webhook_Response":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"code":{"type":"integer"},"attempts":{"type":"integer"},"error":{"type":"string"},"executeDate":{"type":"string","format":"date-time"}}},"Webhook_Collection":{"$ref":"common:Collection","$template":{"T":"Webhook"}},"Webhook_Create":{"$extends":"Webhook"},"Webhook_Update":{"$extends":"Webhook"}}},"./spec/common.json":{"definitions":{"Collection":{"type":"object","properties":{"totalResults":{"type":"integer"},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"},"entry":{"type":"array","items":{"$generic":"T"}}}},"Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"id":{"type":"string"}}},"Metadata":{"type":"object","additionalProperties":{"type":"string"}},"Form_Container":{"type":"object","properties":{"element":{"type":"array","schema":{"type":"reference","target":"Form_Element"}}}},"Form_Element":{"type":"object","base":true,"discriminator":"type","mapping":{"Form_Element_Input":"http://fusio-project.org/ns/2015/form/input","Form_Element_Select":"http://fusio-project.org/ns/2015/form/select","Form_Element_Tag":"http://fusio-project.org/ns/2015/form/tag","Form_Element_TextArea":"http://fusio-project.org/ns/2015/form/textarea"},"properties":{"type":{"type":"string"},"element":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"help":{"type":"string"}}},"Form_Element_Input":{"type":"struct","parent":{"type":"reference","target":"Form_Element"}},"Form_Element_Select":{"type":"struct","parent":{"type":"reference","target":"Form_Element"},"properties":{"options":{"type":"array","items":{"$ref":"Form_Element_Select_Option"}}}},"Form_Element_Select_Option":{"type":"struct","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"Form_Element_Tag":{"type":"struct","parent":{"type":"reference","target":"Form_Element"}},"Form_Element_TextArea":{"type":"struct","parent":{"type":"reference","target":"Form_Element"},"properties":{"mode":{"type":"string"}}}}},"./spec/consumer.json":{"import":{"common":"https://raw.githubusercontent.com/apioo/fusio-model/main/spec/common.json"},"definitions":{"App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"date":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"common:Metadata"}}},"App_Collection":{"$ref":"common:Collection","$template":{"T":"App"}},"App_Create":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"App_Update":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"Authorize_Meta":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"Scope"}}}},"Authorize_Request":{"type":"object","properties":{"responseType":{"type":"string"},"clientId":{"type":"string"},"redirectUri":{"type":"string"},"scope":{"type":"string"},"state":{"type":"string"},"allow":{"type":"boolean"}}},"Authorize_Response":{"type":"object","properties":{"type":{"type":"string"},"token":{"$ref":"Authorize_Response_Token"},"code":{"type":"string"},"redirectUri":{"type":"string"}}},"Authorize_Response_Token":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"string"},"scope":{"type":"string"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Event_Collection":{"$ref":"common:Collection","$template":{"T":"Event"}},"Identity":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"icon":{"type":"string"},"redirect":{"type":"string"}}},"Identity_Collection":{"$ref":"common:Collection","$template":{"T":"Identity"}},"Log":{"type":"object","properties":{"id":{"type":"integer"},"appId":{"type":"integer"},"ip":{"type":"string"},"userAgent":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"header":{"type":"string"},"body":{"type":"string"},"date":{"type":"string","format":"date-time"}}},"Log_Collection":{"$ref":"common:Collection","$template":{"T":"Log"}},"Grant":{"type":"object","properties":{"id":{"type":"integer"},"app":{"$ref":"App"},"createDate":{"type":"string","format":"date-time"}}},"Grant_Collection":{"$ref":"common:Collection","$template":{"T":"Grant"}},"Page":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"content":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Page_Collection":{"$ref":"common:Collection","$template":{"T":"Page"}},"Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"points":{"type":"integer"},"period":{"type":"integer"},"metadata":{"$ref":"common:Metadata"}}},"Plan_Collection":{"$ref":"common:Collection","$template":{"T":"Plan"}},"Payment_Checkout_Request":{"type":"object","properties":{"planId":{"type":"integer"},"returnUrl":{"type":"string"}}},"Payment_Checkout_Response":{"type":"object","properties":{"approvalUrl":{"type":"string"}}},"Payment_Portal_Request":{"type":"object","properties":{"returnUrl":{"type":"string"}}},"Payment_Portal_Response":{"type":"object","properties":{"redirectUrl":{"type":"string"}}},"Scope":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"metadata":{"$ref":"common:Metadata"}}},"Scope_Collection":{"$ref":"common:Collection","$template":{"T":"Scope"}},"Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"type":"string","format":"date"},"date":{"type":"string","format":"date-time"}}},"Token_Collection":{"$ref":"common:Collection","$template":{"T":"Token"}},"Token_Create":{"type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"expire":{"type":"string","format":"date"}}},"Token_Update":{"type":"object","properties":{"name":{"type":"string"},"expire":{"type":"string","format":"date"}}},"Token_AccessToken":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"integer"},"refresh_token":{"type":"string"},"scope":{"type":"string"}}},"Transaction":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"planId":{"type":"integer"},"plan":{"$ref":"Plan"},"transactionId":{"type":"string"},"amount":{"type":"number"},"points":{"type":"number"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"insertDate":{"type":"string","format":"date-time"}}},"Transaction_Collection":{"$ref":"common:Collection","$template":{"T":"Transaction"}},"User_Account":{"type":"object","properties":{"id":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"plans":{"type":"array","items":{"$ref":"User_Plan"}},"metadata":{"$ref":"common:Metadata"},"date":{"type":"string","format":"date-time"}}},"User_Plan":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"price":{"type":"integer"},"points":{"type":"integer"},"period":{"type":"integer"}}},"User_Activate":{"type":"object","properties":{"token":{"type":"string"}}},"User_Email":{"type":"object","properties":{"email":{"type":"string"},"captcha":{"type":"string"}}},"User_JWT":{"type":"object","properties":{"token":{"type":"string"},"expires_in":{"type":"integer"},"refresh_token":{"type":"string"},"scope":{"type":"string"}}},"User_Login":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}},"User_PasswordReset":{"type":"object","properties":{"token":{"type":"string"},"newPassword":{"type":"string"}}},"User_Refresh":{"type":"object","properties":{"refresh_token":{"type":"string"}}},"User_Register":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"captcha":{"type":"string"}}},"Webhook":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"},"responses":{"type":"array","items":{"$ref":"Webhook_Response"}}}},"Webhook_Response":{"type":"object","properties":{"status":{"type":"integer"},"code":{"type":"integer"},"attempts":{"type":"string"},"executeDate":{"type":"string"}}},"Webhook_Collection":{"$ref":"common:Collection","$template":{"T":"Webhook"}},"Webhook_Create":{"type":"object","properties":{"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"}}},"Webhook_Update":{"type":"object","properties":{"event":{"type":"string"},"name":{"type":"string"},"endpoint":{"type":"string"}}}}},"./spec/system.json":{"definitions":{"About":{"type":"struct","properties":{"apiVersion":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contactName":{"type":"string"},"contactUrl":{"type":"string"},"contactEmail":{"type":"string"},"licenseName":{"type":"string"},"licenseUrl":{"type":"string"},"paymentCurrency":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"$ref":"About_Apps"},"links":{"type":"array","items":{"$ref":"About_Link"}}}},"About_Apps":{"type":"struct","schema":{"type":"string"}},"About_Link":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"}}},"Debug":{"type":"object","properties":{"headers":{"$ref":"Debug_Headers"},"parameters":{"$ref":"Debug_Parameters"},"body":{"$ref":"Debug_Body"}}},"Debug_Headers":{"type":"object","additionalProperties":true},"Debug_Parameters":{"type":"object","additionalProperties":true},"Debug_Body":{"type":"object","additionalProperties":true},"Health":{"type":"object","additionalProperties":{"$ref":"Health_Check"}},"Health_Check":{"type":"object","properties":{"healthy":{"type":"boolean"},"error":{"type":"string"}}},"OAuth_Configuration":{"type":"object","properties":{"issuer":{"type":"string"},"token_endpoint":{"type":"string"},"token_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"}},"userinfo_endpoint":{"type":"string"},"scopes_supported":{"type":"array","items":{"type":"string"}},"claims_supported":{"type":"array","items":{"type":"string"}}}},"Route":{"type":"object","properties":{"routes":{"$ref":"Route_Path"}}},"Route_Path":{"type":"object","additionalProperties":{"$ref":"Route_Method"}},"Route_Method":{"type":"object","additionalProperties":{"$ref":"string"}},"Schema":{"type":"object","properties":{"schema":{"$ref":"Schema_TypeSchema"},"form":{"$ref":"Schema_Form"}}},"Schema_TypeSchema":{"type":"map","schema":{"type":"any"}},"Schema_Form":{"type":"map","schema":{"type":"any"}}}}} \ No newline at end of file diff --git a/src/Common/FormElement.php b/src/Common/FormElement.php index 86f056b..3a63244 100644 --- a/src/Common/FormElement.php +++ b/src/Common/FormElement.php @@ -8,10 +8,10 @@ use PSX\Schema\Attribute\Discriminator; #[Discriminator('type')] -#[DerivedType('FormElementInput', 'http://fusio-project.org/ns/2015/form/input')] -#[DerivedType('FormElementSelect', 'http://fusio-project.org/ns/2015/form/select')] -#[DerivedType('FormElementTag', 'http://fusio-project.org/ns/2015/form/tag')] -#[DerivedType('FormElementTextArea', 'http://fusio-project.org/ns/2015/form/textarea')] +#[DerivedType(FormElementInput::class, 'http://fusio-project.org/ns/2015/form/input')] +#[DerivedType(FormElementSelect::class, 'http://fusio-project.org/ns/2015/form/select')] +#[DerivedType(FormElementTag::class, 'http://fusio-project.org/ns/2015/form/tag')] +#[DerivedType(FormElementTextArea::class, 'http://fusio-project.org/ns/2015/form/textarea')] abstract class FormElement implements \JsonSerializable, \PSX\Record\RecordableInterface { protected ?string $type = null; diff --git a/src/System/AboutApps.php b/src/System/AboutApps.php index 77c1c7e..d25a135 100644 --- a/src/System/AboutApps.php +++ b/src/System/AboutApps.php @@ -4,10 +4,8 @@ namespace Fusio\Model\System; -/** - * @extends \PSX\Record\Record - */ -class AboutApps extends \PSX\Record\Record + +class AboutApps implements \JsonSerializable, \PSX\Record\RecordableInterface { }