import { U128 } from "../../polyester/type/v1/u128_pb.js"; import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { Timestamp } from "@bufbuild/protobuf/wkt"; declare namespace claims_pb_d_exports { export { ClaimCampaign, ClaimCampaignSchema, ClaimDailyRewardRequest, ClaimDailyRewardRequestSchema, ClaimDailyRewardResponse, ClaimDailyRewardResponseSchema, ClaimPolicy, ClaimPolicySchema, ClaimsService, DailyClaimReward, DailyClaimRewardSchema, DailyClaimState, DailyClaimStateSchema, DailyClaimTransfer, DailyClaimTransferSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetDailyClaimStatusRequest, GetDailyClaimStatusRequestSchema, GetDailyClaimStatusResponse, GetDailyClaimStatusResponseSchema, file_claims_v1_claims }; } /** * Describes the file claims/v1/claims.proto. */ declare const file_claims_v1_claims: GenFile; /** * ErrorDetail is attached to ConnectRPC errors for structured error handling. * Application errors use these codes, with REST spelling defined above. * Cancellation and deadline errors use their transport codes without this detail. * Protocol decoding, routing, readiness, and network failures may occur before * application error handling and are not guaranteed to include this detail. * * @generated from message claims.v1.ErrorDetail */ type ErrorDetail = Message<"claims.v1.ErrorDetail"> & { /** * Stable error code matching the REST problem+json code field. * * @generated from field: claims.v1.ErrorCode code = 1; */ code: ErrorCode; }; /** * Describes the message claims.v1.ErrorDetail. * Use `create(ErrorDetailSchema)` to create a new message. */ declare const ErrorDetailSchema: GenMessage; /** * ClaimCampaign identifies the campaign associated with a reward or claim. * * @generated from message claims.v1.ClaimCampaign */ type ClaimCampaign = Message<"claims.v1.ClaimCampaign"> & { /** * Stable campaign identifier. * * @generated from field: string campaign_id = 1; */ campaignId: string; /** * Campaign name. Existing claims retain the name that applied when they were created. * * @generated from field: string name = 2; */ name: string; /** * Campaign description. Existing claims retain the description that applied when they were created. * * @generated from field: string description = 3; */ description: string; /** * How frequently each root account may claim from this campaign. * * @generated from field: claims.v1.ClaimPolicy claim_policy = 4; */ claimPolicy: ClaimPolicy; }; /** * Describes the message claims.v1.ClaimCampaign. * Use `create(ClaimCampaignSchema)` to create a new message. */ declare const ClaimCampaignSchema: GenMessage; /** * DailyClaimReward describes one asset and amount offered or granted by a claim. * * @generated from message claims.v1.DailyClaimReward */ type DailyClaimReward = Message<"claims.v1.DailyClaimReward"> & { /** * Asset identifier. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Asset code. * * @generated from field: string asset_code = 2; */ assetCode: string; /** * Claim amount in 18-decimal unified asset units. * * @generated from field: polyester.type.v1.U128 amount_e18 = 3; */ amountE18?: U128 | undefined; }; /** * Describes the message claims.v1.DailyClaimReward. * Use `create(DailyClaimRewardSchema)` to create a new message. */ declare const DailyClaimRewardSchema: GenMessage; /** * GetDailyClaimStatusRequest retrieves today's reward and claim status for the authenticated root account. * * @generated from message claims.v1.GetDailyClaimStatusRequest */ type GetDailyClaimStatusRequest = Message<"claims.v1.GetDailyClaimStatusRequest"> & {}; /** * Describes the message claims.v1.GetDailyClaimStatusRequest. * Use `create(GetDailyClaimStatusRequestSchema)` to create a new message. */ declare const GetDailyClaimStatusRequestSchema: GenMessage; /** * GetDailyClaimStatusResponse contains the reward and claim status for the current UTC day. * * @generated from message claims.v1.GetDailyClaimStatusResponse */ type GetDailyClaimStatusResponse = Message<"claims.v1.GetDailyClaimStatusResponse"> & { /** * Current state of today's claim. * * @generated from field: claims.v1.DailyClaimState state = 1; */ state: DailyClaimState; /** * Start of the next UTC calendar day. * * @generated from field: google.protobuf.Timestamp reset_at = 2; */ resetAt?: Timestamp | undefined; /** * Assets and amounts available or already granted for the current UTC day. Future rewards are not returned. * * @generated from field: repeated claims.v1.DailyClaimReward rewards = 3; */ rewards: DailyClaimReward[]; /** * Claim identifier. Empty until a claim has been created. * * @generated from field: string claim_id = 4; */ claimId: string; /** * Campaign associated with the current reward or existing claim. Omitted when no campaign applies. * * @generated from field: claims.v1.ClaimCampaign campaign = 5; */ campaign?: ClaimCampaign | undefined; }; /** * Describes the message claims.v1.GetDailyClaimStatusResponse. * Use `create(GetDailyClaimStatusResponseSchema)` to create a new message. */ declare const GetDailyClaimStatusResponseSchema: GenMessage; /** * ClaimDailyRewardRequest claims today's reward for the authenticated root account. * * @generated from message claims.v1.ClaimDailyRewardRequest */ type ClaimDailyRewardRequest = Message<"claims.v1.ClaimDailyRewardRequest"> & {}; /** * Describes the message claims.v1.ClaimDailyRewardRequest. * Use `create(ClaimDailyRewardRequestSchema)` to create a new message. */ declare const ClaimDailyRewardRequestSchema: GenMessage; /** * DailyClaimTransfer identifies the transfer created for one claimed asset. * * @generated from message claims.v1.DailyClaimTransfer */ type DailyClaimTransfer = Message<"claims.v1.DailyClaimTransfer"> & { /** * Asset identifier. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Transfer identifier. * * @generated from field: string transfer_id = 2; */ transferId: string; }; /** * Describes the message claims.v1.DailyClaimTransfer. * Use `create(DailyClaimTransferSchema)` to create a new message. */ declare const DailyClaimTransferSchema: GenMessage; /** * ClaimDailyRewardResponse contains the result of claiming today's reward. * * @generated from message claims.v1.ClaimDailyRewardResponse */ type ClaimDailyRewardResponse = Message<"claims.v1.ClaimDailyRewardResponse"> & { /** * Claim identifier. * * @generated from field: string claim_id = 1; */ claimId: string; /** * Current claim state. * * @generated from field: claims.v1.DailyClaimState state = 2; */ state: DailyClaimState; /** * Time when the claim completed. Omitted while the claim is processing. * * @generated from field: google.protobuf.Timestamp claimed_at = 3; */ claimedAt?: Timestamp | undefined; /** * Assets and amounts granted by this claim. They do not change after the claim is created. * * @generated from field: repeated claims.v1.DailyClaimReward rewards = 4; */ rewards: DailyClaimReward[]; /** * Transfers created for each reward asset. Empty while the claim is processing. * * @generated from field: repeated claims.v1.DailyClaimTransfer transfers = 5; */ transfers: DailyClaimTransfer[]; /** * Start of the next UTC calendar day. * * @generated from field: google.protobuf.Timestamp reset_at = 6; */ resetAt?: Timestamp | undefined; /** * Campaign associated with this claim, using the name and description that applied when the claim was created. * * @generated from field: claims.v1.ClaimCampaign campaign = 7; */ campaign?: ClaimCampaign | undefined; }; /** * Describes the message claims.v1.ClaimDailyRewardResponse. * Use `create(ClaimDailyRewardResponseSchema)` to create a new message. */ declare const ClaimDailyRewardResponseSchema: GenMessage; /** * ErrorCode identifies stable, machine-readable Claims API errors. * Values mirror the REST problem+json code field after removing ERROR_CODE_. * * @generated from enum claims.v1.ErrorCode */ declare enum ErrorCode { /** * No domain error code was provided. * * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * The claim reward is temporarily unavailable. Please try again later. * * @generated from enum value: ERROR_CODE_CLAIM_TEMPORARILY_UNAVAILABLE = 1; */ CLAIM_TEMPORARILY_UNAVAILABLE = 1, /** * A valid session is required. API keys cannot access claims. * * @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 2; */ UNAUTHENTICATED = 2, /** * The applicable request rate limit was exceeded. * * @generated from enum value: ERROR_CODE_RATE_LIMIT_EXCEEDED = 3; */ RATE_LIMIT_EXCEEDED = 3, /** * No reward is available for the current UTC day. * * @generated from enum value: ERROR_CODE_CLAIM_UNAVAILABLE = 4; */ CLAIM_UNAVAILABLE = 4, /** * The request encountered concurrent claim activity. Retry the request. * * @generated from enum value: ERROR_CODE_CONFLICT = 5; */ CONFLICT = 5, /** * The request payload is invalid. * * @generated from enum value: ERROR_CODE_INVALID_REQUEST = 6; */ INVALID_REQUEST = 6, /** * The REST request body exceeds the 1 KiB limit. * * @generated from enum value: ERROR_CODE_REQUEST_TOO_LARGE = 7; */ REQUEST_TOO_LARGE = 7, /** * The service is temporarily unable to complete the request. * * @generated from enum value: ERROR_CODE_SERVICE_UNAVAILABLE = 8; */ SERVICE_UNAVAILABLE = 8, /** * The request failed because of an unexpected server error. * * @generated from enum value: ERROR_CODE_INTERNAL_ERROR = 9; */ INTERNAL_ERROR = 9, /** * The claim request was not permitted. * * @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 10; */ PERMISSION_DENIED = 10, /** * A required condition for completing the claim was not satisfied. * * @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 11; */ FAILED_PRECONDITION = 11, /** * Verify an X or Discord account before claiming a reward. * * @generated from enum value: ERROR_CODE_SOCIAL_VERIFICATION_REQUIRED = 12; */ SOCIAL_VERIFICATION_REQUIRED = 12 } /** * Describes the enum claims.v1.ErrorCode. */ declare const ErrorCodeSchema: GenEnum; /** * ClaimPolicy controls how often a recipient may claim from a campaign. * * @generated from enum claims.v1.ClaimPolicy */ declare enum ClaimPolicy { /** * No claim policy was specified. * * @generated from enum value: POLICY_UNSPECIFIED = 0; */ POLICY_UNSPECIFIED = 0, /** * One claim is available to each root account per UTC calendar day. * * @generated from enum value: UTC_DAILY = 1; */ UTC_DAILY = 1 } /** * Describes the enum claims.v1.ClaimPolicy. */ declare const ClaimPolicySchema: GenEnum; /** * DailyClaimState describes today's claim. * * @generated from enum claims.v1.DailyClaimState */ declare enum DailyClaimState { /** * No claim state was specified. * * @generated from enum value: CLAIM_UNSPECIFIED = 0; */ CLAIM_UNSPECIFIED = 0, /** * Today's reward is available to claim. * * @generated from enum value: CLAIM_AVAILABLE = 1; */ CLAIM_AVAILABLE = 1, /** * Today's claim is being processed. Retrying returns the same claim. * * @generated from enum value: CLAIM_PROCESSING = 2; */ CLAIM_PROCESSING = 2, /** * Today's reward was claimed successfully. * * @generated from enum value: CLAIM_CLAIMED = 3; */ CLAIM_CLAIMED = 3, /** * No reward is active for the current UTC day. * * @generated from enum value: CLAIM_UNAVAILABLE = 4; */ CLAIM_UNAVAILABLE = 4 } /** * Describes the enum claims.v1.DailyClaimState. */ declare const DailyClaimStateSchema: GenEnum; /** * ClaimsService provides daily campaign rewards. A session JWT is required; API keys are not accepted. * * @generated from service claims.v1.ClaimsService */ declare const ClaimsService: GenService<{ /** * Get today's reward and claim status for the authenticated root account. Future reward schedules are not returned. * * @generated from rpc claims.v1.ClaimsService.GetDailyClaimStatus */ getDailyClaimStatus: { methodKind: "unary"; input: typeof GetDailyClaimStatusRequestSchema; output: typeof GetDailyClaimStatusResponseSchema; }; /** * Claim today's reward once for the authenticated root account. All reward assets are transferred together, and retries return the same claim. * * @generated from rpc claims.v1.ClaimsService.ClaimDailyReward */ claimDailyReward: { methodKind: "unary"; input: typeof ClaimDailyRewardRequestSchema; output: typeof ClaimDailyRewardResponseSchema; }; }>; //#endregion export { ClaimCampaign, ClaimCampaignSchema, ClaimDailyRewardRequest, ClaimDailyRewardRequestSchema, ClaimDailyRewardResponse, ClaimDailyRewardResponseSchema, ClaimPolicy, ClaimPolicySchema, ClaimsService, DailyClaimReward, DailyClaimRewardSchema, DailyClaimState, DailyClaimStateSchema, DailyClaimTransfer, DailyClaimTransferSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetDailyClaimStatusRequest, GetDailyClaimStatusRequestSchema, GetDailyClaimStatusResponse, GetDailyClaimStatusResponseSchema, claims_pb_d_exports, file_claims_v1_claims }; //# sourceMappingURL=claims_pb.d.ts.map