@wundergraph/cosmo-connect 0.59.0 → 0.60.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.
@@ -2,6 +2,25 @@
2
2
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
3
3
  import { EnumStatusCode, GraphQLSubscriptionProtocol } from "../../common/common_pb.js";
4
4
  import { EventMeta } from "../../notifications/events_pb.js";
5
+ /**
6
+ * @generated from enum wg.cosmo.platform.v1.LintSeverity
7
+ */
8
+ export var LintSeverity;
9
+ (function (LintSeverity) {
10
+ /**
11
+ * @generated from enum value: warn = 0;
12
+ */
13
+ LintSeverity[LintSeverity["warn"] = 0] = "warn";
14
+ /**
15
+ * @generated from enum value: error = 1;
16
+ */
17
+ LintSeverity[LintSeverity["error"] = 1] = "error";
18
+ })(LintSeverity || (LintSeverity = {}));
19
+ // Retrieve enum metadata with: proto3.getEnumType(LintSeverity)
20
+ proto3.util.setEnumType(LintSeverity, "wg.cosmo.platform.v1.LintSeverity", [
21
+ { no: 0, name: "warn" },
22
+ { no: 1, name: "error" },
23
+ ]);
5
24
  /**
6
25
  * @generated from enum wg.cosmo.platform.v1.AnalyticsViewGroupName
7
26
  */
