@wundergraph/cosmo-connect 0.81.1 → 0.82.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.
@@ -1470,6 +1470,61 @@ export class LintIssue extends Message {
1470
1470
  return proto3.util.equals(LintIssue, a, b);
1471
1471
  }
1472
1472
  }
1473
+ /**
1474
+ * @generated from message wg.cosmo.platform.v1.GraphPruningIssue
1475
+ */
1476
+ export class GraphPruningIssue extends Message {
1477
+ /**
1478
+ * @generated from field: string graphPruningRuleType = 1;
1479
+ */
1480
+ graphPruningRuleType = "";
1481
+ /**
1482
+ * @generated from field: wg.cosmo.platform.v1.LintSeverity severity = 2;
1483
+ */
1484
+ severity = LintSeverity.warn;
1485
+ /**
1486
+ * @generated from field: string fieldPath = 3;
1487
+ */
1488
+ fieldPath = "";
1489
+ /**
1490
+ * @generated from field: string message = 4;
1491
+ */
1492
+ message = "";
1493
+ /**
1494
+ * @generated from field: wg.cosmo.platform.v1.LintLocation issueLocation = 5;
1495
+ */
1496
+ issueLocation;
1497
+ /**
1498
+ * @generated from field: string federatedGraphName = 6;
1499
+ */
1500
+ federatedGraphName = "";
1501
+ constructor(data) {
1502
+ super();
1503
+ proto3.util.initPartial(data, this);
1504
+ }
1505
+ static runtime = proto3;
1506
+ static typeName = "wg.cosmo.platform.v1.GraphPruningIssue";
1507
+ static fields = proto3.util.newFieldList(() => [
1508
+ { no: 1, name: "graphPruningRuleType", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1509
+ { no: 2, name: "severity", kind: "enum", T: proto3.getEnumType(LintSeverity) },
1510
+ { no: 3, name: "fieldPath", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1511
+ { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1512
+ { no: 5, name: "issueLocation", kind: "message", T: LintLocation },
1513
+ { no: 6, name: "federatedGraphName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1514
+ ]);
1515
+ static fromBinary(bytes, options) {
1516
+ return new GraphPruningIssue().fromBinary(bytes, options);
1517
+ }
1518
+ static fromJson(jsonValue, options) {
1519
+ return new GraphPruningIssue().fromJson(jsonValue, options);
1520
+ }
1521
+ static fromJsonString(jsonString, options) {
1522
+ return new GraphPruningIssue().fromJsonString(jsonString, options);
1523
+ }
1524
+ static equals(a, b) {
1525
+ return proto3.util.equals(GraphPruningIssue, a, b);
1526
+ }
1527
+ }
1473
1528
  /**
1474
1529
  * @generated from message wg.cosmo.platform.v1.CheckSubgraphSchemaResponse
1475
1530
  */
@@ -1512,6 +1567,14 @@ export class CheckSubgraphSchemaResponse extends Message {
1512
1567
  * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintErrors = 9;
1513
1568
  */
1514
1569
  lintErrors = [];
1570
+ /**
1571
+ * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningIssue graphPruneWarnings = 10;
1572
+ */
1573
+ graphPruneWarnings = [];
1574
+ /**
1575
+ * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningIssue graphPruneErrors = 11;
1576
+ */
1577
+ graphPruneErrors = [];
1515
1578
  constructor(data) {
1516
1579
  super();
1517
1580
  proto3.util.initPartial(data, this);
@@ -1528,6 +1591,8 @@ export class CheckSubgraphSchemaResponse extends Message {
1528
1591
  { no: 7, name: "checked_federated_graphs", kind: "message", T: CheckedFederatedGraphs, repeated: true },
1529
1592
  { no: 8, name: "lintWarnings", kind: "message", T: LintIssue, repeated: true },
1530
1593
  { no: 9, name: "lintErrors", kind: "message", T: LintIssue, repeated: true },
1594
+ { no: 10, name: "graphPruneWarnings", kind: "message", T: GraphPruningIssue, repeated: true },
1595
+ { no: 11, name: "graphPruneErrors", kind: "message", T: GraphPruningIssue, repeated: true },
1531
1596
  ]);
1532
1597
  static fromBinary(bytes, options) {
1533
1598
  return new CheckSubgraphSchemaResponse().fromBinary(bytes, options);
@@ -2738,6 +2803,10 @@ export class SchemaCheck extends Message {
2738
2803
  * @generated from field: bool hasLintErrors = 11;
2739
2804
  */
2740
2805
  hasLintErrors = false;
2806
+ /**
2807
+ * @generated from field: bool hasGraphPruningErrors = 12;
2808
+ */
2809
+ hasGraphPruningErrors = false;
2741
2810
  constructor(data) {
2742
2811
  super();
2743
2812
  proto3.util.initPartial(data, this);
@@ -2756,6 +2825,7 @@ export class SchemaCheck extends Message {
2756
2825
  { no: 9, name: "isDeleted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2757
2826
  { no: 10, name: "ghDetails", kind: "message", T: SchemaCheck_GhDetails, opt: true },
2758
2827
  { no: 11, name: "hasLintErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2828
+ { no: 12, name: "hasGraphPruningErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2759
2829
  ]);
2760
2830
  static fromBinary(bytes, options) {
2761
2831
  return new SchemaCheck().fromBinary(bytes, options);
@@ -2966,6 +3036,18 @@ export class GetCheckSummaryResponse extends Message {
2966
3036
  * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintIssues = 9;
2967
3037
  */
2968
3038
  lintIssues = [];
3039
+ /**
3040
+ * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningIssue graphPruningIssues = 10;
3041
+ */
3042
+ graphPruningIssues = [];
3043
+ /**
3044
+ * @generated from field: bool isLintingEnabled = 11;
3045
+ */
3046
+ isLintingEnabled = false;
3047
+ /**
3048
+ * @generated from field: bool isGraphPruningEnabled = 12;
3049
+ */
3050
+ isGraphPruningEnabled = false;
2969
3051
  constructor(data) {
2970
3052
  super();
2971
3053
  proto3.util.initPartial(data, this);
@@ -2981,6 +3063,9 @@ export class GetCheckSummaryResponse extends Message {
2981
3063
  { no: 7, name: "compositionErrors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2982
3064
  { no: 8, name: "traffic_check_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2983
3065
  { no: 9, name: "lintIssues", kind: "message", T: LintIssue, repeated: true },
3066
+ { no: 10, name: "graphPruningIssues", kind: "message", T: GraphPruningIssue, repeated: true },
3067
+ { no: 11, name: "isLintingEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3068
+ { no: 12, name: "isGraphPruningEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2984
3069
  ]);
2985
3070
  static fromBinary(bytes, options) {
2986
3071
  return new GetCheckSummaryResponse().fromBinary(bytes, options);
@@ -12757,6 +12842,251 @@ export class ConfigureNamespaceLintConfigResponse extends Message {
12757
12842
  return proto3.util.equals(ConfigureNamespaceLintConfigResponse, a, b);
12758
12843
  }
12759
12844
  }
12845
+ /**
12846
+ * @generated from message wg.cosmo.platform.v1.EnableGraphPruningRequest
12847
+ */
12848
+ export class EnableGraphPruningRequest extends Message {
12849
+ /**
12850
+ * @generated from field: string namespace = 1;
12851
+ */
12852
+ namespace = "";
12853
+ /**
12854
+ * @generated from field: bool enableGraphPruning = 2;
12855
+ */
12856
+ enableGraphPruning = false;
12857
+ constructor(data) {
12858
+ super();
12859
+ proto3.util.initPartial(data, this);
12860
+ }
12861
+ static runtime = proto3;
12862
+ static typeName = "wg.cosmo.platform.v1.EnableGraphPruningRequest";
12863
+ static fields = proto3.util.newFieldList(() => [
12864
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12865
+ { no: 2, name: "enableGraphPruning", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
12866
+ ]);
12867
+ static fromBinary(bytes, options) {
12868
+ return new EnableGraphPruningRequest().fromBinary(bytes, options);
12869
+ }
12870
+ static fromJson(jsonValue, options) {
12871
+ return new EnableGraphPruningRequest().fromJson(jsonValue, options);
12872
+ }
12873
+ static fromJsonString(jsonString, options) {
12874
+ return new EnableGraphPruningRequest().fromJsonString(jsonString, options);
12875
+ }
12876
+ static equals(a, b) {
12877
+ return proto3.util.equals(EnableGraphPruningRequest, a, b);
12878
+ }
12879
+ }
12880
+ /**
12881
+ * @generated from message wg.cosmo.platform.v1.EnableGraphPruningResponse
12882
+ */
12883
+ export class EnableGraphPruningResponse extends Message {
12884
+ /**
12885
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
12886
+ */
12887
+ response;
12888
+ constructor(data) {
12889
+ super();
12890
+ proto3.util.initPartial(data, this);
12891
+ }
12892
+ static runtime = proto3;
12893
+ static typeName = "wg.cosmo.platform.v1.EnableGraphPruningResponse";
12894
+ static fields = proto3.util.newFieldList(() => [
12895
+ { no: 1, name: "response", kind: "message", T: Response },
12896
+ ]);
12897
+ static fromBinary(bytes, options) {
12898
+ return new EnableGraphPruningResponse().fromBinary(bytes, options);
12899
+ }
12900
+ static fromJson(jsonValue, options) {
12901
+ return new EnableGraphPruningResponse().fromJson(jsonValue, options);
12902
+ }
12903
+ static fromJsonString(jsonString, options) {
12904
+ return new EnableGraphPruningResponse().fromJsonString(jsonString, options);
12905
+ }
12906
+ static equals(a, b) {
12907
+ return proto3.util.equals(EnableGraphPruningResponse, a, b);
12908
+ }
12909
+ }
12910
+ /**
12911
+ * @generated from message wg.cosmo.platform.v1.GraphPruningConfig
12912
+ */
12913
+ export class GraphPruningConfig extends Message {
12914
+ /**
12915
+ * @generated from field: string ruleName = 1;
12916
+ */
12917
+ ruleName = "";
12918
+ /**
12919
+ * @generated from field: wg.cosmo.platform.v1.LintSeverity severityLevel = 2;
12920
+ */
12921
+ severityLevel = LintSeverity.warn;
12922
+ /**
12923
+ * @generated from field: int32 gracePeriodInDays = 3;
12924
+ */
12925
+ gracePeriodInDays = 0;
12926
+ /**
12927
+ * @generated from field: optional int32 schemaUsageCheckPeriodInDays = 4;
12928
+ */
12929
+ schemaUsageCheckPeriodInDays;
12930
+ constructor(data) {
12931
+ super();
12932
+ proto3.util.initPartial(data, this);
12933
+ }
12934
+ static runtime = proto3;
12935
+ static typeName = "wg.cosmo.platform.v1.GraphPruningConfig";
12936
+ static fields = proto3.util.newFieldList(() => [
12937
+ { no: 1, name: "ruleName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12938
+ { no: 2, name: "severityLevel", kind: "enum", T: proto3.getEnumType(LintSeverity) },
12939
+ { no: 3, name: "gracePeriodInDays", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
12940
+ { no: 4, name: "schemaUsageCheckPeriodInDays", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
12941
+ ]);
12942
+ static fromBinary(bytes, options) {
12943
+ return new GraphPruningConfig().fromBinary(bytes, options);
12944
+ }
12945
+ static fromJson(jsonValue, options) {
12946
+ return new GraphPruningConfig().fromJson(jsonValue, options);
12947
+ }
12948
+ static fromJsonString(jsonString, options) {
12949
+ return new GraphPruningConfig().fromJsonString(jsonString, options);
12950
+ }
12951
+ static equals(a, b) {
12952
+ return proto3.util.equals(GraphPruningConfig, a, b);
12953
+ }
12954
+ }
12955
+ /**
12956
+ * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceGraphPruningConfigRequest
12957
+ */
12958
+ export class ConfigureNamespaceGraphPruningConfigRequest extends Message {
12959
+ /**
12960
+ * @generated from field: string namespace = 1;
12961
+ */
12962
+ namespace = "";
12963
+ /**
12964
+ * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningConfig configs = 2;
12965
+ */
12966
+ configs = [];
12967
+ constructor(data) {
12968
+ super();
12969
+ proto3.util.initPartial(data, this);
12970
+ }
12971
+ static runtime = proto3;
12972
+ static typeName = "wg.cosmo.platform.v1.ConfigureNamespaceGraphPruningConfigRequest";
12973
+ static fields = proto3.util.newFieldList(() => [
12974
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12975
+ { no: 2, name: "configs", kind: "message", T: GraphPruningConfig, repeated: true },
12976
+ ]);
12977
+ static fromBinary(bytes, options) {
12978
+ return new ConfigureNamespaceGraphPruningConfigRequest().fromBinary(bytes, options);
12979
+ }
12980
+ static fromJson(jsonValue, options) {
12981
+ return new ConfigureNamespaceGraphPruningConfigRequest().fromJson(jsonValue, options);
12982
+ }
12983
+ static fromJsonString(jsonString, options) {
12984
+ return new ConfigureNamespaceGraphPruningConfigRequest().fromJsonString(jsonString, options);
12985
+ }
12986
+ static equals(a, b) {
12987
+ return proto3.util.equals(ConfigureNamespaceGraphPruningConfigRequest, a, b);
12988
+ }
12989
+ }
12990
+ /**
12991
+ * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceGraphPruningConfigResponse
12992
+ */
12993
+ export class ConfigureNamespaceGraphPruningConfigResponse extends Message {
12994
+ /**
12995
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
12996
+ */
12997
+ response;
12998
+ constructor(data) {
12999
+ super();
13000
+ proto3.util.initPartial(data, this);
13001
+ }
13002
+ static runtime = proto3;
13003
+ static typeName = "wg.cosmo.platform.v1.ConfigureNamespaceGraphPruningConfigResponse";
13004
+ static fields = proto3.util.newFieldList(() => [
13005
+ { no: 1, name: "response", kind: "message", T: Response },
13006
+ ]);
13007
+ static fromBinary(bytes, options) {
13008
+ return new ConfigureNamespaceGraphPruningConfigResponse().fromBinary(bytes, options);
13009
+ }
13010
+ static fromJson(jsonValue, options) {
13011
+ return new ConfigureNamespaceGraphPruningConfigResponse().fromJson(jsonValue, options);
13012
+ }
13013
+ static fromJsonString(jsonString, options) {
13014
+ return new ConfigureNamespaceGraphPruningConfigResponse().fromJsonString(jsonString, options);
13015
+ }
13016
+ static equals(a, b) {
13017
+ return proto3.util.equals(ConfigureNamespaceGraphPruningConfigResponse, a, b);
13018
+ }
13019
+ }
13020
+ /**
13021
+ * @generated from message wg.cosmo.platform.v1.GetNamespaceGraphPruningConfigRequest
13022
+ */
13023
+ export class GetNamespaceGraphPruningConfigRequest extends Message {
13024
+ /**
13025
+ * @generated from field: string namespace = 1;
13026
+ */
13027
+ namespace = "";
13028
+ constructor(data) {
13029
+ super();
13030
+ proto3.util.initPartial(data, this);
13031
+ }
13032
+ static runtime = proto3;
13033
+ static typeName = "wg.cosmo.platform.v1.GetNamespaceGraphPruningConfigRequest";
13034
+ static fields = proto3.util.newFieldList(() => [
13035
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
13036
+ ]);
13037
+ static fromBinary(bytes, options) {
13038
+ return new GetNamespaceGraphPruningConfigRequest().fromBinary(bytes, options);
13039
+ }
13040
+ static fromJson(jsonValue, options) {
13041
+ return new GetNamespaceGraphPruningConfigRequest().fromJson(jsonValue, options);
13042
+ }
13043
+ static fromJsonString(jsonString, options) {
13044
+ return new GetNamespaceGraphPruningConfigRequest().fromJsonString(jsonString, options);
13045
+ }
13046
+ static equals(a, b) {
13047
+ return proto3.util.equals(GetNamespaceGraphPruningConfigRequest, a, b);
13048
+ }
13049
+ }
13050
+ /**
13051
+ * @generated from message wg.cosmo.platform.v1.GetNamespaceGraphPruningConfigResponse
13052
+ */
13053
+ export class GetNamespaceGraphPruningConfigResponse extends Message {
13054
+ /**
13055
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
13056
+ */
13057
+ response;
13058
+ /**
13059
+ * @generated from field: bool graphPrunerEnabled = 2;
13060
+ */
13061
+ graphPrunerEnabled = false;
13062
+ /**
13063
+ * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningConfig configs = 3;
13064
+ */
13065
+ configs = [];
13066
+ constructor(data) {
13067
+ super();
13068
+ proto3.util.initPartial(data, this);
13069
+ }
13070
+ static runtime = proto3;
13071
+ static typeName = "wg.cosmo.platform.v1.GetNamespaceGraphPruningConfigResponse";
13072
+ static fields = proto3.util.newFieldList(() => [
13073
+ { no: 1, name: "response", kind: "message", T: Response },
13074
+ { no: 2, name: "graphPrunerEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
13075
+ { no: 3, name: "configs", kind: "message", T: GraphPruningConfig, repeated: true },
13076
+ ]);
13077
+ static fromBinary(bytes, options) {
13078
+ return new GetNamespaceGraphPruningConfigResponse().fromBinary(bytes, options);
13079
+ }
13080
+ static fromJson(jsonValue, options) {
13081
+ return new GetNamespaceGraphPruningConfigResponse().fromJson(jsonValue, options);
13082
+ }
13083
+ static fromJsonString(jsonString, options) {
13084
+ return new GetNamespaceGraphPruningConfigResponse().fromJsonString(jsonString, options);
13085
+ }
13086
+ static equals(a, b) {
13087
+ return proto3.util.equals(GetNamespaceGraphPruningConfigResponse, a, b);
13088
+ }
13089
+ }
12760
13090
  /**
12761
13091
  * @generated from message wg.cosmo.platform.v1.MigrateMonographRequest
12762
13092
  */