@wundergraph/cosmo-connect 0.150.0 → 0.153.3

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,27 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { EnumStatusCode, GraphQLSubscriptionProtocol, GraphQLWebsocketSubprotocol } from "../../common/common_pb.js";
4
4
  import { EventMeta } from "../../notifications/events_pb.js";
5
+ /**
6
+ * @generated from enum wg.cosmo.platform.v1.BatchPublishJobStatus
7
+ */
8
+ export declare enum BatchPublishJobStatus {
9
+ /**
10
+ * @generated from enum value: PENDING = 0;
11
+ */
12
+ PENDING = 0,
13
+ /**
14
+ * @generated from enum value: PROCESSING = 1;
15
+ */
16
+ PROCESSING = 1,
17
+ /**
18
+ * @generated from enum value: FAILED = 2;
19
+ */
20
+ FAILED = 2,
21
+ /**
22
+ * @generated from enum value: COMPLETED = 3;
23
+ */
24
+ COMPLETED = 3
25
+ }
5
26
  /**
6
27
  * @generated from enum wg.cosmo.platform.v1.LintSeverity
7
28
  */
@@ -692,6 +713,12 @@ export declare class PublishFederatedSubgraphsRequest extends Message<PublishFed
692
713
  * @generated from field: optional int32 limit = 4;
693
714
  */
694
715
  limit?: number;
716
+ /**
717
+ * Optional value indicating whether the batch publish should occur asynchronously or wait for completion before returning.
718
+ *
719
+ * @generated from field: optional bool async = 5;
720
+ */
721
+ async?: boolean;
695
722
  constructor(data?: PartialMessage<PublishFederatedSubgraphsRequest>);
696
723
  static readonly runtime: typeof proto3;
697
724
  static readonly typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphsRequest";
@@ -731,6 +758,12 @@ export declare class PublishFederatedSubgraphsResponse extends Message<PublishFe
731
758
  * @generated from field: repeated string updatedSubgraphNames = 6;
732
759
  */
733
760
  updatedSubgraphNames: string[];
761
+ /**
762
+ * The job identifier the client can use to obtain details about the status of the enqueued job
763
+ *
764
+ * @generated from field: optional string jobId = 7;
765
+ */
766
+ jobId?: string;
734
767
  constructor(data?: PartialMessage<PublishFederatedSubgraphsResponse>);
735
768
  static readonly runtime: typeof proto3;
736
769
  static readonly typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphsResponse";
@@ -740,6 +773,76 @@ export declare class PublishFederatedSubgraphsResponse extends Message<PublishFe
740
773
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishFederatedSubgraphsResponse;
741
774
  static equals(a: PublishFederatedSubgraphsResponse | PlainMessage<PublishFederatedSubgraphsResponse> | undefined, b: PublishFederatedSubgraphsResponse | PlainMessage<PublishFederatedSubgraphsResponse> | undefined): boolean;
742
775
  }
