@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.
Files changed (27) 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 +124 -0
  10. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +128 -0
  11. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +100 -0
  12. package/dist/uniswap/platformservice/v1/sessionService_connect.js +104 -0
  13. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +379 -0
  14. package/dist/uniswap/platformservice/v1/sessionService_pb.js +550 -0
  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
  24. package/dist/uniswap/sessionservice/v1/sessionService_connect.d.ts +0 -65
  25. package/dist/uniswap/sessionservice/v1/sessionService_connect.js +0 -69
  26. package/dist/uniswap/sessionservice/v1/sessionService_pb.d.ts +0 -205
  27. package/dist/uniswap/sessionservice/v1/sessionService_pb.js +0 -328
@@ -116,9 +116,13 @@ export declare class CreateApiKeyRequest extends Message<CreateApiKeyRequest> {
116
116
  */
117
117
  export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse> {
118
118
  /**
119
- * @generated from field: string id = 3;
119
+ * @generated from field: string id = 1;
120
120
  */
121
121
  id: string;
122
+ /**
123
+ * @generated from field: string wrapped_id = 2;
124
+ */
125
+ wrappedId: string;
122
126
  constructor(data?: PartialMessage<CreateApiKeyResponse>);
123
127
  static readonly runtime: typeof proto3;
124
128
  static readonly typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
@@ -175,9 +175,13 @@ export class CreateApiKeyResponse extends Message {
175
175
  constructor(data) {
176
176
  super();
177
177
  /**
178
- * @generated from field: string id = 3;
178
+ * @generated from field: string id = 1;
179
179
  */
180
180
  this.id = "";
181
+ /**
182
+ * @generated from field: string wrapped_id = 2;
183
+ */
184
+ this.wrappedId = "";
181
185
  proto3.util.initPartial(data, this);
182
186
  }
183
187
  static fromBinary(bytes, options) {
@@ -196,7 +200,8 @@ export class CreateApiKeyResponse extends Message {
196
200
  CreateApiKeyResponse.runtime = proto3;
197
201
  CreateApiKeyResponse.typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
198
202
  CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
199
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
+ { no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
200
205
  ]);
201
206
  /**
202
207
  * @generated from message uniswap.platformservice.v1.ModificationData
@@ -0,0 +1,28 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
3
+ /**
4
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
5
+ */
6
+ export declare const upgradePersona: {
7
+ readonly localName: "upgradePersona";
8
+ readonly name: "UpgradePersona";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof UpgradePersonaRequest;
11
+ readonly O: typeof UpgradePersonaResponse;
12
+ readonly service: {
13
+ readonly typeName: "uniswap.platformservice.v1.PersonaService";
14
+ };
15
+ };
16
+ /**
17
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
18
+ */
19
+ export declare const getOrCreatePersona: {
20
+ readonly localName: "getOrCreatePersona";
21
+ readonly name: "GetOrCreatePersona";
22
+ readonly kind: MethodKind.Unary;
23
+ readonly I: typeof GetOrCreatePersonaRequest;
24
+ readonly O: typeof GetOrCreatePersonaResponse;
25
+ readonly service: {
26
+ readonly typeName: "uniswap.platformservice.v1.PersonaService";
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
7
+ /**
8
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
9
+ */
10
+ export const upgradePersona = {
11
+ localName: "upgradePersona",
12
+ name: "UpgradePersona",
13
+ kind: MethodKind.Unary,
14
+ I: UpgradePersonaRequest,
15
+ O: UpgradePersonaResponse,
16
+ service: {
17
+ typeName: "uniswap.platformservice.v1.PersonaService"
18
+ }
19
+ };
20
+ /**
21
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
22
+ */
23
+ export const getOrCreatePersona = {
24
+ localName: "getOrCreatePersona",
25
+ name: "GetOrCreatePersona",
26
+ kind: MethodKind.Unary,
27
+ I: GetOrCreatePersonaRequest,
28
+ O: GetOrCreatePersonaResponse,
29
+ service: {
30
+ typeName: "uniswap.platformservice.v1.PersonaService"
31
+ }
32
+ };
@@ -0,0 +1,28 @@
1
+ import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service uniswap.platformservice.v1.PersonaService
5
+ */
6
+ export declare const PersonaService: {
7
+ readonly typeName: "uniswap.platformservice.v1.PersonaService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
11
+ */
12
+ readonly upgradePersona: {
13
+ readonly name: "UpgradePersona";
14
+ readonly I: typeof UpgradePersonaRequest;
15
+ readonly O: typeof UpgradePersonaResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ /**
19
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
20
+ */
21
+ readonly getOrCreatePersona: {
22
+ readonly name: "GetOrCreatePersona";
23
+ readonly I: typeof GetOrCreatePersonaRequest;
24
+ readonly O: typeof GetOrCreatePersonaResponse;
25
+ readonly kind: MethodKind.Unary;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service uniswap.platformservice.v1.PersonaService
9
+ */
10
+ export const PersonaService = {
11
+ typeName: "uniswap.platformservice.v1.PersonaService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
15
+ */
16
+ upgradePersona: {
17
+ name: "UpgradePersona",
18
+ I: UpgradePersonaRequest,
19
+ O: UpgradePersonaResponse,
20
+ kind: MethodKind.Unary,
21
+ },
22
+ /**
23
+ * @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
24
+ */
25
+ getOrCreatePersona: {
26
+ name: "GetOrCreatePersona",
27
+ I: GetOrCreatePersonaRequest,
28
+ O: GetOrCreatePersonaResponse,
29
+ kind: MethodKind.Unary,
30
+ },
31
+ }
32
+ };
@@ -0,0 +1,95 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from message uniswap.platformservice.v1.GetOrCreatePersonaRequest
5
+ */
6
+ export declare class GetOrCreatePersonaRequest extends Message<GetOrCreatePersonaRequest> {
7
+ constructor(data?: PartialMessage<GetOrCreatePersonaRequest>);
8
+ static readonly runtime: typeof proto3;
9
+ static readonly typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
10
+ static readonly fields: FieldList;
11
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreatePersonaRequest;
12
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreatePersonaRequest;
13
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreatePersonaRequest;
14
+ static equals(a: GetOrCreatePersonaRequest | PlainMessage<GetOrCreatePersonaRequest> | undefined, b: GetOrCreatePersonaRequest | PlainMessage<GetOrCreatePersonaRequest> | undefined): boolean;
15
+ }
16
+ /**
17
+ * @generated from message uniswap.platformservice.v1.GetOrCreatePersonaResponse
18
+ */
19
+ export declare class GetOrCreatePersonaResponse extends Message<GetOrCreatePersonaResponse> {
20
+ /**
21
+ * @generated from field: uniswap.platformservice.v1.PersonaScore persona = 1;
22
+ */
23
+ persona?: PersonaScore;
24
+ constructor(data?: PartialMessage<GetOrCreatePersonaResponse>);
25
+ static readonly runtime: typeof proto3;
26
+ static readonly typeName = "uniswap.platformservice.v1.GetOrCreatePersonaResponse";
27
+ static readonly fields: FieldList;
28
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreatePersonaResponse;
29
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreatePersonaResponse;
30
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreatePersonaResponse;
31
+ static equals(a: GetOrCreatePersonaResponse | PlainMessage<GetOrCreatePersonaResponse> | undefined, b: GetOrCreatePersonaResponse | PlainMessage<GetOrCreatePersonaResponse> | undefined): boolean;
32
+ }
33
+ /**
34
+ * Request to update persona information
35
+ *
36
+ * @generated from message uniswap.platformservice.v1.UpgradePersonaRequest
37
+ */
38
+ export declare class UpgradePersonaRequest extends Message<UpgradePersonaRequest> {
39
+ /**
40
+ * Note: all other data should be in the header
41
+ *
42
+ * @generated from field: string persona_id = 1;
43
+ */
44
+ personaId: string;
45
+ /**
46
+ * @generated from field: string wallet_addr = 2;
47
+ */
48
+ walletAddr: string;
49
+ constructor(data?: PartialMessage<UpgradePersonaRequest>);
50
+ static readonly runtime: typeof proto3;
51
+ static readonly typeName = "uniswap.platformservice.v1.UpgradePersonaRequest";
52
+ static readonly fields: FieldList;
53
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpgradePersonaRequest;
54
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpgradePersonaRequest;
55
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpgradePersonaRequest;
56
+ static equals(a: UpgradePersonaRequest | PlainMessage<UpgradePersonaRequest> | undefined, b: UpgradePersonaRequest | PlainMessage<UpgradePersonaRequest> | undefined): boolean;
57
+ }
58
+ /**
59
+ * Response for persona update
60
+ *
61
+ * @generated from message uniswap.platformservice.v1.UpgradePersonaResponse
62
+ */
63
+ export declare class UpgradePersonaResponse extends Message<UpgradePersonaResponse> {
64
+ constructor(data?: PartialMessage<UpgradePersonaResponse>);
65
+ static readonly runtime: typeof proto3;
66
+ static readonly typeName = "uniswap.platformservice.v1.UpgradePersonaResponse";
67
+ static readonly fields: FieldList;
68
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpgradePersonaResponse;
69
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpgradePersonaResponse;
70
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpgradePersonaResponse;
71
+ static equals(a: UpgradePersonaResponse | PlainMessage<UpgradePersonaResponse> | undefined, b: UpgradePersonaResponse | PlainMessage<UpgradePersonaResponse> | undefined): boolean;
72
+ }
73
+ /**
74
+ * Represents a persona with its score
75
+ *
76
+ * @generated from message uniswap.platformservice.v1.PersonaScore
77
+ */
78
+ export declare class PersonaScore extends Message<PersonaScore> {
79
+ /**
80
+ * @generated from field: string persona_id = 1;
81
+ */
82
+ personaId: string;
83
+ /**
84
+ * @generated from field: int32 score = 2;
85
+ */
86
+ score: number;
87
+ constructor(data?: PartialMessage<PersonaScore>);
88
+ static readonly runtime: typeof proto3;
89
+ static readonly typeName = "uniswap.platformservice.v1.PersonaScore";
90
+ static readonly fields: FieldList;
91
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PersonaScore;
92
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PersonaScore;
93
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PersonaScore;
94
+ static equals(a: PersonaScore | PlainMessage<PersonaScore> | undefined, b: PersonaScore | PlainMessage<PersonaScore> | undefined): boolean;
95
+ }
@@ -0,0 +1,157 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from message uniswap.platformservice.v1.GetOrCreatePersonaRequest
8
+ */
9
+ export class GetOrCreatePersonaRequest extends Message {
10
+ constructor(data) {
11
+ super();
12
+ proto3.util.initPartial(data, this);
13
+ }
14
+ static fromBinary(bytes, options) {
15
+ return new GetOrCreatePersonaRequest().fromBinary(bytes, options);
16
+ }
17
+ static fromJson(jsonValue, options) {
18
+ return new GetOrCreatePersonaRequest().fromJson(jsonValue, options);
19
+ }
20
+ static fromJsonString(jsonString, options) {
21
+ return new GetOrCreatePersonaRequest().fromJsonString(jsonString, options);
22
+ }
23
+ static equals(a, b) {
24
+ return proto3.util.equals(GetOrCreatePersonaRequest, a, b);
25
+ }
26
+ }
27
+ GetOrCreatePersonaRequest.runtime = proto3;
28
+ GetOrCreatePersonaRequest.typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
29
+ GetOrCreatePersonaRequest.fields = proto3.util.newFieldList(() => []);
30
+ /**
31
+ * @generated from message uniswap.platformservice.v1.GetOrCreatePersonaResponse
32
+ */
33
+ export class GetOrCreatePersonaResponse extends Message {
34
+ constructor(data) {
35
+ super();
36
+ proto3.util.initPartial(data, this);
37
+ }
38
+ static fromBinary(bytes, options) {
39
+ return new GetOrCreatePersonaResponse().fromBinary(bytes, options);
40
+ }
41
+ static fromJson(jsonValue, options) {
42
+ return new GetOrCreatePersonaResponse().fromJson(jsonValue, options);
43
+ }
44
+ static fromJsonString(jsonString, options) {
45
+ return new GetOrCreatePersonaResponse().fromJsonString(jsonString, options);
46
+ }
47
+ static equals(a, b) {
48
+ return proto3.util.equals(GetOrCreatePersonaResponse, a, b);
49
+ }
50
+ }
51
+ GetOrCreatePersonaResponse.runtime = proto3;
52
+ GetOrCreatePersonaResponse.typeName = "uniswap.platformservice.v1.GetOrCreatePersonaResponse";
53
+ GetOrCreatePersonaResponse.fields = proto3.util.newFieldList(() => [
54
+ { no: 1, name: "persona", kind: "message", T: PersonaScore },
55
+ ]);
56
+ /**
57
+ * Request to update persona information
58
+ *
59
+ * @generated from message uniswap.platformservice.v1.UpgradePersonaRequest
60
+ */
61
+ export class UpgradePersonaRequest extends Message {
62
+ constructor(data) {
63
+ super();
64
+ /**
65
+ * Note: all other data should be in the header
66
+ *
67
+ * @generated from field: string persona_id = 1;
68
+ */
69
+ this.personaId = "";
70
+ /**
71
+ * @generated from field: string wallet_addr = 2;
72
+ */
73
+ this.walletAddr = "";
74
+ proto3.util.initPartial(data, this);
75
+ }
76
+ static fromBinary(bytes, options) {
77
+ return new UpgradePersonaRequest().fromBinary(bytes, options);
78
+ }
79
+ static fromJson(jsonValue, options) {
80
+ return new UpgradePersonaRequest().fromJson(jsonValue, options);
81
+ }
82
+ static fromJsonString(jsonString, options) {
83
+ return new UpgradePersonaRequest().fromJsonString(jsonString, options);
84
+ }
85
+ static equals(a, b) {
86
+ return proto3.util.equals(UpgradePersonaRequest, a, b);
87
+ }
88
+ }
89
+ UpgradePersonaRequest.runtime = proto3;
90
+ UpgradePersonaRequest.typeName = "uniswap.platformservice.v1.UpgradePersonaRequest";
91
+ UpgradePersonaRequest.fields = proto3.util.newFieldList(() => [
92
+ { no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
93
+ { no: 2, name: "wallet_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
94
+ ]);
95
+ /**
96
+ * Response for persona update
97
+ *
98
+ * @generated from message uniswap.platformservice.v1.UpgradePersonaResponse
99
+ */
100
+ export class UpgradePersonaResponse extends Message {
101
+ constructor(data) {
102
+ super();
103
+ proto3.util.initPartial(data, this);
104
+ }
105
+ static fromBinary(bytes, options) {
106
+ return new UpgradePersonaResponse().fromBinary(bytes, options);
107
+ }
108
+ static fromJson(jsonValue, options) {
109
+ return new UpgradePersonaResponse().fromJson(jsonValue, options);
110
+ }
111
+ static fromJsonString(jsonString, options) {
112
+ return new UpgradePersonaResponse().fromJsonString(jsonString, options);
113
+ }
114
+ static equals(a, b) {
115
+ return proto3.util.equals(UpgradePersonaResponse, a, b);
116
+ }
117
+ }
118
+ UpgradePersonaResponse.runtime = proto3;
119
+ UpgradePersonaResponse.typeName = "uniswap.platformservice.v1.UpgradePersonaResponse";
120
+ UpgradePersonaResponse.fields = proto3.util.newFieldList(() => []);
121
+ /**
122
+ * Represents a persona with its score
123
+ *
124
+ * @generated from message uniswap.platformservice.v1.PersonaScore
125
+ */
126
+ export class PersonaScore extends Message {
127
+ constructor(data) {
128
+ super();
129
+ /**
130
+ * @generated from field: string persona_id = 1;
131
+ */
132
+ this.personaId = "";
133
+ /**
134
+ * @generated from field: int32 score = 2;
135
+ */
136
+ this.score = 0;
137
+ proto3.util.initPartial(data, this);
138
+ }
139
+ static fromBinary(bytes, options) {
140
+ return new PersonaScore().fromBinary(bytes, options);
141
+ }
142
+ static fromJson(jsonValue, options) {
143
+ return new PersonaScore().fromJson(jsonValue, options);
144
+ }
145
+ static fromJsonString(jsonString, options) {
146
+ return new PersonaScore().fromJsonString(jsonString, options);
147
+ }
148
+ static equals(a, b) {
149
+ return proto3.util.equals(PersonaScore, a, b);
150
+ }
151
+ }
152
+ PersonaScore.runtime = proto3;
153
+ PersonaScore.typeName = "uniswap.platformservice.v1.PersonaScore";
154
+ PersonaScore.fields = proto3.util.newFieldList(() => [
155
+ { no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
+ { no: 2, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
157
+ ]);
@@ -0,0 +1,124 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
3
+ /**
4
+ * typically utilized by Entry Gateway for inspecting the validity of a session
5
+ *
6
+ * @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
7
+ */
8
+ export declare const introspectSession: {
9
+ readonly localName: "introspectSession";
10
+ readonly name: "IntrospectSession";
11
+ readonly kind: MethodKind.Unary;
12
+ readonly I: typeof IntrospectSessionRequest;
13
+ readonly O: typeof IntrospectSessionResponse;
14
+ readonly service: {
15
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
16
+ };
17
+ };
18
+ /**
19
+ * used by client for initializing a session
20
+ *
21
+ * @generated from rpc uniswap.platformservice.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.platformservice.v1.SessionService";
31
+ };
32
+ };
33
+ /**
34
+ * return a list of possible challenge types
35
+ *
36
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
37
+ */
38
+ export declare const getChallengeTypes: {
39
+ readonly localName: "getChallengeTypes";
40
+ readonly name: "GetChallengeTypes";
41
+ readonly kind: MethodKind.Unary;
42
+ readonly I: typeof GetChallengeTypesRequest;
43
+ readonly O: typeof GetChallengeTypesResponse;
44
+ readonly service: {
45
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
46
+ };
47
+ };
48
+ /**
49
+ * used by client to request a challenge
50
+ *
51
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
52
+ */
53
+ export declare const challenge: {
54
+ readonly localName: "challenge";
55
+ readonly name: "Challenge";
56
+ readonly kind: MethodKind.Unary;
57
+ readonly I: typeof ChallengeRequest;
58
+ readonly O: typeof ChallengeResponse;
59
+ readonly service: {
60
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
61
+ };
62
+ };
63
+ /**
64
+ * a universal method for all challenge types (auth and bot detection)
65
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
66
+ *
67
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
68
+ */
69
+ export declare const verify: {
70
+ readonly localName: "verify";
71
+ readonly name: "Verify";
72
+ readonly kind: MethodKind.Unary;
73
+ readonly I: typeof VerifyRequest;
74
+ readonly O: typeof VerifyResponse;
75
+ readonly service: {
76
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
77
+ };
78
+ };
79
+ /**
80
+ * delete a certain session. For example, on app uninstall
81
+ *
82
+ * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
83
+ */
84
+ export declare const deleteSession: {
85
+ readonly localName: "deleteSession";
86
+ readonly name: "DeleteSession";
87
+ readonly kind: MethodKind.Unary;
88
+ readonly I: typeof DeleteSessionRequest;
89
+ readonly O: typeof DeleteSessionResponse;
90
+ readonly service: {
91
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
92
+ };
93
+ };
94
+ /**
95
+ * Update request. We intend this to be generic.
96
+ *
97
+ * @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
98
+ */
99
+ export declare const updateSession: {
100
+ readonly localName: "updateSession";
101
+ readonly name: "UpdateSession";
102
+ readonly kind: MethodKind.Unary;
103
+ readonly I: typeof UpdateSessionRequest;
104
+ readonly O: typeof UpdateSessionResponse;
105
+ readonly service: {
106
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
107
+ };
108
+ };
109
+ /**
110
+ * 1. Sign out user and clear authenticated session,
111
+ * 2. Rotate with a brand new session
112
+ *
113
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
114
+ */
115
+ export declare const signout: {
116
+ readonly localName: "signout";
117
+ readonly name: "Signout";
118
+ readonly kind: MethodKind.Unary;
119
+ readonly I: typeof SignoutRequest;
120
+ readonly O: typeof SignoutResponse;
121
+ readonly service: {
122
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
123
+ };
124
+ };
@@ -0,0 +1,128 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
7
+ /**
8
+ * typically utilized by Entry Gateway for inspecting the validity of a session
9
+ *
10
+ * @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
11
+ */
12
+ export const introspectSession = {
13
+ localName: "introspectSession",
14
+ name: "IntrospectSession",
15
+ kind: MethodKind.Unary,
16
+ I: IntrospectSessionRequest,
17
+ O: IntrospectSessionResponse,
18
+ service: {
19
+ typeName: "uniswap.platformservice.v1.SessionService"
20
+ }
21
+ };
22
+ /**
23
+ * used by client for initializing a session
24
+ *
25
+ * @generated from rpc uniswap.platformservice.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.platformservice.v1.SessionService"
35
+ }
36
+ };
37
+ /**
38
+ * return a list of possible challenge types
39
+ *
40
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
41
+ */
42
+ export const getChallengeTypes = {
43
+ localName: "getChallengeTypes",
44
+ name: "GetChallengeTypes",
45
+ kind: MethodKind.Unary,
46
+ I: GetChallengeTypesRequest,
47
+ O: GetChallengeTypesResponse,
48
+ service: {
49
+ typeName: "uniswap.platformservice.v1.SessionService"
50
+ }
51
+ };
52
+ /**
53
+ * used by client to request a challenge
54
+ *
55
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
56
+ */
57
+ export const challenge = {
58
+ localName: "challenge",
59
+ name: "Challenge",
60
+ kind: MethodKind.Unary,
61
+ I: ChallengeRequest,
62
+ O: ChallengeResponse,
63
+ service: {
64
+ typeName: "uniswap.platformservice.v1.SessionService"
65
+ }
66
+ };
67
+ /**
68
+ * a universal method for all challenge types (auth and bot detection)
69
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
70
+ *
71
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
72
+ */
73
+ export const verify = {
74
+ localName: "verify",
75
+ name: "Verify",
76
+ kind: MethodKind.Unary,
77
+ I: VerifyRequest,
78
+ O: VerifyResponse,
79
+ service: {
80
+ typeName: "uniswap.platformservice.v1.SessionService"
81
+ }
82
+ };
83
+ /**
84
+ * delete a certain session. For example, on app uninstall
85
+ *
86
+ * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
87
+ */
88
+ export const deleteSession = {
89
+ localName: "deleteSession",
90
+ name: "DeleteSession",
91
+ kind: MethodKind.Unary,
92
+ I: DeleteSessionRequest,
93
+ O: DeleteSessionResponse,
94
+ service: {
95
+ typeName: "uniswap.platformservice.v1.SessionService"
96
+ }
97
+ };
98
+ /**
99
+ * Update request. We intend this to be generic.
100
+ *
101
+ * @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
102
+ */
103
+ export const updateSession = {
104
+ localName: "updateSession",
105
+ name: "UpdateSession",
106
+ kind: MethodKind.Unary,
107
+ I: UpdateSessionRequest,
108
+ O: UpdateSessionResponse,
109
+ service: {
110
+ typeName: "uniswap.platformservice.v1.SessionService"
111
+ }
112
+ };
113
+ /**
114
+ * 1. Sign out user and clear authenticated session,
115
+ * 2. Rotate with a brand new session
116
+ *
117
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
118
+ */
119
+ export const signout = {
120
+ localName: "signout",
121
+ name: "Signout",
122
+ kind: MethodKind.Unary,
123
+ I: SignoutRequest,
124
+ O: SignoutResponse,
125
+ service: {
126
+ typeName: "uniswap.platformservice.v1.SessionService"
127
+ }
128
+ };