You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name,keep_enum_prefix
|
||||
// @generated from protobuf file "restrictions.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -410,15 +410,15 @@ export enum RestrictionType {
|
||||
/**
|
||||
* @generated from protobuf enum value: RESTRICTION_TYPE_UNKNOWN = 0;
|
||||
*/
|
||||
UNKNOWN = 0,
|
||||
RESTRICTION_TYPE_UNKNOWN = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: RESTRICTION_TYPE_USER = 1;
|
||||
*/
|
||||
USER = 1,
|
||||
RESTRICTION_TYPE_USER = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: RESTRICTION_TYPE_PARTNER = 2;
|
||||
*/
|
||||
PARTNER = 2
|
||||
RESTRICTION_TYPE_PARTNER = 2
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.RuleComputeFormat
|
||||
@@ -427,19 +427,19 @@ export enum RuleComputeFormat {
|
||||
/**
|
||||
* @generated from protobuf enum value: RULE_COMPUTE_FORMAT_UNKNOWN = 0;
|
||||
*/
|
||||
UNKNOWN = 0,
|
||||
RULE_COMPUTE_FORMAT_UNKNOWN = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: RULE_COMPUTE_FORMAT_CH = 1;
|
||||
*/
|
||||
CH = 1,
|
||||
RULE_COMPUTE_FORMAT_CH = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: RULE_COMPUTE_FORMAT_OS = 2;
|
||||
*/
|
||||
OS = 2,
|
||||
RULE_COMPUTE_FORMAT_OS = 2,
|
||||
/**
|
||||
* @generated from protobuf enum value: RULE_COMPUTE_FORMAT_JQ = 3;
|
||||
*/
|
||||
JQ = 3
|
||||
RULE_COMPUTE_FORMAT_JQ = 3
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Restriction$Type extends MessageType<Restriction> {
|
||||
@@ -447,7 +447,7 @@ class Restriction$Type extends MessageType<Restriction> {
|
||||
super("api.Restriction", [
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType, "RESTRICTION_TYPE_"] },
|
||||
{ no: 3, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType] },
|
||||
{ no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Status", kind: "scalar", localName: "Status", jsonName: "Status", T: 8 /*ScalarType.BOOL*/ },
|
||||
@@ -556,7 +556,7 @@ export const Restriction = new Restriction$Type();
|
||||
class RuleComputeResult$Type extends MessageType<RuleComputeResult> {
|
||||
constructor() {
|
||||
super("api.RuleComputeResult", [
|
||||
{ no: 1, name: "Format", kind: "enum", localName: "Format", jsonName: "Format", T: () => ["api.RuleComputeFormat", RuleComputeFormat, "RULE_COMPUTE_FORMAT_"] },
|
||||
{ no: 1, name: "Format", kind: "enum", localName: "Format", jsonName: "Format", T: () => ["api.RuleComputeFormat", RuleComputeFormat] },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
@@ -612,7 +612,7 @@ class RestrictionRule$Type extends MessageType<RestrictionRule> {
|
||||
constructor() {
|
||||
super("api.RestrictionRule", [
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType, "ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name", "Entity", "Definition"] } } });
|
||||
@@ -683,7 +683,7 @@ class CreateRestrictionRequest$Type extends MessageType<CreateRestrictionRequest
|
||||
constructor() {
|
||||
super("api.CreateRestrictionRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType, "RESTRICTION_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "Rules", kind: "message", localName: "Rules", jsonName: "Rules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionRule }
|
||||
@@ -1031,7 +1031,7 @@ class ListRestrictionsRequest$Type extends MessageType<ListRestrictionsRequest>
|
||||
constructor() {
|
||||
super("api.ListRestrictionsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType, "RESTRICTION_TYPE_"] }
|
||||
{ no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType] }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListRestrictionsRequest>): ListRestrictionsRequest {
|
||||
@@ -1611,7 +1611,7 @@ class GetRuleJSONTreeRequest$Type extends MessageType<GetRuleJSONTreeRequest> {
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType, "ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
{ no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "Name", "Entity"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetRuleJSONTreeRequest>): GetRuleJSONTreeRequest {
|
||||
@@ -1726,9 +1726,9 @@ class ComputeRuleRequest$Type extends MessageType<ComputeRuleRequest> {
|
||||
constructor() {
|
||||
super("api.ComputeRuleRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType, "ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "OutputFormats", kind: "enum", localName: "OutputFormats", jsonName: "OutputFormats", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RuleComputeFormat", RuleComputeFormat, "RULE_COMPUTE_FORMAT_"], options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
{ no: 4, name: "OutputFormats", kind: "enum", localName: "OutputFormats", jsonName: "OutputFormats", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RuleComputeFormat", RuleComputeFormat], options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity", "UserID", "OutputFormats"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ComputeRuleRequest>): ComputeRuleRequest {
|
||||
|
||||
Reference in New Issue
Block a user