@wundergraph/cosmo-connect 0.32.0 → 0.33.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.
@@ -196,11 +196,16 @@ export var PublishedOperationStatus;
196
196
  * @generated from enum value: CREATED = 1;
197
197
  */
198
198
  PublishedOperationStatus[PublishedOperationStatus["CREATED"] = 1] = "CREATED";
199
+ /**
200
+ * @generated from enum value: CONFLICT = 2;
201
+ */
202
+ PublishedOperationStatus[PublishedOperationStatus["CONFLICT"] = 2] = "CONFLICT";
199
203
  })(PublishedOperationStatus || (PublishedOperationStatus = {}));
200
204
  // Retrieve enum metadata with: proto3.getEnumType(PublishedOperationStatus)
201
205
  proto3.util.setEnumType(PublishedOperationStatus, "wg.cosmo.platform.v1.PublishedOperationStatus", [
202
206
  { no: 0, name: "UP_TO_DATE" },
203
207
  { no: 1, name: "CREATED" },
208
+ { no: 2, name: "CONFLICT" },
204
209
  ]);
205
210
  /**
206
211
  * @generated from enum wg.cosmo.platform.v1.IntegrationType
@@ -3446,15 +3451,11 @@ export class OrgMember extends Message {
3446
3451
  */
3447
3452
  email = "";
3448
3453
  /**
3449
- * @generated from field: bool acceptedInvite = 3;
3450
- */
3451
- acceptedInvite = false;
3452
- /**
3453
- * @generated from field: repeated string roles = 4;
3454
+ * @generated from field: repeated string roles = 3;
3454
3455
  */
3455
3456
  roles = [];
3456
3457
  /**
3457
- * @generated from field: string orgMemberID = 5;
3458
+ * @generated from field: string orgMemberID = 4;
3458
3459
  */
3459
3460
  orgMemberID = "";
