@wundergraph/cosmo-connect 0.42.0 → 0.43.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.
@@ -1188,6 +1188,10 @@ export class FederatedGraph extends Message {
1188
1188
  * @generated from field: optional string readme = 10;
1189
1189
  */
1190
1190
  readme;
1191
+ /**
1192
+ * @generated from field: string target_id = 11;
1193
+ */
1194
+ targetId = "";
1191
1195
  constructor(data) {
1192
1196
  super();
1193
1197
  proto3.util.initPartial(data, this);
@@ -1205,6 +1209,7 @@ export class FederatedGraph extends Message {
1205
1209
  { no: 8, name: "connectedSubgraphs", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1206
1210
  { no: 9, name: "requestSeries", kind: "message", T: RequestSeriesItem, repeated: true },
1207
1211
  { no: 10, name: "readme", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1212
+ { no: 11, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1208
1213
  ]);
1209
1214
  static fromBinary(bytes, options) {
1210
1215
  return new FederatedGraph().fromBinary(bytes, options);
@@ -1390,6 +1395,10 @@ export class Subgraph extends Message {
1390
1395
  * @generated from field: string subscriptionUrl = 8;
1391
1396
  */
1392
1397
  subscriptionUrl = "";
1398
+ /**
1399
+ * @generated from field: string target_id = 9;
1400
+ */
1401
+ targetId = "";
1393
1402
  constructor(data) {
1394
1403
  super();
1395
1404
  proto3.util.initPartial(data, this);
@@ -1405,6 +1414,7 @@ export class Subgraph extends Message {
1405
1414
  { no: 6, name: "creatorUserId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1406
1415
  { no: 7, name: "readme", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1407
1416
  { no: 8, name: "subscriptionUrl", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1417
+ { no: 9, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1408
1418
  ]);
1409
1419
  static fromBinary(bytes, options) {
1410
1420
  return new Subgraph().fromBinary(bytes, options);
@@ -1581,6 +1591,10 @@ export class GetFederatedGraphSDLByNameResponse extends Message {
1581
1591
  * @generated from field: optional string sdl = 2;
1582
1592
  */
1583
1593
  sdl;
1594
+ /**
1595
+ * @generated from field: optional string version_id = 3;
1596
+ */
1597
+ versionId;
1584
1598
  constructor(data) {
1585
1599
  super();
1586
1600
  proto3.util.initPartial(data, this);
@@ -1590,6 +1604,7 @@ export class GetFederatedGraphSDLByNameResponse extends Message {
1590
1604
  static fields = proto3.util.newFieldList(() => [
1591
1605
  { no: 1, name: "response", kind: "message", T: Response },
1592
1606
  { no: 2, name: "sdl", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1607
+ { no: 3, name: "version_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1593
1608
  ]);
1594
1609
  static fromBinary(bytes, options) {
1595
1610
  return new GetFederatedGraphSDLByNameResponse().fromBinary(bytes, options);
@@ -1721,6 +1736,10 @@ export class GetLatestValidSubgraphSDLByNameResponse extends Message {
1721
1736
  * @generated from field: optional string sdl = 2;
1722
1737
  */
1723
1738
  sdl;
1739
+ /**
1740
+ * @generated from field: optional string version_id = 3;
1741
+ */
1742
+ versionId;
1724
1743
  constructor(data) {
1725
1744
  super();
1726
1745
  proto3.util.initPartial(data, this);
@@ -1730,6 +1749,7 @@ export class GetLatestValidSubgraphSDLByNameResponse extends Message {
1730
1749
  static fields = proto3.util.newFieldList(() => [
1731
1750
  { no: 1, name: "response", kind: "message", T: Response },
1732
1751
  { no: 2, name: "sdl", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1752
+ { no: 3, name: "version_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1733
1753
  ]);
1734
1754
  static fromBinary(bytes, options) {
1735
1755
  return new GetLatestValidSubgraphSDLByNameResponse().fromBinary(bytes, options);
@@ -1786,6 +1806,10 @@ export class GetLatestSubgraphSDLByNameResponse extends Message {
1786
1806
  * @generated from field: optional string sdl = 2;
1787
1807
  */
1788
1808
  sdl;
1809
+ /**
1810
+ * @generated from field: optional string version_id = 3;
1811
+ */
1812
+ versionId;
1789
1813
  constructor(data) {
1790
1814
  super();
1791
1815
  proto3.util.initPartial(data, this);
@@ -1795,6 +1819,7 @@ export class GetLatestSubgraphSDLByNameResponse extends Message {
1795
1819
  static fields = proto3.util.newFieldList(() => [
1796
1820
  { no: 1, name: "response", kind: "message", T: Response },
1797
1821
  { no: 2, name: "sdl", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1822
+ { no: 3, name: "version_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1798
1823
  ]);
1799
1824
  static fromBinary(bytes, options) {
1800
1825
  return new GetLatestSubgraphSDLByNameResponse().fromBinary(bytes, options);
@@ -9025,4 +9050,704 @@ export class GetFieldUsageResponse extends Message {
9025
9050
  return proto3.util.equals(GetFieldUsageResponse, a, b);
9026
9051
  }
9027
9052
  }
9053
+ /**
9054
+ * @generated from message wg.cosmo.platform.v1.CreateDiscussionRequest
9055
+ */
9056
+ export class CreateDiscussionRequest extends Message {
9057
+ /**
9058
+ * @generated from field: string target_id = 1;
9059
+ */
9060
+ targetId = "";
9061
+ /**
9062
+ * @generated from field: string content_markdown = 2;
9063
+ */
9064
+ contentMarkdown = "";
9065
+ /**
9066
+ * @generated from field: string content_json = 3;
9067
+ */
9068
+ contentJson = "";
9069
+ /**
9070
+ * @generated from field: string schema_version_id = 4;
9071
+ */
9072
+ schemaVersionId = "";
9073
+ /**
9074
+ * @generated from field: int32 reference_line = 5;
9075
+ */
9076
+ referenceLine = 0;
9077
+ constructor(data) {
9078
+ super();
9079
+ proto3.util.initPartial(data, this);
9080
+ }
9081
+ static runtime = proto3;
9082
+ static typeName = "wg.cosmo.platform.v1.CreateDiscussionRequest";
9083
+ static fields = proto3.util.newFieldList(() => [
9084
+ { no: 1, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9085
+ { no: 2, name: "content_markdown", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9086
+ { no: 3, name: "content_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9087
+ { no: 4, name: "schema_version_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9088
+ { no: 5, name: "reference_line", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
9089
+ ]);
9090
+ static fromBinary(bytes, options) {
9091
+ return new CreateDiscussionRequest().fromBinary(bytes, options);
9092
+ }
9093
+ static fromJson(jsonValue, options) {
9094
+ return new CreateDiscussionRequest().fromJson(jsonValue, options);
9095
+ }
9096
+ static fromJsonString(jsonString, options) {
9097
+ return new CreateDiscussionRequest().fromJsonString(jsonString, options);
9098
+ }
9099
+ static equals(a, b) {
9100
+ return proto3.util.equals(CreateDiscussionRequest, a, b);
9101
+ }
9102
+ }
9103
+ /**
9104
+ * @generated from message wg.cosmo.platform.v1.CreateDiscussionResponse
9105
+ */
9106
+ export class CreateDiscussionResponse extends Message {
9107
+ /**
9108
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9109
+ */
9110
+ response;
9111
+ constructor(data) {
9112
+ super();
9113
+ proto3.util.initPartial(data, this);
9114
+ }
9115
+ static runtime = proto3;
9116
+ static typeName = "wg.cosmo.platform.v1.CreateDiscussionResponse";
9117
+ static fields = proto3.util.newFieldList(() => [
9118
+ { no: 1, name: "response", kind: "message", T: Response },
9119
+ ]);
9120
+ static fromBinary(bytes, options) {
9121
+ return new CreateDiscussionResponse().fromBinary(bytes, options);
9122
+ }
9123
+ static fromJson(jsonValue, options) {
9124
+ return new CreateDiscussionResponse().fromJson(jsonValue, options);
9125
+ }
9126
+ static fromJsonString(jsonString, options) {
9127
+ return new CreateDiscussionResponse().fromJsonString(jsonString, options);
9128
+ }
9129
+ static equals(a, b) {
9130
+ return proto3.util.equals(CreateDiscussionResponse, a, b);
9131
+ }
9132
+ }
9133
+ /**
9134
+ * @generated from message wg.cosmo.platform.v1.UpdateDiscussionCommentRequest
9135
+ */
9136
+ export class UpdateDiscussionCommentRequest extends Message {
9137
+ /**
9138
+ * @generated from field: string discussion_id = 1;
9139
+ */
9140
+ discussionId = "";
9141
+ /**
9142
+ * @generated from field: string comment_id = 2;
9143
+ */
9144
+ commentId = "";
9145
+ /**
9146
+ * @generated from field: string content_markdown = 3;
9147
+ */
9148
+ contentMarkdown = "";
9149
+ /**
9150
+ * @generated from field: string content_json = 4;
9151
+ */
9152
+ contentJson = "";
9153
+ constructor(data) {
9154
+ super();
9155
+ proto3.util.initPartial(data, this);
9156
+ }
9157
+ static runtime = proto3;
9158
+ static typeName = "wg.cosmo.platform.v1.UpdateDiscussionCommentRequest";
9159
+ static fields = proto3.util.newFieldList(() => [
9160
+ { no: 1, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9161
+ { no: 2, name: "comment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9162
+ { no: 3, name: "content_markdown", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9163
+ { no: 4, name: "content_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9164
+ ]);
9165
+ static fromBinary(bytes, options) {
9166
+ return new UpdateDiscussionCommentRequest().fromBinary(bytes, options);
9167
+ }
9168
+ static fromJson(jsonValue, options) {
9169
+ return new UpdateDiscussionCommentRequest().fromJson(jsonValue, options);
9170
+ }
9171
+ static fromJsonString(jsonString, options) {
9172
+ return new UpdateDiscussionCommentRequest().fromJsonString(jsonString, options);
9173
+ }
9174
+ static equals(a, b) {
9175
+ return proto3.util.equals(UpdateDiscussionCommentRequest, a, b);
9176
+ }
9177
+ }
9178
+ /**
9179
+ * @generated from message wg.cosmo.platform.v1.UpdateDiscussionCommentResponse
9180
+ */
9181
+ export class UpdateDiscussionCommentResponse extends Message {
9182
+ /**
9183
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9184
+ */
9185
+ response;
9186
+ constructor(data) {
9187
+ super();
9188
+ proto3.util.initPartial(data, this);
9189
+ }
9190
+ static runtime = proto3;
9191
+ static typeName = "wg.cosmo.platform.v1.UpdateDiscussionCommentResponse";
9192
+ static fields = proto3.util.newFieldList(() => [
9193
+ { no: 1, name: "response", kind: "message", T: Response },
9194
+ ]);
9195
+ static fromBinary(bytes, options) {
9196
+ return new UpdateDiscussionCommentResponse().fromBinary(bytes, options);
9197
+ }
9198
+ static fromJson(jsonValue, options) {
9199
+ return new UpdateDiscussionCommentResponse().fromJson(jsonValue, options);
9200
+ }
9201
+ static fromJsonString(jsonString, options) {
9202
+ return new UpdateDiscussionCommentResponse().fromJsonString(jsonString, options);
9203
+ }
9204
+ static equals(a, b) {
9205
+ return proto3.util.equals(UpdateDiscussionCommentResponse, a, b);
9206
+ }
9207
+ }
9208
+ /**
9209
+ * @generated from message wg.cosmo.platform.v1.DeleteDiscussionCommentRequest
9210
+ */
9211
+ export class DeleteDiscussionCommentRequest extends Message {
9212
+ /**
9213
+ * @generated from field: string discussion_id = 1;
9214
+ */
9215
+ discussionId = "";
9216
+ /**
9217
+ * @generated from field: string comment_id = 2;
9218
+ */
9219
+ commentId = "";
9220
+ constructor(data) {
9221
+ super();
9222
+ proto3.util.initPartial(data, this);
9223
+ }
9224
+ static runtime = proto3;
9225
+ static typeName = "wg.cosmo.platform.v1.DeleteDiscussionCommentRequest";
9226
+ static fields = proto3.util.newFieldList(() => [
9227
+ { no: 1, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9228
+ { no: 2, name: "comment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9229
+ ]);
9230
+ static fromBinary(bytes, options) {
9231
+ return new DeleteDiscussionCommentRequest().fromBinary(bytes, options);
9232
+ }
9233
+ static fromJson(jsonValue, options) {
9234
+ return new DeleteDiscussionCommentRequest().fromJson(jsonValue, options);
9235
+ }
9236
+ static fromJsonString(jsonString, options) {
9237
+ return new DeleteDiscussionCommentRequest().fromJsonString(jsonString, options);
9238
+ }
9239
+ static equals(a, b) {
9240
+ return proto3.util.equals(DeleteDiscussionCommentRequest, a, b);
9241
+ }
9242
+ }
9243
+ /**
9244
+ * @generated from message wg.cosmo.platform.v1.DeleteDiscussionCommentResponse
9245
+ */
9246
+ export class DeleteDiscussionCommentResponse extends Message {
9247
+ /**
9248
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9249
+ */
9250
+ response;
9251
+ constructor(data) {
9252
+ super();
9253
+ proto3.util.initPartial(data, this);
9254
+ }
9255
+ static runtime = proto3;
9256
+ static typeName = "wg.cosmo.platform.v1.DeleteDiscussionCommentResponse";
9257
+ static fields = proto3.util.newFieldList(() => [
9258
+ { no: 1, name: "response", kind: "message", T: Response },
9259
+ ]);
9260
+ static fromBinary(bytes, options) {
9261
+ return new DeleteDiscussionCommentResponse().fromBinary(bytes, options);
9262
+ }
9263
+ static fromJson(jsonValue, options) {
9264
+ return new DeleteDiscussionCommentResponse().fromJson(jsonValue, options);
9265
+ }
9266
+ static fromJsonString(jsonString, options) {
9267
+ return new DeleteDiscussionCommentResponse().fromJsonString(jsonString, options);
9268
+ }
9269
+ static equals(a, b) {
9270
+ return proto3.util.equals(DeleteDiscussionCommentResponse, a, b);
9271
+ }
9272
+ }
9273
+ /**
9274
+ * @generated from message wg.cosmo.platform.v1.ReplyToDiscussionRequest
9275
+ */
9276
+ export class ReplyToDiscussionRequest extends Message {
9277
+ /**
9278
+ * @generated from field: string discussion_id = 2;
9279
+ */
9280
+ discussionId = "";
9281
+ /**
9282
+ * @generated from field: string content_markdown = 3;
9283
+ */
9284
+ contentMarkdown = "";
9285
+ /**
9286
+ * @generated from field: string content_json = 4;
9287
+ */
9288
+ contentJson = "";
9289
+ constructor(data) {
9290
+ super();
9291
+ proto3.util.initPartial(data, this);
9292
+ }
9293
+ static runtime = proto3;
9294
+ static typeName = "wg.cosmo.platform.v1.ReplyToDiscussionRequest";
9295
+ static fields = proto3.util.newFieldList(() => [
9296
+ { no: 2, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9297
+ { no: 3, name: "content_markdown", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9298
+ { no: 4, name: "content_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9299
+ ]);
9300
+ static fromBinary(bytes, options) {
9301
+ return new ReplyToDiscussionRequest().fromBinary(bytes, options);
9302
+ }
9303
+ static fromJson(jsonValue, options) {
9304
+ return new ReplyToDiscussionRequest().fromJson(jsonValue, options);
9305
+ }
9306
+ static fromJsonString(jsonString, options) {
9307
+ return new ReplyToDiscussionRequest().fromJsonString(jsonString, options);
9308
+ }
9309
+ static equals(a, b) {
9310
+ return proto3.util.equals(ReplyToDiscussionRequest, a, b);
9311
+ }
9312
+ }
9313
+ /**
9314
+ * @generated from message wg.cosmo.platform.v1.ReplyToDiscussionResponse
9315
+ */
9316
+ export class ReplyToDiscussionResponse extends Message {
9317
+ /**
9318
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9319
+ */
9320
+ response;
9321
+ constructor(data) {
9322
+ super();
9323
+ proto3.util.initPartial(data, this);
9324
+ }
9325
+ static runtime = proto3;
9326
+ static typeName = "wg.cosmo.platform.v1.ReplyToDiscussionResponse";
9327
+ static fields = proto3.util.newFieldList(() => [
9328
+ { no: 1, name: "response", kind: "message", T: Response },
9329
+ ]);
9330
+ static fromBinary(bytes, options) {
9331
+ return new ReplyToDiscussionResponse().fromBinary(bytes, options);
9332
+ }
9333
+ static fromJson(jsonValue, options) {
9334
+ return new ReplyToDiscussionResponse().fromJson(jsonValue, options);
9335
+ }
9336
+ static fromJsonString(jsonString, options) {
9337
+ return new ReplyToDiscussionResponse().fromJsonString(jsonString, options);
9338
+ }
9339
+ static equals(a, b) {
9340
+ return proto3.util.equals(ReplyToDiscussionResponse, a, b);
9341
+ }
9342
+ }
9343
+ /**
9344
+ * @generated from message wg.cosmo.platform.v1.GetAllDiscussionsRequest
9345
+ */
9346
+ export class GetAllDiscussionsRequest extends Message {
9347
+ /**
9348
+ * @generated from field: string target_id = 1;
9349
+ */
9350
+ targetId = "";
9351
+ /**
9352
+ * @generated from field: optional string schema_version_id = 2;
9353
+ */
9354
+ schemaVersionId;
9355
+ constructor(data) {
9356
+ super();
9357
+ proto3.util.initPartial(data, this);
9358
+ }
9359
+ static runtime = proto3;
9360
+ static typeName = "wg.cosmo.platform.v1.GetAllDiscussionsRequest";
9361
+ static fields = proto3.util.newFieldList(() => [
9362
+ { no: 1, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9363
+ { no: 2, name: "schema_version_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
9364
+ ]);
9365
+ static fromBinary(bytes, options) {
9366
+ return new GetAllDiscussionsRequest().fromBinary(bytes, options);
9367
+ }
9368
+ static fromJson(jsonValue, options) {
9369
+ return new GetAllDiscussionsRequest().fromJson(jsonValue, options);
9370
+ }
9371
+ static fromJsonString(jsonString, options) {
9372
+ return new GetAllDiscussionsRequest().fromJsonString(jsonString, options);
9373
+ }
9374
+ static equals(a, b) {
9375
+ return proto3.util.equals(GetAllDiscussionsRequest, a, b);
9376
+ }
9377
+ }
9378
+ /**
9379
+ * @generated from message wg.cosmo.platform.v1.Discussion
9380
+ */
9381
+ export class Discussion extends Message {
9382
+ /**
9383
+ * @generated from field: string id = 1;
9384
+ */
9385
+ id = "";
9386
+ /**
9387
+ * @generated from field: string schema_version_id = 2;
9388
+ */
9389
+ schemaVersionId = "";
9390
+ /**
9391
+ * @generated from field: string target_id = 3;
9392
+ */
9393
+ targetId = "";
9394
+ /**
9395
+ * @generated from field: int32 reference_line = 4;
9396
+ */
9397
+ referenceLine = 0;
9398
+ /**
9399
+ * @generated from field: wg.cosmo.platform.v1.DiscussionComment openingComment = 5;
9400
+ */
9401
+ openingComment;
9402
+ /**
9403
+ * @generated from field: bool is_resolved = 6;
9404
+ */
9405
+ isResolved = false;
9406
+ constructor(data) {
9407
+ super();
9408
+ proto3.util.initPartial(data, this);
9409
+ }
9410
+ static runtime = proto3;
9411
+ static typeName = "wg.cosmo.platform.v1.Discussion";
9412
+ static fields = proto3.util.newFieldList(() => [
9413
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9414
+ { no: 2, name: "schema_version_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9415
+ { no: 3, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9416
+ { no: 4, name: "reference_line", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
9417
+ { no: 5, name: "openingComment", kind: "message", T: DiscussionComment },
9418
+ { no: 6, name: "is_resolved", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
9419
+ ]);
9420
+ static fromBinary(bytes, options) {
9421
+ return new Discussion().fromBinary(bytes, options);
9422
+ }
9423
+ static fromJson(jsonValue, options) {
9424
+ return new Discussion().fromJson(jsonValue, options);
9425
+ }
9426
+ static fromJsonString(jsonString, options) {
9427
+ return new Discussion().fromJsonString(jsonString, options);
9428
+ }
9429
+ static equals(a, b) {
9430
+ return proto3.util.equals(Discussion, a, b);
9431
+ }
9432
+ }
9433
+ /**
9434
+ * @generated from message wg.cosmo.platform.v1.DiscussionComment
9435
+ */
9436
+ export class DiscussionComment extends Message {
9437
+ /**
9438
+ * @generated from field: string id = 1;
9439
+ */
9440
+ id = "";
9441
+ /**
9442
+ * @generated from field: string content_json = 2;
9443
+ */
9444
+ contentJson = "";
9445
+ /**
9446
+ * @generated from field: string created_by = 3;
9447
+ */
9448
+ createdBy = "";
9449
+ /**
9450
+ * @generated from field: string created_at = 4;
9451
+ */
9452
+ createdAt = "";
9453
+ /**
9454
+ * @generated from field: optional string updated_at = 5;
9455
+ */
9456
+ updatedAt;
9457
+ constructor(data) {
9458
+ super();
9459
+ proto3.util.initPartial(data, this);
9460
+ }
9461
+ static runtime = proto3;
9462
+ static typeName = "wg.cosmo.platform.v1.DiscussionComment";
9463
+ static fields = proto3.util.newFieldList(() => [
9464
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9465
+ { no: 2, name: "content_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9466
+ { no: 3, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9467
+ { no: 4, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9468
+ { no: 5, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
9469
+ ]);
9470
+ static fromBinary(bytes, options) {
9471
+ return new DiscussionComment().fromBinary(bytes, options);
9472
+ }
9473
+ static fromJson(jsonValue, options) {
9474
+ return new DiscussionComment().fromJson(jsonValue, options);
9475
+ }
9476
+ static fromJsonString(jsonString, options) {
9477
+ return new DiscussionComment().fromJsonString(jsonString, options);
9478
+ }
9479
+ static equals(a, b) {
9480
+ return proto3.util.equals(DiscussionComment, a, b);
9481
+ }
9482
+ }
9483
+ /**
9484
+ * @generated from message wg.cosmo.platform.v1.GetAllDiscussionsResponse
9485
+ */
9486
+ export class GetAllDiscussionsResponse extends Message {
9487
+ /**
9488
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9489
+ */
9490
+ response;
9491
+ /**
9492
+ * @generated from field: repeated wg.cosmo.platform.v1.Discussion discussions = 2;
9493
+ */
9494
+ discussions = [];
9495
+ constructor(data) {
9496
+ super();
9497
+ proto3.util.initPartial(data, this);
9498
+ }
9499
+ static runtime = proto3;
9500
+ static typeName = "wg.cosmo.platform.v1.GetAllDiscussionsResponse";
9501
+ static fields = proto3.util.newFieldList(() => [
9502
+ { no: 1, name: "response", kind: "message", T: Response },
9503
+ { no: 2, name: "discussions", kind: "message", T: Discussion, repeated: true },
9504
+ ]);
9505
+ static fromBinary(bytes, options) {
9506
+ return new GetAllDiscussionsResponse().fromBinary(bytes, options);
9507
+ }
9508
+ static fromJson(jsonValue, options) {
9509
+ return new GetAllDiscussionsResponse().fromJson(jsonValue, options);
9510
+ }
9511
+ static fromJsonString(jsonString, options) {
9512
+ return new GetAllDiscussionsResponse().fromJsonString(jsonString, options);
9513
+ }
9514
+ static equals(a, b) {
9515
+ return proto3.util.equals(GetAllDiscussionsResponse, a, b);
9516
+ }
9517
+ }
9518
+ /**
9519
+ * @generated from message wg.cosmo.platform.v1.GetDiscussionRequest
9520
+ */
9521
+ export class GetDiscussionRequest extends Message {
9522
+ /**
9523
+ * @generated from field: string discussion_id = 1;
9524
+ */
9525
+ discussionId = "";
9526
+ constructor(data) {
9527
+ super();
9528
+ proto3.util.initPartial(data, this);
9529
+ }
9530
+ static runtime = proto3;
9531
+ static typeName = "wg.cosmo.platform.v1.GetDiscussionRequest";
9532
+ static fields = proto3.util.newFieldList(() => [
9533
+ { no: 1, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9534
+ ]);
9535
+ static fromBinary(bytes, options) {
9536
+ return new GetDiscussionRequest().fromBinary(bytes, options);
9537
+ }
9538
+ static fromJson(jsonValue, options) {
9539
+ return new GetDiscussionRequest().fromJson(jsonValue, options);
9540
+ }
9541
+ static fromJsonString(jsonString, options) {
9542
+ return new GetDiscussionRequest().fromJsonString(jsonString, options);
9543
+ }
9544
+ static equals(a, b) {
9545
+ return proto3.util.equals(GetDiscussionRequest, a, b);
9546
+ }
9547
+ }
9548
+ /**
9549
+ * @generated from message wg.cosmo.platform.v1.GetDiscussionResponse
9550
+ */
9551
+ export class GetDiscussionResponse extends Message {
9552
+ /**
9553
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9554
+ */
9555
+ response;
9556
+ /**
9557
+ * @generated from field: wg.cosmo.platform.v1.Discussion discussion = 2;
9558
+ */
9559
+ discussion;
9560
+ /**
9561
+ * @generated from field: repeated wg.cosmo.platform.v1.DiscussionComment comments = 3;
9562
+ */
9563
+ comments = [];
9564
+ constructor(data) {
9565
+ super();
9566
+ proto3.util.initPartial(data, this);
9567
+ }
9568
+ static runtime = proto3;
9569
+ static typeName = "wg.cosmo.platform.v1.GetDiscussionResponse";
9570
+ static fields = proto3.util.newFieldList(() => [
9571
+ { no: 1, name: "response", kind: "message", T: Response },
9572
+ { no: 2, name: "discussion", kind: "message", T: Discussion },
9573
+ { no: 3, name: "comments", kind: "message", T: DiscussionComment, repeated: true },
9574
+ ]);
9575
+ static fromBinary(bytes, options) {
9576
+ return new GetDiscussionResponse().fromBinary(bytes, options);
9577
+ }
9578
+ static fromJson(jsonValue, options) {
9579
+ return new GetDiscussionResponse().fromJson(jsonValue, options);
9580
+ }
9581
+ static fromJsonString(jsonString, options) {
9582
+ return new GetDiscussionResponse().fromJsonString(jsonString, options);
9583
+ }
9584
+ static equals(a, b) {
9585
+ return proto3.util.equals(GetDiscussionResponse, a, b);
9586
+ }
9587
+ }
9588
+ /**
9589
+ * @generated from message wg.cosmo.platform.v1.GetDiscussionSchemasRequest
9590
+ */
9591
+ export class GetDiscussionSchemasRequest extends Message {
9592
+ /**
9593
+ * @generated from field: string discussion_id = 1;
9594
+ */
9595
+ discussionId = "";
9596
+ constructor(data) {
9597
+ super();
9598
+ proto3.util.initPartial(data, this);
9599
+ }
9600
+ static runtime = proto3;
9601
+ static typeName = "wg.cosmo.platform.v1.GetDiscussionSchemasRequest";
9602
+ static fields = proto3.util.newFieldList(() => [
9603
+ { no: 1, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9604
+ ]);
9605
+ static fromBinary(bytes, options) {
9606
+ return new GetDiscussionSchemasRequest().fromBinary(bytes, options);
9607
+ }
9608
+ static fromJson(jsonValue, options) {
9609
+ return new GetDiscussionSchemasRequest().fromJson(jsonValue, options);
9610
+ }
9611
+ static fromJsonString(jsonString, options) {
9612
+ return new GetDiscussionSchemasRequest().fromJsonString(jsonString, options);
9613
+ }
9614
+ static equals(a, b) {
9615
+ return proto3.util.equals(GetDiscussionSchemasRequest, a, b);
9616
+ }
9617
+ }
9618
+ /**
9619
+ * @generated from message wg.cosmo.platform.v1.GetDiscussionSchemasResponse
9620
+ */
9621
+ export class GetDiscussionSchemasResponse extends Message {
9622
+ /**
9623
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9624
+ */
9625
+ response;
9626
+ /**
9627
+ * @generated from field: wg.cosmo.platform.v1.GetDiscussionSchemasResponse.Schemas schemas = 4;
9628
+ */
9629
+ schemas;
9630
+ constructor(data) {
9631
+ super();
9632
+ proto3.util.initPartial(data, this);
9633
+ }
9634
+ static runtime = proto3;
9635
+ static typeName = "wg.cosmo.platform.v1.GetDiscussionSchemasResponse";
9636
+ static fields = proto3.util.newFieldList(() => [
9637
+ { no: 1, name: "response", kind: "message", T: Response },
9638
+ { no: 4, name: "schemas", kind: "message", T: GetDiscussionSchemasResponse_Schemas },
9639
+ ]);
9640
+ static fromBinary(bytes, options) {
9641
+ return new GetDiscussionSchemasResponse().fromBinary(bytes, options);
9642
+ }
9643
+ static fromJson(jsonValue, options) {
9644
+ return new GetDiscussionSchemasResponse().fromJson(jsonValue, options);
9645
+ }
9646
+ static fromJsonString(jsonString, options) {
9647
+ return new GetDiscussionSchemasResponse().fromJsonString(jsonString, options);
9648
+ }
9649
+ static equals(a, b) {
9650
+ return proto3.util.equals(GetDiscussionSchemasResponse, a, b);
9651
+ }
9652
+ }
9653
+ /**
9654
+ * @generated from message wg.cosmo.platform.v1.GetDiscussionSchemasResponse.Schemas
9655
+ */
9656
+ export class GetDiscussionSchemasResponse_Schemas extends Message {
9657
+ /**
9658
+ * @generated from field: string reference = 1;
9659
+ */
9660
+ reference = "";
9661
+ /**
9662
+ * @generated from field: string latest = 2;
9663
+ */
9664
+ latest = "";
9665
+ constructor(data) {
9666
+ super();
9667
+ proto3.util.initPartial(data, this);
9668
+ }
9669
+ static runtime = proto3;
9670
+ static typeName = "wg.cosmo.platform.v1.GetDiscussionSchemasResponse.Schemas";
9671
+ static fields = proto3.util.newFieldList(() => [
9672
+ { no: 1, name: "reference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9673
+ { no: 2, name: "latest", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9674
+ ]);
9675
+ static fromBinary(bytes, options) {
9676
+ return new GetDiscussionSchemasResponse_Schemas().fromBinary(bytes, options);
9677
+ }
9678
+ static fromJson(jsonValue, options) {
9679
+ return new GetDiscussionSchemasResponse_Schemas().fromJson(jsonValue, options);
9680
+ }
9681
+ static fromJsonString(jsonString, options) {
9682
+ return new GetDiscussionSchemasResponse_Schemas().fromJsonString(jsonString, options);
9683
+ }
9684
+ static equals(a, b) {
9685
+ return proto3.util.equals(GetDiscussionSchemasResponse_Schemas, a, b);
9686
+ }
9687
+ }
9688
+ /**
9689
+ * @generated from message wg.cosmo.platform.v1.SetDiscussionResolutionRequest
9690
+ */
9691
+ export class SetDiscussionResolutionRequest extends Message {
9692
+ /**
9693
+ * @generated from field: string discussion_id = 1;
9694
+ */
9695
+ discussionId = "";
9696
+ /**
9697
+ * @generated from field: bool is_resolved = 2;
9698
+ */
9699
+ isResolved = false;
9700
+ constructor(data) {
9701
+ super();
9702
+ proto3.util.initPartial(data, this);
9703
+ }
9704
+ static runtime = proto3;
9705
+ static typeName = "wg.cosmo.platform.v1.SetDiscussionResolutionRequest";
9706
+ static fields = proto3.util.newFieldList(() => [
9707
+ { no: 1, name: "discussion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9708
+ { no: 2, name: "is_resolved", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
9709
+ ]);
9710
+ static fromBinary(bytes, options) {
9711
+ return new SetDiscussionResolutionRequest().fromBinary(bytes, options);
9712
+ }
9713
+ static fromJson(jsonValue, options) {
9714
+ return new SetDiscussionResolutionRequest().fromJson(jsonValue, options);
9715
+ }
9716
+ static fromJsonString(jsonString, options) {
9717
+ return new SetDiscussionResolutionRequest().fromJsonString(jsonString, options);
9718
+ }
9719
+ static equals(a, b) {
9720
+ return proto3.util.equals(SetDiscussionResolutionRequest, a, b);
9721
+ }
9722
+ }
9723
+ /**
9724
+ * @generated from message wg.cosmo.platform.v1.SetDiscussionResolutionResponse
9725
+ */
9726
+ export class SetDiscussionResolutionResponse extends Message {
9727
+ /**
9728
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
9729
+ */
9730
+ response;
9731
+ constructor(data) {
9732
+ super();
9733
+ proto3.util.initPartial(data, this);
9734
+ }
9735
+ static runtime = proto3;
9736
+ static typeName = "wg.cosmo.platform.v1.SetDiscussionResolutionResponse";
9737
+ static fields = proto3.util.newFieldList(() => [
9738
+ { no: 1, name: "response", kind: "message", T: Response },
9739
+ ]);
9740
+ static fromBinary(bytes, options) {
9741
+ return new SetDiscussionResolutionResponse().fromBinary(bytes, options);
9742
+ }
9743
+ static fromJson(jsonValue, options) {
9744
+ return new SetDiscussionResolutionResponse().fromJson(jsonValue, options);
9745
+ }
9746
+ static fromJsonString(jsonString, options) {
9747
+ return new SetDiscussionResolutionResponse().fromJsonString(jsonString, options);
9748
+ }
9749
+ static equals(a, b) {
9750
+ return proto3.util.equals(SetDiscussionResolutionResponse, a, b);
9751
+ }
9752
+ }
9028
9753
  //# sourceMappingURL=platform_pb.js.map