@uniswap/client-platform-service 0.0.5 → 0.0.7
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/apiKeyService_pb.d.ts +5 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -2
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +95 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +157 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +124 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +128 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +100 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +104 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +379 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +550 -0
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +14 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.js +10 -1
- package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +88 -0
- package/dist/uniswap/platformservice/v1/workerService_pb.js +128 -0
- package/package.json +1 -1
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.d.ts +0 -77
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.js +0 -81
- package/dist/uniswap/sessionservice/v1/sessionService_connect.d.ts +0 -65
- package/dist/uniswap/sessionservice/v1/sessionService_connect.js +0 -69
- package/dist/uniswap/sessionservice/v1/sessionService_pb.d.ts +0 -205
- package/dist/uniswap/sessionservice/v1/sessionService_pb.js +0 -328
|
@@ -28,3 +28,91 @@ 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,3 +53,131 @@ 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
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectRequest, IntrospectResponse, UpgradeSessionRequest, UpgradeSessionResponse } from "./sessionService_pb.js";
|
|
3
|
-
/**
|
|
4
|
-
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
5
|
-
*
|
|
6
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Introspect
|
|
7
|
-
*/
|
|
8
|
-
export declare const introspect: {
|
|
9
|
-
readonly localName: "introspect";
|
|
10
|
-
readonly name: "Introspect";
|
|
11
|
-
readonly kind: MethodKind.Unary;
|
|
12
|
-
readonly I: typeof IntrospectRequest;
|
|
13
|
-
readonly O: typeof IntrospectResponse;
|
|
14
|
-
readonly service: {
|
|
15
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* used by client for initializing a session
|
|
20
|
-
*
|
|
21
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.InitSession
|
|
22
|
-
*/
|
|
23
|
-
export declare const initSession: {
|
|
24
|
-
readonly localName: "initSession";
|
|
25
|
-
readonly name: "InitSession";
|
|
26
|
-
readonly kind: MethodKind.Unary;
|
|
27
|
-
readonly I: typeof InitSessionRequest;
|
|
28
|
-
readonly O: typeof InitSessionResponse;
|
|
29
|
-
readonly service: {
|
|
30
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* used by client to request a challenge
|
|
35
|
-
*
|
|
36
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Challenge
|
|
37
|
-
*/
|
|
38
|
-
export declare const challenge: {
|
|
39
|
-
readonly localName: "challenge";
|
|
40
|
-
readonly name: "Challenge";
|
|
41
|
-
readonly kind: MethodKind.Unary;
|
|
42
|
-
readonly I: typeof ChallengeRequest;
|
|
43
|
-
readonly O: typeof ChallengeResponse;
|
|
44
|
-
readonly service: {
|
|
45
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* a universal method for all types of bot detection mechanism
|
|
50
|
-
*
|
|
51
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.UpgradeSession
|
|
52
|
-
*/
|
|
53
|
-
export declare const upgradeSession: {
|
|
54
|
-
readonly localName: "upgradeSession";
|
|
55
|
-
readonly name: "UpgradeSession";
|
|
56
|
-
readonly kind: MethodKind.Unary;
|
|
57
|
-
readonly I: typeof UpgradeSessionRequest;
|
|
58
|
-
readonly O: typeof UpgradeSessionResponse;
|
|
59
|
-
readonly service: {
|
|
60
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* delete a certain session. For example, on app uninstall
|
|
65
|
-
*
|
|
66
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.DeleteSession
|
|
67
|
-
*/
|
|
68
|
-
export declare const deleteSession: {
|
|
69
|
-
readonly localName: "deleteSession";
|
|
70
|
-
readonly name: "DeleteSession";
|
|
71
|
-
readonly kind: MethodKind.Unary;
|
|
72
|
-
readonly I: typeof DeleteSessionRequest;
|
|
73
|
-
readonly O: typeof DeleteSessionResponse;
|
|
74
|
-
readonly service: {
|
|
75
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
-
// @generated from file uniswap/sessionservice/v1/sessionService.proto (package uniswap.sessionService.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectRequest, IntrospectResponse, UpgradeSessionRequest, UpgradeSessionResponse } from "./sessionService_pb.js";
|
|
7
|
-
/**
|
|
8
|
-
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
9
|
-
*
|
|
10
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Introspect
|
|
11
|
-
*/
|
|
12
|
-
export const introspect = {
|
|
13
|
-
localName: "introspect",
|
|
14
|
-
name: "Introspect",
|
|
15
|
-
kind: MethodKind.Unary,
|
|
16
|
-
I: IntrospectRequest,
|
|
17
|
-
O: IntrospectResponse,
|
|
18
|
-
service: {
|
|
19
|
-
typeName: "uniswap.sessionService.v1.SessionService"
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* used by client for initializing a session
|
|
24
|
-
*
|
|
25
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.InitSession
|
|
26
|
-
*/
|
|
27
|
-
export const initSession = {
|
|
28
|
-
localName: "initSession",
|
|
29
|
-
name: "InitSession",
|
|
30
|
-
kind: MethodKind.Unary,
|
|
31
|
-
I: InitSessionRequest,
|
|
32
|
-
O: InitSessionResponse,
|
|
33
|
-
service: {
|
|
34
|
-
typeName: "uniswap.sessionService.v1.SessionService"
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* used by client to request a challenge
|
|
39
|
-
*
|
|
40
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Challenge
|
|
41
|
-
*/
|
|
42
|
-
export const challenge = {
|
|
43
|
-
localName: "challenge",
|
|
44
|
-
name: "Challenge",
|
|
45
|
-
kind: MethodKind.Unary,
|
|
46
|
-
I: ChallengeRequest,
|
|
47
|
-
O: ChallengeResponse,
|
|
48
|
-
service: {
|
|
49
|
-
typeName: "uniswap.sessionService.v1.SessionService"
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* a universal method for all types of bot detection mechanism
|
|
54
|
-
*
|
|
55
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.UpgradeSession
|
|
56
|
-
*/
|
|
57
|
-
export const upgradeSession = {
|
|
58
|
-
localName: "upgradeSession",
|
|
59
|
-
name: "UpgradeSession",
|
|
60
|
-
kind: MethodKind.Unary,
|
|
61
|
-
I: UpgradeSessionRequest,
|
|
62
|
-
O: UpgradeSessionResponse,
|
|
63
|
-
service: {
|
|
64
|
-
typeName: "uniswap.sessionService.v1.SessionService"
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* delete a certain session. For example, on app uninstall
|
|
69
|
-
*
|
|
70
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.DeleteSession
|
|
71
|
-
*/
|
|
72
|
-
export const deleteSession = {
|
|
73
|
-
localName: "deleteSession",
|
|
74
|
-
name: "DeleteSession",
|
|
75
|
-
kind: MethodKind.Unary,
|
|
76
|
-
I: DeleteSessionRequest,
|
|
77
|
-
O: DeleteSessionResponse,
|
|
78
|
-
service: {
|
|
79
|
-
typeName: "uniswap.sessionService.v1.SessionService"
|
|
80
|
-
}
|
|
81
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectRequest, IntrospectResponse, UpgradeSessionRequest, UpgradeSessionResponse } from "./sessionService_pb.js";
|
|
2
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* @generated from service uniswap.sessionService.v1.SessionService
|
|
5
|
-
*/
|
|
6
|
-
export declare const SessionService: {
|
|
7
|
-
readonly typeName: "uniswap.sessionService.v1.SessionService";
|
|
8
|
-
readonly methods: {
|
|
9
|
-
/**
|
|
10
|
-
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
11
|
-
*
|
|
12
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Introspect
|
|
13
|
-
*/
|
|
14
|
-
readonly introspect: {
|
|
15
|
-
readonly name: "Introspect";
|
|
16
|
-
readonly I: typeof IntrospectRequest;
|
|
17
|
-
readonly O: typeof IntrospectResponse;
|
|
18
|
-
readonly kind: MethodKind.Unary;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* used by client for initializing a session
|
|
22
|
-
*
|
|
23
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.InitSession
|
|
24
|
-
*/
|
|
25
|
-
readonly initSession: {
|
|
26
|
-
readonly name: "InitSession";
|
|
27
|
-
readonly I: typeof InitSessionRequest;
|
|
28
|
-
readonly O: typeof InitSessionResponse;
|
|
29
|
-
readonly kind: MethodKind.Unary;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* used by client to request a challenge
|
|
33
|
-
*
|
|
34
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Challenge
|
|
35
|
-
*/
|
|
36
|
-
readonly challenge: {
|
|
37
|
-
readonly name: "Challenge";
|
|
38
|
-
readonly I: typeof ChallengeRequest;
|
|
39
|
-
readonly O: typeof ChallengeResponse;
|
|
40
|
-
readonly kind: MethodKind.Unary;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* a universal method for all types of bot detection mechanism
|
|
44
|
-
*
|
|
45
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.UpgradeSession
|
|
46
|
-
*/
|
|
47
|
-
readonly upgradeSession: {
|
|
48
|
-
readonly name: "UpgradeSession";
|
|
49
|
-
readonly I: typeof UpgradeSessionRequest;
|
|
50
|
-
readonly O: typeof UpgradeSessionResponse;
|
|
51
|
-
readonly kind: MethodKind.Unary;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* delete a certain session. For example, on app uninstall
|
|
55
|
-
*
|
|
56
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.DeleteSession
|
|
57
|
-
*/
|
|
58
|
-
readonly deleteSession: {
|
|
59
|
-
readonly name: "DeleteSession";
|
|
60
|
-
readonly I: typeof DeleteSessionRequest;
|
|
61
|
-
readonly O: typeof DeleteSessionResponse;
|
|
62
|
-
readonly kind: MethodKind.Unary;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file uniswap/sessionservice/v1/sessionService.proto (package uniswap.sessionService.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectRequest, IntrospectResponse, UpgradeSessionRequest, UpgradeSessionResponse } from "./sessionService_pb.js";
|
|
6
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
-
/**
|
|
8
|
-
* @generated from service uniswap.sessionService.v1.SessionService
|
|
9
|
-
*/
|
|
10
|
-
export const SessionService = {
|
|
11
|
-
typeName: "uniswap.sessionService.v1.SessionService",
|
|
12
|
-
methods: {
|
|
13
|
-
/**
|
|
14
|
-
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
15
|
-
*
|
|
16
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Introspect
|
|
17
|
-
*/
|
|
18
|
-
introspect: {
|
|
19
|
-
name: "Introspect",
|
|
20
|
-
I: IntrospectRequest,
|
|
21
|
-
O: IntrospectResponse,
|
|
22
|
-
kind: MethodKind.Unary,
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* used by client for initializing a session
|
|
26
|
-
*
|
|
27
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.InitSession
|
|
28
|
-
*/
|
|
29
|
-
initSession: {
|
|
30
|
-
name: "InitSession",
|
|
31
|
-
I: InitSessionRequest,
|
|
32
|
-
O: InitSessionResponse,
|
|
33
|
-
kind: MethodKind.Unary,
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* used by client to request a challenge
|
|
37
|
-
*
|
|
38
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.Challenge
|
|
39
|
-
*/
|
|
40
|
-
challenge: {
|
|
41
|
-
name: "Challenge",
|
|
42
|
-
I: ChallengeRequest,
|
|
43
|
-
O: ChallengeResponse,
|
|
44
|
-
kind: MethodKind.Unary,
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* a universal method for all types of bot detection mechanism
|
|
48
|
-
*
|
|
49
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.UpgradeSession
|
|
50
|
-
*/
|
|
51
|
-
upgradeSession: {
|
|
52
|
-
name: "UpgradeSession",
|
|
53
|
-
I: UpgradeSessionRequest,
|
|
54
|
-
O: UpgradeSessionResponse,
|
|
55
|
-
kind: MethodKind.Unary,
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* delete a certain session. For example, on app uninstall
|
|
59
|
-
*
|
|
60
|
-
* @generated from rpc uniswap.sessionService.v1.SessionService.DeleteSession
|
|
61
|
-
*/
|
|
62
|
-
deleteSession: {
|
|
63
|
-
name: "DeleteSession",
|
|
64
|
-
I: DeleteSessionRequest,
|
|
65
|
-
O: DeleteSessionResponse,
|
|
66
|
-
kind: MethodKind.Unary,
|
|
67
|
-
},
|
|
68
|
-
}
|
|
69
|
-
};
|