@etherean/etherean-grpc
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -7,2 +7,3 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript | ||
import type { DailyLoginResponse } from "./referral_miniapp.js"; | ||
import type { ConfirmVerifiableCredentialRequest } from "./referral_miniapp.js"; | ||
import type { MeResponse } from "./referral_miniapp.js"; | ||
@@ -13,2 +14,3 @@ import type { MeRequest } from "./referral_miniapp.js"; | ||
import type { TaskPostRequest } from "./referral_miniapp.js"; | ||
import type { TasksByPlatformRequest } from "./referral_miniapp.js"; | ||
import type { TasksResponse } from "./referral_miniapp.js"; | ||
@@ -40,2 +42,4 @@ import type { FriendsResponse } from "./referral_miniapp.js"; | ||
/** | ||
* DEPERCATED | ||
* | ||
* @generated from protobuf rpc: Tasks(etherean.type.UserId) returns (etherean.referral_miniapp.TasksResponse); | ||
@@ -45,2 +49,6 @@ */ | ||
/** | ||
* @generated from protobuf rpc: TasksByPlatform(etherean.referral_miniapp.TasksByPlatformRequest) returns (etherean.referral_miniapp.TasksResponse); | ||
*/ | ||
tasksByPlatform(input: TasksByPlatformRequest, options?: RpcOptions): UnaryCall<TasksByPlatformRequest, TasksResponse>; | ||
/** | ||
* @generated from protobuf rpc: TaskStart(etherean.referral_miniapp.TaskPostRequest) returns (etherean.referral_miniapp.Task); | ||
@@ -66,2 +74,9 @@ */ | ||
/** | ||
* Use this method to change the status of verifiable credential task | ||
* from NOT_STARTED to STARTED. It wouldn't return error if already confirmed | ||
* | ||
* @generated from protobuf rpc: ConfirmVerifiableCredential(etherean.referral_miniapp.ConfirmVerifiableCredentialRequest) returns (google.protobuf.Empty); | ||
*/ | ||
confirmVerifiableCredential(input: ConfirmVerifiableCredentialRequest, options?: RpcOptions): UnaryCall<ConfirmVerifiableCredentialRequest, Empty>; | ||
/** | ||
* this method will be used for daily login reward | ||
@@ -95,2 +110,4 @@ * | ||
/** | ||
* DEPERCATED | ||
* | ||
* @generated from protobuf rpc: Tasks(etherean.type.UserId) returns (etherean.referral_miniapp.TasksResponse); | ||
@@ -100,2 +117,6 @@ */ | ||
/** | ||
* @generated from protobuf rpc: TasksByPlatform(etherean.referral_miniapp.TasksByPlatformRequest) returns (etherean.referral_miniapp.TasksResponse); | ||
*/ | ||
tasksByPlatform(input: TasksByPlatformRequest, options?: RpcOptions): UnaryCall<TasksByPlatformRequest, TasksResponse>; | ||
/** | ||
* @generated from protobuf rpc: TaskStart(etherean.referral_miniapp.TaskPostRequest) returns (etherean.referral_miniapp.Task); | ||
@@ -121,2 +142,9 @@ */ | ||
/** | ||
* Use this method to change the status of verifiable credential task | ||
* from NOT_STARTED to STARTED. It wouldn't return error if already confirmed | ||
* | ||
* @generated from protobuf rpc: ConfirmVerifiableCredential(etherean.referral_miniapp.ConfirmVerifiableCredentialRequest) returns (google.protobuf.Empty); | ||
*/ | ||
confirmVerifiableCredential(input: ConfirmVerifiableCredentialRequest, options?: RpcOptions): UnaryCall<ConfirmVerifiableCredentialRequest, Empty>; | ||
/** | ||
* this method will be used for daily login reward | ||
@@ -123,0 +151,0 @@ * |
@@ -38,2 +38,4 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript | ||
/** | ||
* DEPERCATED | ||
* | ||
* @generated from protobuf rpc: Tasks(etherean.type.UserId) returns (etherean.referral_miniapp.TasksResponse); | ||
@@ -46,6 +48,13 @@ */ | ||
/** | ||
* @generated from protobuf rpc: TasksByPlatform(etherean.referral_miniapp.TasksByPlatformRequest) returns (etherean.referral_miniapp.TasksResponse); | ||
*/ | ||
tasksByPlatform(input, options) { | ||
const method = this.methods[4], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
} | ||
/** | ||
* @generated from protobuf rpc: TaskStart(etherean.referral_miniapp.TaskPostRequest) returns (etherean.referral_miniapp.Task); | ||
*/ | ||
taskStart(input, options) { | ||
const method = this.methods[4], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[5], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
@@ -57,3 +66,3 @@ } | ||
taskClaim(input, options) { | ||
const method = this.methods[5], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[6], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
@@ -65,3 +74,3 @@ } | ||
startOrRestartFarming(input, options) { | ||
const method = this.methods[6], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[7], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
@@ -73,3 +82,3 @@ } | ||
me(input, options) { | ||
const method = this.methods[7], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[8], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
@@ -81,6 +90,16 @@ } | ||
setSeenOnboarding(input, options) { | ||
const method = this.methods[8], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[9], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
} | ||
/** | ||
* Use this method to change the status of verifiable credential task | ||
* from NOT_STARTED to STARTED. It wouldn't return error if already confirmed | ||
* | ||
* @generated from protobuf rpc: ConfirmVerifiableCredential(etherean.referral_miniapp.ConfirmVerifiableCredentialRequest) returns (google.protobuf.Empty); | ||
*/ | ||
confirmVerifiableCredential(input, options) { | ||
const method = this.methods[10], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
} | ||
/** | ||
* this method will be used for daily login reward | ||
@@ -91,5 +110,5 @@ * | ||
dailyLogin(input, options) { | ||
const method = this.methods[9], opt = this._transport.mergeOptions(options); | ||
const method = this.methods[11], opt = this._transport.mergeOptions(options); | ||
return stackIntercept("unary", this._transport, method, opt, input); | ||
} | ||
} |
@@ -6,2 +6,3 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript | ||
import { Timestamp } from "./google/protobuf/timestamp.js"; | ||
import { Decimal } from "./decimal.js"; | ||
import { XName } from "./x.js"; | ||
@@ -13,6 +14,32 @@ import { Username } from "./username.js"; | ||
import { TgNickname } from "./tg_nickname.js"; | ||
import { DailyReward } from "./daily_reward.js"; | ||
import { Platforms } from "./platforms.js"; | ||
import { UserId } from "./client_id.js"; | ||
import { DailyReward } from "./daily_reward.js"; | ||
import { Decimal } from "./decimal.js"; | ||
/** | ||
* @generated from protobuf message etherean.referral_miniapp.ConfirmVerifiableCredentialRequest | ||
*/ | ||
export interface ConfirmVerifiableCredentialRequest { | ||
/** | ||
* @generated from protobuf field: etherean.type.UserId user_id = 1; | ||
*/ | ||
userId?: UserId; | ||
/** | ||
* @generated from protobuf field: string task_id = 2; | ||
*/ | ||
taskId: string; | ||
} | ||
/** | ||
* @generated from protobuf message etherean.referral_miniapp.TasksByPlatformRequest | ||
*/ | ||
export interface TasksByPlatformRequest { | ||
/** | ||
* @generated from protobuf field: etherean.type.UserId user_id = 1; | ||
*/ | ||
userId?: UserId; | ||
/** | ||
* @generated from protobuf field: etherean.type.Platforms platform = 2; | ||
*/ | ||
platform: Platforms; | ||
} | ||
/** | ||
* @generated from protobuf message etherean.referral_miniapp.DailyLoginResponse | ||
@@ -26,8 +53,2 @@ */ | ||
/** | ||
* [deprecated] would be deleted next time | ||
* | ||
* @generated from protobuf field: google.type.Decimal reward = 2; | ||
*/ | ||
reward?: Decimal; | ||
/** | ||
* @generated from protobuf field: bool is_claimed = 3; | ||
@@ -131,5 +152,9 @@ */ | ||
/** | ||
* @generated from protobuf field: uint64 friends_count = 13; | ||
* @generated from protobuf field: uint64 activated_friends = 14; | ||
*/ | ||
friendsCount: bigint; | ||
activatedFriends: bigint; | ||
/** | ||
* @generated from protobuf field: uint64 not_activated_friends = 15; | ||
*/ | ||
notActivatedFriends: bigint; | ||
} | ||
@@ -198,2 +223,6 @@ /** | ||
farmingPerHourBoost?: Decimal; | ||
/** | ||
* @generated from protobuf field: etherean.referral_miniapp.SocialVerifiableCredential social_verifiable_credential = 10; | ||
*/ | ||
socialVerifiableCredential?: SocialVerifiableCredential; | ||
} | ||
@@ -214,2 +243,23 @@ /** | ||
/** | ||
* @generated from protobuf message etherean.referral_miniapp.SocialVerifiableCredential | ||
*/ | ||
export interface SocialVerifiableCredential { | ||
/** | ||
* @generated from protobuf field: string redirect_code_key = 1; | ||
*/ | ||
redirectCodeKey: string; | ||
/** | ||
* @generated from protobuf field: repeated string connector_type = 2; | ||
*/ | ||
connectorType: string[]; | ||
/** | ||
* @generated from protobuf field: string oauth_url = 3; | ||
*/ | ||
oauthUrl: string; | ||
/** | ||
* @generated from protobuf field: string issuer_url = 4; | ||
*/ | ||
issuerUrl: string; | ||
} | ||
/** | ||
* @generated from protobuf message etherean.referral_miniapp.FriendsResponse | ||
@@ -337,2 +387,16 @@ */ | ||
} | ||
declare class ConfirmVerifiableCredentialRequest$Type extends MessageType<ConfirmVerifiableCredentialRequest> { | ||
constructor(); | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.ConfirmVerifiableCredentialRequest | ||
*/ | ||
export declare const ConfirmVerifiableCredentialRequest: ConfirmVerifiableCredentialRequest$Type; | ||
declare class TasksByPlatformRequest$Type extends MessageType<TasksByPlatformRequest> { | ||
constructor(); | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.TasksByPlatformRequest | ||
*/ | ||
export declare const TasksByPlatformRequest: TasksByPlatformRequest$Type; | ||
declare class DailyLoginResponse$Type extends MessageType<DailyLoginResponse> { | ||
@@ -387,2 +451,9 @@ constructor(); | ||
export declare const SocialSubscription: SocialSubscription$Type; | ||
declare class SocialVerifiableCredential$Type extends MessageType<SocialVerifiableCredential> { | ||
constructor(); | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.SocialVerifiableCredential | ||
*/ | ||
export declare const SocialVerifiableCredential: SocialVerifiableCredential$Type; | ||
declare class FriendsResponse$Type extends MessageType<FriendsResponse> { | ||
@@ -389,0 +460,0 @@ constructor(); |
@@ -11,2 +11,3 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript | ||
import { Timestamp } from "./google/protobuf/timestamp.js"; | ||
import { Decimal } from "./decimal.js"; | ||
import { XName } from "./x.js"; | ||
@@ -18,6 +19,32 @@ import { Username } from "./username.js"; | ||
import { TgNickname } from "./tg_nickname.js"; | ||
import { DailyReward } from "./daily_reward.js"; | ||
import { Platforms } from "./platforms.js"; | ||
import { UserId } from "./client_id.js"; | ||
import { DailyReward } from "./daily_reward.js"; | ||
import { Decimal } from "./decimal.js"; | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class ConfirmVerifiableCredentialRequest$Type extends MessageType { | ||
constructor() { | ||
super("etherean.referral_miniapp.ConfirmVerifiableCredentialRequest", [ | ||
{ no: 1, name: "user_id", kind: "message", T: () => UserId }, | ||
{ no: 2, name: "task_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||
]); | ||
} | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.ConfirmVerifiableCredentialRequest | ||
*/ | ||
export const ConfirmVerifiableCredentialRequest = new ConfirmVerifiableCredentialRequest$Type(); | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class TasksByPlatformRequest$Type extends MessageType { | ||
constructor() { | ||
super("etherean.referral_miniapp.TasksByPlatformRequest", [ | ||
{ no: 1, name: "user_id", kind: "message", T: () => UserId }, | ||
{ no: 2, name: "platform", kind: "enum", T: () => ["etherean.type.Platforms", Platforms, "PLATFORMS_"] } | ||
]); | ||
} | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.TasksByPlatformRequest | ||
*/ | ||
export const TasksByPlatformRequest = new TasksByPlatformRequest$Type(); | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class DailyLoginResponse$Type extends MessageType { | ||
@@ -27,3 +54,2 @@ constructor() { | ||
{ no: 1, name: "days", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, | ||
{ no: 2, name: "reward", kind: "message", T: () => Decimal }, | ||
{ no: 3, name: "is_claimed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||
@@ -73,3 +99,4 @@ { no: 4, name: "rewards_list", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DailyReward } | ||
{ no: 12, name: "farming_boost", kind: "message", T: () => Decimal }, | ||
{ no: 13, name: "friends_count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } | ||
{ no: 14, name: "activated_friends", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, | ||
{ no: 15, name: "not_activated_friends", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } | ||
]); | ||
@@ -119,3 +146,4 @@ } | ||
{ no: 8, name: "localization_tag", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 9, name: "farming_per_hour_boost", kind: "message", T: () => Decimal } | ||
{ no: 9, name: "farming_per_hour_boost", kind: "message", T: () => Decimal }, | ||
{ no: 10, name: "social_verifiable_credential", kind: "message", T: () => SocialVerifiableCredential } | ||
]); | ||
@@ -142,2 +170,17 @@ } | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class SocialVerifiableCredential$Type extends MessageType { | ||
constructor() { | ||
super("etherean.referral_miniapp.SocialVerifiableCredential", [ | ||
{ no: 1, name: "redirect_code_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 2, name: "connector_type", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 3, name: "oauth_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 4, name: "issuer_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||
]); | ||
} | ||
} | ||
/** | ||
* @generated MessageType for protobuf message etherean.referral_miniapp.SocialVerifiableCredential | ||
*/ | ||
export const SocialVerifiableCredential = new SocialVerifiableCredential$Type(); | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class FriendsResponse$Type extends MessageType { | ||
@@ -227,2 +270,3 @@ constructor() { | ||
{ name: "Tasks", options: {}, I: UserId, O: TasksResponse }, | ||
{ name: "TasksByPlatform", options: {}, I: TasksByPlatformRequest, O: TasksResponse }, | ||
{ name: "TaskStart", options: {}, I: TaskPostRequest, O: Task }, | ||
@@ -233,3 +277,4 @@ { name: "TaskClaim", options: {}, I: TaskPostRequest, O: Task }, | ||
{ name: "SetSeenOnboarding", options: {}, I: UserId, O: Empty }, | ||
{ name: "ConfirmVerifiableCredential", options: {}, I: ConfirmVerifiableCredentialRequest, O: Empty }, | ||
{ name: "DailyLogin", options: {}, I: UserId, O: DailyLoginResponse } | ||
]); |
{ | ||
"name": "@etherean/etherean-grpc", | ||
"type": "module", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
260690
115
5140