@@ -358,11 +377,11 @@ export class PublishFederatedSubgraphRequest extends Message {
358
377
  */
359
378
  name = "";
360
379
  /**
361
- * The binary representation of the schema, the content of the file
380
+ * The string representation of the schema, the content of the file
362
381
  *
363
- * @generated from field: bytes schema = 2;
382
+ * @generated from field: string schema = 2;
364
383
  */
365
- schema = new Uint8Array(0);
384
+ schema = "";
366
385
  /**
367
386
  * routing_url is the URL of the service which will be used to route the requests to the subgraph.
368
387
  *
@@ -409,7 +428,7 @@ export class PublishFederatedSubgraphRequest extends Message {
409
428
  static typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphRequest";
410
429
  static fields = proto3.util.newFieldList(() => [
411
430
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
- { no: 2, name: "schema", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
431
+ { no: 2, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
413
432
  { no: 3, name: "routing_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
414
433
  { no: 4, name: "labels", kind: "message", T: Label, repeated: true },
415
434
  { no: 5, name: "headers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
@@ -578,11 +597,11 @@ export class FixSubgraphSchemaRequest extends Message {
578
597
  */
579
598
  subgraphName = "";
580
599
  /**
581
- * The binary representation of the schema, the content of the file
600
+ * The string representation of the schema, the content of the file
582
601
  *
583
- * @generated from field: bytes schema = 2;
602
+ * @generated from field: string schema = 2;
584
603
  */
585
- schema = new Uint8Array(0);
604
+ schema = "";
586
605
  /**
587
606
  * @generated from field: string namespace = 3;
588
607
  */
@@ -595,7 +614,7 @@ export class FixSubgraphSchemaRequest extends Message {
595
614
  static typeName = "wg.cosmo.platform.v1.FixSubgraphSchemaRequest";
596
615
  static fields = proto3.util.newFieldList(() => [
597
616
  { no: 1, name: "subgraph_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
598
- { no: 2, name: "schema", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
617
+ { no: 2, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
599
618
  { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
600
619
  ]);
601
620
  static fromBinary(bytes, options) {
@@ -1000,6 +1019,96 @@ export class CheckedFederatedGraphs extends Message {
1000
1019
  return proto3.util.equals(CheckedFederatedGraphs, a, b);
1001
1020
  }
1002
1021
  }
1022
+ /**
1023
+ * @generated from message wg.cosmo.platform.v1.LintLocation
1024
+ */
1025
+ export class LintLocation extends Message {
1026
+ /**
1027
+ * @generated from field: uint32 line = 1;
1028
+ */
1029
+ line = 0;
1030
+ /**
1031
+ * @generated from field: uint32 column = 2;
1032
+ */
1033
+ column = 0;
1034
+ /**
1035
+ * @generated from field: optional uint32 endLine = 3;
1036
+ */
1037
+ endLine;
1038
+ /**
1039
+ * @generated from field: optional uint32 endColumn = 4;
1040
+ */
1041
+ endColumn;
1042
+ constructor(data) {
1043
+ super();
1044
+ proto3.util.initPartial(data, this);
1045
+ }
1046
+ static runtime = proto3;
1047
+ static typeName = "wg.cosmo.platform.v1.LintLocation";
1048
+ static fields = proto3.util.newFieldList(() => [
1049
+ { no: 1, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1050
+ { no: 2, name: "column", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1051
+ { no: 3, name: "endLine", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1052
+ { no: 4, name: "endColumn", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1053
+ ]);
1054
+ static fromBinary(bytes, options) {
1055
+ return new LintLocation().fromBinary(bytes, options);
1056
+ }
1057
+ static fromJson(jsonValue, options) {
1058
+ return new LintLocation().fromJson(jsonValue, options);
1059
+ }
1060
+ static fromJsonString(jsonString, options) {
1061
+ return new LintLocation().fromJsonString(jsonString, options);
1062
+ }
1063
+ static equals(a, b) {
1064
+ return proto3.util.equals(LintLocation, a, b);
1065
+ }
1066
+ }
1067
+ /**
1068
+ * @generated from message wg.cosmo.platform.v1.LintIssue
1069
+ */
1070
+ export class LintIssue extends Message {
1071
+ /**
1072
+ * @generated from field: optional string lintRuleType = 1;
1073
+ */
1074
+ lintRuleType;
1075
+ /**
1076
+ * @generated from field: wg.cosmo.platform.v1.LintSeverity severity = 2;
1077
+ */
1078
+ severity = LintSeverity.warn;
1079
+ /**
1080
+ * @generated from field: string message = 3;
1081
+ */
1082
+ message = "";
1083
+ /**
1084
+ * @generated from field: wg.cosmo.platform.v1.LintLocation issueLocation = 4;
1085
+ */
1086
+ issueLocation;
1087
+ constructor(data) {
1088
+ super();
1089
+ proto3.util.initPartial(data, this);
1090
+ }
1091
+ static runtime = proto3;
1092
+ static typeName = "wg.cosmo.platform.v1.LintIssue";
1093
+ static fields = proto3.util.newFieldList(() => [
1094
+ { no: 1, name: "lintRuleType", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1095
+ { no: 2, name: "severity", kind: "enum", T: proto3.getEnumType(LintSeverity) },
1096
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1097
+ { no: 4, name: "issueLocation", kind: "message", T: LintLocation },
1098
+ ]);
1099
+ static fromBinary(bytes, options) {
1100
+ return new LintIssue().fromBinary(bytes, options);
1101
+ }
1102
+ static fromJson(jsonValue, options) {
1103
+ return new LintIssue().fromJson(jsonValue, options);
1104
+ }
1105
+ static fromJsonString(jsonString, options) {
1106
+ return new LintIssue().fromJsonString(jsonString, options);
1107
+ }
1108
+ static equals(a, b) {
1109
+ return proto3.util.equals(LintIssue, a, b);
1110
+ }
1111
+ }
1003
1112
  /**
1004
1113
  * @generated from message wg.cosmo.platform.v1.CheckSubgraphSchemaResponse
1005
1114
  */
@@ -1035,6 +1144,14 @@ export class CheckSubgraphSchemaResponse extends Message {
1035
1144
  * @generated from field: repeated wg.cosmo.platform.v1.CheckedFederatedGraphs checked_federated_graphs = 7;
1036
1145
  */
1037
1146
  checkedFederatedGraphs = [];
1147
+ /**
1148
+ * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintWarnings = 8;
1149
+ */
1150
+ lintWarnings = [];
1151
+ /**
1152
+ * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintErrors = 9;
1153
+ */
1154
+ lintErrors = [];
1038
1155
  constructor(data) {
1039
1156
  super();
1040
1157
  proto3.util.initPartial(data, this);
@@ -1049,6 +1166,8 @@ export class CheckSubgraphSchemaResponse extends Message {
1049
1166
  { no: 5, name: "operationUsageStats", kind: "message", T: CheckOperationUsageStats },
1050
1167
  { no: 6, name: "check_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1051
1168
  { no: 7, name: "checked_federated_graphs", kind: "message", T: CheckedFederatedGraphs, repeated: true },
1169
+ { no: 8, name: "lintWarnings", kind: "message", T: LintIssue, repeated: true },
1170
+ { no: 9, name: "lintErrors", kind: "message", T: LintIssue, repeated: true },
1052
1171
  ]);
1053
1172
  static fromBinary(bytes, options) {
1054
1173
  return new CheckSubgraphSchemaResponse().fromBinary(bytes, options);
@@ -2107,6 +2226,10 @@ export class SchemaCheck extends Message {
2107
2226
  * @generated from field: optional wg.cosmo.platform.v1.SchemaCheckGhDetails ghDetails = 10;
2108
2227
  */
2109
2228
  ghDetails;
2229
+ /**
2230
+ * @generated from field: bool hasLintErrors = 11;
2231
+ */
2232
+ hasLintErrors = false;
2110
2233
  constructor(data) {
2111
2234
  super();
2112
2235
  proto3.util.initPartial(data, this);
@@ -2124,6 +2247,7 @@ export class SchemaCheck extends Message {
2124
2247
  { no: 8, name: "isForcedSuccess", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2125
2248
  { no: 9, name: "isDeleted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2126
2249
  { no: 10, name: "ghDetails", kind: "message", T: SchemaCheckGhDetails, opt: true },
2250
+ { no: 11, name: "hasLintErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2127
2251
  ]);
2128
2252
  static fromBinary(bytes, options) {
2129
2253
  return new SchemaCheck().fromBinary(bytes, options);
@@ -2335,6 +2459,10 @@ export class GetCheckSummaryResponse extends Message {
2335
2459
  * @generated from field: int32 traffic_check_days = 8;
2336
2460
  */
2337
2461
  trafficCheckDays = 0;
2462
+ /**
2463
+ * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintIssues = 9;
2464
+ */
2465
+ lintIssues = [];
2338
2466
  constructor(data) {
2339
2467
  super();
2340
2468
  proto3.util.initPartial(data, this);
@@ -2349,6 +2477,7 @@ export class GetCheckSummaryResponse extends Message {
2349
2477
  { no: 6, name: "changes", kind: "message", T: SchemaChange, repeated: true },
2350
2478
  { no: 7, name: "compositionErrors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2351
2479
  { no: 8, name: "traffic_check_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2480
+ { no: 9, name: "lintIssues", kind: "message", T: LintIssue, repeated: true },
2352
2481
  ]);
2353
2482
  static fromBinary(bytes, options) {
2354
2483
  return new GetCheckSummaryResponse().fromBinary(bytes, options);
@@ -11454,4 +11583,239 @@ export class MoveGraphResponse extends Message {
11454
11583
  return proto3.util.equals(MoveGraphResponse, a, b);
11455
11584
  }
11456
11585
  }
11586
+ /**
11587
+ * @generated from message wg.cosmo.platform.v1.GetNamespaceLintConfigRequest
11588
+ */
11589
+ export class GetNamespaceLintConfigRequest extends Message {
11590
+ /**
11591
+ * @generated from field: string namespace = 1;
11592
+ */
11593
+ namespace = "";
11594
+ constructor(data) {
11595
+ super();
11596
+ proto3.util.initPartial(data, this);
11597
+ }
11598
+ static runtime = proto3;
11599
+ static typeName = "wg.cosmo.platform.v1.GetNamespaceLintConfigRequest";
11600
+ static fields = proto3.util.newFieldList(() => [
11601
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11602
+ ]);
11603
+ static fromBinary(bytes, options) {
11604
+ return new GetNamespaceLintConfigRequest().fromBinary(bytes, options);
11605
+ }
11606
+ static fromJson(jsonValue, options) {
11607
+ return new GetNamespaceLintConfigRequest().fromJson(jsonValue, options);
11608
+ }
11609
+ static fromJsonString(jsonString, options) {
11610
+ return new GetNamespaceLintConfigRequest().fromJsonString(jsonString, options);
11611
+ }
11612
+ static equals(a, b) {
11613
+ return proto3.util.equals(GetNamespaceLintConfigRequest, a, b);
11614
+ }
11615
+ }
11616
+ /**
11617
+ * @generated from message wg.cosmo.platform.v1.GetNamespaceLintConfigResponse
11618
+ */
11619
+ export class GetNamespaceLintConfigResponse extends Message {
11620
+ /**
11621
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
11622
+ */
11623
+ response;
11624
+ /**
11625
+ * @generated from field: bool linterEnabled = 2;
11626
+ */
11627
+ linterEnabled = false;
11628
+ /**
11629
+ * @generated from field: repeated wg.cosmo.platform.v1.LintConfig configs = 3;
11630
+ */
11631
+ configs = [];
11632
+ constructor(data) {
11633
+ super();
11634
+ proto3.util.initPartial(data, this);
11635
+ }
11636
+ static runtime = proto3;
11637
+ static typeName = "wg.cosmo.platform.v1.GetNamespaceLintConfigResponse";
11638
+ static fields = proto3.util.newFieldList(() => [
11639
+ { no: 1, name: "response", kind: "message", T: Response },
11640
+ { no: 2, name: "linterEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11641
+ { no: 3, name: "configs", kind: "message", T: LintConfig, repeated: true },
11642
+ ]);
11643
+ static fromBinary(bytes, options) {
11644
+ return new GetNamespaceLintConfigResponse().fromBinary(bytes, options);
11645
+ }
11646
+ static fromJson(jsonValue, options) {
11647
+ return new GetNamespaceLintConfigResponse().fromJson(jsonValue, options);
11648
+ }
11649
+ static fromJsonString(jsonString, options) {
11650
+ return new GetNamespaceLintConfigResponse().fromJsonString(jsonString, options);
11651
+ }
11652
+ static equals(a, b) {
11653
+ return proto3.util.equals(GetNamespaceLintConfigResponse, a, b);
11654
+ }
11655
+ }
11656
+ /**
11657
+ * @generated from message wg.cosmo.platform.v1.EnableLintingForTheNamespaceRequest
11658
+ */
11659
+ export class EnableLintingForTheNamespaceRequest extends Message {
11660
+ /**
11661
+ * @generated from field: string namespace = 1;
11662
+ */
11663
+ namespace = "";
11664
+ /**
11665
+ * @generated from field: bool enableLinting = 2;
11666
+ */
11667
+ enableLinting = false;
11668
+ constructor(data) {
11669
+ super();
11670
+ proto3.util.initPartial(data, this);
11671
+ }
11672
+ static runtime = proto3;
11673
+ static typeName = "wg.cosmo.platform.v1.EnableLintingForTheNamespaceRequest";
11674
+ static fields = proto3.util.newFieldList(() => [
11675
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11676
+ { no: 2, name: "enableLinting", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11677
+ ]);
11678
+ static fromBinary(bytes, options) {
11679
+ return new EnableLintingForTheNamespaceRequest().fromBinary(bytes, options);
11680
+ }
11681
+ static fromJson(jsonValue, options) {
11682
+ return new EnableLintingForTheNamespaceRequest().fromJson(jsonValue, options);
11683
+ }
11684
+ static fromJsonString(jsonString, options) {
11685
+ return new EnableLintingForTheNamespaceRequest().fromJsonString(jsonString, options);
11686
+ }
11687
+ static equals(a, b) {
11688
+ return proto3.util.equals(EnableLintingForTheNamespaceRequest, a, b);
11689
+ }
11690
+ }
11691
+ /**
11692
+ * @generated from message wg.cosmo.platform.v1.EnableLintingForTheNamespaceResponse
11693
+ */
11694
+ export class EnableLintingForTheNamespaceResponse extends Message {
11695
+ /**
11696
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
11697
+ */
11698
+ response;
11699
+ constructor(data) {
11700
+ super();
11701
+ proto3.util.initPartial(data, this);
11702
+ }
11703
+ static runtime = proto3;
11704
+ static typeName = "wg.cosmo.platform.v1.EnableLintingForTheNamespaceResponse";
11705
+ static fields = proto3.util.newFieldList(() => [
11706
+ { no: 1, name: "response", kind: "message", T: Response },
11707
+ ]);
11708
+ static fromBinary(bytes, options) {
11709
+ return new EnableLintingForTheNamespaceResponse().fromBinary(bytes, options);
11710
+ }
11711
+ static fromJson(jsonValue, options) {
11712
+ return new EnableLintingForTheNamespaceResponse().fromJson(jsonValue, options);
11713
+ }
11714
+ static fromJsonString(jsonString, options) {
11715
+ return new EnableLintingForTheNamespaceResponse().fromJsonString(jsonString, options);
11716
+ }
11717
+ static equals(a, b) {
11718
+ return proto3.util.equals(EnableLintingForTheNamespaceResponse, a, b);
11719
+ }
11720
+ }
11721
+ /**
11722
+ * @generated from message wg.cosmo.platform.v1.LintConfig
11723
+ */
11724
+ export class LintConfig extends Message {
11725
+ /**
11726
+ * @generated from field: string ruleName = 1;
11727
+ */
11728
+ ruleName = "";
11729
+ /**
11730
+ * @generated from field: wg.cosmo.platform.v1.LintSeverity severityLevel = 2;
11731
+ */
11732
+ severityLevel = LintSeverity.warn;
11733
+ constructor(data) {
11734
+ super();
11735
+ proto3.util.initPartial(data, this);
11736
+ }
11737
+ static runtime = proto3;
11738
+ static typeName = "wg.cosmo.platform.v1.LintConfig";
11739
+ static fields = proto3.util.newFieldList(() => [
11740
+ { no: 1, name: "ruleName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11741
+ { no: 2, name: "severityLevel", kind: "enum", T: proto3.getEnumType(LintSeverity) },
11742
+ ]);
11743
+ static fromBinary(bytes, options) {
11744
+ return new LintConfig().fromBinary(bytes, options);
11745
+ }
11746
+ static fromJson(jsonValue, options) {
11747
+ return new LintConfig().fromJson(jsonValue, options);
11748
+ }
11749
+ static fromJsonString(jsonString, options) {
11750
+ return new LintConfig().fromJsonString(jsonString, options);
11751
+ }
11752
+ static equals(a, b) {
11753
+ return proto3.util.equals(LintConfig, a, b);
11754
+ }
11755
+ }
11756
+ /**
11757
+ * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceLintConfigRequest
11758
+ */
11759
+ export class ConfigureNamespaceLintConfigRequest extends Message {
11760
+ /**
11761
+ * @generated from field: string namespace = 1;
11762
+ */
11763
+ namespace = "";
11764
+ /**
11765
+ * @generated from field: repeated wg.cosmo.platform.v1.LintConfig configs = 2;
11766
+ */
11767
+ configs = [];
11768
+ constructor(data) {
11769
+ super();
11770
+ proto3.util.initPartial(data, this);
11771
+ }
11772
+ static runtime = proto3;
11773
+ static typeName = "wg.cosmo.platform.v1.ConfigureNamespaceLintConfigRequest";
11774
+ static fields = proto3.util.newFieldList(() => [
11775
+ { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11776
+ { no: 2, name: "configs", kind: "message", T: LintConfig, repeated: true },
11777
+ ]);
11778
+ static fromBinary(bytes, options) {
11779
+ return new ConfigureNamespaceLintConfigRequest().fromBinary(bytes, options);
11780
+ }
11781
+ static fromJson(jsonValue, options) {
11782
+ return new ConfigureNamespaceLintConfigRequest().fromJson(jsonValue, options);
11783
+ }
11784
+ static fromJsonString(jsonString, options) {
11785
+ return new ConfigureNamespaceLintConfigRequest().fromJsonString(jsonString, options);
11786
+ }
11787
+ static equals(a, b) {
11788
+ return proto3.util.equals(ConfigureNamespaceLintConfigRequest, a, b);
11789
+ }
11790
+ }
11791
+ /**
11792
+ * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceLintConfigResponse
11793
+ */
11794
+ export class ConfigureNamespaceLintConfigResponse extends Message {
11795
+ /**
11796
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
11797
+ */
11798
+ response;
11799
+ constructor(data) {
11800
+ super();
11801
+ proto3.util.initPartial(data, this);
11802
+ }
11803
+ static runtime = proto3;
11804
+ static typeName = "wg.cosmo.platform.v1.ConfigureNamespaceLintConfigResponse";
11805
+ static fields = proto3.util.newFieldList(() => [
11806
+ { no: 1, name: "response", kind: "message", T: Response },
11807
+ ]);
11808
+ static fromBinary(bytes, options) {
11809
+ return new ConfigureNamespaceLintConfigResponse().fromBinary(bytes, options);
11810
+ }
11811
+ static fromJson(jsonValue, options) {
11812
+ return new ConfigureNamespaceLintConfigResponse().fromJson(jsonValue, options);
11813
+ }
11814
+ static fromJsonString(jsonString, options) {
11815
+ return new ConfigureNamespaceLintConfigResponse().fromJsonString(jsonString, options);
11816
+ }
11817
+ static equals(a, b) {
11818
+ return proto3.util.equals(ConfigureNamespaceLintConfigResponse, a, b);
11819
+ }
11820
+ }
11457
11821
  //# sourceMappingURL=platform_pb.js.map