@uniswap/client-platform-service 0.0.38 → 0.0.40
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.
- package/dist/uniswap/platformservice/v1/conversion_v2_service-ConversionV2Service_connectquery.d.ts +19 -0
- package/dist/uniswap/platformservice/v1/conversion_v2_service-ConversionV2Service_connectquery.js +23 -0
- package/dist/uniswap/platformservice/v1/conversion_v2_service_connect.d.ts +33 -0
- package/dist/uniswap/platformservice/v1/conversion_v2_service_connect.js +37 -0
- package/dist/uniswap/platformservice/v1/conversion_v2_service_pb.d.ts +220 -0
- package/dist/uniswap/platformservice/v1/conversion_v2_service_pb.js +311 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +37 -0
- package/dist/uniswap/platformservice/v1/userService_pb.d.ts +14 -0
- package/dist/uniswap/platformservice/v1/userService_pb.js +3 -0
- package/package.json +1 -1
package/dist/uniswap/platformservice/v1/conversion_v2_service-ConversionV2Service_connectquery.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { TrackConversionRequest, TrackConversionResponse } from "./conversion_v2_service_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* Reports one product event to every vendor the client holds a click id
|
|
5
|
+
* for. Vendor outcomes are returned per vendor; the RPC itself only fails
|
|
6
|
+
* on invalid input or rate limiting.
|
|
7
|
+
*
|
|
8
|
+
* @generated from rpc uniswap.platformservice.v1.ConversionV2Service.TrackConversion
|
|
9
|
+
*/
|
|
10
|
+
export declare const trackConversion: {
|
|
11
|
+
readonly localName: "trackConversion";
|
|
12
|
+
readonly name: "TrackConversion";
|
|
13
|
+
readonly kind: MethodKind.Unary;
|
|
14
|
+
readonly I: typeof TrackConversionRequest;
|
|
15
|
+
readonly O: typeof TrackConversionResponse;
|
|
16
|
+
readonly service: {
|
|
17
|
+
readonly typeName: "uniswap.platformservice.v1.ConversionV2Service";
|
|
18
|
+
};
|
|
19
|
+
};
|
package/dist/uniswap/platformservice/v1/conversion_v2_service-ConversionV2Service_connectquery.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/conversion_v2_service.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { TrackConversionRequest, TrackConversionResponse } from "./conversion_v2_service_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Reports one product event to every vendor the client holds a click id
|
|
9
|
+
* for. Vendor outcomes are returned per vendor; the RPC itself only fails
|
|
10
|
+
* on invalid input or rate limiting.
|
|
11
|
+
*
|
|
12
|
+
* @generated from rpc uniswap.platformservice.v1.ConversionV2Service.TrackConversion
|
|
13
|
+
*/
|
|
14
|
+
export const trackConversion = {
|
|
15
|
+
localName: "trackConversion",
|
|
16
|
+
name: "TrackConversion",
|
|
17
|
+
kind: MethodKind.Unary,
|
|
18
|
+
I: TrackConversionRequest,
|
|
19
|
+
O: TrackConversionResponse,
|
|
20
|
+
service: {
|
|
21
|
+
typeName: "uniswap.platformservice.v1.ConversionV2Service"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TrackConversionRequest, TrackConversionResponse } from "./conversion_v2_service_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Conversion v2: backend-driven ad-conversion reporting.
|
|
5
|
+
*
|
|
6
|
+
* The client sends only what it knows: which wallet (hashed), which product
|
|
7
|
+
* event happened, on which platform, and the ad click ids it holds. The
|
|
8
|
+
* backend owns everything vendor-specific: destination URLs, event ids,
|
|
9
|
+
* request bodies, credentials, and the one-send-per-(identifier, vendor,
|
|
10
|
+
* event) rule. This replaces conversionproxy.v1.ConversionProxyService/Proxy,
|
|
11
|
+
* where the client built the vendor request and the backend proxied it. The
|
|
12
|
+
* v1 PublishAttributes (pltv) flow is retired, not replaced.
|
|
13
|
+
*
|
|
14
|
+
* @generated from service uniswap.platformservice.v1.ConversionV2Service
|
|
15
|
+
*/
|
|
16
|
+
export declare const ConversionV2Service: {
|
|
17
|
+
readonly typeName: "uniswap.platformservice.v1.ConversionV2Service";
|
|
18
|
+
readonly methods: {
|
|
19
|
+
/**
|
|
20
|
+
* Reports one product event to every vendor the client holds a click id
|
|
21
|
+
* for. Vendor outcomes are returned per vendor; the RPC itself only fails
|
|
22
|
+
* on invalid input or rate limiting.
|
|
23
|
+
*
|
|
24
|
+
* @generated from rpc uniswap.platformservice.v1.ConversionV2Service.TrackConversion
|
|
25
|
+
*/
|
|
26
|
+
readonly trackConversion: {
|
|
27
|
+
readonly name: "TrackConversion";
|
|
28
|
+
readonly I: typeof TrackConversionRequest;
|
|
29
|
+
readonly O: typeof TrackConversionResponse;
|
|
30
|
+
readonly kind: MethodKind.Unary;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/conversion_v2_service.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { TrackConversionRequest, TrackConversionResponse } from "./conversion_v2_service_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* Conversion v2: backend-driven ad-conversion reporting.
|
|
9
|
+
*
|
|
10
|
+
* The client sends only what it knows: which wallet (hashed), which product
|
|
11
|
+
* event happened, on which platform, and the ad click ids it holds. The
|
|
12
|
+
* backend owns everything vendor-specific: destination URLs, event ids,
|
|
13
|
+
* request bodies, credentials, and the one-send-per-(identifier, vendor,
|
|
14
|
+
* event) rule. This replaces conversionproxy.v1.ConversionProxyService/Proxy,
|
|
15
|
+
* where the client built the vendor request and the backend proxied it. The
|
|
16
|
+
* v1 PublishAttributes (pltv) flow is retired, not replaced.
|
|
17
|
+
*
|
|
18
|
+
* @generated from service uniswap.platformservice.v1.ConversionV2Service
|
|
19
|
+
*/
|
|
20
|
+
export const ConversionV2Service = {
|
|
21
|
+
typeName: "uniswap.platformservice.v1.ConversionV2Service",
|
|
22
|
+
methods: {
|
|
23
|
+
/**
|
|
24
|
+
* Reports one product event to every vendor the client holds a click id
|
|
25
|
+
* for. Vendor outcomes are returned per vendor; the RPC itself only fails
|
|
26
|
+
* on invalid input or rate limiting.
|
|
27
|
+
*
|
|
28
|
+
* @generated from rpc uniswap.platformservice.v1.ConversionV2Service.TrackConversion
|
|
29
|
+
*/
|
|
30
|
+
trackConversion: {
|
|
31
|
+
name: "TrackConversion",
|
|
32
|
+
I: TrackConversionRequest,
|
|
33
|
+
O: TrackConversionResponse,
|
|
34
|
+
kind: MethodKind.Unary,
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum uniswap.platformservice.v1.ConversionPlatform
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ConversionPlatform {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: CONVERSION_PLATFORM_UNSPECIFIED = 0;
|
|
9
|
+
*/
|
|
10
|
+
UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: CONVERSION_PLATFORM_WEB = 1;
|
|
13
|
+
*/
|
|
14
|
+
WEB = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: CONVERSION_PLATFORM_EXTENSION = 2;
|
|
17
|
+
*/
|
|
18
|
+
EXTENSION = 2,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: CONVERSION_PLATFORM_IOS = 3;
|
|
21
|
+
*/
|
|
22
|
+
IOS = 3,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: CONVERSION_PLATFORM_ANDROID = 4;
|
|
25
|
+
*/
|
|
26
|
+
ANDROID = 4
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum uniswap.platformservice.v1.ConversionEvent
|
|
30
|
+
*/
|
|
31
|
+
export declare enum ConversionEvent {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: CONVERSION_EVENT_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
UNSPECIFIED = 0,
|
|
36
|
+
/**
|
|
37
|
+
* Web only.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: CONVERSION_EVENT_WALLET_CONNECTED = 1;
|
|
40
|
+
*/
|
|
41
|
+
WALLET_CONNECTED = 1,
|
|
42
|
+
/**
|
|
43
|
+
* Web and extension.
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: CONVERSION_EVENT_WALLET_FUNDED = 2;
|
|
46
|
+
*/
|
|
47
|
+
WALLET_FUNDED = 2,
|
|
48
|
+
/**
|
|
49
|
+
* Extension only.
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: CONVERSION_EVENT_EXTENSION_DOWNLOADED = 3;
|
|
52
|
+
*/
|
|
53
|
+
EXTENSION_DOWNLOADED = 3
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum uniswap.platformservice.v1.ConversionVendor
|
|
57
|
+
*/
|
|
58
|
+
export declare enum ConversionVendor {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: CONVERSION_VENDOR_UNSPECIFIED = 0;
|
|
61
|
+
*/
|
|
62
|
+
UNSPECIFIED = 0,
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: CONVERSION_VENDOR_GOOGLE_ADS = 1;
|
|
65
|
+
*/
|
|
66
|
+
GOOGLE_ADS = 1,
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: CONVERSION_VENDOR_X_ADS = 2;
|
|
69
|
+
*/
|
|
70
|
+
X_ADS = 2,
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: CONVERSION_VENDOR_REDDIT_ADS = 3;
|
|
73
|
+
*/
|
|
74
|
+
REDDIT_ADS = 3
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @generated from enum uniswap.platformservice.v1.ConversionOutcome
|
|
78
|
+
*/
|
|
79
|
+
export declare enum ConversionOutcome {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: CONVERSION_OUTCOME_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
UNSPECIFIED = 0,
|
|
84
|
+
/**
|
|
85
|
+
* The vendor accepted the conversion.
|
|
86
|
+
*
|
|
87
|
+
* @generated from enum value: CONVERSION_OUTCOME_SENT = 1;
|
|
88
|
+
*/
|
|
89
|
+
SENT = 1,
|
|
90
|
+
/**
|
|
91
|
+
* This (identifier, vendor, event) was already sent; nothing was resent.
|
|
92
|
+
*
|
|
93
|
+
* @generated from enum value: CONVERSION_OUTCOME_ALREADY_SENT = 2;
|
|
94
|
+
*/
|
|
95
|
+
ALREADY_SENT = 2,
|
|
96
|
+
/**
|
|
97
|
+
* The vendor rejected the client-supplied data (for example an expired
|
|
98
|
+
* click id). Retrying with the same data will not help.
|
|
99
|
+
*
|
|
100
|
+
* @generated from enum value: CONVERSION_OUTCOME_REJECTED = 3;
|
|
101
|
+
*/
|
|
102
|
+
REJECTED = 3,
|
|
103
|
+
/**
|
|
104
|
+
* A failure on our side (credentials, network, unknown vendor error).
|
|
105
|
+
*
|
|
106
|
+
* @generated from enum value: CONVERSION_OUTCOME_FAILED = 4;
|
|
107
|
+
*/
|
|
108
|
+
FAILED = 4,
|
|
109
|
+
/**
|
|
110
|
+
* The vendor is switched off by configuration.
|
|
111
|
+
*
|
|
112
|
+
* @generated from enum value: CONVERSION_OUTCOME_DISABLED = 5;
|
|
113
|
+
*/
|
|
114
|
+
DISABLED = 5
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* An ad click identifier captured from the landing URL: gclid for Google Ads,
|
|
118
|
+
* twclid for X Ads, rdt_cid for Reddit Ads.
|
|
119
|
+
*
|
|
120
|
+
* @generated from message uniswap.platformservice.v1.ConversionClickId
|
|
121
|
+
*/
|
|
122
|
+
export declare class ConversionClickId extends Message<ConversionClickId> {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: uniswap.platformservice.v1.ConversionVendor vendor = 1;
|
|
125
|
+
*/
|
|
126
|
+
vendor: ConversionVendor;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: string id = 2;
|
|
129
|
+
*/
|
|
130
|
+
id: string;
|
|
131
|
+
constructor(data?: PartialMessage<ConversionClickId>);
|
|
132
|
+
static readonly runtime: typeof proto3;
|
|
133
|
+
static readonly typeName = "uniswap.platformservice.v1.ConversionClickId";
|
|
134
|
+
static readonly fields: FieldList;
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConversionClickId;
|
|
136
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConversionClickId;
|
|
137
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConversionClickId;
|
|
138
|
+
static equals(a: ConversionClickId | PlainMessage<ConversionClickId> | undefined, b: ConversionClickId | PlainMessage<ConversionClickId> | undefined): boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from message uniswap.platformservice.v1.TrackConversionRequest
|
|
142
|
+
*/
|
|
143
|
+
export declare class TrackConversionRequest extends Message<TrackConversionRequest> {
|
|
144
|
+
/**
|
|
145
|
+
* namehash of the wallet address, the same identifier v1 used.
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string identifier = 1;
|
|
148
|
+
*/
|
|
149
|
+
identifier: string;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: uniswap.platformservice.v1.ConversionPlatform platform = 2;
|
|
152
|
+
*/
|
|
153
|
+
platform: ConversionPlatform;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: uniswap.platformservice.v1.ConversionEvent event = 3;
|
|
156
|
+
*/
|
|
157
|
+
event: ConversionEvent;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: repeated uniswap.platformservice.v1.ConversionClickId click_ids = 4;
|
|
160
|
+
*/
|
|
161
|
+
clickIds: ConversionClickId[];
|
|
162
|
+
/**
|
|
163
|
+
* Defaults to the server time when omitted.
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: optional google.protobuf.Timestamp conversion_time = 5;
|
|
166
|
+
*/
|
|
167
|
+
conversionTime?: Timestamp;
|
|
168
|
+
constructor(data?: PartialMessage<TrackConversionRequest>);
|
|
169
|
+
static readonly runtime: typeof proto3;
|
|
170
|
+
static readonly typeName = "uniswap.platformservice.v1.TrackConversionRequest";
|
|
171
|
+
static readonly fields: FieldList;
|
|
172
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackConversionRequest;
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackConversionRequest;
|
|
174
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackConversionRequest;
|
|
175
|
+
static equals(a: TrackConversionRequest | PlainMessage<TrackConversionRequest> | undefined, b: TrackConversionRequest | PlainMessage<TrackConversionRequest> | undefined): boolean;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @generated from message uniswap.platformservice.v1.ConversionVendorResult
|
|
179
|
+
*/
|
|
180
|
+
export declare class ConversionVendorResult extends Message<ConversionVendorResult> {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: uniswap.platformservice.v1.ConversionVendor vendor = 1;
|
|
183
|
+
*/
|
|
184
|
+
vendor: ConversionVendor;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: uniswap.platformservice.v1.ConversionOutcome outcome = 2;
|
|
187
|
+
*/
|
|
188
|
+
outcome: ConversionOutcome;
|
|
189
|
+
/**
|
|
190
|
+
* Short human-readable reason; empty on SENT.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: string detail = 3;
|
|
193
|
+
*/
|
|
194
|
+
detail: string;
|
|
195
|
+
constructor(data?: PartialMessage<ConversionVendorResult>);
|
|
196
|
+
static readonly runtime: typeof proto3;
|
|
197
|
+
static readonly typeName = "uniswap.platformservice.v1.ConversionVendorResult";
|
|
198
|
+
static readonly fields: FieldList;
|
|
199
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConversionVendorResult;
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConversionVendorResult;
|
|
201
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConversionVendorResult;
|
|
202
|
+
static equals(a: ConversionVendorResult | PlainMessage<ConversionVendorResult> | undefined, b: ConversionVendorResult | PlainMessage<ConversionVendorResult> | undefined): boolean;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message uniswap.platformservice.v1.TrackConversionResponse
|
|
206
|
+
*/
|
|
207
|
+
export declare class TrackConversionResponse extends Message<TrackConversionResponse> {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated uniswap.platformservice.v1.ConversionVendorResult results = 1;
|
|
210
|
+
*/
|
|
211
|
+
results: ConversionVendorResult[];
|
|
212
|
+
constructor(data?: PartialMessage<TrackConversionResponse>);
|
|
213
|
+
static readonly runtime: typeof proto3;
|
|
214
|
+
static readonly typeName = "uniswap.platformservice.v1.TrackConversionResponse";
|
|
215
|
+
static readonly fields: FieldList;
|
|
216
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackConversionResponse;
|
|
217
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackConversionResponse;
|
|
218
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackConversionResponse;
|
|
219
|
+
static equals(a: TrackConversionResponse | PlainMessage<TrackConversionResponse> | undefined, b: TrackConversionResponse | PlainMessage<TrackConversionResponse> | undefined): boolean;
|
|
220
|
+
}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/conversion_v2_service.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum uniswap.platformservice.v1.ConversionPlatform
|
|
8
|
+
*/
|
|
9
|
+
export var ConversionPlatform;
|
|
10
|
+
(function (ConversionPlatform) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: CONVERSION_PLATFORM_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
ConversionPlatform[ConversionPlatform["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: CONVERSION_PLATFORM_WEB = 1;
|
|
17
|
+
*/
|
|
18
|
+
ConversionPlatform[ConversionPlatform["WEB"] = 1] = "WEB";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: CONVERSION_PLATFORM_EXTENSION = 2;
|
|
21
|
+
*/
|
|
22
|
+
ConversionPlatform[ConversionPlatform["EXTENSION"] = 2] = "EXTENSION";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: CONVERSION_PLATFORM_IOS = 3;
|
|
25
|
+
*/
|
|
26
|
+
ConversionPlatform[ConversionPlatform["IOS"] = 3] = "IOS";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: CONVERSION_PLATFORM_ANDROID = 4;
|
|
29
|
+
*/
|
|
30
|
+
ConversionPlatform[ConversionPlatform["ANDROID"] = 4] = "ANDROID";
|
|
31
|
+
})(ConversionPlatform || (ConversionPlatform = {}));
|
|
32
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConversionPlatform)
|
|
33
|
+
proto3.util.setEnumType(ConversionPlatform, "uniswap.platformservice.v1.ConversionPlatform", [
|
|
34
|
+
{ no: 0, name: "CONVERSION_PLATFORM_UNSPECIFIED" },
|
|
35
|
+
{ no: 1, name: "CONVERSION_PLATFORM_WEB" },
|
|
36
|
+
{ no: 2, name: "CONVERSION_PLATFORM_EXTENSION" },
|
|
37
|
+
{ no: 3, name: "CONVERSION_PLATFORM_IOS" },
|
|
38
|
+
{ no: 4, name: "CONVERSION_PLATFORM_ANDROID" },
|
|
39
|
+
]);
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum uniswap.platformservice.v1.ConversionEvent
|
|
42
|
+
*/
|
|
43
|
+
export var ConversionEvent;
|
|
44
|
+
(function (ConversionEvent) {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: CONVERSION_EVENT_UNSPECIFIED = 0;
|
|
47
|
+
*/
|
|
48
|
+
ConversionEvent[ConversionEvent["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
49
|
+
/**
|
|
50
|
+
* Web only.
|
|
51
|
+
*
|
|
52
|
+
* @generated from enum value: CONVERSION_EVENT_WALLET_CONNECTED = 1;
|
|
53
|
+
*/
|
|
54
|
+
ConversionEvent[ConversionEvent["WALLET_CONNECTED"] = 1] = "WALLET_CONNECTED";
|
|
55
|
+
/**
|
|
56
|
+
* Web and extension.
|
|
57
|
+
*
|
|
58
|
+
* @generated from enum value: CONVERSION_EVENT_WALLET_FUNDED = 2;
|
|
59
|
+
*/
|
|
60
|
+
ConversionEvent[ConversionEvent["WALLET_FUNDED"] = 2] = "WALLET_FUNDED";
|
|
61
|
+
/**
|
|
62
|
+
* Extension only.
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: CONVERSION_EVENT_EXTENSION_DOWNLOADED = 3;
|
|
65
|
+
*/
|
|
66
|
+
ConversionEvent[ConversionEvent["EXTENSION_DOWNLOADED"] = 3] = "EXTENSION_DOWNLOADED";
|
|
67
|
+
})(ConversionEvent || (ConversionEvent = {}));
|
|
68
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConversionEvent)
|
|
69
|
+
proto3.util.setEnumType(ConversionEvent, "uniswap.platformservice.v1.ConversionEvent", [
|
|
70
|
+
{ no: 0, name: "CONVERSION_EVENT_UNSPECIFIED" },
|
|
71
|
+
{ no: 1, name: "CONVERSION_EVENT_WALLET_CONNECTED" },
|
|
72
|
+
{ no: 2, name: "CONVERSION_EVENT_WALLET_FUNDED" },
|
|
73
|
+
{ no: 3, name: "CONVERSION_EVENT_EXTENSION_DOWNLOADED" },
|
|
74
|
+
]);
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum uniswap.platformservice.v1.ConversionVendor
|
|
77
|
+
*/
|
|
78
|
+
export var ConversionVendor;
|
|
79
|
+
(function (ConversionVendor) {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: CONVERSION_VENDOR_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
ConversionVendor[ConversionVendor["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: CONVERSION_VENDOR_GOOGLE_ADS = 1;
|
|
86
|
+
*/
|
|
87
|
+
ConversionVendor[ConversionVendor["GOOGLE_ADS"] = 1] = "GOOGLE_ADS";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: CONVERSION_VENDOR_X_ADS = 2;
|
|
90
|
+
*/
|
|
91
|
+
ConversionVendor[ConversionVendor["X_ADS"] = 2] = "X_ADS";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: CONVERSION_VENDOR_REDDIT_ADS = 3;
|
|
94
|
+
*/
|
|
95
|
+
ConversionVendor[ConversionVendor["REDDIT_ADS"] = 3] = "REDDIT_ADS";
|
|
96
|
+
})(ConversionVendor || (ConversionVendor = {}));
|
|
97
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConversionVendor)
|
|
98
|
+
proto3.util.setEnumType(ConversionVendor, "uniswap.platformservice.v1.ConversionVendor", [
|
|
99
|
+
{ no: 0, name: "CONVERSION_VENDOR_UNSPECIFIED" },
|
|
100
|
+
{ no: 1, name: "CONVERSION_VENDOR_GOOGLE_ADS" },
|
|
101
|
+
{ no: 2, name: "CONVERSION_VENDOR_X_ADS" },
|
|
102
|
+
{ no: 3, name: "CONVERSION_VENDOR_REDDIT_ADS" },
|
|
103
|
+
]);
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum uniswap.platformservice.v1.ConversionOutcome
|
|
106
|
+
*/
|
|
107
|
+
export var ConversionOutcome;
|
|
108
|
+
(function (ConversionOutcome) {
|
|
109
|
+
/**
|
|
110
|
+
* @generated from enum value: CONVERSION_OUTCOME_UNSPECIFIED = 0;
|
|
111
|
+
*/
|
|
112
|
+
ConversionOutcome[ConversionOutcome["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
113
|
+
/**
|
|
114
|
+
* The vendor accepted the conversion.
|
|
115
|
+
*
|
|
116
|
+
* @generated from enum value: CONVERSION_OUTCOME_SENT = 1;
|
|
117
|
+
*/
|
|
118
|
+
ConversionOutcome[ConversionOutcome["SENT"] = 1] = "SENT";
|
|
119
|
+
/**
|
|
120
|
+
* This (identifier, vendor, event) was already sent; nothing was resent.
|
|
121
|
+
*
|
|
122
|
+
* @generated from enum value: CONVERSION_OUTCOME_ALREADY_SENT = 2;
|
|
123
|
+
*/
|
|
124
|
+
ConversionOutcome[ConversionOutcome["ALREADY_SENT"] = 2] = "ALREADY_SENT";
|
|
125
|
+
/**
|
|
126
|
+
* The vendor rejected the client-supplied data (for example an expired
|
|
127
|
+
* click id). Retrying with the same data will not help.
|
|
128
|
+
*
|
|
129
|
+
* @generated from enum value: CONVERSION_OUTCOME_REJECTED = 3;
|
|
130
|
+
*/
|
|
131
|
+
ConversionOutcome[ConversionOutcome["REJECTED"] = 3] = "REJECTED";
|
|
132
|
+
/**
|
|
133
|
+
* A failure on our side (credentials, network, unknown vendor error).
|
|
134
|
+
*
|
|
135
|
+
* @generated from enum value: CONVERSION_OUTCOME_FAILED = 4;
|
|
136
|
+
*/
|
|
137
|
+
ConversionOutcome[ConversionOutcome["FAILED"] = 4] = "FAILED";
|
|
138
|
+
/**
|
|
139
|
+
* The vendor is switched off by configuration.
|
|
140
|
+
*
|
|
141
|
+
* @generated from enum value: CONVERSION_OUTCOME_DISABLED = 5;
|
|
142
|
+
*/
|
|
143
|
+
ConversionOutcome[ConversionOutcome["DISABLED"] = 5] = "DISABLED";
|
|
144
|
+
})(ConversionOutcome || (ConversionOutcome = {}));
|
|
145
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConversionOutcome)
|
|
146
|
+
proto3.util.setEnumType(ConversionOutcome, "uniswap.platformservice.v1.ConversionOutcome", [
|
|
147
|
+
{ no: 0, name: "CONVERSION_OUTCOME_UNSPECIFIED" },
|
|
148
|
+
{ no: 1, name: "CONVERSION_OUTCOME_SENT" },
|
|
149
|
+
{ no: 2, name: "CONVERSION_OUTCOME_ALREADY_SENT" },
|
|
150
|
+
{ no: 3, name: "CONVERSION_OUTCOME_REJECTED" },
|
|
151
|
+
{ no: 4, name: "CONVERSION_OUTCOME_FAILED" },
|
|
152
|
+
{ no: 5, name: "CONVERSION_OUTCOME_DISABLED" },
|
|
153
|
+
]);
|
|
154
|
+
/**
|
|
155
|
+
* An ad click identifier captured from the landing URL: gclid for Google Ads,
|
|
156
|
+
* twclid for X Ads, rdt_cid for Reddit Ads.
|
|
157
|
+
*
|
|
158
|
+
* @generated from message uniswap.platformservice.v1.ConversionClickId
|
|
159
|
+
*/
|
|
160
|
+
export class ConversionClickId extends Message {
|
|
161
|
+
constructor(data) {
|
|
162
|
+
super();
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: uniswap.platformservice.v1.ConversionVendor vendor = 1;
|
|
165
|
+
*/
|
|
166
|
+
this.vendor = ConversionVendor.UNSPECIFIED;
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string id = 2;
|
|
169
|
+
*/
|
|
170
|
+
this.id = "";
|
|
171
|
+
proto3.util.initPartial(data, this);
|
|
172
|
+
}
|
|
173
|
+
static fromBinary(bytes, options) {
|
|
174
|
+
return new ConversionClickId().fromBinary(bytes, options);
|
|
175
|
+
}
|
|
176
|
+
static fromJson(jsonValue, options) {
|
|
177
|
+
return new ConversionClickId().fromJson(jsonValue, options);
|
|
178
|
+
}
|
|
179
|
+
static fromJsonString(jsonString, options) {
|
|
180
|
+
return new ConversionClickId().fromJsonString(jsonString, options);
|
|
181
|
+
}
|
|
182
|
+
static equals(a, b) {
|
|
183
|
+
return proto3.util.equals(ConversionClickId, a, b);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
ConversionClickId.runtime = proto3;
|
|
187
|
+
ConversionClickId.typeName = "uniswap.platformservice.v1.ConversionClickId";
|
|
188
|
+
ConversionClickId.fields = proto3.util.newFieldList(() => [
|
|
189
|
+
{ no: 1, name: "vendor", kind: "enum", T: proto3.getEnumType(ConversionVendor) },
|
|
190
|
+
{ no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
191
|
+
]);
|
|
192
|
+
/**
|
|
193
|
+
* @generated from message uniswap.platformservice.v1.TrackConversionRequest
|
|
194
|
+
*/
|
|
195
|
+
export class TrackConversionRequest extends Message {
|
|
196
|
+
constructor(data) {
|
|
197
|
+
super();
|
|
198
|
+
/**
|
|
199
|
+
* namehash of the wallet address, the same identifier v1 used.
|
|
200
|
+
*
|
|
201
|
+
* @generated from field: string identifier = 1;
|
|
202
|
+
*/
|
|
203
|
+
this.identifier = "";
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: uniswap.platformservice.v1.ConversionPlatform platform = 2;
|
|
206
|
+
*/
|
|
207
|
+
this.platform = ConversionPlatform.UNSPECIFIED;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: uniswap.platformservice.v1.ConversionEvent event = 3;
|
|
210
|
+
*/
|
|
211
|
+
this.event = ConversionEvent.UNSPECIFIED;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: repeated uniswap.platformservice.v1.ConversionClickId click_ids = 4;
|
|
214
|
+
*/
|
|
215
|
+
this.clickIds = [];
|
|
216
|
+
proto3.util.initPartial(data, this);
|
|
217
|
+
}
|
|
218
|
+
static fromBinary(bytes, options) {
|
|
219
|
+
return new TrackConversionRequest().fromBinary(bytes, options);
|
|
220
|
+
}
|
|
221
|
+
static fromJson(jsonValue, options) {
|
|
222
|
+
return new TrackConversionRequest().fromJson(jsonValue, options);
|
|
223
|
+
}
|
|
224
|
+
static fromJsonString(jsonString, options) {
|
|
225
|
+
return new TrackConversionRequest().fromJsonString(jsonString, options);
|
|
226
|
+
}
|
|
227
|
+
static equals(a, b) {
|
|
228
|
+
return proto3.util.equals(TrackConversionRequest, a, b);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
TrackConversionRequest.runtime = proto3;
|
|
232
|
+
TrackConversionRequest.typeName = "uniswap.platformservice.v1.TrackConversionRequest";
|
|
233
|
+
TrackConversionRequest.fields = proto3.util.newFieldList(() => [
|
|
234
|
+
{ no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
235
|
+
{ no: 2, name: "platform", kind: "enum", T: proto3.getEnumType(ConversionPlatform) },
|
|
236
|
+
{ no: 3, name: "event", kind: "enum", T: proto3.getEnumType(ConversionEvent) },
|
|
237
|
+
{ no: 4, name: "click_ids", kind: "message", T: ConversionClickId, repeated: true },
|
|
238
|
+
{ no: 5, name: "conversion_time", kind: "message", T: Timestamp, opt: true },
|
|
239
|
+
]);
|
|
240
|
+
/**
|
|
241
|
+
* @generated from message uniswap.platformservice.v1.ConversionVendorResult
|
|
242
|
+
*/
|
|
243
|
+
export class ConversionVendorResult extends Message {
|
|
244
|
+
constructor(data) {
|
|
245
|
+
super();
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: uniswap.platformservice.v1.ConversionVendor vendor = 1;
|
|
248
|
+
*/
|
|
249
|
+
this.vendor = ConversionVendor.UNSPECIFIED;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: uniswap.platformservice.v1.ConversionOutcome outcome = 2;
|
|
252
|
+
*/
|
|
253
|
+
this.outcome = ConversionOutcome.UNSPECIFIED;
|
|
254
|
+
/**
|
|
255
|
+
* Short human-readable reason; empty on SENT.
|
|
256
|
+
*
|
|
257
|
+
* @generated from field: string detail = 3;
|
|
258
|
+
*/
|
|
259
|
+
this.detail = "";
|
|
260
|
+
proto3.util.initPartial(data, this);
|
|
261
|
+
}
|
|
262
|
+
static fromBinary(bytes, options) {
|
|
263
|
+
return new ConversionVendorResult().fromBinary(bytes, options);
|
|
264
|
+
}
|
|
265
|
+
static fromJson(jsonValue, options) {
|
|
266
|
+
return new ConversionVendorResult().fromJson(jsonValue, options);
|
|
267
|
+
}
|
|
268
|
+
static fromJsonString(jsonString, options) {
|
|
269
|
+
return new ConversionVendorResult().fromJsonString(jsonString, options);
|
|
270
|
+
}
|
|
271
|
+
static equals(a, b) {
|
|
272
|
+
return proto3.util.equals(ConversionVendorResult, a, b);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
ConversionVendorResult.runtime = proto3;
|
|
276
|
+
ConversionVendorResult.typeName = "uniswap.platformservice.v1.ConversionVendorResult";
|
|
277
|
+
ConversionVendorResult.fields = proto3.util.newFieldList(() => [
|
|
278
|
+
{ no: 1, name: "vendor", kind: "enum", T: proto3.getEnumType(ConversionVendor) },
|
|
279
|
+
{ no: 2, name: "outcome", kind: "enum", T: proto3.getEnumType(ConversionOutcome) },
|
|
280
|
+
{ no: 3, name: "detail", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
281
|
+
]);
|
|
282
|
+
/**
|
|
283
|
+
* @generated from message uniswap.platformservice.v1.TrackConversionResponse
|
|
284
|
+
*/
|
|
285
|
+
export class TrackConversionResponse extends Message {
|
|
286
|
+
constructor(data) {
|
|
287
|
+
super();
|
|
288
|
+
/**
|
|
289
|
+
* @generated from field: repeated uniswap.platformservice.v1.ConversionVendorResult results = 1;
|
|
290
|
+
*/
|
|
291
|
+
this.results = [];
|
|
292
|
+
proto3.util.initPartial(data, this);
|
|
293
|
+
}
|
|
294
|
+
static fromBinary(bytes, options) {
|
|
295
|
+
return new TrackConversionResponse().fromBinary(bytes, options);
|
|
296
|
+
}
|
|
297
|
+
static fromJson(jsonValue, options) {
|
|
298
|
+
return new TrackConversionResponse().fromJson(jsonValue, options);
|
|
299
|
+
}
|
|
300
|
+
static fromJsonString(jsonString, options) {
|
|
301
|
+
return new TrackConversionResponse().fromJsonString(jsonString, options);
|
|
302
|
+
}
|
|
303
|
+
static equals(a, b) {
|
|
304
|
+
return proto3.util.equals(TrackConversionResponse, a, b);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
TrackConversionResponse.runtime = proto3;
|
|
308
|
+
TrackConversionResponse.typeName = "uniswap.platformservice.v1.TrackConversionResponse";
|
|
309
|
+
TrackConversionResponse.fields = proto3.util.newFieldList(() => [
|
|
310
|
+
{ no: 1, name: "results", kind: "message", T: ConversionVendorResult, repeated: true },
|
|
311
|
+
]);
|
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Role of a member within their organization. OWNER is the founding user: a
|
|
6
|
+
* super-admin other admins cannot remove or demote.
|
|
7
|
+
*
|
|
8
|
+
* @generated from enum uniswap.platformservice.v1.OrgRole
|
|
9
|
+
*/
|
|
10
|
+
export declare enum OrgRole {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
UNSPECIFIED = 0,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
17
|
+
*/
|
|
18
|
+
OWNER = 1,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
21
|
+
*/
|
|
22
|
+
ADMIN = 2,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ORG_ROLE_EDITOR = 3;
|
|
25
|
+
*/
|
|
26
|
+
EDITOR = 3,
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: ORG_ROLE_VIEWER = 4;
|
|
29
|
+
*/
|
|
30
|
+
VIEWER = 4
|
|
31
|
+
}
|
|
4
32
|
/**
|
|
5
33
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
6
34
|
*/
|
|
@@ -4,6 +4,43 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Role of a member within their organization. OWNER is the founding user: a
|
|
9
|
+
* super-admin other admins cannot remove or demote.
|
|
10
|
+
*
|
|
11
|
+
* @generated from enum uniswap.platformservice.v1.OrgRole
|
|
12
|
+
*/
|
|
13
|
+
export var OrgRole;
|
|
14
|
+
(function (OrgRole) {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
17
|
+
*/
|
|
18
|
+
OrgRole[OrgRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
21
|
+
*/
|
|
22
|
+
OrgRole[OrgRole["OWNER"] = 1] = "OWNER";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
25
|
+
*/
|
|
26
|
+
OrgRole[OrgRole["ADMIN"] = 2] = "ADMIN";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: ORG_ROLE_EDITOR = 3;
|
|
29
|
+
*/
|
|
30
|
+
OrgRole[OrgRole["EDITOR"] = 3] = "EDITOR";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: ORG_ROLE_VIEWER = 4;
|
|
33
|
+
*/
|
|
34
|
+
OrgRole[OrgRole["VIEWER"] = 4] = "VIEWER";
|
|
35
|
+
})(OrgRole || (OrgRole = {}));
|
|
36
|
+
// Retrieve enum metadata with: proto3.getEnumType(OrgRole)
|
|
37
|
+
proto3.util.setEnumType(OrgRole, "uniswap.platformservice.v1.OrgRole", [
|
|
38
|
+
{ no: 0, name: "ORG_ROLE_UNSPECIFIED" },
|
|
39
|
+
{ no: 1, name: "ORG_ROLE_OWNER" },
|
|
40
|
+
{ no: 2, name: "ORG_ROLE_ADMIN" },
|
|
41
|
+
{ no: 3, name: "ORG_ROLE_EDITOR" },
|
|
42
|
+
{ no: 4, name: "ORG_ROLE_VIEWER" },
|
|
43
|
+
]);
|
|
7
44
|
/**
|
|
8
45
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
9
46
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { OrgRole } from "./organizationService_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
5
6
|
*/
|
|
@@ -198,6 +199,12 @@ export declare class User extends Message<User> {
|
|
|
198
199
|
* @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 5;
|
|
199
200
|
*/
|
|
200
201
|
agreements: Agreement[];
|
|
202
|
+
/**
|
|
203
|
+
* Role within the organization; absent when the user has no org.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional uniswap.platformservice.v1.OrgRole role = 6;
|
|
206
|
+
*/
|
|
207
|
+
role?: OrgRole;
|
|
201
208
|
constructor(data?: PartialMessage<User>);
|
|
202
209
|
static readonly runtime: typeof proto3;
|
|
203
210
|
static readonly typeName = "uniswap.platformservice.v1.User";
|
|
@@ -356,6 +363,13 @@ export declare class InternalModifyUserRequest extends Message<InternalModifyUse
|
|
|
356
363
|
* @generated from field: optional string org_id = 1;
|
|
357
364
|
*/
|
|
358
365
|
orgId?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Role stored with the membership; set alongside org_id (the org creator
|
|
368
|
+
* becomes OWNER). Absent leaves the stored role untouched.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: optional uniswap.platformservice.v1.OrgRole role = 2;
|
|
371
|
+
*/
|
|
372
|
+
role?: OrgRole;
|
|
359
373
|
constructor(data?: PartialMessage<InternalModifyUserRequest>);
|
|
360
374
|
static readonly runtime: typeof proto3;
|
|
361
375
|
static readonly typeName = "uniswap.platformservice.v1.InternalModifyUserRequest";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { OrgRole } from "./organizationService_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
8
9
|
*/
|
|
@@ -297,6 +298,7 @@ User.fields = proto3.util.newFieldList(() => [
|
|
|
297
298
|
{ no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
298
299
|
{ no: 4, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
299
300
|
{ no: 5, name: "agreements", kind: "message", T: Agreement, repeated: true },
|
|
301
|
+
{ no: 6, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole), opt: true },
|
|
300
302
|
]);
|
|
301
303
|
/**
|
|
302
304
|
* Response for get user
|
|
@@ -531,6 +533,7 @@ InternalModifyUserRequest.runtime = proto3;
|
|
|
531
533
|
InternalModifyUserRequest.typeName = "uniswap.platformservice.v1.InternalModifyUserRequest";
|
|
532
534
|
InternalModifyUserRequest.fields = proto3.util.newFieldList(() => [
|
|
533
535
|
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
536
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole), opt: true },
|
|
534
537
|
]);
|
|
535
538
|
/**
|
|
536
539
|
* @generated from message uniswap.platformservice.v1.InternalModifyUserResponse
|