@uniswap/client-platform-service 0.0.35 → 0.0.37

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.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
2
+ import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
5
5
  */
@@ -43,3 +43,20 @@ export declare const listSponsoredTransactionsByWallet: {
43
43
  readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
44
44
  };
45
45
  };
46
+ /**
47
+ * Partner-facing: should the partner's gas station sponsor this batch?
48
+ * REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
49
+ * All-or-nothing for the batch.
50
+ *
51
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
52
+ */
53
+ export declare const checkTransactionSponsorshipEligibility: {
54
+ readonly localName: "checkTransactionSponsorshipEligibility";
55
+ readonly name: "CheckTransactionSponsorshipEligibility";
56
+ readonly kind: MethodKind.Unary;
57
+ readonly I: typeof CheckTransactionSponsorshipEligibilityRequest;
58
+ readonly O: typeof CheckTransactionSponsorshipEligibilityResponse;
59
+ readonly service: {
60
+ readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
61
+ };
62
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
6
+ import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
9
9
  */
@@ -47,3 +47,20 @@ export const listSponsoredTransactionsByWallet = {
47
47
  typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
48
48
  }
49
49
  };
50
+ /**
51
+ * Partner-facing: should the partner's gas station sponsor this batch?
52
+ * REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
53
+ * All-or-nothing for the batch.
54
+ *
55
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
56
+ */
57
+ export const checkTransactionSponsorshipEligibility = {
58
+ localName: "checkTransactionSponsorshipEligibility",
59
+ name: "CheckTransactionSponsorshipEligibility",
60
+ kind: MethodKind.Unary,
61
+ I: CheckTransactionSponsorshipEligibilityRequest,
62
+ O: CheckTransactionSponsorshipEligibilityResponse,
63
+ service: {
64
+ typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
65
+ }
66
+ };
@@ -1,4 +1,4 @@
1
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
1
+ import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
@@ -37,5 +37,18 @@ export declare const GasFeeSponsorshipService: {
37
37
  readonly O: typeof ListSponsoredTransactionsByWalletResponse;
38
38
  readonly kind: MethodKind.Unary;
39
39
  };
40
+ /**
41
+ * Partner-facing: should the partner's gas station sponsor this batch?
42
+ * REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
43
+ * All-or-nothing for the batch.
44
+ *
45
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
46
+ */
47
+ readonly checkTransactionSponsorshipEligibility: {
48
+ readonly name: "CheckTransactionSponsorshipEligibility";
49
+ readonly I: typeof CheckTransactionSponsorshipEligibilityRequest;
50
+ readonly O: typeof CheckTransactionSponsorshipEligibilityResponse;
51
+ readonly kind: MethodKind.Unary;
52
+ };
40
53
  };
41
54
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
5
+ import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
@@ -41,5 +41,18 @@ export const GasFeeSponsorshipService = {
41
41
  O: ListSponsoredTransactionsByWalletResponse,
42
42
  kind: MethodKind.Unary,
43
43
  },
44
+ /**
45
+ * Partner-facing: should the partner's gas station sponsor this batch?
46
+ * REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
47
+ * All-or-nothing for the batch.
48
+ *
49
+ * @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
50
+ */
51
+ checkTransactionSponsorshipEligibility: {
52
+ name: "CheckTransactionSponsorshipEligibility",
53
+ I: CheckTransactionSponsorshipEligibilityRequest,
54
+ O: CheckTransactionSponsorshipEligibilityResponse,
55
+ kind: MethodKind.Unary,
56
+ },
44
57
  }
45
58
  };
@@ -671,3 +671,106 @@ export declare class PaymasterRpcError extends Message<PaymasterRpcError> {
671
671
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcError;
672
672
  static equals(a: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined, b: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined): boolean;
673
673
  }
