@uniswap/client-platform-service 0.0.5 → 0.0.6

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.
Files changed (23) hide show
  1. package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +5 -1
  2. package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -2
  3. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +28 -0
  4. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +32 -0
  5. package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +28 -0
  6. package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -0
  7. package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +95 -0
  8. package/dist/uniswap/platformservice/v1/personaService_pb.js +157 -0
  9. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +92 -0
  10. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +96 -0
  11. package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_connect.d.ts +27 -16
  12. package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_connect.js +28 -17
  13. package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_pb.d.ts +106 -50
  14. package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_pb.js +139 -57
  15. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.d.ts +14 -1
  16. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +14 -1
  17. package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +10 -1
  18. package/dist/uniswap/platformservice/v1/workerService_connect.js +10 -1
  19. package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +88 -0
  20. package/dist/uniswap/platformservice/v1/workerService_pb.js +128 -0
  21. package/package.json +1 -1
  22. package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.d.ts +0 -77
  23. package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.js +0 -81
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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
- };