From 131c93c412f4de06eaf9fc5111c30ecaab9fbbce Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 22 Jun 2026 14:14:48 +0000 Subject: [PATCH] Latest generation --- metadatadef.ts | 4 ++- package.json | 2 +- restrictions.ts | 76 +++++++++++++++++++++++++++++++++++-------------- rules.ts | 52 +++++++++++++++++++++++---------- 4 files changed, 96 insertions(+), 38 deletions(-) diff --git a/metadatadef.ts b/metadatadef.ts index 39e67a7..f25afe6 100644 --- a/metadatadef.ts +++ b/metadatadef.ts @@ -358,8 +358,10 @@ export interface RestoreMetadatasRequest { /** * @generated from protobuf field: string RscID = 1 */ - RscID: string; // Resource Identifier : ProjectID or SiteID + RscID: string; /** + * Resource Identifier : ProjectID or SiteID + * * @generated from protobuf field: bool AlterClickhouse = 2 */ AlterClickhouse: boolean; diff --git a/package.json b/package.json index b11e8d2..889f4de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260622113149", + "version": "1.14.0-SNAPSHOT-260622141419", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/restrictions.ts b/restrictions.ts index 5fb46ca..6bb3854 100644 --- a/restrictions.ts +++ b/restrictions.ts @@ -25,36 +25,52 @@ export interface Restriction { /** * @generated from protobuf field: string ID = 1 */ - ID: string; // Unique identifier of the restriction. + ID: string; /** + * Unique identifier of the restriction. + * * @generated from protobuf field: string ProjectID = 2 */ - ProjectID: string; // Identifier of the project the restriction belongs to. + ProjectID: string; /** + * Identifier of the project the restriction belongs to. + * * @generated from protobuf field: api.RestrictionType TargetType = 3 */ - TargetType: RestrictionType; // Determines how the restriction is applied (by user or by partner). + TargetType: RestrictionType; /** + * Determines how the restriction is applied (by user or by partner). + * * @generated from protobuf field: string Name = 4 */ - Name: string; // Human-readable name of the restriction. + Name: string; /** + * Human-readable name of the restriction. + * * @generated from protobuf field: string Description = 5 */ - Description: string; // Optional description providing context for the restriction. + Description: string; /** + * Optional description providing context for the restriction. + * * @generated from protobuf field: bool Status = 6 */ - Status: boolean; // Whether the restriction is currently active (true = enabled, false = disabled). + Status: boolean; /** + * Whether the restriction is currently active (true = enabled, false = disabled). + * * @generated from protobuf field: repeated api.Rule Rules = 7 */ - Rules: Rule[]; // List of RPL rules that make up this restriction. + Rules: Rule[]; /** + * List of RPL rules that make up this restriction. + * * @generated from protobuf field: string UpdatedAt = 8 */ - UpdatedAt: string; // Timestamp of the last update (RFC 3339). + UpdatedAt: string; /** + * Timestamp of the last update (RFC 3339). + * * @generated from protobuf field: string CreatedAt = 9 */ CreatedAt: string; // Timestamp of creation (RFC 3339). @@ -68,12 +84,16 @@ export interface RestrictionComputeResult { /** * @generated from protobuf field: repeated api.RuleComputeResult Results = 1 */ - Results: RuleComputeResult[]; // Computed results for each rule in the restriction, one entry per output format. + Results: RuleComputeResult[]; /** + * Computed results for each rule in the restriction, one entry per output format. + * * @generated from protobuf field: string RestrictionID = 2 */ - RestrictionID: string; // Identifier of the restriction these results belong to. + RestrictionID: string; /** + * Identifier of the restriction these results belong to. + * * @generated from protobuf field: string RestrictionName = 3 */ RestrictionName: string; // Name of the restriction these results belong to. @@ -87,16 +107,22 @@ export interface RuleComputeResult { /** * @generated from protobuf field: api.RuleComputeFormat Format = 1 */ - Format: RuleComputeFormat; // Output format the rule was compiled into. + Format: RuleComputeFormat; /** + * Output format the rule was compiled into. + * * @generated from protobuf field: string Value = 2 */ - Value: string; // Compiled rule expression in the target format. + Value: string; /** + * Compiled rule expression in the target format. + * * @generated from protobuf field: string RuleID = 3 */ - RuleID: string; // Identifier of the rule this result was computed from. + RuleID: string; /** + * Identifier of the rule this result was computed from. + * * @generated from protobuf field: repeated string Attributes = 4 */ Attributes: string[]; // Key:value pairs used to scope the computation (e.g. "ActorID:\" for a restriction rule). @@ -112,18 +138,26 @@ export interface RestrictionRule { */ Name: string; /** + * Human-readable name of the rule. + * * @generated from protobuf field: api.EntityType Entity = 2 */ Entity: EntityType; /** + * Entity type the rule applies to (e.g. ORDER, ACTOR). + * * @generated from protobuf field: string Description = 3 */ - Description: string; // Optional description providing context for the rule. + Description: string; /** + * Optional description providing context for the rule. + * * @generated from protobuf field: string Definition = 4 */ Definition: string; /** + * RPL (Reflex Platform Language) expression defining the rule logic. + * * @generated from protobuf field: repeated string Attributes = 5 */ Attributes: string[]; // Optional contextual key:value pairs provided by the rule's consumer to scope evaluation. Usually empty. "ActorID:\" may be provided to compute the rule against a specific actor's data access context. @@ -451,18 +485,18 @@ export interface ValidateRestrictionRuleResponse { */ export enum RestrictionType { /** - * Default unset value. Should not be used explicitly. - * * @generated from protobuf enum value: RESTRICTION_TYPE_UNKNOWN = 0; */ RESTRICTION_TYPE_UNKNOWN = 0, /** - * Restriction applies to individual users directly. + * Default unset value. Should not be used explicitly. * * @generated from protobuf enum value: RESTRICTION_TYPE_USER = 1; */ RESTRICTION_TYPE_USER = 1, /** + * Restriction applies to individual users directly. + * * Restriction applies via partner: users whose partner has this restriction will also have it applied to them. * * @generated from protobuf enum value: RESTRICTION_TYPE_PARTNER = 2; @@ -476,24 +510,24 @@ export enum RestrictionType { */ export enum RuleComputeFormat { /** - * Default unset value. Should not be used explicitly. - * * @generated from protobuf enum value: RULE_COMPUTE_FORMAT_UNKNOWN = 0; */ RULE_COMPUTE_FORMAT_UNKNOWN = 0, /** - * ClickHouse SQL expression. + * Default unset value. Should not be used explicitly. * * @generated from protobuf enum value: RULE_COMPUTE_FORMAT_CH = 1; */ RULE_COMPUTE_FORMAT_CH = 1, /** - * OpenSearch query expression. + * ClickHouse SQL expression. * * @generated from protobuf enum value: RULE_COMPUTE_FORMAT_OS = 2; */ RULE_COMPUTE_FORMAT_OS = 2, /** + * OpenSearch query expression. + * * jq filter expression. * * @generated from protobuf enum value: RULE_COMPUTE_FORMAT_JQ = 3; diff --git a/rules.ts b/rules.ts index 8de81b7..eaaa15b 100644 --- a/rules.ts +++ b/rules.ts @@ -23,40 +23,58 @@ export interface Rule { /** * @generated from protobuf field: string ID = 1 */ - ID: string; // Unique identifier of the rule. + ID: string; /** + * Unique identifier of the rule. + * * @generated from protobuf field: string OrganisationID = 2 */ - OrganisationID: string; // Identifier of the organisation the rule belongs to. + OrganisationID: string; /** + * Identifier of the organisation the rule belongs to. + * * @generated from protobuf field: api.EntityType Entity = 3 */ - Entity: EntityType; // Entity type the rule applies to (e.g. ORDER, ACTOR). + Entity: EntityType; /** + * Entity type the rule applies to (e.g. ORDER, ACTOR). + * * @generated from protobuf field: string Name = 4 */ - Name: string; // Human-readable name of the rule. + Name: string; /** + * Human-readable name of the rule. + * * @generated from protobuf field: string Description = 5 */ - Description: string; // Optional description providing context for the rule. + Description: string; /** + * Optional description providing context for the rule. + * * @generated from protobuf field: string Definition = 6 */ - Definition: string; // RPL (Reflex Platform Language) expression defining the rule logic. + Definition: string; /** + * RPL (Reflex Platform Language) expression defining the rule logic. + * * @generated from protobuf field: api.RuleType RuleType = 7 */ - RuleType: RuleType; // Category of the rule, determining how it is enforced. + RuleType: RuleType; /** + * Category of the rule, determining how it is enforced. + * * @generated from protobuf field: string RuleTypeID = 8 */ - RuleTypeID: string; // ID of the resource this rule is attached to. Its type depends on RuleType (e.g. a RestrictionID for RESTRICTION, a ProjectLifecycle task ID for PRUNE or ANONYMIZE). + RuleTypeID: string; /** + * ID of the resource this rule is attached to. Its type depends on RuleType (e.g. a RestrictionID for RESTRICTION, a ProjectLifecycle task ID for PRUNE or ANONYMIZE). + * * @generated from protobuf field: bool Status = 9 */ - Status: boolean; // Whether the rule is currently active (true = enabled, false = disabled). + Status: boolean; /** + * Whether the rule is currently active (true = enabled, false = disabled). + * * @generated from protobuf field: repeated string Attributes = 10 */ Attributes: string[]; // Contextual key:value pairs provided by the rule's consumer to scope evaluation (e.g. "ActorID:\" used to compute a restriction rule for a given actor context). @@ -100,8 +118,10 @@ export interface CreateRuleRequest { /** * @generated from protobuf field: string Issuer = 8 */ - Issuer: string; // Who created the rule, will be used as the commit's author when pushed to git + Issuer: string; /** + * Who created the rule, will be used as the commit's author when pushed to git + * * @generated from protobuf field: repeated string Attributes = 9 */ Attributes: string[]; @@ -144,8 +164,10 @@ export interface UpdateRuleRequest { /** * @generated from protobuf field: string Issuer = 6 */ - Issuer: string; // Who updated the rule, will be used as the commit's author when pushed to git + Issuer: string; /** + * Who updated the rule, will be used as the commit's author when pushed to git + * * @generated from protobuf field: repeated string Attributes = 7 */ Attributes: string[]; @@ -300,24 +322,24 @@ export interface GetJSONTreeResponse { */ export enum RuleType { /** - * Default unset value. Should not be used explicitly. - * * @generated from protobuf enum value: RULE_TYPE_PROJECT_UNKNOWN = 0; */ RULE_TYPE_PROJECT_UNKNOWN = 0, /** - * Data-access restriction: filters which data a user or role can see. + * Default unset value. Should not be used explicitly. * * @generated from protobuf enum value: RULE_TYPE_PROJECT_RESTRICTION = 1; */ RULE_TYPE_PROJECT_RESTRICTION = 1, /** - * Prune: removes or archives entities based on defined conditions. + * Data-access restriction: filters which data a user or role can see. * * @generated from protobuf enum value: RULE_TYPE_PROJECT_PRUNE = 2; */ RULE_TYPE_PROJECT_PRUNE = 2, /** + * Prune: removes or archives entities based on defined conditions. + * * Anonymize: masks or anonymizes entity data based on defined conditions. * * @generated from protobuf enum value: RULE_TYPE_PROJECT_ANONYMIZE = 3;