674
+ /**
675
+ * One call intent in a partner eligibility batch (ERC-20 / Permit2 approve or a
676
+ * Universal Router swap). No `value`: the partner contract omits it.
677
+ *
678
+ * @generated from message uniswap.platformservice.v1.SponsorshipTransactionCall
679
+ */
680
+ export declare class SponsorshipTransactionCall extends Message<SponsorshipTransactionCall> {
681
+ /**
682
+ * @generated from field: string to = 1;
683
+ */
684
+ to: string;
685
+ /**
686
+ * @generated from field: string data = 2;
687
+ */
688
+ data: string;
689
+ constructor(data?: PartialMessage<SponsorshipTransactionCall>);
690
+ static readonly runtime: typeof proto3;
691
+ static readonly typeName = "uniswap.platformservice.v1.SponsorshipTransactionCall";
692
+ static readonly fields: FieldList;
693
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipTransactionCall;
694
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipTransactionCall;
695
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipTransactionCall;
696
+ static equals(a: SponsorshipTransactionCall | PlainMessage<SponsorshipTransactionCall> | undefined, b: SponsorshipTransactionCall | PlainMessage<SponsorshipTransactionCall> | undefined): boolean;
697
+ }
698
+ /**
699
+ * @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest
700
+ */
701
+ export declare class CheckTransactionSponsorshipEligibilityRequest extends Message<CheckTransactionSponsorshipEligibilityRequest> {
702
+ /**
703
+ * Decimal chain id string, per the partner contract (JSON: "chainId").
704
+ *
705
+ * @generated from field: string chain_id = 1;
706
+ */
707
+ chainId: string;
708
+ /**
709
+ * User account / decoded delegator the batch executes as.
710
+ *
711
+ * @generated from field: string wallet = 2;
712
+ */
713
+ wallet: string;
714
+ /**
715
+ * Ordered, non-empty call list (index 0 first), e.g. [approve, swap].
716
+ *
717
+ * @generated from field: repeated uniswap.platformservice.v1.SponsorshipTransactionCall transactions = 3;
718
+ */
719
+ transactions: SponsorshipTransactionCall[];
720
+ /**
721
+ * dApp origin when known (e.g. https://app.uniswap.org). Informational.
722
+ *
723
+ * @generated from field: string origin = 4;
724
+ */
725
+ origin: string;
726
+ /**
727
+ * Wallet client kind (extension, mobile). Informational.
728
+ *
729
+ * @generated from field: string client = 5;
730
+ */
731
+ client: string;
732
+ /**
733
+ * @generated from field: string client_version = 6;
734
+ */
735
+ clientVersion: string;
736
+ constructor(data?: PartialMessage<CheckTransactionSponsorshipEligibilityRequest>);
737
+ static readonly runtime: typeof proto3;
738
+ static readonly typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest";
739
+ static readonly fields: FieldList;
740
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
741
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
742
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
743
+ static equals(a: CheckTransactionSponsorshipEligibilityRequest | PlainMessage<CheckTransactionSponsorshipEligibilityRequest> | undefined, b: CheckTransactionSponsorshipEligibilityRequest | PlainMessage<CheckTransactionSponsorshipEligibilityRequest> | undefined): boolean;
744
+ }
745
+ /**
746
+ * @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse
747
+ */
748
+ export declare class CheckTransactionSponsorshipEligibilityResponse extends Message<CheckTransactionSponsorshipEligibilityResponse> {
749
+ /**
750
+ * true -> the partner may sponsor the entire batch.
751
+ *
752
+ * @generated from field: bool success = 1;
753
+ */
754
+ success: boolean;
755
+ /**
756
+ * Reason / diagnostics; the partner surfaces it in its sponsorship error.
757
+ *
758
+ * @generated from field: string message = 2;
759
+ */
760
+ message: string;
761
+ /**
762
+ * Stable id of this decision (the GasFeeSponsee row key), returned on
763
+ * denials too; the partner persists it for invoice reconciliation.
764
+ *
765
+ * @generated from field: string uuid = 3;
766
+ */
767
+ uuid: string;
768
+ constructor(data?: PartialMessage<CheckTransactionSponsorshipEligibilityResponse>);
769
+ static readonly runtime: typeof proto3;
770
+ static readonly typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse";
771
+ static readonly fields: FieldList;
772
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
773
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
774
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
775
+ static equals(a: CheckTransactionSponsorshipEligibilityResponse | PlainMessage<CheckTransactionSponsorshipEligibilityResponse> | undefined, b: CheckTransactionSponsorshipEligibilityResponse | PlainMessage<CheckTransactionSponsorshipEligibilityResponse> | undefined): boolean;
776
+ }
@@ -876,3 +876,153 @@ PaymasterRpcError.fields = proto3.util.newFieldList(() => [
876
876
  { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
877
877
  { no: 3, name: "data", kind: "message", T: Value },
878
878
  ]);
879
+ /**
880
+ * One call intent in a partner eligibility batch (ERC-20 / Permit2 approve or a
881
+ * Universal Router swap). No `value`: the partner contract omits it.
882
+ *
883
+ * @generated from message uniswap.platformservice.v1.SponsorshipTransactionCall
884
+ */
885
+ export class SponsorshipTransactionCall extends Message {
886
+ constructor(data) {
887
+ super();
888
+ /**
889
+ * @generated from field: string to = 1;
890
+ */
891
+ this.to = "";
892
+ /**
893
+ * @generated from field: string data = 2;
894
+ */
895
+ this.data = "";
896
+ proto3.util.initPartial(data, this);
897
+ }
898
+ static fromBinary(bytes, options) {
899
+ return new SponsorshipTransactionCall().fromBinary(bytes, options);
900
+ }
901
+ static fromJson(jsonValue, options) {
902
+ return new SponsorshipTransactionCall().fromJson(jsonValue, options);
903
+ }
904
+ static fromJsonString(jsonString, options) {
905
+ return new SponsorshipTransactionCall().fromJsonString(jsonString, options);
906
+ }
907
+ static equals(a, b) {
908
+ return proto3.util.equals(SponsorshipTransactionCall, a, b);
909
+ }
910
+ }
911
+ SponsorshipTransactionCall.runtime = proto3;
912
+ SponsorshipTransactionCall.typeName = "uniswap.platformservice.v1.SponsorshipTransactionCall";
913
+ SponsorshipTransactionCall.fields = proto3.util.newFieldList(() => [
914
+ { no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ { no: 2, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
916
+ ]);
917
+ /**
918
+ * @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest
919
+ */
920
+ export class CheckTransactionSponsorshipEligibilityRequest extends Message {
921
+ constructor(data) {
922
+ super();
923
+ /**
924
+ * Decimal chain id string, per the partner contract (JSON: "chainId").
925
+ *
926
+ * @generated from field: string chain_id = 1;
927
+ */
928
+ this.chainId = "";
929
+ /**
930
+ * User account / decoded delegator the batch executes as.
931
+ *
932
+ * @generated from field: string wallet = 2;
933
+ */
934
+ this.wallet = "";
935
+ /**
936
+ * Ordered, non-empty call list (index 0 first), e.g. [approve, swap].
937
+ *
938
+ * @generated from field: repeated uniswap.platformservice.v1.SponsorshipTransactionCall transactions = 3;
939
+ */
940
+ this.transactions = [];
941
+ /**
942
+ * dApp origin when known (e.g. https://app.uniswap.org). Informational.
943
+ *
944
+ * @generated from field: string origin = 4;
945
+ */
946
+ this.origin = "";
947
+ /**
948
+ * Wallet client kind (extension, mobile). Informational.
949
+ *
950
+ * @generated from field: string client = 5;
951
+ */
952
+ this.client = "";
953
+ /**
954
+ * @generated from field: string client_version = 6;
955
+ */
956
+ this.clientVersion = "";
957
+ proto3.util.initPartial(data, this);
958
+ }
959
+ static fromBinary(bytes, options) {
960
+ return new CheckTransactionSponsorshipEligibilityRequest().fromBinary(bytes, options);
961
+ }
962
+ static fromJson(jsonValue, options) {
963
+ return new CheckTransactionSponsorshipEligibilityRequest().fromJson(jsonValue, options);
964
+ }
965
+ static fromJsonString(jsonString, options) {
966
+ return new CheckTransactionSponsorshipEligibilityRequest().fromJsonString(jsonString, options);
967
+ }
968
+ static equals(a, b) {
969
+ return proto3.util.equals(CheckTransactionSponsorshipEligibilityRequest, a, b);
970
+ }
971
+ }
972
+ CheckTransactionSponsorshipEligibilityRequest.runtime = proto3;
973
+ CheckTransactionSponsorshipEligibilityRequest.typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest";
974
+ CheckTransactionSponsorshipEligibilityRequest.fields = proto3.util.newFieldList(() => [
975
+ { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
976
+ { no: 2, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
977
+ { no: 3, name: "transactions", kind: "message", T: SponsorshipTransactionCall, repeated: true },
978
+ { no: 4, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
979
+ { no: 5, name: "client", kind: "scalar", T: 9 /* ScalarType.STRING */ },
980
+ { no: 6, name: "client_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
981
+ ]);
982
+ /**
983
+ * @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse
984
+ */
985
+ export class CheckTransactionSponsorshipEligibilityResponse extends Message {
986
+ constructor(data) {
987
+ super();
988
+ /**
989
+ * true -> the partner may sponsor the entire batch.
990
+ *
991
+ * @generated from field: bool success = 1;
992
+ */
993
+ this.success = false;
994
+ /**
995
+ * Reason / diagnostics; the partner surfaces it in its sponsorship error.
996
+ *
997
+ * @generated from field: string message = 2;
998
+ */
999
+ this.message = "";
1000
+ /**
1001
+ * Stable id of this decision (the GasFeeSponsee row key), returned on
1002
+ * denials too; the partner persists it for invoice reconciliation.
1003
+ *
1004
+ * @generated from field: string uuid = 3;
1005
+ */
1006
+ this.uuid = "";
1007
+ proto3.util.initPartial(data, this);
1008
+ }
1009
+ static fromBinary(bytes, options) {
1010
+ return new CheckTransactionSponsorshipEligibilityResponse().fromBinary(bytes, options);
1011
+ }
1012
+ static fromJson(jsonValue, options) {
1013
+ return new CheckTransactionSponsorshipEligibilityResponse().fromJson(jsonValue, options);
1014
+ }
1015
+ static fromJsonString(jsonString, options) {
1016
+ return new CheckTransactionSponsorshipEligibilityResponse().fromJsonString(jsonString, options);
1017
+ }
1018
+ static equals(a, b) {
1019
+ return proto3.util.equals(CheckTransactionSponsorshipEligibilityResponse, a, b);
1020
+ }
1021
+ }
1022
+ CheckTransactionSponsorshipEligibilityResponse.runtime = proto3;
1023
+ CheckTransactionSponsorshipEligibilityResponse.typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse";
1024
+ CheckTransactionSponsorshipEligibilityResponse.fields = proto3.util.newFieldList(() => [
1025
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1026
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1027
+ { no: 3, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1028
+ ]);
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse } from "./organizationService_pb.js";
2
+ import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse } from "./organizationService_pb.js";
3
3
  /**
4
4
  * authed toward user through egw
5
5
  * User who created the org is admin
@@ -68,3 +68,18 @@ export declare const internalDeleteOrganization: {
68
68
  readonly typeName: "uniswap.platformservice.v1.OrganizationService";
69
69
  };
70
70
  };
71
+ /**
72
+ * Sets or clears the CX-verified label shown in place of the customer-supplied name.
73
+ *
74
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.InternalSetOrganizationCustomName
75
+ */
76
+ export declare const internalSetOrganizationCustomName: {
77
+ readonly localName: "internalSetOrganizationCustomName";
78
+ readonly name: "InternalSetOrganizationCustomName";
79
+ readonly kind: MethodKind.Unary;
80
+ readonly I: typeof InternalSetOrganizationCustomNameRequest;
81
+ readonly O: typeof InternalSetOrganizationCustomNameResponse;
82
+ readonly service: {
83
+ readonly typeName: "uniswap.platformservice.v1.OrganizationService";
84
+ };
85
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse } from "./organizationService_pb.js";
6
+ import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse } from "./organizationService_pb.js";
7
7
  /**
8
8
  * authed toward user through egw
9
9
  * User who created the org is admin
@@ -72,3 +72,18 @@ export const internalDeleteOrganization = {
72
72
  typeName: "uniswap.platformservice.v1.OrganizationService"
73
73
  }
74
74
  };
75
+ /**
76
+ * Sets or clears the CX-verified label shown in place of the customer-supplied name.
77
+ *
78
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.InternalSetOrganizationCustomName
79
+ */
80
+ export const internalSetOrganizationCustomName = {
81
+ localName: "internalSetOrganizationCustomName",
82
+ name: "InternalSetOrganizationCustomName",
83
+ kind: MethodKind.Unary,
84
+ I: InternalSetOrganizationCustomNameRequest,
85
+ O: InternalSetOrganizationCustomNameResponse,
86
+ service: {
87
+ typeName: "uniswap.platformservice.v1.OrganizationService"
88
+ }
89
+ };
@@ -1,4 +1,4 @@
1
- import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse } from "./organizationService_pb.js";
1
+ import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse } from "./organizationService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.platformservice.v1.OrganizationService
@@ -54,5 +54,16 @@ export declare const OrganizationService: {
54
54
  readonly O: typeof InternalDeleteOrganizationResponse;
55
55
  readonly kind: MethodKind.Unary;
56
56
  };
57
+ /**
58
+ * Sets or clears the CX-verified label shown in place of the customer-supplied name.
59
+ *
60
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.InternalSetOrganizationCustomName
61
+ */
62
+ readonly internalSetOrganizationCustomName: {
63
+ readonly name: "InternalSetOrganizationCustomName";
64
+ readonly I: typeof InternalSetOrganizationCustomNameRequest;
65
+ readonly O: typeof InternalSetOrganizationCustomNameResponse;
66
+ readonly kind: MethodKind.Unary;
67
+ };
57
68
  };
58
69
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/organizationService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse } from "./organizationService_pb.js";
5
+ import { CreateOrganizationRequest, CreateOrganizationResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse } from "./organizationService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.platformservice.v1.OrganizationService
@@ -58,5 +58,16 @@ export const OrganizationService = {
58
58
  O: InternalDeleteOrganizationResponse,
59
59
  kind: MethodKind.Unary,
60
60
  },
61
+ /**
62
+ * Sets or clears the CX-verified label shown in place of the customer-supplied name.
63
+ *
64
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.InternalSetOrganizationCustomName
65
+ */
66
+ internalSetOrganizationCustomName: {
67
+ name: "InternalSetOrganizationCustomName",
68
+ I: InternalSetOrganizationCustomNameRequest,
69
+ O: InternalSetOrganizationCustomNameResponse,
70
+ kind: MethodKind.Unary,
71
+ },
61
72
  }