776
+ /**
777
+ * @generated from message wg.cosmo.platform.v1.GetBatchPublishJobStatusRequest
778
+ */
779
+ export declare class GetBatchPublishJobStatusRequest extends Message<GetBatchPublishJobStatusRequest> {
780
+ /**
781
+ * @generated from field: string jobId = 1;
782
+ */
783
+ jobId: string;
784
+ /**
785
+ * Optional limit for the number of errors/warnings returned.
786
+ *
787
+ * @generated from field: optional int32 limit = 2;
788
+ */
789
+ limit?: number;
790
+ constructor(data?: PartialMessage<GetBatchPublishJobStatusRequest>);
791
+ static readonly runtime: typeof proto3;
792
+ static readonly typeName = "wg.cosmo.platform.v1.GetBatchPublishJobStatusRequest";
793
+ static readonly fields: FieldList;
794
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBatchPublishJobStatusRequest;
795
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBatchPublishJobStatusRequest;
796
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBatchPublishJobStatusRequest;
797
+ static equals(a: GetBatchPublishJobStatusRequest | PlainMessage<GetBatchPublishJobStatusRequest> | undefined, b: GetBatchPublishJobStatusRequest | PlainMessage<GetBatchPublishJobStatusRequest> | undefined): boolean;
798
+ }
799
+ /**
800
+ * @generated from message wg.cosmo.platform.v1.GetBatchPublishJobStatusResponse
801
+ */
802
+ export declare class GetBatchPublishJobStatusResponse extends Message<GetBatchPublishJobStatusResponse> {
803
+ /**
804
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
805
+ */
806
+ response?: Response;
807
+ /**
808
+ * @generated from field: optional wg.cosmo.platform.v1.BatchPublishJobStatus status = 2;
809
+ */
810
+ status?: BatchPublishJobStatus;
811
+ /**
812
+ * @generated from field: optional string failureReason = 3;
813
+ */
814
+ failureReason?: string;
815
+ /**
816
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 4;
817
+ */
818
+ compositionErrors: CompositionError[];
819
+ /**
820
+ * @generated from field: repeated wg.cosmo.platform.v1.DeploymentError deploymentErrors = 5;
821
+ */
822
+ deploymentErrors: DeploymentError[];
823
+ /**
824
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionWarning compositionWarnings = 6;
825
+ */
826
+ compositionWarnings: CompositionWarning[];
827
+ /**
828
+ * @generated from field: optional wg.cosmo.platform.v1.SubgraphPublishStats counts = 7;
829
+ */
830
+ counts?: SubgraphPublishStats;
831
+ /**
832
+ * The names of the subgraphs whose schema actually changed as a result of this batch publish.
833
+ *
834
+ * @generated from field: repeated string updatedSubgraphNames = 8;
835
+ */
836
+ updatedSubgraphNames: string[];
837
+ constructor(data?: PartialMessage<GetBatchPublishJobStatusResponse>);
838
+ static readonly runtime: typeof proto3;
839
+ static readonly typeName = "wg.cosmo.platform.v1.GetBatchPublishJobStatusResponse";
840
+ static readonly fields: FieldList;
841
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBatchPublishJobStatusResponse;
842
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBatchPublishJobStatusResponse;
843
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBatchPublishJobStatusResponse;
844
+ static equals(a: GetBatchPublishJobStatusResponse | PlainMessage<GetBatchPublishJobStatusResponse> | undefined, b: GetBatchPublishJobStatusResponse | PlainMessage<GetBatchPublishJobStatusResponse> | undefined): boolean;
845
+ }
743
846
  /**
744
847
  * @generated from message wg.cosmo.platform.v1.GitInfo
745
848
  */
@@ -12585,6 +12688,10 @@ export declare class GetProposalsByFederatedGraphResponse extends Message<GetPro
12585
12688
  * @generated from field: bool isProposalsEnabled = 3;
12586
12689
  */
12587
12690
  isProposalsEnabled: boolean;
12691
+ /**
12692
+ * @generated from field: int32 totalCount = 4;
12693
+ */
12694
+ totalCount: number;
12588
12695
  constructor(data?: PartialMessage<GetProposalsByFederatedGraphResponse>);
12589
12696
  static readonly runtime: typeof proto3;
12590
12697
  static readonly typeName = "wg.cosmo.platform.v1.GetProposalsByFederatedGraphResponse";
@@ -2,6 +2,35 @@
2
2
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
3
3
  import { EnumStatusCode, GraphQLSubscriptionProtocol, GraphQLWebsocketSubprotocol } from "../../common/common_pb.js";
4
4
  import { EventMeta } from "../../notifications/events_pb.js";
5
+ /**
6
+ * @generated from enum wg.cosmo.platform.v1.BatchPublishJobStatus
7
+ */
8
+ export var BatchPublishJobStatus;
9
+ (function (BatchPublishJobStatus) {
10
+ /**
11
+ * @generated from enum value: PENDING = 0;
12
+ */
13
+ BatchPublishJobStatus[BatchPublishJobStatus["PENDING"] = 0] = "PENDING";
14
+ /**
15
+ * @generated from enum value: PROCESSING = 1;
16
+ */
17
+ BatchPublishJobStatus[BatchPublishJobStatus["PROCESSING"] = 1] = "PROCESSING";
18
+ /**
19
+ * @generated from enum value: FAILED = 2;
20
+ */
21
+ BatchPublishJobStatus[BatchPublishJobStatus["FAILED"] = 2] = "FAILED";
22
+ /**
23
+ * @generated from enum value: COMPLETED = 3;
24
+ */
25
+ BatchPublishJobStatus[BatchPublishJobStatus["COMPLETED"] = 3] = "COMPLETED";
26
+ })(BatchPublishJobStatus || (BatchPublishJobStatus = {}));
27
+ // Retrieve enum metadata with: proto3.getEnumType(BatchPublishJobStatus)
28
+ proto3.util.setEnumType(BatchPublishJobStatus, "wg.cosmo.platform.v1.BatchPublishJobStatus", [
29
+ { no: 0, name: "PENDING" },
30
+ { no: 1, name: "PROCESSING" },
31
+ { no: 2, name: "FAILED" },
32
+ { no: 3, name: "COMPLETED" },
33
+ ]);
5
34
  /**
6
35
  * @generated from enum wg.cosmo.platform.v1.LintSeverity
7
36
  */
