fusio-sdk 6.2.1 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -626,6 +626,11 @@ interface BackendBundleConfig extends Record<string, any> {
626
626
  interface BackendBundle {
627
627
  id?: number;
628
628
  name?: string;
629
+ version?: string;
630
+ icon?: string;
631
+ summary?: string;
632
+ description?: string;
633
+ cost?: number;
629
634
  config?: BackendBundleConfig;
630
635
  }
631
636
 
@@ -649,27 +654,11 @@ interface BackendBundleCreate extends BackendBundle {
649
654
  }
650
655
 
651
656
  /**
652
- * BackendEvent automatically generated by SDKgen please do not edit this file manually
657
+ * BackendBundleUpdate automatically generated by SDKgen please do not edit this file manually
653
658
  * {@link https://sdkgen.app}
654
659
  */
655
660
 
656
- /**
657
- * This object represents an event which can be triggered by an action
658
- */
659
- interface BackendEvent {
660
- id?: number;
661
- name?: string;
662
- description?: string;
663
- schema?: string;
664
- metadata?: CommonMetadata;
665
- }
666
-
667
- /**
668
- * BackendEventUpdate automatically generated by SDKgen please do not edit this file manually
669
- * {@link https://sdkgen.app}
670
- */
671
-
672
- interface BackendEventUpdate extends BackendEvent {
661
+ interface BackendBundleUpdate extends BackendBundle {
673
662
  }
674
663
 
675
664
  /**
@@ -697,11 +686,11 @@ declare class BackendBundleTag extends TagAbstract {
697
686
  /**
698
687
  * Returns a specific bundle
699
688
  *
700
- * @returns {Promise<BackendEvent>}
689
+ * @returns {Promise<BackendBundle>}
701
690
  * @throws {CommonMessageException}
702
691
  * @throws {ClientException}
703
692
  */
704
- get(bundleId: string): Promise<BackendEvent>;
693
+ get(bundleId: string): Promise<BackendBundle>;
705
694
  /**
706
695
  * Returns a paginated list of bundles
707
696
  *
@@ -710,6 +699,14 @@ declare class BackendBundleTag extends TagAbstract {
710
699
  * @throws {ClientException}
711
700
  */
712
701
  getAll(startIndex?: number, count?: number, search?: string): Promise<BackendBundleCollection>;
702
+ /**
703
+ * Publish an existing bundle to the marketplace
704
+ *
705
+ * @returns {Promise<CommonMessage>}
706
+ * @throws {CommonMessageException}
707
+ * @throws {ClientException}
708
+ */
709
+ publish(bundleId: string): Promise<CommonMessage>;
713
710
  /**
714
711
  * Updates an existing bundle
715
712
  *
@@ -717,7 +714,7 @@ declare class BackendBundleTag extends TagAbstract {
717
714
  * @throws {CommonMessageException}
718
715
  * @throws {ClientException}
719
716
  */
720
- update(bundleId: string, payload: BackendEventUpdate): Promise<CommonMessage>;
717
+ update(bundleId: string, payload: BackendBundleUpdate): Promise<CommonMessage>;
721
718
  }
722
719
 
723
720
  /**
@@ -1525,6 +1522,22 @@ declare class BackendDashboardTag extends TagAbstract {
1525
1522
  getAll(): Promise<BackendDashboard>;
1526
1523
  }
1527
1524
 
1525
+ /**
1526
+ * BackendEvent automatically generated by SDKgen please do not edit this file manually
1527
+ * {@link https://sdkgen.app}
1528
+ */
1529
+
1530
+ /**
1531
+ * This object represents an event which can be triggered by an action
1532
+ */
1533
+ interface BackendEvent {
1534
+ id?: number;
1535
+ name?: string;
1536
+ description?: string;
1537
+ schema?: string;
1538
+ metadata?: CommonMetadata;
1539
+ }
1540
+
1528
1541
  /**
1529
1542
  * BackendEventCollection automatically generated by SDKgen please do not edit this file manually
1530
1543
  * {@link https://sdkgen.app}
@@ -1544,6 +1557,14 @@ interface BackendEventCollection extends CommonCollection<BackendEvent> {
1544
1557
  interface BackendEventCreate extends BackendEvent {
1545
1558
  }
1546
1559
 
1560
+ /**
1561
+ * BackendEventUpdate automatically generated by SDKgen please do not edit this file manually
1562
+ * {@link https://sdkgen.app}
1563
+ */
1564
+
1565
+ interface BackendEventUpdate extends BackendEvent {
1566
+ }
1567
+
1547
1568
  /**
1548
1569
  * BackendEventTag automatically generated by SDKgen please do not edit this file manually
1549
1570
  * {@link https://sdkgen.app}
@@ -5311,4 +5332,4 @@ declare class CommonMessageException extends KnownStatusCodeException {
5311
5332
  getPayload(): CommonMessage;
5312
5333
  }
5313
5334
 
5314
- export { AuthorizationTag, type BackendAccountChangePassword, BackendAccountTag, type BackendAction, type BackendActionCollection, type BackendActionConfig, type BackendActionCreate, type BackendActionExecuteRequest, type BackendActionExecuteRequestBody, type BackendActionExecuteResponse, type BackendActionExecuteResponseBody, type BackendActionExecuteResponseHeaders, type BackendActionIndex, type BackendActionIndexEntry, BackendActionTag, type BackendActionUpdate, type BackendApp, type BackendAppCollection, type BackendAppCreate, BackendAppTag, type BackendAppUpdate, type BackendAudit, type BackendAuditCollection, type BackendAuditObject, BackendAuditTag, type BackendBackupExport, type BackendBackupImport, type BackendBackupImportResult, BackendBackupTag, type BackendBundle, type BackendBundleCollection, type BackendBundleConfig, type BackendBundleCreate, BackendBundleTag, type BackendCategory, type BackendCategoryCollection, type BackendCategoryCreate, BackendCategoryTag, type BackendCategoryUpdate, type BackendConfig, type BackendConfigCollection, BackendConfigTag, type BackendConfigUpdate, type BackendConnection, type BackendConnectionCollection, type BackendConnectionConfig, type BackendConnectionCreate, BackendConnectionDatabaseTag, BackendConnectionFilesystemTag, BackendConnectionHttpTag, type BackendConnectionIndex, type BackendConnectionIndexEntry, type BackendConnectionRedirectResponse, BackendConnectionSdkTag, BackendConnectionTag, type BackendConnectionUpdate, type BackendCronjob, type BackendCronjobCollection, type BackendCronjobCreate, type BackendCronjobError, BackendCronjobTag, type BackendCronjobUpdate, type BackendDashboard, BackendDashboardTag, type BackendDatabaseRow, type BackendDatabaseRowCollection, type BackendDatabaseTable, type BackendDatabaseTableCollection, type BackendDatabaseTableColumn, type BackendDatabaseTableForeignKeyConstraint, type BackendDatabaseTableIndex, type BackendEvent, type BackendEventCollection, type BackendEventCreate, BackendEventTag, type BackendEventUpdate, type BackendFile, type BackendFileCollection, type BackendFirewall, type BackendFirewallCollection, type BackendFirewallCreate, BackendFirewallTag, type BackendFirewallUpdate, type BackendForm, type BackendFormCollection, type BackendFormCreate, BackendFormTag, type BackendFormUpdate, type BackendGeneratorIndexProvider, type BackendGeneratorIndexProviders, type BackendGeneratorProvider, type BackendGeneratorProviderChangelog, type BackendGeneratorProviderConfig, BackendGeneratorTag, type BackendHttpRequest, type BackendHttpResponse, type BackendIdentity, type BackendIdentityCollection, type BackendIdentityConfig, type BackendIdentityCreate, type BackendIdentityIndex, type BackendIdentityIndexEntry, BackendIdentityTag, type BackendIdentityUpdate, type BackendLog, type BackendLogCollection, type BackendLogError, type BackendLogErrorCollection, BackendLogTag, BackendMarketplaceActionTag, BackendMarketplaceAppTag, BackendMarketplaceBundleTag, BackendMarketplaceTag, type BackendOperation, type BackendOperationCollection, type BackendOperationCreate, type BackendOperationParameters, type BackendOperationSchema, BackendOperationTag, type BackendOperationThrows, type BackendOperationUpdate, type BackendPage, type BackendPageCollection, type BackendPageCreate, BackendPageTag, type BackendPageUpdate, type BackendPlan, type BackendPlanCollection, type BackendPlanCreate, BackendPlanTag, type BackendPlanUpdate, type BackendRate, type BackendRateAllocation, type BackendRateCollection, type BackendRateCreate, BackendRateTag, type BackendRateUpdate, type BackendRole, type BackendRoleCollection, type BackendRoleCreate, BackendRoleTag, type BackendRoleUpdate, type BackendSchema, type BackendSchemaCollection, type BackendSchemaCreate, type BackendSchemaPreviewResponse, type BackendSchemaSource, BackendSchemaTag, type BackendSchemaUpdate, type BackendScope, type BackendScopeCategories, type BackendScopeCategory, type BackendScopeCategoryScope, type BackendScopeCollection, type BackendScopeCreate, type BackendScopeOperation, BackendScopeTag, type BackendScopeUpdate, type BackendSdkGenerate, type BackendSdkMessage, type BackendSdkResponse, BackendSdkTag, type BackendSdkTypes, type BackendStatisticChart, type BackendStatisticChartSeries, type BackendStatisticCount, BackendStatisticTag, BackendTag, BackendTenantTag, type BackendTest, type BackendTestCollection, type BackendTestConfig, BackendTestTag, type BackendToken, type BackendTokenCollection, BackendTokenTag, type BackendTransaction, type BackendTransactionCollection, BackendTransactionTag, type BackendTrashData, type BackendTrashDataCollection, type BackendTrashRestore, BackendTrashTag, type BackendTrashTypes, type BackendTrigger, type BackendTriggerCollection, type BackendTriggerCreate, BackendTriggerTag, type BackendTriggerUpdate, type BackendUser, type BackendUserCollection, type BackendUserCreate, BackendUserTag, type BackendUserUpdate, type BackendWebhook, type BackendWebhookCollection, type BackendWebhookCreate, type BackendWebhookResponse, BackendWebhookTag, type BackendWebhookUpdate, Client, type CommonCollection, type CommonFormContainer, type CommonFormElement, type CommonFormElementInput, type CommonFormElementSelect, type CommonFormElementSelectOption, type CommonFormElementTag, type CommonFormElementTextArea, type CommonMessage, CommonMessageException, type CommonMetadata, ConsumerAccountTag, type ConsumerApp, type ConsumerAppCollection, type ConsumerAppCreate, ConsumerAppTag, type ConsumerAppUpdate, type ConsumerAuthorizeMeta, type ConsumerAuthorizeRequest, type ConsumerAuthorizeResponse, type ConsumerEvent, type ConsumerEventCollection, ConsumerEventTag, type ConsumerForm, type ConsumerFormCollection, ConsumerFormTag, type ConsumerGrant, type ConsumerGrantCollection, ConsumerGrantTag, type ConsumerIdentity, type ConsumerIdentityCollection, ConsumerIdentityTag, type ConsumerLog, type ConsumerLogCollection, ConsumerLogTag, type ConsumerPage, type ConsumerPageCollection, ConsumerPageTag, type ConsumerPaymentCheckoutRequest, type ConsumerPaymentCheckoutResponse, type ConsumerPaymentPortalRequest, type ConsumerPaymentPortalResponse, ConsumerPaymentTag, type ConsumerPlan, type ConsumerPlanCollection, ConsumerPlanTag, type ConsumerScope, type ConsumerScopeCategories, type ConsumerScopeCategory, type ConsumerScopeCategoryScope, type ConsumerScopeCollection, ConsumerScopeTag, ConsumerTag, type ConsumerToken, type ConsumerTokenAccessToken, type ConsumerTokenCollection, type ConsumerTokenCreate, ConsumerTokenTag, type ConsumerTokenUpdate, type ConsumerTransaction, type ConsumerTransactionCollection, ConsumerTransactionTag, type ConsumerUserAccount, type ConsumerUserActivate, type ConsumerUserEmail, type ConsumerUserJWT, type ConsumerUserLogin, type ConsumerUserPasswordReset, type ConsumerUserPlan, type ConsumerUserRefresh, type ConsumerUserRegister, type ConsumerWebhook, type ConsumerWebhookCollection, type ConsumerWebhookCreate, type ConsumerWebhookResponse, ConsumerWebhookTag, type ConsumerWebhookUpdate, type MarketplaceAction, type MarketplaceActionCollection, type MarketplaceActionConfig, type MarketplaceApp, type MarketplaceAppCollection, type MarketplaceBundle, type MarketplaceBundleAction, type MarketplaceBundleActionConfig, type MarketplaceBundleCollection, type MarketplaceBundleConfig, type MarketplaceBundleCronjob, type MarketplaceBundleEvent, type MarketplaceBundleSchema, type MarketplaceBundleSchemaSource, type MarketplaceBundleTrigger, type MarketplaceCollection, type MarketplaceInstall, type MarketplaceMessage, type MarketplaceObject, type MarketplaceUser, type Passthru, type SystemAbout, type SystemAboutApps, type SystemAboutLink, SystemConnectionTag, type SystemHealthCheck, SystemMetaTag, SystemPaymentTag, type SystemRoute, type SystemRouteMethod, type SystemRoutePath, type SystemSchema, type SystemSchemaForm, type SystemSchemaTypeSchema, SystemTag };
5335
+ export { AuthorizationTag, type BackendAccountChangePassword, BackendAccountTag, type BackendAction, type BackendActionCollection, type BackendActionConfig, type BackendActionCreate, type BackendActionExecuteRequest, type BackendActionExecuteRequestBody, type BackendActionExecuteResponse, type BackendActionExecuteResponseBody, type BackendActionExecuteResponseHeaders, type BackendActionIndex, type BackendActionIndexEntry, BackendActionTag, type BackendActionUpdate, type BackendApp, type BackendAppCollection, type BackendAppCreate, BackendAppTag, type BackendAppUpdate, type BackendAudit, type BackendAuditCollection, type BackendAuditObject, BackendAuditTag, type BackendBackupExport, type BackendBackupImport, type BackendBackupImportResult, BackendBackupTag, type BackendBundle, type BackendBundleCollection, type BackendBundleConfig, type BackendBundleCreate, BackendBundleTag, type BackendBundleUpdate, type BackendCategory, type BackendCategoryCollection, type BackendCategoryCreate, BackendCategoryTag, type BackendCategoryUpdate, type BackendConfig, type BackendConfigCollection, BackendConfigTag, type BackendConfigUpdate, type BackendConnection, type BackendConnectionCollection, type BackendConnectionConfig, type BackendConnectionCreate, BackendConnectionDatabaseTag, BackendConnectionFilesystemTag, BackendConnectionHttpTag, type BackendConnectionIndex, type BackendConnectionIndexEntry, type BackendConnectionRedirectResponse, BackendConnectionSdkTag, BackendConnectionTag, type BackendConnectionUpdate, type BackendCronjob, type BackendCronjobCollection, type BackendCronjobCreate, type BackendCronjobError, BackendCronjobTag, type BackendCronjobUpdate, type BackendDashboard, BackendDashboardTag, type BackendDatabaseRow, type BackendDatabaseRowCollection, type BackendDatabaseTable, type BackendDatabaseTableCollection, type BackendDatabaseTableColumn, type BackendDatabaseTableForeignKeyConstraint, type BackendDatabaseTableIndex, type BackendEvent, type BackendEventCollection, type BackendEventCreate, BackendEventTag, type BackendEventUpdate, type BackendFile, type BackendFileCollection, type BackendFirewall, type BackendFirewallCollection, type BackendFirewallCreate, BackendFirewallTag, type BackendFirewallUpdate, type BackendForm, type BackendFormCollection, type BackendFormCreate, BackendFormTag, type BackendFormUpdate, type BackendGeneratorIndexProvider, type BackendGeneratorIndexProviders, type BackendGeneratorProvider, type BackendGeneratorProviderChangelog, type BackendGeneratorProviderConfig, BackendGeneratorTag, type BackendHttpRequest, type BackendHttpResponse, type BackendIdentity, type BackendIdentityCollection, type BackendIdentityConfig, type BackendIdentityCreate, type BackendIdentityIndex, type BackendIdentityIndexEntry, BackendIdentityTag, type BackendIdentityUpdate, type BackendLog, type BackendLogCollection, type BackendLogError, type BackendLogErrorCollection, BackendLogTag, BackendMarketplaceActionTag, BackendMarketplaceAppTag, BackendMarketplaceBundleTag, BackendMarketplaceTag, type BackendOperation, type BackendOperationCollection, type BackendOperationCreate, type BackendOperationParameters, type BackendOperationSchema, BackendOperationTag, type BackendOperationThrows, type BackendOperationUpdate, type BackendPage, type BackendPageCollection, type BackendPageCreate, BackendPageTag, type BackendPageUpdate, type BackendPlan, type BackendPlanCollection, type BackendPlanCreate, BackendPlanTag, type BackendPlanUpdate, type BackendRate, type BackendRateAllocation, type BackendRateCollection, type BackendRateCreate, BackendRateTag, type BackendRateUpdate, type BackendRole, type BackendRoleCollection, type BackendRoleCreate, BackendRoleTag, type BackendRoleUpdate, type BackendSchema, type BackendSchemaCollection, type BackendSchemaCreate, type BackendSchemaPreviewResponse, type BackendSchemaSource, BackendSchemaTag, type BackendSchemaUpdate, type BackendScope, type BackendScopeCategories, type BackendScopeCategory, type BackendScopeCategoryScope, type BackendScopeCollection, type BackendScopeCreate, type BackendScopeOperation, BackendScopeTag, type BackendScopeUpdate, type BackendSdkGenerate, type BackendSdkMessage, type BackendSdkResponse, BackendSdkTag, type BackendSdkTypes, type BackendStatisticChart, type BackendStatisticChartSeries, type BackendStatisticCount, BackendStatisticTag, BackendTag, BackendTenantTag, type BackendTest, type BackendTestCollection, type BackendTestConfig, BackendTestTag, type BackendToken, type BackendTokenCollection, BackendTokenTag, type BackendTransaction, type BackendTransactionCollection, BackendTransactionTag, type BackendTrashData, type BackendTrashDataCollection, type BackendTrashRestore, BackendTrashTag, type BackendTrashTypes, type BackendTrigger, type BackendTriggerCollection, type BackendTriggerCreate, BackendTriggerTag, type BackendTriggerUpdate, type BackendUser, type BackendUserCollection, type BackendUserCreate, BackendUserTag, type BackendUserUpdate, type BackendWebhook, type BackendWebhookCollection, type BackendWebhookCreate, type BackendWebhookResponse, BackendWebhookTag, type BackendWebhookUpdate, Client, type CommonCollection, type CommonFormContainer, type CommonFormElement, type CommonFormElementInput, type CommonFormElementSelect, type CommonFormElementSelectOption, type CommonFormElementTag, type CommonFormElementTextArea, type CommonMessage, CommonMessageException, type CommonMetadata, ConsumerAccountTag, type ConsumerApp, type ConsumerAppCollection, type ConsumerAppCreate, ConsumerAppTag, type ConsumerAppUpdate, type ConsumerAuthorizeMeta, type ConsumerAuthorizeRequest, type ConsumerAuthorizeResponse, type ConsumerEvent, type ConsumerEventCollection, ConsumerEventTag, type ConsumerForm, type ConsumerFormCollection, ConsumerFormTag, type ConsumerGrant, type ConsumerGrantCollection, ConsumerGrantTag, type ConsumerIdentity, type ConsumerIdentityCollection, ConsumerIdentityTag, type ConsumerLog, type ConsumerLogCollection, ConsumerLogTag, type ConsumerPage, type ConsumerPageCollection, ConsumerPageTag, type ConsumerPaymentCheckoutRequest, type ConsumerPaymentCheckoutResponse, type ConsumerPaymentPortalRequest, type ConsumerPaymentPortalResponse, ConsumerPaymentTag, type ConsumerPlan, type ConsumerPlanCollection, ConsumerPlanTag, type ConsumerScope, type ConsumerScopeCategories, type ConsumerScopeCategory, type ConsumerScopeCategoryScope, type ConsumerScopeCollection, ConsumerScopeTag, ConsumerTag, type ConsumerToken, type ConsumerTokenAccessToken, type ConsumerTokenCollection, type ConsumerTokenCreate, ConsumerTokenTag, type ConsumerTokenUpdate, type ConsumerTransaction, type ConsumerTransactionCollection, ConsumerTransactionTag, type ConsumerUserAccount, type ConsumerUserActivate, type ConsumerUserEmail, type ConsumerUserJWT, type ConsumerUserLogin, type ConsumerUserPasswordReset, type ConsumerUserPlan, type ConsumerUserRefresh, type ConsumerUserRegister, type ConsumerWebhook, type ConsumerWebhookCollection, type ConsumerWebhookCreate, type ConsumerWebhookResponse, ConsumerWebhookTag, type ConsumerWebhookUpdate, type MarketplaceAction, type MarketplaceActionCollection, type MarketplaceActionConfig, type MarketplaceApp, type MarketplaceAppCollection, type MarketplaceBundle, type MarketplaceBundleAction, type MarketplaceBundleActionConfig, type MarketplaceBundleCollection, type MarketplaceBundleConfig, type MarketplaceBundleCronjob, type MarketplaceBundleEvent, type MarketplaceBundleSchema, type MarketplaceBundleSchemaSource, type MarketplaceBundleTrigger, type MarketplaceCollection, type MarketplaceInstall, type MarketplaceMessage, type MarketplaceObject, type MarketplaceUser, type Passthru, type SystemAbout, type SystemAboutApps, type SystemAboutLink, SystemConnectionTag, type SystemHealthCheck, SystemMetaTag, SystemPaymentTag, type SystemRoute, type SystemRouteMethod, type SystemRoutePath, type SystemSchema, type SystemSchemaForm, type SystemSchemaTypeSchema, SystemTag };
package/dist/index.d.ts CHANGED
@@ -626,6 +626,11 @@ interface BackendBundleConfig extends Record<string, any> {
626
626
  interface BackendBundle {
627
627
  id?: number;
628
628
  name?: string;
629
+ version?: string;
630
+ icon?: string;
631
+ summary?: string;
632
+ description?: string;
633
+ cost?: number;
629
634
  config?: BackendBundleConfig;
630
635
  }
631
636
 
@@ -649,27 +654,11 @@ interface BackendBundleCreate extends BackendBundle {
649
654
  }
650
655
 
651
656
  /**
652
- * BackendEvent automatically generated by SDKgen please do not edit this file manually
657
+ * BackendBundleUpdate automatically generated by SDKgen please do not edit this file manually
653
658
  * {@link https://sdkgen.app}
654
659
  */
655
660
 
656
- /**
657
- * This object represents an event which can be triggered by an action
658
- */
659
- interface BackendEvent {
660
- id?: number;
661
- name?: string;
662
- description?: string;
663
- schema?: string;
664
- metadata?: CommonMetadata;
665
- }
666
-
667
- /**
668
- * BackendEventUpdate automatically generated by SDKgen please do not edit this file manually
669
- * {@link https://sdkgen.app}
670
- */
671
-
672
- interface BackendEventUpdate extends BackendEvent {
661
+ interface BackendBundleUpdate extends BackendBundle {
673
662
  }
674
663
 
675
664
  /**
@@ -697,11 +686,11 @@ declare class BackendBundleTag extends TagAbstract {
697
686
  /**
698
687
  * Returns a specific bundle
699
688
  *
700
- * @returns {Promise<BackendEvent>}
689
+ * @returns {Promise<BackendBundle>}
701
690
  * @throws {CommonMessageException}
702
691
  * @throws {ClientException}
703
692
  */
704
- get(bundleId: string): Promise<BackendEvent>;
693
+ get(bundleId: string): Promise<BackendBundle>;
705
694
  /**
706
695
  * Returns a paginated list of bundles
707
696
  *
@@ -710,6 +699,14 @@ declare class BackendBundleTag extends TagAbstract {
710
699
  * @throws {ClientException}
711
700
  */
712
701
  getAll(startIndex?: number, count?: number, search?: string): Promise<BackendBundleCollection>;
702
+ /**
703
+ * Publish an existing bundle to the marketplace
704
+ *
705
+ * @returns {Promise<CommonMessage>}
706
+ * @throws {CommonMessageException}
707
+ * @throws {ClientException}
708
+ */
709
+ publish(bundleId: string): Promise<CommonMessage>;
713
710
  /**
714
711
  * Updates an existing bundle
715
712
  *
@@ -717,7 +714,7 @@ declare class BackendBundleTag extends TagAbstract {
717
714
  * @throws {CommonMessageException}
718
715
  * @throws {ClientException}
719
716
  */
720
- update(bundleId: string, payload: BackendEventUpdate): Promise<CommonMessage>;
717
+ update(bundleId: string, payload: BackendBundleUpdate): Promise<CommonMessage>;
721
718
  }
722
719
 
723
720
  /**
@@ -1525,6 +1522,22 @@ declare class BackendDashboardTag extends TagAbstract {
1525
1522
  getAll(): Promise<BackendDashboard>;
1526
1523
  }
1527
1524
 
1525
+ /**
1526
+ * BackendEvent automatically generated by SDKgen please do not edit this file manually
1527
+ * {@link https://sdkgen.app}
1528
+ */
1529
+
1530
+ /**
1531
+ * This object represents an event which can be triggered by an action
1532
+ */
1533
+ interface BackendEvent {
1534
+ id?: number;
1535
+ name?: string;
1536
+ description?: string;
1537
+ schema?: string;
1538
+ metadata?: CommonMetadata;
1539
+ }
1540
+
1528
1541
  /**
1529
1542
  * BackendEventCollection automatically generated by SDKgen please do not edit this file manually
1530
1543
  * {@link https://sdkgen.app}
@@ -1544,6 +1557,14 @@ interface BackendEventCollection extends CommonCollection<BackendEvent> {
1544
1557
  interface BackendEventCreate extends BackendEvent {
1545
1558
  }
1546
1559
 
1560
+ /**
1561
+ * BackendEventUpdate automatically generated by SDKgen please do not edit this file manually
1562
+ * {@link https://sdkgen.app}
1563
+ */
1564
+
1565
+ interface BackendEventUpdate extends BackendEvent {
1566
+ }
1567
+
1547
1568
  /**
1548
1569
  * BackendEventTag automatically generated by SDKgen please do not edit this file manually
1549
1570
  * {@link https://sdkgen.app}
@@ -5311,4 +5332,4 @@ declare class CommonMessageException extends KnownStatusCodeException {
5311
5332
  getPayload(): CommonMessage;
5312
5333
  }
5313
5334
 
5314
- export { AuthorizationTag, type BackendAccountChangePassword, BackendAccountTag, type BackendAction, type BackendActionCollection, type BackendActionConfig, type BackendActionCreate, type BackendActionExecuteRequest, type BackendActionExecuteRequestBody, type BackendActionExecuteResponse, type BackendActionExecuteResponseBody, type BackendActionExecuteResponseHeaders, type BackendActionIndex, type BackendActionIndexEntry, BackendActionTag, type BackendActionUpdate, type BackendApp, type BackendAppCollection, type BackendAppCreate, BackendAppTag, type BackendAppUpdate, type BackendAudit, type BackendAuditCollection, type BackendAuditObject, BackendAuditTag, type BackendBackupExport, type BackendBackupImport, type BackendBackupImportResult, BackendBackupTag, type BackendBundle, type BackendBundleCollection, type BackendBundleConfig, type BackendBundleCreate, BackendBundleTag, type BackendCategory, type BackendCategoryCollection, type BackendCategoryCreate, BackendCategoryTag, type BackendCategoryUpdate, type BackendConfig, type BackendConfigCollection, BackendConfigTag, type BackendConfigUpdate, type BackendConnection, type BackendConnectionCollection, type BackendConnectionConfig, type BackendConnectionCreate, BackendConnectionDatabaseTag, BackendConnectionFilesystemTag, BackendConnectionHttpTag, type BackendConnectionIndex, type BackendConnectionIndexEntry, type BackendConnectionRedirectResponse, BackendConnectionSdkTag, BackendConnectionTag, type BackendConnectionUpdate, type BackendCronjob, type BackendCronjobCollection, type BackendCronjobCreate, type BackendCronjobError, BackendCronjobTag, type BackendCronjobUpdate, type BackendDashboard, BackendDashboardTag, type BackendDatabaseRow, type BackendDatabaseRowCollection, type BackendDatabaseTable, type BackendDatabaseTableCollection, type BackendDatabaseTableColumn, type BackendDatabaseTableForeignKeyConstraint, type BackendDatabaseTableIndex, type BackendEvent, type BackendEventCollection, type BackendEventCreate, BackendEventTag, type BackendEventUpdate, type BackendFile, type BackendFileCollection, type BackendFirewall, type BackendFirewallCollection, type BackendFirewallCreate, BackendFirewallTag, type BackendFirewallUpdate, type BackendForm, type BackendFormCollection, type BackendFormCreate, BackendFormTag, type BackendFormUpdate, type BackendGeneratorIndexProvider, type BackendGeneratorIndexProviders, type BackendGeneratorProvider, type BackendGeneratorProviderChangelog, type BackendGeneratorProviderConfig, BackendGeneratorTag, type BackendHttpRequest, type BackendHttpResponse, type BackendIdentity, type BackendIdentityCollection, type BackendIdentityConfig, type BackendIdentityCreate, type BackendIdentityIndex, type BackendIdentityIndexEntry, BackendIdentityTag, type BackendIdentityUpdate, type BackendLog, type BackendLogCollection, type BackendLogError, type BackendLogErrorCollection, BackendLogTag, BackendMarketplaceActionTag, BackendMarketplaceAppTag, BackendMarketplaceBundleTag, BackendMarketplaceTag, type BackendOperation, type BackendOperationCollection, type BackendOperationCreate, type BackendOperationParameters, type BackendOperationSchema, BackendOperationTag, type BackendOperationThrows, type BackendOperationUpdate, type BackendPage, type BackendPageCollection, type BackendPageCreate, BackendPageTag, type BackendPageUpdate, type BackendPlan, type BackendPlanCollection, type BackendPlanCreate, BackendPlanTag, type BackendPlanUpdate, type BackendRate, type BackendRateAllocation, type BackendRateCollection, type BackendRateCreate, BackendRateTag, type BackendRateUpdate, type BackendRole, type BackendRoleCollection, type BackendRoleCreate, BackendRoleTag, type BackendRoleUpdate, type BackendSchema, type BackendSchemaCollection, type BackendSchemaCreate, type BackendSchemaPreviewResponse, type BackendSchemaSource, BackendSchemaTag, type BackendSchemaUpdate, type BackendScope, type BackendScopeCategories, type BackendScopeCategory, type BackendScopeCategoryScope, type BackendScopeCollection, type BackendScopeCreate, type BackendScopeOperation, BackendScopeTag, type BackendScopeUpdate, type BackendSdkGenerate, type BackendSdkMessage, type BackendSdkResponse, BackendSdkTag, type BackendSdkTypes, type BackendStatisticChart, type BackendStatisticChartSeries, type BackendStatisticCount, BackendStatisticTag, BackendTag, BackendTenantTag, type BackendTest, type BackendTestCollection, type BackendTestConfig, BackendTestTag, type BackendToken, type BackendTokenCollection, BackendTokenTag, type BackendTransaction, type BackendTransactionCollection, BackendTransactionTag, type BackendTrashData, type BackendTrashDataCollection, type BackendTrashRestore, BackendTrashTag, type BackendTrashTypes, type BackendTrigger, type BackendTriggerCollection, type BackendTriggerCreate, BackendTriggerTag, type BackendTriggerUpdate, type BackendUser, type BackendUserCollection, type BackendUserCreate, BackendUserTag, type BackendUserUpdate, type BackendWebhook, type BackendWebhookCollection, type BackendWebhookCreate, type BackendWebhookResponse, BackendWebhookTag, type BackendWebhookUpdate, Client, type CommonCollection, type CommonFormContainer, type CommonFormElement, type CommonFormElementInput, type CommonFormElementSelect, type CommonFormElementSelectOption, type CommonFormElementTag, type CommonFormElementTextArea, type CommonMessage, CommonMessageException, type CommonMetadata, ConsumerAccountTag, type ConsumerApp, type ConsumerAppCollection, type ConsumerAppCreate, ConsumerAppTag, type ConsumerAppUpdate, type ConsumerAuthorizeMeta, type ConsumerAuthorizeRequest, type ConsumerAuthorizeResponse, type ConsumerEvent, type ConsumerEventCollection, ConsumerEventTag, type ConsumerForm, type ConsumerFormCollection, ConsumerFormTag, type ConsumerGrant, type ConsumerGrantCollection, ConsumerGrantTag, type ConsumerIdentity, type ConsumerIdentityCollection, ConsumerIdentityTag, type ConsumerLog, type ConsumerLogCollection, ConsumerLogTag, type ConsumerPage, type ConsumerPageCollection, ConsumerPageTag, type ConsumerPaymentCheckoutRequest, type ConsumerPaymentCheckoutResponse, type ConsumerPaymentPortalRequest, type ConsumerPaymentPortalResponse, ConsumerPaymentTag, type ConsumerPlan, type ConsumerPlanCollection, ConsumerPlanTag, type ConsumerScope, type ConsumerScopeCategories, type ConsumerScopeCategory, type ConsumerScopeCategoryScope, type ConsumerScopeCollection, ConsumerScopeTag, ConsumerTag, type ConsumerToken, type ConsumerTokenAccessToken, type ConsumerTokenCollection, type ConsumerTokenCreate, ConsumerTokenTag, type ConsumerTokenUpdate, type ConsumerTransaction, type ConsumerTransactionCollection, ConsumerTransactionTag, type ConsumerUserAccount, type ConsumerUserActivate, type ConsumerUserEmail, type ConsumerUserJWT, type ConsumerUserLogin, type ConsumerUserPasswordReset, type ConsumerUserPlan, type ConsumerUserRefresh, type ConsumerUserRegister, type ConsumerWebhook, type ConsumerWebhookCollection, type ConsumerWebhookCreate, type ConsumerWebhookResponse, ConsumerWebhookTag, type ConsumerWebhookUpdate, type MarketplaceAction, type MarketplaceActionCollection, type MarketplaceActionConfig, type MarketplaceApp, type MarketplaceAppCollection, type MarketplaceBundle, type MarketplaceBundleAction, type MarketplaceBundleActionConfig, type MarketplaceBundleCollection, type MarketplaceBundleConfig, type MarketplaceBundleCronjob, type MarketplaceBundleEvent, type MarketplaceBundleSchema, type MarketplaceBundleSchemaSource, type MarketplaceBundleTrigger, type MarketplaceCollection, type MarketplaceInstall, type MarketplaceMessage, type MarketplaceObject, type MarketplaceUser, type Passthru, type SystemAbout, type SystemAboutApps, type SystemAboutLink, SystemConnectionTag, type SystemHealthCheck, SystemMetaTag, SystemPaymentTag, type SystemRoute, type SystemRouteMethod, type SystemRoutePath, type SystemSchema, type SystemSchemaForm, type SystemSchemaTypeSchema, SystemTag };
5335
+ export { AuthorizationTag, type BackendAccountChangePassword, BackendAccountTag, type BackendAction, type BackendActionCollection, type BackendActionConfig, type BackendActionCreate, type BackendActionExecuteRequest, type BackendActionExecuteRequestBody, type BackendActionExecuteResponse, type BackendActionExecuteResponseBody, type BackendActionExecuteResponseHeaders, type BackendActionIndex, type BackendActionIndexEntry, BackendActionTag, type BackendActionUpdate, type BackendApp, type BackendAppCollection, type BackendAppCreate, BackendAppTag, type BackendAppUpdate, type BackendAudit, type BackendAuditCollection, type BackendAuditObject, BackendAuditTag, type BackendBackupExport, type BackendBackupImport, type BackendBackupImportResult, BackendBackupTag, type BackendBundle, type BackendBundleCollection, type BackendBundleConfig, type BackendBundleCreate, BackendBundleTag, type BackendBundleUpdate, type BackendCategory, type BackendCategoryCollection, type BackendCategoryCreate, BackendCategoryTag, type BackendCategoryUpdate, type BackendConfig, type BackendConfigCollection, BackendConfigTag, type BackendConfigUpdate, type BackendConnection, type BackendConnectionCollection, type BackendConnectionConfig, type BackendConnectionCreate, BackendConnectionDatabaseTag, BackendConnectionFilesystemTag, BackendConnectionHttpTag, type BackendConnectionIndex, type BackendConnectionIndexEntry, type BackendConnectionRedirectResponse, BackendConnectionSdkTag, BackendConnectionTag, type BackendConnectionUpdate, type BackendCronjob, type BackendCronjobCollection, type BackendCronjobCreate, type BackendCronjobError, BackendCronjobTag, type BackendCronjobUpdate, type BackendDashboard, BackendDashboardTag, type BackendDatabaseRow, type BackendDatabaseRowCollection, type BackendDatabaseTable, type BackendDatabaseTableCollection, type BackendDatabaseTableColumn, type BackendDatabaseTableForeignKeyConstraint, type BackendDatabaseTableIndex, type BackendEvent, type BackendEventCollection, type BackendEventCreate, BackendEventTag, type BackendEventUpdate, type BackendFile, type BackendFileCollection, type BackendFirewall, type BackendFirewallCollection, type BackendFirewallCreate, BackendFirewallTag, type BackendFirewallUpdate, type BackendForm, type BackendFormCollection, type BackendFormCreate, BackendFormTag, type BackendFormUpdate, type BackendGeneratorIndexProvider, type BackendGeneratorIndexProviders, type BackendGeneratorProvider, type BackendGeneratorProviderChangelog, type BackendGeneratorProviderConfig, BackendGeneratorTag, type BackendHttpRequest, type BackendHttpResponse, type BackendIdentity, type BackendIdentityCollection, type BackendIdentityConfig, type BackendIdentityCreate, type BackendIdentityIndex, type BackendIdentityIndexEntry, BackendIdentityTag, type BackendIdentityUpdate, type BackendLog, type BackendLogCollection, type BackendLogError, type BackendLogErrorCollection, BackendLogTag, BackendMarketplaceActionTag, BackendMarketplaceAppTag, BackendMarketplaceBundleTag, BackendMarketplaceTag, type BackendOperation, type BackendOperationCollection, type BackendOperationCreate, type BackendOperationParameters, type BackendOperationSchema, BackendOperationTag, type BackendOperationThrows, type BackendOperationUpdate, type BackendPage, type BackendPageCollection, type BackendPageCreate, BackendPageTag, type BackendPageUpdate, type BackendPlan, type BackendPlanCollection, type BackendPlanCreate, BackendPlanTag, type BackendPlanUpdate, type BackendRate, type BackendRateAllocation, type BackendRateCollection, type BackendRateCreate, BackendRateTag, type BackendRateUpdate, type BackendRole, type BackendRoleCollection, type BackendRoleCreate, BackendRoleTag, type BackendRoleUpdate, type BackendSchema, type BackendSchemaCollection, type BackendSchemaCreate, type BackendSchemaPreviewResponse, type BackendSchemaSource, BackendSchemaTag, type BackendSchemaUpdate, type BackendScope, type BackendScopeCategories, type BackendScopeCategory, type BackendScopeCategoryScope, type BackendScopeCollection, type BackendScopeCreate, type BackendScopeOperation, BackendScopeTag, type BackendScopeUpdate, type BackendSdkGenerate, type BackendSdkMessage, type BackendSdkResponse, BackendSdkTag, type BackendSdkTypes, type BackendStatisticChart, type BackendStatisticChartSeries, type BackendStatisticCount, BackendStatisticTag, BackendTag, BackendTenantTag, type BackendTest, type BackendTestCollection, type BackendTestConfig, BackendTestTag, type BackendToken, type BackendTokenCollection, BackendTokenTag, type BackendTransaction, type BackendTransactionCollection, BackendTransactionTag, type BackendTrashData, type BackendTrashDataCollection, type BackendTrashRestore, BackendTrashTag, type BackendTrashTypes, type BackendTrigger, type BackendTriggerCollection, type BackendTriggerCreate, BackendTriggerTag, type BackendTriggerUpdate, type BackendUser, type BackendUserCollection, type BackendUserCreate, BackendUserTag, type BackendUserUpdate, type BackendWebhook, type BackendWebhookCollection, type BackendWebhookCreate, type BackendWebhookResponse, BackendWebhookTag, type BackendWebhookUpdate, Client, type CommonCollection, type CommonFormContainer, type CommonFormElement, type CommonFormElementInput, type CommonFormElementSelect, type CommonFormElementSelectOption, type CommonFormElementTag, type CommonFormElementTextArea, type CommonMessage, CommonMessageException, type CommonMetadata, ConsumerAccountTag, type ConsumerApp, type ConsumerAppCollection, type ConsumerAppCreate, ConsumerAppTag, type ConsumerAppUpdate, type ConsumerAuthorizeMeta, type ConsumerAuthorizeRequest, type ConsumerAuthorizeResponse, type ConsumerEvent, type ConsumerEventCollection, ConsumerEventTag, type ConsumerForm, type ConsumerFormCollection, ConsumerFormTag, type ConsumerGrant, type ConsumerGrantCollection, ConsumerGrantTag, type ConsumerIdentity, type ConsumerIdentityCollection, ConsumerIdentityTag, type ConsumerLog, type ConsumerLogCollection, ConsumerLogTag, type ConsumerPage, type ConsumerPageCollection, ConsumerPageTag, type ConsumerPaymentCheckoutRequest, type ConsumerPaymentCheckoutResponse, type ConsumerPaymentPortalRequest, type ConsumerPaymentPortalResponse, ConsumerPaymentTag, type ConsumerPlan, type ConsumerPlanCollection, ConsumerPlanTag, type ConsumerScope, type ConsumerScopeCategories, type ConsumerScopeCategory, type ConsumerScopeCategoryScope, type ConsumerScopeCollection, ConsumerScopeTag, ConsumerTag, type ConsumerToken, type ConsumerTokenAccessToken, type ConsumerTokenCollection, type ConsumerTokenCreate, ConsumerTokenTag, type ConsumerTokenUpdate, type ConsumerTransaction, type ConsumerTransactionCollection, ConsumerTransactionTag, type ConsumerUserAccount, type ConsumerUserActivate, type ConsumerUserEmail, type ConsumerUserJWT, type ConsumerUserLogin, type ConsumerUserPasswordReset, type ConsumerUserPlan, type ConsumerUserRefresh, type ConsumerUserRegister, type ConsumerWebhook, type ConsumerWebhookCollection, type ConsumerWebhookCreate, type ConsumerWebhookResponse, ConsumerWebhookTag, type ConsumerWebhookUpdate, type MarketplaceAction, type MarketplaceActionCollection, type MarketplaceActionConfig, type MarketplaceApp, type MarketplaceAppCollection, type MarketplaceBundle, type MarketplaceBundleAction, type MarketplaceBundleActionConfig, type MarketplaceBundleCollection, type MarketplaceBundleConfig, type MarketplaceBundleCronjob, type MarketplaceBundleEvent, type MarketplaceBundleSchema, type MarketplaceBundleSchemaSource, type MarketplaceBundleTrigger, type MarketplaceCollection, type MarketplaceInstall, type MarketplaceMessage, type MarketplaceObject, type MarketplaceUser, type Passthru, type SystemAbout, type SystemAboutApps, type SystemAboutLink, SystemConnectionTag, type SystemHealthCheck, SystemMetaTag, SystemPaymentTag, type SystemRoute, type SystemRouteMethod, type SystemRoutePath, type SystemSchema, type SystemSchemaForm, type SystemSchemaTypeSchema, SystemTag };
package/dist/index.js CHANGED
@@ -749,7 +749,7 @@ var BackendBundleTag = class extends TagAbstract7 {
749
749
  /**
750
750
  * Returns a specific bundle
751
751
  *
752
- * @returns {Promise<BackendEvent>}
752
+ * @returns {Promise<BackendBundle>}
753
753
  * @throws {CommonMessageException}
754
754
  * @throws {ClientException}
755
755
  */
@@ -802,6 +802,33 @@ var BackendBundleTag = class extends TagAbstract7 {
802
802
  }
803
803
  throw new UnknownStatusCodeException7("The server returned an unknown status code: " + statusCode);
804
804
  }
805
+ /**
806
+ * Publish an existing bundle to the marketplace
807
+ *
808
+ * @returns {Promise<CommonMessage>}
809
+ * @throws {CommonMessageException}
810
+ * @throws {ClientException}
811
+ */
812
+ async publish(bundleId) {
813
+ const url = this.parser.url("/backend/bundle/$bundle_id<[0-9]+|^~>/publish", {
814
+ "bundle_id": bundleId
815
+ });
816
+ let request = {
817
+ url,
818
+ method: "POST",
819
+ headers: {},
820
+ params: this.parser.query({}, [])
821
+ };
822
+ const response = await this.httpClient.request(request);
823
+ if (response.ok) {
824
+ return await response.json();
825
+ }
826
+ const statusCode = response.status;
827
+ if (statusCode >= 0 && statusCode <= 999) {
828
+ throw new CommonMessageException(await response.json());
829
+ }
830
+ throw new UnknownStatusCodeException7("The server returned an unknown status code: " + statusCode);
831
+ }
805
832
  /**
806
833
  * Updates an existing bundle
807
834
  *