62
73
  };
@@ -144,13 +144,14 @@ export declare class InternalListOrganizationsRequest extends Message<InternalLi
144
144
  */
145
145
  pageToken: string;
146
146
  /**
147
- * max items per page, default 100
147
+ * max items per page, default 100, at most 100
148
148
  *
149
149
  * @generated from field: int32 page_size = 2;
150
150
  */
151
151
  pageSize: number;
152
152
  /**
153
- * optional partial name match; mutually exclusive with org_id_filter
153
+ * optional; matches orgs whose name contains it (case-sensitive) or whose
154
+ * custom_name contains it (case-insensitive); mutually exclusive with org_id_filter
154
155
  *
155
156
  * @generated from field: string name_filter = 3;
156
157
  */
@@ -188,6 +189,12 @@ export declare class InternalOrganizationSummary extends Message<InternalOrganiz
188
189
  * @generated from field: string created_at = 3;
189
190
  */
190
191
  createdAt: string;
192
+ /**
193
+ * CX-verified label; empty = no label
194
+ *
195
+ * @generated from field: string custom_name = 4;
196
+ */
197
+ customName: string;
191
198
  constructor(data?: PartialMessage<InternalOrganizationSummary>);
192
199
  static readonly runtime: typeof proto3;
193
200
  static readonly typeName = "uniswap.platformservice.v1.InternalOrganizationSummary";