@@ -983,6 +1012,12 @@ export class PublishFederatedSubgraphsRequest extends Message {
983
1012
  * @generated from field: optional int32 limit = 4;
984
1013
  */
985
1014
  limit;
1015
+ /**
1016
+ * Optional value indicating whether the batch publish should occur asynchronously or wait for completion before returning.
1017
+ *
1018
+ * @generated from field: optional bool async = 5;
1019
+ */
1020
+ async;
986
1021
  constructor(data) {
987
1022
  super();
988
1023
  proto3.util.initPartial(data, this);
@@ -994,6 +1029,7 @@ export class PublishFederatedSubgraphsRequest extends Message {
994
1029
  { no: 2, name: "subgraphs", kind: "message", T: PublishSubgraph, repeated: true },
995
1030
  { no: 3, name: "disable_resolvability_validation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
996
1031
  { no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1032
+ { no: 5, name: "async", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
997
1033
  ]);
998
1034
  static fromBinary(bytes, options) {
999
1035
  return new PublishFederatedSubgraphsRequest().fromBinary(bytes, options);
@@ -1038,6 +1074,12 @@ export class PublishFederatedSubgraphsResponse extends Message {
1038
1074
  * @generated from field: repeated string updatedSubgraphNames = 6;
1039
1075
  */
1040
1076
  updatedSubgraphNames = [];
1077
+ /**
1078
+ * The job identifier the client can use to obtain details about the status of the enqueued job
1079
+ *
1080
+ * @generated from field: optional string jobId = 7;
1081
+ */
1082
+ jobId;
1041
1083
  constructor(data) {
1042
1084
  super();
1043
1085
  proto3.util.initPartial(data, this);
@@ -1051,6 +1093,7 @@ export class PublishFederatedSubgraphsResponse extends Message {
1051
1093
  { no: 4, name: "compositionWarnings", kind: "message", T: CompositionWarning, repeated: true },
1052
1094
  { no: 5, name: "counts", kind: "message", T: SubgraphPublishStats, opt: true },
1053
1095
  { no: 6, name: "updatedSubgraphNames", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1096
+ { no: 7, name: "jobId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1054
1097
  ]);
1055
1098
  static fromBinary(bytes, options) {
1056
1099
  return new PublishFederatedSubgraphsResponse().fromBinary(bytes, options);
@@ -1065,6 +1108,110 @@ export class PublishFederatedSubgraphsResponse extends Message {
1065
1108
  return proto3.util.equals(PublishFederatedSubgraphsResponse, a, b);
1066
1109
  }
1067
1110
  }
1111
+ /**
1112
+ * @generated from message wg.cosmo.platform.v1.GetBatchPublishJobStatusRequest
1113
+ */
1114
+ export class GetBatchPublishJobStatusRequest extends Message {
1115
+ /**
1116
+ * @generated from field: string jobId = 1;
1117
+ */
1118
+ jobId = "";
1119
+ /**
1120
+ * Optional limit for the number of errors/warnings returned.
1121
+ *
1122
+ * @generated from field: optional int32 limit = 2;
1123
+ */
1124
+ limit;
1125
+ constructor(data) {
1126
+ super();
1127
+ proto3.util.initPartial(data, this);
1128
+ }
1129
+ static runtime = proto3;
1130
+ static typeName = "wg.cosmo.platform.v1.GetBatchPublishJobStatusRequest";
1131
+ static fields = proto3.util.newFieldList(() => [
1132
+ { no: 1, name: "jobId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1133
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1134
+ ]);
1135
+ static fromBinary(bytes, options) {
1136
+ return new GetBatchPublishJobStatusRequest().fromBinary(bytes, options);
1137
+ }
1138
+ static fromJson(jsonValue, options) {
1139
+ return new GetBatchPublishJobStatusRequest().fromJson(jsonValue, options);
1140
+ }
1141
+ static fromJsonString(jsonString, options) {
1142
+ return new GetBatchPublishJobStatusRequest().fromJsonString(jsonString, options);
1143
+ }
1144
+ static equals(a, b) {
1145
+ return proto3.util.equals(GetBatchPublishJobStatusRequest, a, b);
1146
+ }
1147
+ }
1148
+ /**
1149
+ * @generated from message wg.cosmo.platform.v1.GetBatchPublishJobStatusResponse
1150
+ */
1151
+ export class GetBatchPublishJobStatusResponse extends Message {
1152
+ /**
1153
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
1154
+ */
1155
+ response;
1156
+ /**
1157
+ * @generated from field: optional wg.cosmo.platform.v1.BatchPublishJobStatus status = 2;
1158
+ */
1159
+ status;
1160
+ /**
1161
+ * @generated from field: optional string failureReason = 3;
1162
+ */
1163
+ failureReason;
1164
+ /**
1165
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 4;
1166
+ */
1167
+ compositionErrors = [];
1168
+ /**
1169
+ * @generated from field: repeated wg.cosmo.platform.v1.DeploymentError deploymentErrors = 5;
1170
+ */
1171
+ deploymentErrors = [];
1172
+ /**
1173
+ * @generated from field: repeated wg.cosmo.platform.v1.CompositionWarning compositionWarnings = 6;
1174
+ */
1175
+ compositionWarnings = [];
1176
+ /**
1177
+ * @generated from field: optional wg.cosmo.platform.v1.SubgraphPublishStats counts = 7;
1178
+ */
1179
+ counts;
1180
+ /**
1181
+ * The names of the subgraphs whose schema actually changed as a result of this batch publish.
1182
+ *
1183
+ * @generated from field: repeated string updatedSubgraphNames = 8;
1184
+ */
1185
+ updatedSubgraphNames = [];
1186
+ constructor(data) {
1187
+ super();
1188
+ proto3.util.initPartial(data, this);
1189
+ }
1190
+ static runtime = proto3;
1191
+ static typeName = "wg.cosmo.platform.v1.GetBatchPublishJobStatusResponse";
1192
+ static fields = proto3.util.newFieldList(() => [
1193
+ { no: 1, name: "response", kind: "message", T: Response },
1194
+ { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(BatchPublishJobStatus), opt: true },
1195
+ { no: 3, name: "failureReason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1196
+ { no: 4, name: "compositionErrors", kind: "message", T: CompositionError, repeated: true },
1197
+ { no: 5, name: "deploymentErrors", kind: "message", T: DeploymentError, repeated: true },
1198
+ { no: 6, name: "compositionWarnings", kind: "message", T: CompositionWarning, repeated: true },
1199
+ { no: 7, name: "counts", kind: "message", T: SubgraphPublishStats, opt: true },
1200
+ { no: 8, name: "updatedSubgraphNames", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1201
+ ]);
1202
+ static fromBinary(bytes, options) {
1203
+ return new GetBatchPublishJobStatusResponse().fromBinary(bytes, options);
1204
+ }
1205
+ static fromJson(jsonValue, options) {
1206
+ return new GetBatchPublishJobStatusResponse().fromJson(jsonValue, options);
1207
+ }
1208
+ static fromJsonString(jsonString, options) {
1209
+ return new GetBatchPublishJobStatusResponse().fromJsonString(jsonString, options);
1210
+ }
1211
+ static equals(a, b) {
1212
+ return proto3.util.equals(GetBatchPublishJobStatusResponse, a, b);
1213
+ }
1214
+ }
1068
1215
  /**
1069
1216
  * @generated from message wg.cosmo.platform.v1.GitInfo
1070
1217
  */
@@ -19613,6 +19760,10 @@ export class GetProposalsByFederatedGraphResponse extends Message {
19613
19760
  * @generated from field: bool isProposalsEnabled = 3;
19614
19761
  */
19615
19762
  isProposalsEnabled = false;
19763
+ /**
19764
+ * @generated from field: int32 totalCount = 4;
19765
+ */
19766
+ totalCount = 0;
19616
19767
  constructor(data) {
19617
19768
  super();
19618
19769
  proto3.util.initPartial(data, this);
@@ -19623,6 +19774,7 @@ export class GetProposalsByFederatedGraphResponse extends Message {
19623
19774
  { no: 1, name: "response", kind: "message", T: Response },
19624
19775
  { no: 2, name: "proposals", kind: "message", T: Proposal, repeated: true },
19625
19776
  { no: 3, name: "isProposalsEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
19777
+ { no: 4, name: "totalCount", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
19626
19778
  ]);
19627
19779
  static fromBinary(bytes, options) {
19628
19780
  return new GetProposalsByFederatedGraphResponse().fromBinary(bytes, options);