@uniswap/client-platform-service 0.0.37 → 0.0.39
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/workerService-WorkerService_connectquery.d.ts +1 -14
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +1 -14
- package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +1 -10
- package/dist/uniswap/platformservice/v1/workerService_connect.js +1 -10
- package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +0 -88
- package/dist/uniswap/platformservice/v1/workerService_pb.js +0 -128
- 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,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response
|
|
2
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.WorkerService.UpdateLocationS3
|
|
5
5
|
*/
|
|
@@ -13,16 +13,3 @@ export declare const updateLocationS3: {
|
|
|
13
13
|
readonly typeName: "uniswap.platformservice.v1.WorkerService";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
18
|
-
*/
|
|
19
|
-
export declare const migrateExistingApikey: {
|
|
20
|
-
readonly localName: "migrateExistingApikey";
|
|
21
|
-
readonly name: "MigrateExistingApikey";
|
|
22
|
-
readonly kind: MethodKind.Unary;
|
|
23
|
-
readonly I: typeof MigrateExistingApikeyRequest;
|
|
24
|
-
readonly O: typeof MigrateExistingApikeyResponse;
|
|
25
|
-
readonly service: {
|
|
26
|
-
readonly typeName: "uniswap.platformservice.v1.WorkerService";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response
|
|
6
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.WorkerService.UpdateLocationS3
|
|
9
9
|
*/
|
|
@@ -17,16 +17,3 @@ export const updateLocationS3 = {
|
|
|
17
17
|
typeName: "uniswap.platformservice.v1.WorkerService"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
/**
|
|
21
|
-
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
22
|
-
*/
|
|
23
|
-
export const migrateExistingApikey = {
|
|
24
|
-
localName: "migrateExistingApikey",
|
|
25
|
-
name: "MigrateExistingApikey",
|
|
26
|
-
kind: MethodKind.Unary,
|
|
27
|
-
I: MigrateExistingApikeyRequest,
|
|
28
|
-
O: MigrateExistingApikeyResponse,
|
|
29
|
-
service: {
|
|
30
|
-
typeName: "uniswap.platformservice.v1.WorkerService"
|
|
31
|
-
}
|
|
32
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response
|
|
1
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Service definition
|
|
@@ -17,14 +17,5 @@ export declare const WorkerService: {
|
|
|
17
17
|
readonly O: typeof LocationUpdateS3Response;
|
|
18
18
|
readonly kind: MethodKind.Unary;
|
|
19
19
|
};
|
|
20
|
-
/**
|
|
21
|
-
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
22
|
-
*/
|
|
23
|
-
readonly migrateExistingApikey: {
|
|
24
|
-
readonly name: "MigrateExistingApikey";
|
|
25
|
-
readonly I: typeof MigrateExistingApikeyRequest;
|
|
26
|
-
readonly O: typeof MigrateExistingApikeyResponse;
|
|
27
|
-
readonly kind: MethodKind.Unary;
|
|
28
|
-
};
|
|
29
20
|
};
|
|
30
21
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/workerService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response
|
|
5
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* Service definition
|
|
@@ -21,14 +21,5 @@ export const WorkerService = {
|
|
|
21
21
|
O: LocationUpdateS3Response,
|
|
22
22
|
kind: MethodKind.Unary,
|
|
23
23
|
},
|
|
24
|
-
/**
|
|
25
|
-
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
26
|
-
*/
|
|
27
|
-
migrateExistingApikey: {
|
|
28
|
-
name: "MigrateExistingApikey",
|
|
29
|
-
I: MigrateExistingApikeyRequest,
|
|
30
|
-
O: MigrateExistingApikeyResponse,
|
|
31
|
-
kind: MethodKind.Unary,
|
|
32
|
-
},
|
|
33
24
|
}
|
|
34
25
|
};
|
|
@@ -28,91 +28,3 @@ export declare class LocationUpdateS3Response extends Message<LocationUpdateS3Re
|
|
|
28
28
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocationUpdateS3Response;
|
|
29
29
|
static equals(a: LocationUpdateS3Response | PlainMessage<LocationUpdateS3Response> | undefined, b: LocationUpdateS3Response | PlainMessage<LocationUpdateS3Response> | undefined): boolean;
|
|
30
30
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Rate limit configuration
|
|
33
|
-
*
|
|
34
|
-
* @generated from message uniswap.platformservice.v1.WorkerRateLimitConfig
|
|
35
|
-
*/
|
|
36
|
-
export declare class WorkerRateLimitConfig extends Message<WorkerRateLimitConfig> {
|
|
37
|
-
/**
|
|
38
|
-
* period_ms defines the time window in milliseconds for the rate limit
|
|
39
|
-
* For example: 60000 means a 1-minute window
|
|
40
|
-
* If you want to limit "X requests per minute", set this to 60000
|
|
41
|
-
*
|
|
42
|
-
* @generated from field: int32 period_ms = 1;
|
|
43
|
-
*/
|
|
44
|
-
periodMs: number;
|
|
45
|
-
/**
|
|
46
|
-
* units defines the number of requests allowed per time period
|
|
47
|
-
* For example: if period_ms=60000 and units=100, this means
|
|
48
|
-
* the user can make 100 requests every minute
|
|
49
|
-
*
|
|
50
|
-
* @generated from field: int32 units = 2;
|
|
51
|
-
*/
|
|
52
|
-
units: number;
|
|
53
|
-
/**
|
|
54
|
-
* capacity defines the maximum number of requests that can be made at once
|
|
55
|
-
* This acts as a hard limit on burst requests
|
|
56
|
-
* For example: if capacity=200, even if the user hasn't made requests for a while,
|
|
57
|
-
* they can't make more than 200 requests at once
|
|
58
|
-
*
|
|
59
|
-
* @generated from field: int32 capacity = 3;
|
|
60
|
-
*/
|
|
61
|
-
capacity: number;
|
|
62
|
-
constructor(data?: PartialMessage<WorkerRateLimitConfig>);
|
|
63
|
-
static readonly runtime: typeof proto3;
|
|
64
|
-
static readonly typeName = "uniswap.platformservice.v1.WorkerRateLimitConfig";
|
|
65
|
-
static readonly fields: FieldList;
|
|
66
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerRateLimitConfig;
|
|
67
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerRateLimitConfig;
|
|
68
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerRateLimitConfig;
|
|
69
|
-
static equals(a: WorkerRateLimitConfig | PlainMessage<WorkerRateLimitConfig> | undefined, b: WorkerRateLimitConfig | PlainMessage<WorkerRateLimitConfig> | undefined): boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Create API Key request/response
|
|
73
|
-
*
|
|
74
|
-
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyRequest
|
|
75
|
-
*/
|
|
76
|
-
export declare class MigrateExistingApikeyRequest extends Message<MigrateExistingApikeyRequest> {
|
|
77
|
-
/**
|
|
78
|
-
* @generated from field: string api_key = 1;
|
|
79
|
-
*/
|
|
80
|
-
apiKey: string;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: string name = 2;
|
|
83
|
-
*/
|
|
84
|
-
name: string;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from field: string creation_date = 3;
|
|
87
|
-
*/
|
|
88
|
-
creationDate: string;
|
|
89
|
-
/**
|
|
90
|
-
* @generated from field: uniswap.platformservice.v1.WorkerRateLimitConfig rate_limit_config = 4;
|
|
91
|
-
*/
|
|
92
|
-
rateLimitConfig?: WorkerRateLimitConfig;
|
|
93
|
-
constructor(data?: PartialMessage<MigrateExistingApikeyRequest>);
|
|
94
|
-
static readonly runtime: typeof proto3;
|
|
95
|
-
static readonly typeName = "uniswap.platformservice.v1.MigrateExistingApikeyRequest";
|
|
96
|
-
static readonly fields: FieldList;
|
|
97
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateExistingApikeyRequest;
|
|
98
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateExistingApikeyRequest;
|
|
99
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateExistingApikeyRequest;
|
|
100
|
-
static equals(a: MigrateExistingApikeyRequest | PlainMessage<MigrateExistingApikeyRequest> | undefined, b: MigrateExistingApikeyRequest | PlainMessage<MigrateExistingApikeyRequest> | undefined): boolean;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyResponse
|
|
104
|
-
*/
|
|
105
|
-
export declare class MigrateExistingApikeyResponse extends Message<MigrateExistingApikeyResponse> {
|
|
106
|
-
/**
|
|
107
|
-
* @generated from field: string hashed_api_key = 1;
|
|
108
|
-
*/
|
|
109
|
-
hashedApiKey: string;
|
|
110
|
-
constructor(data?: PartialMessage<MigrateExistingApikeyResponse>);
|
|
111
|
-
static readonly runtime: typeof proto3;
|
|
112
|
-
static readonly typeName = "uniswap.platformservice.v1.MigrateExistingApikeyResponse";
|
|
113
|
-
static readonly fields: FieldList;
|
|
114
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateExistingApikeyResponse;
|
|
115
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateExistingApikeyResponse;
|
|
116
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateExistingApikeyResponse;
|
|
117
|
-
static equals(a: MigrateExistingApikeyResponse | PlainMessage<MigrateExistingApikeyResponse> | undefined, b: MigrateExistingApikeyResponse | PlainMessage<MigrateExistingApikeyResponse> | undefined): boolean;
|
|
118
|
-
}
|
|
@@ -53,131 +53,3 @@ export class LocationUpdateS3Response extends Message {
|
|
|
53
53
|
LocationUpdateS3Response.runtime = proto3;
|
|
54
54
|
LocationUpdateS3Response.typeName = "uniswap.platformservice.v1.LocationUpdateS3Response";
|
|
55
55
|
LocationUpdateS3Response.fields = proto3.util.newFieldList(() => []);
|
|
56
|
-
/**
|
|
57
|
-
* Rate limit configuration
|
|
58
|
-
*
|
|
59
|
-
* @generated from message uniswap.platformservice.v1.WorkerRateLimitConfig
|
|
60
|
-
*/
|
|
61
|
-
export class WorkerRateLimitConfig extends Message {
|
|
62
|
-
constructor(data) {
|
|
63
|
-
super();
|
|
64
|
-
/**
|
|
65
|
-
* period_ms defines the time window in milliseconds for the rate limit
|
|
66
|
-
* For example: 60000 means a 1-minute window
|
|
67
|
-
* If you want to limit "X requests per minute", set this to 60000
|
|
68
|
-
*
|
|
69
|
-
* @generated from field: int32 period_ms = 1;
|
|
70
|
-
*/
|
|
71
|
-
this.periodMs = 0;
|
|
72
|
-
/**
|
|
73
|
-
* units defines the number of requests allowed per time period
|
|
74
|
-
* For example: if period_ms=60000 and units=100, this means
|
|
75
|
-
* the user can make 100 requests every minute
|
|
76
|
-
*
|
|
77
|
-
* @generated from field: int32 units = 2;
|
|
78
|
-
*/
|
|
79
|
-
this.units = 0;
|
|
80
|
-
/**
|
|
81
|
-
* capacity defines the maximum number of requests that can be made at once
|
|
82
|
-
* This acts as a hard limit on burst requests
|
|
83
|
-
* For example: if capacity=200, even if the user hasn't made requests for a while,
|
|
84
|
-
* they can't make more than 200 requests at once
|
|
85
|
-
*
|
|
86
|
-
* @generated from field: int32 capacity = 3;
|
|
87
|
-
*/
|
|
88
|
-
this.capacity = 0;
|
|
89
|
-
proto3.util.initPartial(data, this);
|
|
90
|
-
}
|
|
91
|
-
static fromBinary(bytes, options) {
|
|
92
|
-
return new WorkerRateLimitConfig().fromBinary(bytes, options);
|
|
93
|
-
}
|
|
94
|
-
static fromJson(jsonValue, options) {
|
|
95
|
-
return new WorkerRateLimitConfig().fromJson(jsonValue, options);
|
|
96
|
-
}
|
|
97
|
-
static fromJsonString(jsonString, options) {
|
|
98
|
-
return new WorkerRateLimitConfig().fromJsonString(jsonString, options);
|
|
99
|
-
}
|
|
100
|
-
static equals(a, b) {
|
|
101
|
-
return proto3.util.equals(WorkerRateLimitConfig, a, b);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
WorkerRateLimitConfig.runtime = proto3;
|
|
105
|
-
WorkerRateLimitConfig.typeName = "uniswap.platformservice.v1.WorkerRateLimitConfig";
|
|
106
|
-
WorkerRateLimitConfig.fields = proto3.util.newFieldList(() => [
|
|
107
|
-
{ no: 1, name: "period_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
108
|
-
{ no: 2, name: "units", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
109
|
-
{ no: 3, name: "capacity", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
110
|
-
]);
|
|
111
|
-
/**
|
|
112
|
-
* Create API Key request/response
|
|
113
|
-
*
|
|
114
|
-
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyRequest
|
|
115
|
-
*/
|
|
116
|
-
export class MigrateExistingApikeyRequest extends Message {
|
|
117
|
-
constructor(data) {
|
|
118
|
-
super();
|
|
119
|
-
/**
|
|
120
|
-
* @generated from field: string api_key = 1;
|
|
121
|
-
*/
|
|
122
|
-
this.apiKey = "";
|
|
123
|
-
/**
|
|
124
|
-
* @generated from field: string name = 2;
|
|
125
|
-
*/
|
|
126
|
-
this.name = "";
|
|
127
|
-
/**
|
|
128
|
-
* @generated from field: string creation_date = 3;
|
|
129
|
-
*/
|
|
130
|
-
this.creationDate = "";
|
|
131
|
-
proto3.util.initPartial(data, this);
|
|
132
|
-
}
|
|
133
|
-
static fromBinary(bytes, options) {
|
|
134
|
-
return new MigrateExistingApikeyRequest().fromBinary(bytes, options);
|
|
135
|
-
}
|
|
136
|
-
static fromJson(jsonValue, options) {
|
|
137
|
-
return new MigrateExistingApikeyRequest().fromJson(jsonValue, options);
|
|
138
|
-
}
|
|
139
|
-
static fromJsonString(jsonString, options) {
|
|
140
|
-
return new MigrateExistingApikeyRequest().fromJsonString(jsonString, options);
|
|
141
|
-
}
|
|
142
|
-
static equals(a, b) {
|
|
143
|
-
return proto3.util.equals(MigrateExistingApikeyRequest, a, b);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
MigrateExistingApikeyRequest.runtime = proto3;
|
|
147
|
-
MigrateExistingApikeyRequest.typeName = "uniswap.platformservice.v1.MigrateExistingApikeyRequest";
|
|
148
|
-
MigrateExistingApikeyRequest.fields = proto3.util.newFieldList(() => [
|
|
149
|
-
{ no: 1, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
150
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
151
|
-
{ no: 3, name: "creation_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
152
|
-
{ no: 4, name: "rate_limit_config", kind: "message", T: WorkerRateLimitConfig },
|
|
153
|
-
]);
|
|
154
|
-
/**
|
|
155
|
-
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyResponse
|
|
156
|
-
*/
|
|
157
|
-
export class MigrateExistingApikeyResponse extends Message {
|
|
158
|
-
constructor(data) {
|
|
159
|
-
super();
|
|
160
|
-
/**
|
|
161
|
-
* @generated from field: string hashed_api_key = 1;
|
|
162
|
-
*/
|
|
163
|
-
this.hashedApiKey = "";
|
|
164
|
-
proto3.util.initPartial(data, this);
|
|
165
|
-
}
|
|
166
|
-
static fromBinary(bytes, options) {
|
|
167
|
-
return new MigrateExistingApikeyResponse().fromBinary(bytes, options);
|
|
168
|
-
}
|
|
169
|
-
static fromJson(jsonValue, options) {
|
|
170
|
-
return new MigrateExistingApikeyResponse().fromJson(jsonValue, options);
|
|
171
|
-
}
|
|
172
|
-
static fromJsonString(jsonString, options) {
|
|
173
|
-
return new MigrateExistingApikeyResponse().fromJsonString(jsonString, options);
|
|
174
|
-
}
|
|
175
|
-
static equals(a, b) {
|
|
176
|
-
return proto3.util.equals(MigrateExistingApikeyResponse, a, b);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
MigrateExistingApikeyResponse.runtime = proto3;
|
|
180
|
-
MigrateExistingApikeyResponse.typeName = "uniswap.platformservice.v1.MigrateExistingApikeyResponse";
|
|
181
|
-
MigrateExistingApikeyResponse.fields = proto3.util.newFieldList(() => [
|
|
182
|
-
{ no: 1, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
183
|
-
]);
|