3460
3461
  constructor(data) {
@@ -3466,9 +3467,8 @@ export class OrgMember extends Message {
3466
3467
  static fields = proto3.util.newFieldList(() => [
3467
3468
  { no: 1, name: "userID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3468
3469
  { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3469
- { no: 3, name: "acceptedInvite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3470
- { no: 4, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3471
- { no: 5, name: "orgMemberID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3470
+ { no: 3, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3471
+ { no: 4, name: "orgMemberID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3472
3472
  ]);
3473
3473
  static fromBinary(bytes, options) {
3474
3474
  return new OrgMember().fromBinary(bytes, options);
@@ -3483,6 +3483,41 @@ export class OrgMember extends Message {
3483
3483
  return proto3.util.equals(OrgMember, a, b);
3484
3484
  }
3485
3485
  }
3486
+ /**
3487
+ * @generated from message wg.cosmo.platform.v1.PendingOrgInvitation
3488
+ */
3489
+ export class PendingOrgInvitation extends Message {
3490
+ /**
3491
+ * @generated from field: string userID = 1;
3492
+ */
3493
+ userID = "";
3494
+ /**
3495
+ * @generated from field: string email = 2;
3496
+ */
3497
+ email = "";
3498
+ constructor(data) {
3499
+ super();
3500
+ proto3.util.initPartial(data, this);
3501
+ }
3502
+ static runtime = proto3;
3503
+ static typeName = "wg.cosmo.platform.v1.PendingOrgInvitation";
3504
+ static fields = proto3.util.newFieldList(() => [
3505
+ { no: 1, name: "userID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3506
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3507
+ ]);
3508
+ static fromBinary(bytes, options) {
3509
+ return new PendingOrgInvitation().fromBinary(bytes, options);
3510
+ }
3511
+ static fromJson(jsonValue, options) {
3512
+ return new PendingOrgInvitation().fromJson(jsonValue, options);
3513
+ }
3514
+ static fromJsonString(jsonString, options) {
3515
+ return new PendingOrgInvitation().fromJsonString(jsonString, options);
3516
+ }
3517
+ static equals(a, b) {
3518
+ return proto3.util.equals(PendingOrgInvitation, a, b);
3519
+ }
3520
+ }
3486
3521
  /**
3487
3522
  * @generated from message wg.cosmo.platform.v1.GetOrganizationMembersRequest
3488
3523
  */
@@ -3519,6 +3554,10 @@ export class GetOrganizationMembersResponse extends Message {
3519
3554
  * @generated from field: repeated wg.cosmo.platform.v1.OrgMember members = 2;
3520
3555
  */
3521
3556
  members = [];
3557
+ /**
3558
+ * @generated from field: repeated wg.cosmo.platform.v1.PendingOrgInvitation pendingInvitations = 3;
3559
+ */
3560
+ pendingInvitations = [];
3522
3561
  constructor(data) {
3523
3562
  super();
3524
3563
  proto3.util.initPartial(data, this);
@@ -3528,6 +3567,7 @@ export class GetOrganizationMembersResponse extends Message {
3528
3567
  static fields = proto3.util.newFieldList(() => [
3529
3568
  { no: 1, name: "response", kind: "message", T: Response },
3530
3569
  { no: 2, name: "members", kind: "message", T: OrgMember, repeated: true },
3570
+ { no: 3, name: "pendingInvitations", kind: "message", T: PendingOrgInvitation, repeated: true },
3531
3571
  ]);
3532
3572
  static fromBinary(bytes, options) {
3533
3573
  return new GetOrganizationMembersResponse().fromBinary(bytes, options);
@@ -3851,6 +3891,66 @@ export class DeleteAPIKeyResponse extends Message {
3851
3891
  return proto3.util.equals(DeleteAPIKeyResponse, a, b);
3852
3892
  }
3853
3893
  }
3894
+ /**
3895
+ * @generated from message wg.cosmo.platform.v1.RemoveOrganizationMemberRequest
3896
+ */
3897
+ export class RemoveOrganizationMemberRequest extends Message {
3898
+ /**
3899
+ * @generated from field: string email = 1;
3900
+ */
3901
+ email = "";
3902
+ constructor(data) {
3903
+ super();
3904
+ proto3.util.initPartial(data, this);
3905
+ }
3906
+ static runtime = proto3;
3907
+ static typeName = "wg.cosmo.platform.v1.RemoveOrganizationMemberRequest";
3908
+ static fields = proto3.util.newFieldList(() => [
3909
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3910
+ ]);
3911
+ static fromBinary(bytes, options) {
3912
+ return new RemoveOrganizationMemberRequest().fromBinary(bytes, options);
3913
+ }
3914
+ static fromJson(jsonValue, options) {
3915
+ return new RemoveOrganizationMemberRequest().fromJson(jsonValue, options);
3916
+ }
3917
+ static fromJsonString(jsonString, options) {
3918
+ return new RemoveOrganizationMemberRequest().fromJsonString(jsonString, options);
3919
+ }
3920
+ static equals(a, b) {
3921
+ return proto3.util.equals(RemoveOrganizationMemberRequest, a, b);
3922
+ }
3923
+ }
3924
+ /**
3925
+ * @generated from message wg.cosmo.platform.v1.RemoveOrganizationMemberResponse
3926
+ */
3927
+ export class RemoveOrganizationMemberResponse extends Message {
3928
+ /**
3929
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
3930
+ */
3931
+ response;
3932
+ constructor(data) {
3933
+ super();
3934
+ proto3.util.initPartial(data, this);
3935
+ }
3936
+ static runtime = proto3;
3937
+ static typeName = "wg.cosmo.platform.v1.RemoveOrganizationMemberResponse";
3938
+ static fields = proto3.util.newFieldList(() => [
3939
+ { no: 1, name: "response", kind: "message", T: Response },
3940
+ ]);
3941
+ static fromBinary(bytes, options) {
3942
+ return new RemoveOrganizationMemberResponse().fromBinary(bytes, options);
3943
+ }
3944
+ static fromJson(jsonValue, options) {
3945
+ return new RemoveOrganizationMemberResponse().fromJson(jsonValue, options);
3946
+ }
3947
+ static fromJsonString(jsonString, options) {
3948
+ return new RemoveOrganizationMemberResponse().fromJsonString(jsonString, options);
3949
+ }
3950
+ static equals(a, b) {
3951
+ return proto3.util.equals(RemoveOrganizationMemberResponse, a, b);
3952
+ }
3953
+ }
3854
3954
  /**
3855
3955
  * @generated from message wg.cosmo.platform.v1.RemoveInvitationRequest
3856
3956
  */
@@ -4445,6 +4545,41 @@ export class DeleteRouterTokenResponse extends Message {
4445
4545
  return proto3.util.equals(DeleteRouterTokenResponse, a, b);
4446
4546
  }
4447
4547
  }
4548
+ /**
4549
+ * @generated from message wg.cosmo.platform.v1.PersistedOperation
4550
+ */
4551
+ export class PersistedOperation extends Message {
4552
+ /**
4553
+ * @generated from field: string id = 1;
4554
+ */
4555
+ id = "";
4556
+ /**
4557
+ * @generated from field: string contents = 2;
4558
+ */
4559
+ contents = "";
4560
+ constructor(data) {
4561
+ super();
4562
+ proto3.util.initPartial(data, this);
4563
+ }
4564
+ static runtime = proto3;
4565
+ static typeName = "wg.cosmo.platform.v1.PersistedOperation";
4566
+ static fields = proto3.util.newFieldList(() => [
4567
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4568
+ { no: 2, name: "contents", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4569
+ ]);
4570
+ static fromBinary(bytes, options) {
4571
+ return new PersistedOperation().fromBinary(bytes, options);
4572
+ }
4573
+ static fromJson(jsonValue, options) {
4574
+ return new PersistedOperation().fromJson(jsonValue, options);
4575
+ }
4576
+ static fromJsonString(jsonString, options) {
4577
+ return new PersistedOperation().fromJsonString(jsonString, options);
4578
+ }
4579
+ static equals(a, b) {
4580
+ return proto3.util.equals(PersistedOperation, a, b);
4581
+ }
4582
+ }
4448
4583
  /**
4449
4584
  * @generated from message wg.cosmo.platform.v1.PublishPersistedOperationsRequest
4450
4585
  */
@@ -4458,7 +4593,7 @@ export class PublishPersistedOperationsRequest extends Message {
4458
4593
  */
4459
4594
  clientName = "";
4460
4595
  /**
4461
- * @generated from field: repeated string operations = 3;
4596
+ * @generated from field: repeated wg.cosmo.platform.v1.PersistedOperation operations = 3;
4462
4597
  */
4463
4598
  operations = [];
4464
4599
  constructor(data) {
@@ -4470,7 +4605,7 @@ export class PublishPersistedOperationsRequest extends Message {
4470
4605
  static fields = proto3.util.newFieldList(() => [
4471
4606
  { no: 1, name: "fedGraphName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4472
4607
  { no: 2, name: "clientName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4473
- { no: 3, name: "operations", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4608
+ { no: 3, name: "operations", kind: "message", T: PersistedOperation, repeated: true },
4474
4609
  ]);
4475
4610
  static fromBinary(bytes, options) {
4476
4611
  return new PublishPersistedOperationsRequest().fromBinary(bytes, options);
@@ -4490,11 +4625,15 @@ export class PublishPersistedOperationsRequest extends Message {
4490
4625
  */
4491
4626
  export class PublishedOperation extends Message {
4492
4627
  /**
4493
- * @generated from field: string hash = 1;
4628
+ * @generated from field: string id = 1;
4629
+ */
4630
+ id = "";
4631
+ /**
4632
+ * @generated from field: string hash = 2;
4494
4633
  */
4495
4634
  hash = "";
4496
4635
  /**
4497
- * @generated from field: wg.cosmo.platform.v1.PublishedOperationStatus status = 2;
4636
+ * @generated from field: wg.cosmo.platform.v1.PublishedOperationStatus status = 3;
4498
4637
  */
4499
4638
  status = PublishedOperationStatus.UP_TO_DATE;
4500
4639
  constructor(data) {
@@ -4504,8 +4643,9 @@ export class PublishedOperation extends Message {
4504
4643
  static runtime = proto3;
4505
4644
  static typeName = "wg.cosmo.platform.v1.PublishedOperation";
4506
4645
  static fields = proto3.util.newFieldList(() => [
4507
- { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4508
- { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(PublishedOperationStatus) },
4646
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4647
+ { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4648
+ { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(PublishedOperationStatus) },
4509
4649
  ]);
4510
4650
  static fromBinary(bytes, options) {
4511
4651
  return new PublishedOperation().fromBinary(bytes, options);
@@ -6488,6 +6628,180 @@ export class GetOrganizationRequestsCountResponse extends Message {
6488
6628
  return proto3.util.equals(GetOrganizationRequestsCountResponse, a, b);
6489
6629
  }
6490
6630
  }
6631
+ /**
6632
+ * @generated from message wg.cosmo.platform.v1.Organization
6633
+ */
6634
+ export class Organization extends Message {
6635
+ /**
6636
+ * @generated from field: string id = 1;
6637
+ */
6638
+ id = "";
6639
+ /**
6640
+ * @generated from field: string name = 2;
6641
+ */
6642
+ name = "";
6643
+ /**
6644
+ * @generated from field: string slug = 3;
6645
+ */
6646
+ slug = "";
6647
+ /**
6648
+ * @generated from field: string creatorUserId = 4;
6649
+ */
6650
+ creatorUserId = "";
6651
+ /**
6652
+ * @generated from field: string createdAt = 5;
6653
+ */
6654
+ createdAt = "";
6655
+ constructor(data) {
6656
+ super();
6657
+ proto3.util.initPartial(data, this);
6658
+ }
6659
+ static runtime = proto3;
6660
+ static typeName = "wg.cosmo.platform.v1.Organization";
6661
+ static fields = proto3.util.newFieldList(() => [
6662
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6663
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6664
+ { no: 3, name: "slug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6665
+ { no: 4, name: "creatorUserId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6666
+ { no: 5, name: "createdAt", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6667
+ ]);
6668
+ static fromBinary(bytes, options) {
6669
+ return new Organization().fromBinary(bytes, options);
6670
+ }
6671
+ static fromJson(jsonValue, options) {
6672
+ return new Organization().fromJson(jsonValue, options);
6673
+ }
6674
+ static fromJsonString(jsonString, options) {
6675
+ return new Organization().fromJsonString(jsonString, options);
6676
+ }
6677
+ static equals(a, b) {
6678
+ return proto3.util.equals(Organization, a, b);
6679
+ }
6680
+ }
6681
+ /**
6682
+ * @generated from message wg.cosmo.platform.v1.GetInvitationsRequest
6683
+ */
6684
+ export class GetInvitationsRequest extends Message {
6685
+ constructor(data) {
6686
+ super();
6687
+ proto3.util.initPartial(data, this);
6688
+ }
6689
+ static runtime = proto3;
6690
+ static typeName = "wg.cosmo.platform.v1.GetInvitationsRequest";
6691
+ static fields = proto3.util.newFieldList(() => []);
6692
+ static fromBinary(bytes, options) {
6693
+ return new GetInvitationsRequest().fromBinary(bytes, options);
6694
+ }
6695
+ static fromJson(jsonValue, options) {
6696
+ return new GetInvitationsRequest().fromJson(jsonValue, options);
6697
+ }
6698
+ static fromJsonString(jsonString, options) {
6699
+ return new GetInvitationsRequest().fromJsonString(jsonString, options);
6700
+ }
6701
+ static equals(a, b) {
6702
+ return proto3.util.equals(GetInvitationsRequest, a, b);
6703
+ }
6704
+ }
6705
+ /**
6706
+ * @generated from message wg.cosmo.platform.v1.GetInvitationsResponse
6707
+ */
6708
+ export class GetInvitationsResponse extends Message {
6709
+ /**
6710
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
6711
+ */
6712
+ response;
6713
+ /**
6714
+ * @generated from field: repeated wg.cosmo.platform.v1.Organization invitations = 2;
6715
+ */
6716
+ invitations = [];
6717
+ constructor(data) {
6718
+ super();
6719
+ proto3.util.initPartial(data, this);
6720
+ }
6721
+ static runtime = proto3;
6722
+ static typeName = "wg.cosmo.platform.v1.GetInvitationsResponse";
6723
+ static fields = proto3.util.newFieldList(() => [
6724
+ { no: 1, name: "response", kind: "message", T: Response },
6725
+ { no: 2, name: "invitations", kind: "message", T: Organization, repeated: true },
6726
+ ]);
6727
+ static fromBinary(bytes, options) {
6728
+ return new GetInvitationsResponse().fromBinary(bytes, options);
6729
+ }
6730
+ static fromJson(jsonValue, options) {
6731
+ return new GetInvitationsResponse().fromJson(jsonValue, options);
6732
+ }
6733
+ static fromJsonString(jsonString, options) {
6734
+ return new GetInvitationsResponse().fromJsonString(jsonString, options);
6735
+ }
6736
+ static equals(a, b) {
6737
+ return proto3.util.equals(GetInvitationsResponse, a, b);
6738
+ }
6739
+ }
6740
+ /**
6741
+ * @generated from message wg.cosmo.platform.v1.AcceptOrDeclineInvitationRequest
6742
+ */
6743
+ export class AcceptOrDeclineInvitationRequest extends Message {
6744
+ /**
6745
+ * @generated from field: string organizationId = 1;
6746
+ */
6747
+ organizationId = "";
6748
+ /**
6749
+ * @generated from field: bool accept = 2;
6750
+ */
6751
+ accept = false;
6752
+ constructor(data) {
6753
+ super();
6754
+ proto3.util.initPartial(data, this);
6755
+ }
6756
+ static runtime = proto3;
6757
+ static typeName = "wg.cosmo.platform.v1.AcceptOrDeclineInvitationRequest";
6758
+ static fields = proto3.util.newFieldList(() => [
6759
+ { no: 1, name: "organizationId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6760
+ { no: 2, name: "accept", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
6761
+ ]);
6762
+ static fromBinary(bytes, options) {
6763
+ return new AcceptOrDeclineInvitationRequest().fromBinary(bytes, options);
6764
+ }
6765
+ static fromJson(jsonValue, options) {
6766
+ return new AcceptOrDeclineInvitationRequest().fromJson(jsonValue, options);
6767
+ }
6768
+ static fromJsonString(jsonString, options) {
6769
+ return new AcceptOrDeclineInvitationRequest().fromJsonString(jsonString, options);
6770
+ }
6771
+ static equals(a, b) {
6772
+ return proto3.util.equals(AcceptOrDeclineInvitationRequest, a, b);
6773
+ }
6774
+ }
6775
+ /**
6776
+ * @generated from message wg.cosmo.platform.v1.AcceptOrDeclineInvitationResponse
6777
+ */
6778
+ export class AcceptOrDeclineInvitationResponse extends Message {
6779
+ /**
6780
+ * @generated from field: wg.cosmo.platform.v1.Response response = 1;
6781
+ */
6782
+ response;
6783
+ constructor(data) {
6784
+ super();
6785
+ proto3.util.initPartial(data, this);
6786
+ }
6787
+ static runtime = proto3;
6788
+ static typeName = "wg.cosmo.platform.v1.AcceptOrDeclineInvitationResponse";
6789
+ static fields = proto3.util.newFieldList(() => [
6790
+ { no: 1, name: "response", kind: "message", T: Response },
6791
+ ]);
6792
+ static fromBinary(bytes, options) {
6793
+ return new AcceptOrDeclineInvitationResponse().fromBinary(bytes, options);
6794
+ }
6795
+ static fromJson(jsonValue, options) {
6796
+ return new AcceptOrDeclineInvitationResponse().fromJson(jsonValue, options);
6797
+ }
6798
+ static fromJsonString(jsonString, options) {
6799
+ return new AcceptOrDeclineInvitationResponse().fromJsonString(jsonString, options);
6800
+ }
6801
+ static equals(a, b) {
6802
+ return proto3.util.equals(AcceptOrDeclineInvitationResponse, a, b);
6803
+ }
6804
+ }
6491
6805
  /**
6492
6806
  * @generated from message wg.cosmo.platform.v1.ClientInfo
6493
6807
  */