@gobodo/gobodo-api-heyapi 1.0.0 → 1.0.1

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.
@@ -3791,6 +3791,46 @@ export const upsertRbacPolicy = (options) => (options.client ?? client).post({
3791
3791
  ...options.headers
3792
3792
  }
3793
3793
  });
3794
+ /**
3795
+ * Generate missing default policies for every object, action and relationship type (portal admin)
3796
+ */
3797
+ export const generateDefaultRbacPolicies = (options) => (options?.client ?? client).post({
3798
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3799
+ url: '/rbac/policies/generate-defaults',
3800
+ ...options
3801
+ });
3802
+ /**
3803
+ * Generate missing default policies for the types in a schema
3804
+ */
3805
+ export const generateSchemaDefaultRbacPolicies = (options) => (options.client ?? client).post({
3806
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3807
+ url: '/rbac/policies/generate-defaults/schema/{schemaId}',
3808
+ ...options
3809
+ });
3810
+ /**
3811
+ * Generate missing default policies for a relationship type
3812
+ */
3813
+ export const generateRelationshipTypeDefaultRbacPolicies = (options) => (options.client ?? client).post({
3814
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3815
+ url: '/rbac/policies/generate-defaults/relationshiptype/{typeId}',
3816
+ ...options
3817
+ });
3818
+ /**
3819
+ * Generate missing default policies for an object type
3820
+ */
3821
+ export const generateObjectTypeDefaultRbacPolicies = (options) => (options.client ?? client).post({
3822
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3823
+ url: '/rbac/policies/generate-defaults/objecttype/{typeId}',
3824
+ ...options
3825
+ });
3826
+ /**
3827
+ * Generate missing default policies for an action type
3828
+ */
3829
+ export const generateActionTypeDefaultRbacPolicies = (options) => (options.client ?? client).post({
3830
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3831
+ url: '/rbac/policies/generate-defaults/actiontype/{typeId}',
3832
+ ...options
3833
+ });
3794
3834
  export const revokeRbacRolePrivilege = (options) => (options.client ?? client).delete({
3795
3835
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
3796
3836
  url: '/rbac/permissions/role/{roleId}',
@@ -7641,6 +7681,14 @@ export const getRbacAppAccessControl = (options) => (options.client ?? client).g
7641
7681
  url: '/rbac/apps/{appId}/access-control',
7642
7682
  ...options
7643
7683
  });
7684
+ /**
7685
+ * Whether a publication with this id exists
7686
+ */
7687
+ export const isPublicationExists = (options) => (options.client ?? client).get({
7688
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
7689
+ url: '/publications/{id}/exists',
7690
+ ...options
7691
+ });
7644
7692
  export const listPublicationsByMember = (options) => (options.client ?? client).get({
7645
7693
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'X-API-Key', type: 'apiKey' }],
7646
7694
  url: '/publications/member/{memberId}',