@@ -335,6 +342,12 @@ export declare class InternalGetOrganizationResponse extends Message<InternalGet
335
342
  * @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_keys = 5;
336
343
  */
337
344
  apiKeys: ApiKeyDataStruct[];
345
+ /**
346
+ * CX-verified label; empty = no label
347
+ *
348
+ * @generated from field: string custom_name = 6;
349
+ */
350
+ customName: string;
338
351
  constructor(data?: PartialMessage<InternalGetOrganizationResponse>);
339
352
  static readonly runtime: typeof proto3;
340
353
  static readonly typeName = "uniswap.platformservice.v1.InternalGetOrganizationResponse";
@@ -382,3 +395,44 @@ export declare class InternalDeleteOrganizationResponse extends Message<Internal
382
395
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalDeleteOrganizationResponse;
383
396
  static equals(a: InternalDeleteOrganizationResponse | PlainMessage<InternalDeleteOrganizationResponse> | undefined, b: InternalDeleteOrganizationResponse | PlainMessage<InternalDeleteOrganizationResponse> | undefined): boolean;
384
397
  }
398
+ /**
399
+ * @generated from message uniswap.platformservice.v1.InternalSetOrganizationCustomNameRequest
400
+ */
401
+ export declare class InternalSetOrganizationCustomNameRequest extends Message<InternalSetOrganizationCustomNameRequest> {
402
+ /**
403
+ * @generated from field: string org_id = 1;
404
+ */
405
+ orgId: string;
406
+ /**
407
+ * Validated like an org name (no control/invisible characters or emoji, NFC, whitespace collapsed, at most 100 characters); unique across orgs
408
+ * case-insensitively. Empty clears the label.
409
+ *
410
+ * @generated from field: string custom_name = 2;
411
+ */
412
+ customName: string;
413
+ constructor(data?: PartialMessage<InternalSetOrganizationCustomNameRequest>);
414
+ static readonly runtime: typeof proto3;
415
+ static readonly typeName = "uniswap.platformservice.v1.InternalSetOrganizationCustomNameRequest";
416
+ static readonly fields: FieldList;
417
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalSetOrganizationCustomNameRequest;
418
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalSetOrganizationCustomNameRequest;
419
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalSetOrganizationCustomNameRequest;
420
+ static equals(a: InternalSetOrganizationCustomNameRequest | PlainMessage<InternalSetOrganizationCustomNameRequest> | undefined, b: InternalSetOrganizationCustomNameRequest | PlainMessage<InternalSetOrganizationCustomNameRequest> | undefined): boolean;
421
+ }
422
+ /**
423
+ * @generated from message uniswap.platformservice.v1.InternalSetOrganizationCustomNameResponse
424
+ */
425
+ export declare class InternalSetOrganizationCustomNameResponse extends Message<InternalSetOrganizationCustomNameResponse> {
426
+ /**
427
+ * @generated from field: uniswap.platformservice.v1.InternalOrganizationSummary organization = 1;
428
+ */
429
+ organization?: InternalOrganizationSummary;
430
+ constructor(data?: PartialMessage<InternalSetOrganizationCustomNameResponse>);
431
+ static readonly runtime: typeof proto3;
432
+ static readonly typeName = "uniswap.platformservice.v1.InternalSetOrganizationCustomNameResponse";
433
+ static readonly fields: FieldList;
434
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalSetOrganizationCustomNameResponse;
435
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalSetOrganizationCustomNameResponse;
436
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalSetOrganizationCustomNameResponse;
437
+ static equals(a: InternalSetOrganizationCustomNameResponse | PlainMessage<InternalSetOrganizationCustomNameResponse> | undefined, b: InternalSetOrganizationCustomNameResponse | PlainMessage<InternalSetOrganizationCustomNameResponse> | undefined): boolean;
438
+ }
@@ -213,13 +213,14 @@ export class InternalListOrganizationsRequest extends Message {
213
213
  */
214
214
  this.pageToken = "";
215
215
  /**
216
- * max items per page, default 100
216
+ * max items per page, default 100, at most 100
217
217
  *
218
218
  * @generated from field: int32 page_size = 2;
219
219
  */
220
220
  this.pageSize = 0;
221
221
  /**
222
- * optional partial name match; mutually exclusive with org_id_filter
222
+ * optional; matches orgs whose name contains it (case-sensitive) or whose
223
+ * custom_name contains it (case-insensitive); mutually exclusive with org_id_filter
223
224
  *
224
225
  * @generated from field: string name_filter = 3;
225
226
  */
@@ -273,6 +274,12 @@ export class InternalOrganizationSummary extends Message {
273
274
  * @generated from field: string created_at = 3;
274
275
  */
275
276
  this.createdAt = "";
277
+ /**
278
+ * CX-verified label; empty = no label
279
+ *
280
+ * @generated from field: string custom_name = 4;
281
+ */
282
+ this.customName = "";
276
283
  proto3.util.initPartial(data, this);
277
284
  }
278
285
  static fromBinary(bytes, options) {
@@ -294,6 +301,7 @@ InternalOrganizationSummary.fields = proto3.util.newFieldList(() => [
294
301
  { no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
295
302
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
296
303
  { no: 3, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
304
+ { no: 4, name: "custom_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
305
  ]);
298
306
  /**
299
307
  * @generated from message uniswap.platformservice.v1.InternalListOrganizationsResponse
@@ -497,6 +505,12 @@ export class InternalGetOrganizationResponse extends Message {
497
505
  * @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_keys = 5;
498
506
  */
499
507
  this.apiKeys = [];
508
+ /**
509
+ * CX-verified label; empty = no label
510
+ *
511
+ * @generated from field: string custom_name = 6;
512
+ */
513
+ this.customName = "";
500
514
  proto3.util.initPartial(data, this);
501
515
  }
502
516
  static fromBinary(bytes, options) {
@@ -520,6 +534,7 @@ InternalGetOrganizationResponse.fields = proto3.util.newFieldList(() => [
520
534
  { no: 3, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
521
535
  { no: 4, name: "users", kind: "message", T: InternalOrgMember, repeated: true },
522
536
  { no: 5, name: "api_keys", kind: "message", T: ApiKeyDataStruct, repeated: true },
537
+ { no: 6, name: "custom_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
538
  ]);
524
539
  /**
525
540
  * @generated from message uniswap.platformservice.v1.InternalDeleteOrganizationRequest
@@ -586,3 +601,67 @@ InternalDeleteOrganizationResponse.fields = proto3.util.newFieldList(() => [
586
601
  { no: 1, name: "deleted_user_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
587
602
  { no: 2, name: "deleted_key_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
588
603
  ]);
604
+ /**
605
+ * @generated from message uniswap.platformservice.v1.InternalSetOrganizationCustomNameRequest
606
+ */
607
+ export class InternalSetOrganizationCustomNameRequest extends Message {
608
+ constructor(data) {
609
+ super();
610
+ /**
611
+ * @generated from field: string org_id = 1;
612
+ */
613
+ this.orgId = "";
614
+ /**
615
+ * Validated like an org name (no control/invisible characters or emoji, NFC, whitespace collapsed, at most 100 characters); unique across orgs
616
+ * case-insensitively. Empty clears the label.
617
+ *
618
+ * @generated from field: string custom_name = 2;
619
+ */
620
+ this.customName = "";
621
+ proto3.util.initPartial(data, this);
622
+ }
623
+ static fromBinary(bytes, options) {
624
+ return new InternalSetOrganizationCustomNameRequest().fromBinary(bytes, options);
625
+ }
626
+ static fromJson(jsonValue, options) {
627
+ return new InternalSetOrganizationCustomNameRequest().fromJson(jsonValue, options);
628
+ }
629
+ static fromJsonString(jsonString, options) {
630
+ return new InternalSetOrganizationCustomNameRequest().fromJsonString(jsonString, options);
631
+ }
632
+ static equals(a, b) {
633
+ return proto3.util.equals(InternalSetOrganizationCustomNameRequest, a, b);
634
+ }
635
+ }
636
+ InternalSetOrganizationCustomNameRequest.runtime = proto3;
637
+ InternalSetOrganizationCustomNameRequest.typeName = "uniswap.platformservice.v1.InternalSetOrganizationCustomNameRequest";
638
+ InternalSetOrganizationCustomNameRequest.fields = proto3.util.newFieldList(() => [
639
+ { no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
640
+ { no: 2, name: "custom_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
641
+ ]);
642
+ /**
643
+ * @generated from message uniswap.platformservice.v1.InternalSetOrganizationCustomNameResponse
644
+ */
645
+ export class InternalSetOrganizationCustomNameResponse extends Message {
646
+ constructor(data) {
647
+ super();
648
+ proto3.util.initPartial(data, this);
649
+ }
650
+ static fromBinary(bytes, options) {
651
+ return new InternalSetOrganizationCustomNameResponse().fromBinary(bytes, options);
652
+ }
653
+ static fromJson(jsonValue, options) {
654
+ return new InternalSetOrganizationCustomNameResponse().fromJson(jsonValue, options);
655
+ }
656
+ static fromJsonString(jsonString, options) {
657
+ return new InternalSetOrganizationCustomNameResponse().fromJsonString(jsonString, options);
658
+ }
659
+ static equals(a, b) {
660
+ return proto3.util.equals(InternalSetOrganizationCustomNameResponse, a, b);
661
+ }
662
+ }
663
+ InternalSetOrganizationCustomNameResponse.runtime = proto3;
664
+ InternalSetOrganizationCustomNameResponse.typeName = "uniswap.platformservice.v1.InternalSetOrganizationCustomNameResponse";
665
+ InternalSetOrganizationCustomNameResponse.fields = proto3.util.newFieldList(() => [
666
+ { no: 1, name: "organization", kind: "message", T: InternalOrganizationSummary },
667
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },