@polyester/sdk 0.24.0 → 0.25.0
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/CHANGELOG.md +20 -0
- package/README.md +18 -12
- package/dist/account-signer/create-polyester-account-signer.d.ts +9 -5
- package/dist/account-signer/create-polyester-account-signer.d.ts.map +1 -1
- package/dist/account-signer/create-polyester-account-signer.js +9 -5
- package/dist/account-signer/create-polyester-account-signer.js.map +1 -1
- package/dist/account-signer/types.d.ts +10 -4
- package/dist/account-signer/types.d.ts.map +1 -1
- package/dist/account-signer/types.js.map +1 -1
- package/dist/core-client.d.ts +3 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +23 -45
- package/dist/core-client.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +7 -4
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +313 -0
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -0
- package/dist/gen/claims/v1/claims_pb.js +135 -0
- package/dist/gen/claims/v1/claims_pb.js.map +1 -0
- package/dist/gen/index.d.ts +2 -1
- package/dist/gen/index.js +2 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +50 -3
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +55 -43
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +10 -0
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +3 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/realtime/client.js +45 -26
- package/dist/realtime/client.js.map +1 -1
- package/dist/services/accounts/accounts.schemas.d.ts +2 -2
- package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
- package/dist/services/accounts/accounts.schemas.js +3 -3
- package/dist/services/accounts/accounts.schemas.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +67 -68
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +11 -13
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +1 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +4 -9
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auth/account-signer-auth.js +1 -1
- package/dist/services/auth/account-signer-auth.js.map +1 -1
- package/dist/services/auth/auth.d.ts +2 -3
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +4 -2
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +7 -12
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/candles/candles.schemas.d.ts +3 -3
- package/dist/services/candles/candles.schemas.d.ts.map +1 -1
- package/dist/services/candles/candles.schemas.js +5 -6
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +3 -3
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.js +2 -3
- package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
- package/dist/services/claims/claims.codecs.d.ts +8 -0
- package/dist/services/claims/claims.codecs.d.ts.map +1 -0
- package/dist/services/claims/claims.codecs.js +17 -0
- package/dist/services/claims/claims.codecs.js.map +1 -0
- package/dist/services/claims/claims.d.ts +19 -0
- package/dist/services/claims/claims.d.ts.map +1 -0
- package/dist/services/claims/claims.js +30 -0
- package/dist/services/claims/claims.js.map +1 -0
- package/dist/services/claims/claims.schemas.d.ts +122 -0
- package/dist/services/claims/claims.schemas.d.ts.map +1 -0
- package/dist/services/claims/claims.schemas.js +47 -0
- package/dist/services/claims/claims.schemas.js.map +1 -0
- package/dist/services/claims/claims.types.d.ts +3 -0
- package/dist/services/claims/index.d.ts +5 -0
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.js +10 -10
- package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +1 -5
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +90 -90
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +10 -11
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +3 -3
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/mfa/mfa.schemas.d.ts +11 -11
- package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
- package/dist/services/mfa/mfa.schemas.js +4 -5
- package/dist/services/mfa/mfa.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-enums.codecs.js +2 -1
- package/dist/services/orders/order-enums.codecs.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +4 -5
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +110 -32
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +9 -10
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +111 -8
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +20 -4
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +2 -2
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +3 -3
- package/dist/services/orders/orders-modify.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +48 -32
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +16 -16
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.d.ts +0 -1
- package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +4 -4
- package/dist/services/orders/orders-risk.schemas.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +4 -4
- package/dist/services/policies/shared.codecs.js +3 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +0 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +2 -3
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +2 -2
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +2 -5
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +6 -7
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -1
- package/dist/services/rate-limits/rate-limits.schemas.js +2 -3
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +4 -4
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +23 -24
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +10 -12
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trades/trades.schemas.d.ts.map +1 -1
- package/dist/services/trades/trades.schemas.js +4 -8
- package/dist/services/trades/trades.schemas.js.map +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +3 -4
- package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
- package/dist/services/transfers/transfers.schemas.js +5 -10
- package/dist/services/transfers/transfers.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +56 -58
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +34 -36
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.d.ts +42 -42
- package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.js +9 -10
- package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
- package/dist/shared/proto-enum-codec.js +11 -6
- package/dist/shared/proto-enum-codec.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +4 -5
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +41 -46
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/schemas.js +5 -1
- package/dist/shared/schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +5 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/dist/utils/timestamp.js +8 -1
- package/dist/utils/timestamp.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +2 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2VQdXJwb3NlQgAiYAodQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKgAQoWTG9naW5XaXRoV2FsbGV0UmVxdWVzdBIfChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c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-4361 message whose\n * exact UTF-8 bytes must be signed by the wallet.\n *\n * @generated from message auth.v1.CreateWalletChallengeRequest\n */\nexport type CreateWalletChallengeRequest = Message<\"auth.v1.CreateWalletChallengeRequest\"> & {\n /**\n * Smart-account EVM address being authenticated, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * EVM address selected in the wallet and written into the EIP-4361 message.\n * For CREATE_SUBACCOUNT, this must equal smart_account_address.\n *\n * @generated from field: string signer_address = 2;\n */\n signerAddress: string;\n\n /**\n * Browser origin URI requesting the signature, including scheme and optional\n * port but no path, query, fragment, or user information.\n *\n * @generated from field: string uri = 3;\n */\n uri: string;\n\n /**\n * Operation for which the challenge may be consumed.\n *\n * @generated from field: auth.v1.WalletChallengePurpose purpose = 4;\n */\n purpose: WalletChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeRequest.\n * Use `create(CreateWalletChallengeRequestSchema)` to create a new message.\n */\nexport const CreateWalletChallengeRequestSchema: GenMessage<CreateWalletChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * CreateWalletChallengeResponse contains the canonical EIP-4361 message.\n *\n * @generated from message auth.v1.CreateWalletChallengeResponse\n */\nexport type CreateWalletChallengeResponse = Message<\"auth.v1.CreateWalletChallengeResponse\"> & {\n /**\n * Canonical EIP-4361 message. Sign these UTF-8 bytes exactly once with\n * personal_sign; do not hash, alter, or reconstruct the message.\n *\n * @generated from field: string message = 1;\n */\n message: string;\n\n /**\n * Time in UTC when the challenge expires. Wallet challenges expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeResponse.\n * Use `create(CreateWalletChallengeResponseSchema)` to create a new message.\n */\nexport const CreateWalletChallengeResponseSchema: GenMessage<CreateWalletChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using the exact\n * server-issued EIP-4361 message and its signature.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address bound into the challenge resource, formatted as\n * 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Signature over message using EIP-191 personal_sign semantics. Maximum\n * length is 8192 characters to support universal wallet signatures.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional provider hint for the signing wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n\n /**\n * Exact EIP-4361 message returned by CreateWalletChallenge. Maximum length is\n * 4096 UTF-8 bytes.\n *\n * @generated from field: string message = 8;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Stable public identifier of the API key that authenticated this request,\n * formatted as \"ak_\" followed by 32 lowercase hexadecimal characters.\n * Absent when the request was not authenticated with an API key.\n *\n * @generated from field: optional string api_key_id = 10;\n */\n apiKeyId?: string | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * AcceptTermsRequest records explicit consent to the currently required terms.\n *\n * @generated from message auth.v1.AcceptTermsRequest\n */\nexport type AcceptTermsRequest = Message<\"auth.v1.AcceptTermsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsRequest.\n * Use `create(AcceptTermsRequestSchema)` to create a new message.\n */\nexport const AcceptTermsRequestSchema: GenMessage<AcceptTermsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 7);\n\n/**\n * AcceptTermsResponse confirms acceptance. Repeated acceptance of the current\n * version succeeds and preserves the first acceptance time.\n *\n * @generated from message auth.v1.AcceptTermsResponse\n */\nexport type AcceptTermsResponse = Message<\"auth.v1.AcceptTermsResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsResponse.\n * Use `create(AcceptTermsResponseSchema)` to create a new message.\n */\nexport const AcceptTermsResponseSchema: GenMessage<AcceptTermsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 8);\n\n/**\n * Purpose for a server-issued wallet challenge.\n *\n * @generated from enum auth.v1.WalletChallengePurpose\n */\nexport enum WalletChallengePurpose {\n /**\n * No wallet challenge purpose was specified.\n *\n * @generated from enum value: WALLET_PROOF_UNSPECIFIED = 0;\n */\n WALLET_PROOF_UNSPECIFIED = 0,\n\n /**\n * Authenticate the wallet and create a Polyester session.\n *\n * @generated from enum value: LOGIN = 1;\n */\n LOGIN = 1,\n\n /**\n * Prove control of a new smart account before creating a sub-account.\n *\n * @generated from enum value: CREATE_SUBACCOUNT = 2;\n */\n CREATE_SUBACCOUNT = 2,\n}\n\n/**\n * Describes the enum auth.v1.WalletChallengePurpose.\n */\nexport const WalletChallengePurposeSchema: GenEnum<WalletChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected internal failure prevented the auth mutation from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n\n /**\n * The caller has not explicitly accepted the currently required terms.\n *\n * @generated from enum value: AUTH_TERMS_NOT_ACCEPTED = 41;\n */\n AUTH_TERMS_NOT_ACCEPTED = 41,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 1);\n\n/**\n * AuthService manages wallet login, explicit terms consent, and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Create a short-lived EIP-4361 wallet challenge.\n *\n * @generated from rpc auth.v1.AuthService.CreateWalletChallenge\n */\n createWalletChallenge: {\n methodKind: \"unary\";\n input: typeof CreateWalletChallengeRequestSchema;\n output: typeof CreateWalletChallengeResponseSchema;\n },\n /**\n * Verify a signed EIP-4361 message and issue an access token. Login and account creation\n * do not accept terms; explicit consent is recorded only by AcceptTerms.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Explicitly accept the currently required terms for the caller's root account.\n * Requires an interactive JWT session; API keys are not allowed. No MFA is\n * required. Login, trading, reads, and use of existing resources remain available\n * without acceptance. Only CreateSubaccount, CreateApiKey, and\n * CreateDepositAddress require acceptance of the current version.\n *\n * @generated from rpc auth.v1.AuthService.AcceptTerms\n */\n acceptTerms: {\n methodKind: \"unary\";\n input: typeof AcceptTermsRequestSchema;\n output: typeof AcceptTermsResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAa,oBACX,uBAAS,oiHAAoiH,CAAC,kBAAkB,8BAA8B,CAAC;;;;;AA4CjmH,MAAa,qCACX,0BAAY,mBAAmB,CAAC;;;;;AA4BlC,MAAa,sC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BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,uBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,8BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,0BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,iCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,6BAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,MAAa,cA+CX,0BAAY,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2VQdXJwb3NlQgAiYAodQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKgAQoWTG9naW5XaXRoV2FsbGV0UmVxdWVzdBIfChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c2VyX2FnZW50GAQgASgJQgASDAoCaXAYBSABKAlCABIZCg93YWxsZXRfcHJvdmlkZXIYByABKAlCABIRCgdtZXNzYWdlGAggASgJQgAirAEKF0xvZ2luV2l0aFdhbGxldFJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBISCgphY2NvdW50X2lkGAogASgGEhAKCHVzZX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UkVWSVNJT05fQ09ORkxJQ1QQJRIfChtBVVRIX01GQV9FTEVWQVRJT05fUkVRVUlSRUQQJhIhCh1BVVRIX01GQV9MQVNUX0ZBQ1RPUl9SRVFVSVJFRBAnEhcKE0FVVEhfSU5URVJOQUxfRVJST1IQKBIbChdBVVRIX1RFUk1TX05PVF9BQ0NFUFRFRBApMs8CCgtBdXRoU2VydmljZRJoChVDcmVhdGVXYWxsZXRDaGFsbGVuZ2USJS5hdXRoLnYxLkNyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QaJi5hdXRoLnYxLkNyZWF0ZVdhbGxldENoYWxsZW5nZVJlc3BvbnNlIgASVgoPTG9naW5XaXRoV2FsbGV0Eh8uYXV0aC52MS5Mb2dpbldpdGhXYWxsZXRSZXF1ZXN0GiAuYXV0aC52MS5Mb2dpbldpdGhXYWxsZXRSZXNwb25zZSIAEk0KC0FjY2VwdFRlcm1zEhsuYXV0aC52MS5BY2NlcHRUZXJtc1JlcXVlc3QaHC5hdXRoLnYxLkFjY2VwdFRlcm1zUmVzcG9uc2UiA5ACAhIvCgJNZRISLmF1dGgudjEuTWVSZXF1ZXN0GhMuYXV0aC52MS5NZVJlc3BvbnNlIgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [file_auth_v1_mfa, file_google_protobuf_timestamp]);\n\n/**\n * CreateWalletChallengeRequest requests a short-lived EIP-4361 message whose\n * exact UTF-8 bytes must be signed by the wallet.\n *\n * @generated from message auth.v1.CreateWalletChallengeRequest\n */\nexport type CreateWalletChallengeRequest = Message<\"auth.v1.CreateWalletChallengeRequest\"> & {\n /**\n * Smart-account EVM address being authenticated, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Address whose signature authorizes the challenge and that is written into\n * the EIP-4361 message. For LOGIN, this must be an EOA that controls the\n * target smart account. For CREATE_SUBACCOUNT, this must equal\n * smart_account_address.\n *\n * @generated from field: string signer_address = 2;\n */\n signerAddress: string;\n\n /**\n * Browser origin URI requesting the signature, including scheme and optional\n * port but no path, query, fragment, or user information.\n *\n * @generated from field: string uri = 3;\n */\n uri: string;\n\n /**\n * Operation for which the challenge may be consumed.\n *\n * @generated from field: auth.v1.WalletChallengePurpose purpose = 4;\n */\n purpose: WalletChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeRequest.\n * Use `create(CreateWalletChallengeRequestSchema)` to create a new message.\n */\nexport const CreateWalletChallengeRequestSchema: GenMessage<CreateWalletChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * CreateWalletChallengeResponse contains the canonical EIP-4361 message.\n *\n * @generated from message auth.v1.CreateWalletChallengeResponse\n */\nexport type CreateWalletChallengeResponse = Message<\"auth.v1.CreateWalletChallengeResponse\"> & {\n /**\n * Canonical EIP-4361 message. Sign these UTF-8 bytes exactly once with\n * personal_sign; do not hash, alter, or reconstruct the message.\n *\n * @generated from field: string message = 1;\n */\n message: string;\n\n /**\n * Time in UTC when the challenge expires. Wallet challenges expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeResponse.\n * Use `create(CreateWalletChallengeResponseSchema)` to create a new message.\n */\nexport const CreateWalletChallengeResponseSchema: GenMessage<CreateWalletChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using the exact\n * server-issued EIP-4361 message and its signature.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address bound into the challenge resource, formatted as\n * 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * EOA signature over message using EIP-191 personal_sign semantics. A valid\n * value is 65 bytes of hexadecimal with an optional 0x prefix. Requests are\n * limited to 8192 characters.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional provider hint for the signing wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n\n /**\n * Exact EIP-4361 message returned by CreateWalletChallenge. Maximum length is\n * 4096 UTF-8 bytes.\n *\n * @generated from field: string message = 8;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Stable public identifier of the API key that authenticated this request,\n * formatted as \"ak_\" followed by 32 lowercase hexadecimal characters.\n * Absent when the request was not authenticated with an API key.\n *\n * @generated from field: optional string api_key_id = 10;\n */\n apiKeyId?: string | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * AcceptTermsRequest records explicit consent to the currently required terms.\n *\n * @generated from message auth.v1.AcceptTermsRequest\n */\nexport type AcceptTermsRequest = Message<\"auth.v1.AcceptTermsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsRequest.\n * Use `create(AcceptTermsRequestSchema)` to create a new message.\n */\nexport const AcceptTermsRequestSchema: GenMessage<AcceptTermsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 7);\n\n/**\n * AcceptTermsResponse confirms acceptance. Repeated acceptance of the current\n * version succeeds and preserves the first acceptance time.\n *\n * @generated from message auth.v1.AcceptTermsResponse\n */\nexport type AcceptTermsResponse = Message<\"auth.v1.AcceptTermsResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsResponse.\n * Use `create(AcceptTermsResponseSchema)` to create a new message.\n */\nexport const AcceptTermsResponseSchema: GenMessage<AcceptTermsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 8);\n\n/**\n * Purpose for a server-issued wallet challenge.\n *\n * @generated from enum auth.v1.WalletChallengePurpose\n */\nexport enum WalletChallengePurpose {\n /**\n * No wallet challenge purpose was specified.\n *\n * @generated from enum value: WALLET_PROOF_UNSPECIFIED = 0;\n */\n WALLET_PROOF_UNSPECIFIED = 0,\n\n /**\n * Authenticate the wallet and create a Polyester session.\n *\n * @generated from enum value: LOGIN = 1;\n */\n LOGIN = 1,\n\n /**\n * Prove control of a new smart account before creating a sub-account.\n *\n * @generated from enum value: CREATE_SUBACCOUNT = 2;\n */\n CREATE_SUBACCOUNT = 2,\n}\n\n/**\n * Describes the enum auth.v1.WalletChallengePurpose.\n */\nexport const WalletChallengePurposeSchema: GenEnum<WalletChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected internal failure prevented the auth mutation from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n\n /**\n * The caller has not explicitly accepted the currently required terms.\n *\n * @generated from enum value: AUTH_TERMS_NOT_ACCEPTED = 41;\n */\n AUTH_TERMS_NOT_ACCEPTED = 41,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 1);\n\n/**\n * AuthService manages wallet login, explicit terms consent, and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Create a short-lived EIP-4361 wallet challenge.\n *\n * @generated from rpc auth.v1.AuthService.CreateWalletChallenge\n */\n createWalletChallenge: {\n methodKind: \"unary\";\n input: typeof CreateWalletChallengeRequestSchema;\n output: typeof CreateWalletChallengeResponseSchema;\n },\n /**\n * Verify a signed EIP-4361 message and issue an access token. Login and account creation\n * do not accept terms; explicit consent is recorded only by AcceptTerms.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Explicitly accept the currently required terms for the caller's root account.\n * Requires an interactive JWT session; API keys are not allowed. No MFA is\n * required. Login, trading, reads, and use of existing resources remain available\n * without acceptance. Only CreateSubaccount, CreateApiKey, and\n * CreateDepositAddress require acceptance of the current version.\n *\n * @generated from rpc auth.v1.AuthService.AcceptTerms\n */\n acceptTerms: {\n methodKind: \"unary\";\n input: typeof AcceptTermsRequestSchema;\n output: typeof AcceptTermsResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAa,oBACX,uBAAS,oiHAAoiH,CAAC,kBAAkB,8BAA8B,CAAC;;;;;AA8CjmH,MAAa,qCACX,0BAAY,mBAAmB,CAAC;;;;;AA4BlC,MAAa,sCACX,0BAAY,mBAAmB,CAAC;;;;;AA8DlC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAiDlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;AAelC,MAAa,kBACX,0BAAY,mBAAmB,CAAC;;;;;AAmDlC,MAAa,mBACX,0BAAY,mBAAmB,CAAC;;;;;AA2BlC,MA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AA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,0BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,iCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,6BAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,MAAa,cA+CX,0BAAY,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { U128 } from "../../polyester/type/v1/u128_pb.js";
|
|
2
|
+
import { Message } from "@bufbuild/protobuf";
|
|
3
|
+
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
declare namespace claims_pb_d_exports {
|
|
6
|
+
export { ClaimCampaign, ClaimCampaignSchema, ClaimDailyRewardRequest, ClaimDailyRewardRequestSchema, ClaimDailyRewardResponse, ClaimDailyRewardResponseSchema, ClaimPolicy, ClaimPolicySchema, ClaimsService, DailyClaimReward, DailyClaimRewardSchema, DailyClaimState, DailyClaimStateSchema, DailyClaimTransfer, DailyClaimTransferSchema, GetDailyClaimStatusRequest, GetDailyClaimStatusRequestSchema, GetDailyClaimStatusResponse, GetDailyClaimStatusResponseSchema, file_claims_v1_claims };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file claims/v1/claims.proto.
|
|
10
|
+
*/
|
|
11
|
+
declare const file_claims_v1_claims: GenFile;
|
|
12
|
+
/**
|
|
13
|
+
* ClaimCampaign identifies the campaign associated with a reward or claim.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message claims.v1.ClaimCampaign
|
|
16
|
+
*/
|
|
17
|
+
type ClaimCampaign = Message<"claims.v1.ClaimCampaign"> & {
|
|
18
|
+
/**
|
|
19
|
+
* Stable campaign identifier.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string campaign_id = 1;
|
|
22
|
+
*/
|
|
23
|
+
campaignId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Campaign name. Existing claims retain the name that applied when they were created.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: string name = 2;
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Campaign description. Existing claims retain the description that applied when they were created.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string description = 3;
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
* How frequently each root account may claim from this campaign.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: claims.v1.ClaimPolicy claim_policy = 4;
|
|
40
|
+
*/
|
|
41
|
+
claimPolicy: ClaimPolicy;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message claims.v1.ClaimCampaign.
|
|
45
|
+
* Use `create(ClaimCampaignSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
declare const ClaimCampaignSchema: GenMessage<ClaimCampaign>;
|
|
48
|
+
/**
|
|
49
|
+
* DailyClaimReward describes one asset and amount offered or granted by a claim.
|
|
50
|
+
*
|
|
51
|
+
* @generated from message claims.v1.DailyClaimReward
|
|
52
|
+
*/
|
|
53
|
+
type DailyClaimReward = Message<"claims.v1.DailyClaimReward"> & {
|
|
54
|
+
/**
|
|
55
|
+
* Asset identifier.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: uint32 asset_id = 1;
|
|
58
|
+
*/
|
|
59
|
+
assetId: number;
|
|
60
|
+
/**
|
|
61
|
+
* Asset code.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string asset_code = 2;
|
|
64
|
+
*/
|
|
65
|
+
assetCode: string;
|
|
66
|
+
/**
|
|
67
|
+
* Claim amount in 18-decimal unified asset units.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: polyester.type.v1.U128 amount_e18 = 3;
|
|
70
|
+
*/
|
|
71
|
+
amountE18?: U128 | undefined;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message claims.v1.DailyClaimReward.
|
|
75
|
+
* Use `create(DailyClaimRewardSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
declare const DailyClaimRewardSchema: GenMessage<DailyClaimReward>;
|
|
78
|
+
/**
|
|
79
|
+
* GetDailyClaimStatusRequest retrieves today's reward and claim status for the authenticated root account.
|
|
80
|
+
*
|
|
81
|
+
* @generated from message claims.v1.GetDailyClaimStatusRequest
|
|
82
|
+
*/
|
|
83
|
+
type GetDailyClaimStatusRequest = Message<"claims.v1.GetDailyClaimStatusRequest"> & {};
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message claims.v1.GetDailyClaimStatusRequest.
|
|
86
|
+
* Use `create(GetDailyClaimStatusRequestSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
declare const GetDailyClaimStatusRequestSchema: GenMessage<GetDailyClaimStatusRequest>;
|
|
89
|
+
/**
|
|
90
|
+
* GetDailyClaimStatusResponse contains the reward and claim status for the current UTC day.
|
|
91
|
+
*
|
|
92
|
+
* @generated from message claims.v1.GetDailyClaimStatusResponse
|
|
93
|
+
*/
|
|
94
|
+
type GetDailyClaimStatusResponse = Message<"claims.v1.GetDailyClaimStatusResponse"> & {
|
|
95
|
+
/**
|
|
96
|
+
* Current state of today's claim.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: claims.v1.DailyClaimState state = 1;
|
|
99
|
+
*/
|
|
100
|
+
state: DailyClaimState;
|
|
101
|
+
/**
|
|
102
|
+
* Start of the next UTC calendar day.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: google.protobuf.Timestamp reset_at = 2;
|
|
105
|
+
*/
|
|
106
|
+
resetAt?: Timestamp | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Assets and amounts available or already granted for the current UTC day. Future rewards are not returned.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: repeated claims.v1.DailyClaimReward rewards = 3;
|
|
111
|
+
*/
|
|
112
|
+
rewards: DailyClaimReward[];
|
|
113
|
+
/**
|
|
114
|
+
* Claim identifier. Empty until a claim has been created.
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string claim_id = 4;
|
|
117
|
+
*/
|
|
118
|
+
claimId: string;
|
|
119
|
+
/**
|
|
120
|
+
* Campaign associated with the current reward or existing claim. Omitted when no campaign applies.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: claims.v1.ClaimCampaign campaign = 5;
|
|
123
|
+
*/
|
|
124
|
+
campaign?: ClaimCampaign | undefined;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Describes the message claims.v1.GetDailyClaimStatusResponse.
|
|
128
|
+
* Use `create(GetDailyClaimStatusResponseSchema)` to create a new message.
|
|
129
|
+
*/
|
|
130
|
+
declare const GetDailyClaimStatusResponseSchema: GenMessage<GetDailyClaimStatusResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* ClaimDailyRewardRequest claims today's reward for the authenticated root account.
|
|
133
|
+
*
|
|
134
|
+
* @generated from message claims.v1.ClaimDailyRewardRequest
|
|
135
|
+
*/
|
|
136
|
+
type ClaimDailyRewardRequest = Message<"claims.v1.ClaimDailyRewardRequest"> & {};
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message claims.v1.ClaimDailyRewardRequest.
|
|
139
|
+
* Use `create(ClaimDailyRewardRequestSchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
declare const ClaimDailyRewardRequestSchema: GenMessage<ClaimDailyRewardRequest>;
|
|
142
|
+
/**
|
|
143
|
+
* DailyClaimTransfer identifies the transfer created for one claimed asset.
|
|
144
|
+
*
|
|
145
|
+
* @generated from message claims.v1.DailyClaimTransfer
|
|
146
|
+
*/
|
|
147
|
+
type DailyClaimTransfer = Message<"claims.v1.DailyClaimTransfer"> & {
|
|
148
|
+
/**
|
|
149
|
+
* Asset identifier.
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: uint32 asset_id = 1;
|
|
152
|
+
*/
|
|
153
|
+
assetId: number;
|
|
154
|
+
/**
|
|
155
|
+
* Transfer identifier.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: string transfer_id = 2;
|
|
158
|
+
*/
|
|
159
|
+
transferId: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Describes the message claims.v1.DailyClaimTransfer.
|
|
163
|
+
* Use `create(DailyClaimTransferSchema)` to create a new message.
|
|
164
|
+
*/
|
|
165
|
+
declare const DailyClaimTransferSchema: GenMessage<DailyClaimTransfer>;
|
|
166
|
+
/**
|
|
167
|
+
* ClaimDailyRewardResponse contains the result of claiming today's reward.
|
|
168
|
+
*
|
|
169
|
+
* @generated from message claims.v1.ClaimDailyRewardResponse
|
|
170
|
+
*/
|
|
171
|
+
type ClaimDailyRewardResponse = Message<"claims.v1.ClaimDailyRewardResponse"> & {
|
|
172
|
+
/**
|
|
173
|
+
* Claim identifier.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: string claim_id = 1;
|
|
176
|
+
*/
|
|
177
|
+
claimId: string;
|
|
178
|
+
/**
|
|
179
|
+
* Current claim state.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: claims.v1.DailyClaimState state = 2;
|
|
182
|
+
*/
|
|
183
|
+
state: DailyClaimState;
|
|
184
|
+
/**
|
|
185
|
+
* Time when the claim completed. Omitted while the claim is processing.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: google.protobuf.Timestamp claimed_at = 3;
|
|
188
|
+
*/
|
|
189
|
+
claimedAt?: Timestamp | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Assets and amounts granted by this claim. They do not change after the claim is created.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: repeated claims.v1.DailyClaimReward rewards = 4;
|
|
194
|
+
*/
|
|
195
|
+
rewards: DailyClaimReward[];
|
|
196
|
+
/**
|
|
197
|
+
* Transfers created for each reward asset. Empty while the claim is processing.
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: repeated claims.v1.DailyClaimTransfer transfers = 5;
|
|
200
|
+
*/
|
|
201
|
+
transfers: DailyClaimTransfer[];
|
|
202
|
+
/**
|
|
203
|
+
* Start of the next UTC calendar day.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: google.protobuf.Timestamp reset_at = 6;
|
|
206
|
+
*/
|
|
207
|
+
resetAt?: Timestamp | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Campaign associated with this claim, using the name and description that applied when the claim was created.
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: claims.v1.ClaimCampaign campaign = 7;
|
|
212
|
+
*/
|
|
213
|
+
campaign?: ClaimCampaign | undefined;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Describes the message claims.v1.ClaimDailyRewardResponse.
|
|
217
|
+
* Use `create(ClaimDailyRewardResponseSchema)` to create a new message.
|
|
218
|
+
*/
|
|
219
|
+
declare const ClaimDailyRewardResponseSchema: GenMessage<ClaimDailyRewardResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* ClaimPolicy controls how often a recipient may claim from a campaign.
|
|
222
|
+
*
|
|
223
|
+
* @generated from enum claims.v1.ClaimPolicy
|
|
224
|
+
*/
|
|
225
|
+
declare enum ClaimPolicy {
|
|
226
|
+
/**
|
|
227
|
+
* No claim policy was specified.
|
|
228
|
+
*
|
|
229
|
+
* @generated from enum value: POLICY_UNSPECIFIED = 0;
|
|
230
|
+
*/
|
|
231
|
+
POLICY_UNSPECIFIED = 0,
|
|
232
|
+
/**
|
|
233
|
+
* One claim is available to each root account per UTC calendar day.
|
|
234
|
+
*
|
|
235
|
+
* @generated from enum value: UTC_DAILY = 1;
|
|
236
|
+
*/
|
|
237
|
+
UTC_DAILY = 1
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Describes the enum claims.v1.ClaimPolicy.
|
|
241
|
+
*/
|
|
242
|
+
declare const ClaimPolicySchema: GenEnum<ClaimPolicy>;
|
|
243
|
+
/**
|
|
244
|
+
* DailyClaimState describes today's claim.
|
|
245
|
+
*
|
|
246
|
+
* @generated from enum claims.v1.DailyClaimState
|
|
247
|
+
*/
|
|
248
|
+
declare enum DailyClaimState {
|
|
249
|
+
/**
|
|
250
|
+
* No claim state was specified.
|
|
251
|
+
*
|
|
252
|
+
* @generated from enum value: CLAIM_UNSPECIFIED = 0;
|
|
253
|
+
*/
|
|
254
|
+
CLAIM_UNSPECIFIED = 0,
|
|
255
|
+
/**
|
|
256
|
+
* Today's reward is available to claim.
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: CLAIM_AVAILABLE = 1;
|
|
259
|
+
*/
|
|
260
|
+
CLAIM_AVAILABLE = 1,
|
|
261
|
+
/**
|
|
262
|
+
* Today's claim is being processed. Retrying returns the same claim.
|
|
263
|
+
*
|
|
264
|
+
* @generated from enum value: CLAIM_PROCESSING = 2;
|
|
265
|
+
*/
|
|
266
|
+
CLAIM_PROCESSING = 2,
|
|
267
|
+
/**
|
|
268
|
+
* Today's reward was claimed successfully.
|
|
269
|
+
*
|
|
270
|
+
* @generated from enum value: CLAIM_CLAIMED = 3;
|
|
271
|
+
*/
|
|
272
|
+
CLAIM_CLAIMED = 3,
|
|
273
|
+
/**
|
|
274
|
+
* No reward is active for the current UTC day.
|
|
275
|
+
*
|
|
276
|
+
* @generated from enum value: CLAIM_UNAVAILABLE = 4;
|
|
277
|
+
*/
|
|
278
|
+
CLAIM_UNAVAILABLE = 4
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Describes the enum claims.v1.DailyClaimState.
|
|
282
|
+
*/
|
|
283
|
+
declare const DailyClaimStateSchema: GenEnum<DailyClaimState>;
|
|
284
|
+
/**
|
|
285
|
+
* ClaimsService provides daily campaign rewards. A session JWT is required; API keys are not accepted.
|
|
286
|
+
*
|
|
287
|
+
* @generated from service claims.v1.ClaimsService
|
|
288
|
+
*/
|
|
289
|
+
declare const ClaimsService: GenService<{
|
|
290
|
+
/**
|
|
291
|
+
* Get today's reward and claim status for the authenticated root account. Future reward schedules are not returned.
|
|
292
|
+
*
|
|
293
|
+
* @generated from rpc claims.v1.ClaimsService.GetDailyClaimStatus
|
|
294
|
+
*/
|
|
295
|
+
getDailyClaimStatus: {
|
|
296
|
+
methodKind: "unary";
|
|
297
|
+
input: typeof GetDailyClaimStatusRequestSchema;
|
|
298
|
+
output: typeof GetDailyClaimStatusResponseSchema;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Claim today's reward once for the authenticated root account. All reward assets are transferred together, and retries return the same claim.
|
|
302
|
+
*
|
|
303
|
+
* @generated from rpc claims.v1.ClaimsService.ClaimDailyReward
|
|
304
|
+
*/
|
|
305
|
+
claimDailyReward: {
|
|
306
|
+
methodKind: "unary";
|
|
307
|
+
input: typeof ClaimDailyRewardRequestSchema;
|
|
308
|
+
output: typeof ClaimDailyRewardResponseSchema;
|
|
309
|
+
};
|
|
310
|
+
}>;
|
|
311
|
+
//#endregion
|
|
312
|
+
export { ClaimCampaign, ClaimCampaignSchema, ClaimDailyRewardRequest, ClaimDailyRewardRequestSchema, ClaimDailyRewardResponse, ClaimDailyRewardResponseSchema, ClaimPolicy, ClaimPolicySchema, ClaimsService, DailyClaimReward, DailyClaimRewardSchema, DailyClaimState, DailyClaimStateSchema, DailyClaimTransfer, DailyClaimTransferSchema, GetDailyClaimStatusRequest, GetDailyClaimStatusRequestSchema, GetDailyClaimStatusResponse, GetDailyClaimStatusResponseSchema, claims_pb_d_exports, file_claims_v1_claims };
|
|
313
|
+
//# sourceMappingURL=claims_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claims_pb.d.ts","names":[],"sources":["../../../../src/gen/claims/v1/claims_pb.ts"],"mappings":";;;;;;;;;;cAea,uBAAuB;;;;;;KAQxB,gBAAgB;;;;;;EAM1B;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,aAAa;;;;;;cAOF,qBAAqB,WAAW;;;;;;KAQjC,mBAAmB;;;;;;EAM7B;;;;;;EAOA;;;;;;EAOA,YAAY;;;;;;cAOD,wBAAwB,WAAW;;;;;;KAQpC,6BAA6B;;;;;cAO5B,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8B;;;;;;EAMxC,OAAO;;;;;;EAOP,UAAU;;;;;;EAOV,SAAS;;;;;;EAOT;;;;;;EAOA,WAAW;;;;;;cAOA,mCAAmC,WAAW;;;;;;KAQ/C,0BAA0B;;;;;cAOzB,+BAA+B,WAAW;;;;;;KAQ3C,qBAAqB;;;;;;EAM/B;;;;;;EAOA;;;;;;cAOW,0BAA0B,WAAW;;;;;;KAQtC,2BAA2B;;;;;;EAMrC;;;;;;EAOA,OAAO;;;;;;EAOP,YAAY;;;;;;EAOZ,SAAS;;;;;;EAOT,WAAW;;;;;;EAOX,UAAU;;;;;;EAOV,WAAW;;;;;;cAOA,gCAAgC,WAAW;;;;;;aAQ5C;;;;;;EAMV;;;;;;EAOA;;;;;cAMW,mBAAmB,QAAQ;;;;;;aAQ5B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,uBAAuB,QAAQ;;;;;;cAQ/B,eAAe;;;;;;EAM1B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { file_polyester_type_v1_u128 } from "../../polyester/type/v1/u128_pb.js";
|
|
3
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
//#region src/gen/claims/v1/claims_pb.ts
|
|
6
|
+
var claims_pb_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
ClaimCampaignSchema: () => ClaimCampaignSchema,
|
|
8
|
+
ClaimDailyRewardRequestSchema: () => ClaimDailyRewardRequestSchema,
|
|
9
|
+
ClaimDailyRewardResponseSchema: () => ClaimDailyRewardResponseSchema,
|
|
10
|
+
ClaimPolicy: () => ClaimPolicy,
|
|
11
|
+
ClaimPolicySchema: () => ClaimPolicySchema,
|
|
12
|
+
ClaimsService: () => ClaimsService,
|
|
13
|
+
DailyClaimRewardSchema: () => DailyClaimRewardSchema,
|
|
14
|
+
DailyClaimState: () => DailyClaimState,
|
|
15
|
+
DailyClaimStateSchema: () => DailyClaimStateSchema,
|
|
16
|
+
DailyClaimTransferSchema: () => DailyClaimTransferSchema,
|
|
17
|
+
GetDailyClaimStatusRequestSchema: () => GetDailyClaimStatusRequestSchema,
|
|
18
|
+
GetDailyClaimStatusResponseSchema: () => GetDailyClaimStatusResponseSchema,
|
|
19
|
+
file_claims_v1_claims: () => file_claims_v1_claims
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Describes the file claims/v1/claims.proto.
|
|
23
|
+
*/
|
|
24
|
+
const file_claims_v1_claims = /*@__PURE__*/ fileDesc("ChZjbGFpbXMvdjEvY2xhaW1zLnByb3RvEgljbGFpbXMudjEidQoNQ2xhaW1DYW1wYWlnbh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GIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASKgoIY2FtcGFpZ24YByABKAsyGC5jbGFpbXMudjEuQ2xhaW1DYW1wYWlnbio0CgtDbGFpbVBvbGljeRIWChJQT0xJQ1lfVU5TUEVDSUZJRUQQABINCglVVENfREFJTFkQASp9Cg9EYWlseUNsYWltU3RhdGUSFQoRQ0xBSU1fVU5TUEVDSUZJRUQQABITCg9DTEFJTV9BVkFJTEFCTEUQARIUChBDTEFJTV9QUk9DRVNTSU5HEAISEQoNQ0xBSU1fQ0xBSU1FRBADEhUKEUNMQUlNX1VOQVZBSUxBQkxFEAQy1gEKDUNsYWltc1NlcnZpY2USZgoTR2V0RGFpbHlDbGFpbVN0YXR1cxIlLmNsYWltcy52MS5HZXREYWlseUNsYWltU3RhdHVzUmVxdWVzdBomLmNsYWltcy52MS5HZXREYWlseUNsYWltU3RhdHVzUmVzcG9uc2UiABJdChBDbGFpbURhaWx5UmV3YXJkEiIuY2xhaW1zLnYxLkNsYWltRGFpbHlSZXdhcmRSZXF1ZXN0GiMuY2xhaW1zLnYxLkNsYWltRGFpbHlSZXdhcmRSZXNwb25zZSIAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2xhaW1zL3YxO2NsYWltc3YxYgZwcm90bzM=", [file_google_protobuf_timestamp, file_polyester_type_v1_u128]);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message claims.v1.ClaimCampaign.
|
|
27
|
+
* Use `create(ClaimCampaignSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
const ClaimCampaignSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 0);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message claims.v1.DailyClaimReward.
|
|
32
|
+
* Use `create(DailyClaimRewardSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
const DailyClaimRewardSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 1);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message claims.v1.GetDailyClaimStatusRequest.
|
|
37
|
+
* Use `create(GetDailyClaimStatusRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
const GetDailyClaimStatusRequestSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 2);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message claims.v1.GetDailyClaimStatusResponse.
|
|
42
|
+
* Use `create(GetDailyClaimStatusResponseSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
const GetDailyClaimStatusResponseSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 3);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message claims.v1.ClaimDailyRewardRequest.
|
|
47
|
+
* Use `create(ClaimDailyRewardRequestSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
const ClaimDailyRewardRequestSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 4);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message claims.v1.DailyClaimTransfer.
|
|
52
|
+
* Use `create(DailyClaimTransferSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
const DailyClaimTransferSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 5);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message claims.v1.ClaimDailyRewardResponse.
|
|
57
|
+
* Use `create(ClaimDailyRewardResponseSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
const ClaimDailyRewardResponseSchema = /*@__PURE__*/ messageDesc(file_claims_v1_claims, 6);
|
|
60
|
+
/**
|
|
61
|
+
* ClaimPolicy controls how often a recipient may claim from a campaign.
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum claims.v1.ClaimPolicy
|
|
64
|
+
*/
|
|
65
|
+
let ClaimPolicy = /* @__PURE__ */ function(ClaimPolicy) {
|
|
66
|
+
/**
|
|
67
|
+
* No claim policy was specified.
|
|
68
|
+
*
|
|
69
|
+
* @generated from enum value: POLICY_UNSPECIFIED = 0;
|
|
70
|
+
*/
|
|
71
|
+
ClaimPolicy[ClaimPolicy["POLICY_UNSPECIFIED"] = 0] = "POLICY_UNSPECIFIED";
|
|
72
|
+
/**
|
|
73
|
+
* One claim is available to each root account per UTC calendar day.
|
|
74
|
+
*
|
|
75
|
+
* @generated from enum value: UTC_DAILY = 1;
|
|
76
|
+
*/
|
|
77
|
+
ClaimPolicy[ClaimPolicy["UTC_DAILY"] = 1] = "UTC_DAILY";
|
|
78
|
+
return ClaimPolicy;
|
|
79
|
+
}({});
|
|
80
|
+
/**
|
|
81
|
+
* Describes the enum claims.v1.ClaimPolicy.
|
|
82
|
+
*/
|
|
83
|
+
const ClaimPolicySchema = /*@__PURE__*/ enumDesc(file_claims_v1_claims, 0);
|
|
84
|
+
/**
|
|
85
|
+
* DailyClaimState describes today's claim.
|
|
86
|
+
*
|
|
87
|
+
* @generated from enum claims.v1.DailyClaimState
|
|
88
|
+
*/
|
|
89
|
+
let DailyClaimState = /* @__PURE__ */ function(DailyClaimState) {
|
|
90
|
+
/**
|
|
91
|
+
* No claim state was specified.
|
|
92
|
+
*
|
|
93
|
+
* @generated from enum value: CLAIM_UNSPECIFIED = 0;
|
|
94
|
+
*/
|
|
95
|
+
DailyClaimState[DailyClaimState["CLAIM_UNSPECIFIED"] = 0] = "CLAIM_UNSPECIFIED";
|
|
96
|
+
/**
|
|
97
|
+
* Today's reward is available to claim.
|
|
98
|
+
*
|
|
99
|
+
* @generated from enum value: CLAIM_AVAILABLE = 1;
|
|
100
|
+
*/
|
|
101
|
+
DailyClaimState[DailyClaimState["CLAIM_AVAILABLE"] = 1] = "CLAIM_AVAILABLE";
|
|
102
|
+
/**
|
|
103
|
+
* Today's claim is being processed. Retrying returns the same claim.
|
|
104
|
+
*
|
|
105
|
+
* @generated from enum value: CLAIM_PROCESSING = 2;
|
|
106
|
+
*/
|
|
107
|
+
DailyClaimState[DailyClaimState["CLAIM_PROCESSING"] = 2] = "CLAIM_PROCESSING";
|
|
108
|
+
/**
|
|
109
|
+
* Today's reward was claimed successfully.
|
|
110
|
+
*
|
|
111
|
+
* @generated from enum value: CLAIM_CLAIMED = 3;
|
|
112
|
+
*/
|
|
113
|
+
DailyClaimState[DailyClaimState["CLAIM_CLAIMED"] = 3] = "CLAIM_CLAIMED";
|
|
114
|
+
/**
|
|
115
|
+
* No reward is active for the current UTC day.
|
|
116
|
+
*
|
|
117
|
+
* @generated from enum value: CLAIM_UNAVAILABLE = 4;
|
|
118
|
+
*/
|
|
119
|
+
DailyClaimState[DailyClaimState["CLAIM_UNAVAILABLE"] = 4] = "CLAIM_UNAVAILABLE";
|
|
120
|
+
return DailyClaimState;
|
|
121
|
+
}({});
|
|
122
|
+
/**
|
|
123
|
+
* Describes the enum claims.v1.DailyClaimState.
|
|
124
|
+
*/
|
|
125
|
+
const DailyClaimStateSchema = /*@__PURE__*/ enumDesc(file_claims_v1_claims, 1);
|
|
126
|
+
/**
|
|
127
|
+
* ClaimsService provides daily campaign rewards. A session JWT is required; API keys are not accepted.
|
|
128
|
+
*
|
|
129
|
+
* @generated from service claims.v1.ClaimsService
|
|
130
|
+
*/
|
|
131
|
+
const ClaimsService = /*@__PURE__*/ serviceDesc(file_claims_v1_claims, 0);
|
|
132
|
+
//#endregion
|
|
133
|
+
export { ClaimCampaignSchema, ClaimDailyRewardRequestSchema, ClaimDailyRewardResponseSchema, ClaimPolicy, ClaimPolicySchema, ClaimsService, DailyClaimRewardSchema, DailyClaimState, DailyClaimStateSchema, DailyClaimTransferSchema, GetDailyClaimStatusRequestSchema, GetDailyClaimStatusResponseSchema, claims_pb_exports, file_claims_v1_claims };
|
|
134
|
+
|
|
135
|
+
//# sourceMappingURL=claims_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claims_pb.js","names":[],"sources":["../../../../src/gen/claims/v1/claims_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file claims/v1/claims.proto (package claims.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { U128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file claims/v1/claims.proto.\n */\nexport const file_claims_v1_claims: GenFile = /*@__PURE__*/\n fileDesc(\"ChZjbGFpbXMvdjEvY2xhaW1zLnByb3RvEgljbGFpbXMudjEidQoNQ2xhaW1DYW1wYWlnbhITCgtjYW1wYWlnbl9pZBgBIAEoCRIMCgRuYW1lGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEiwKDGNsYWltX3BvbGljeRgEIAEoDjIWLmNsYWltcy52MS5DbGFpbVBvbGljeSJlChBEYWlseUNsYWltUmV3YXJkEhAKCGFzc2V0X2lkGAEgASgNEhIKCmFzc2V0X2NvZGUYAiABKAkSKwoKYW1vdW50X2UxOBgDIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjgiHAoaR2V0RGFpbHlDbGFpbVN0YXR1c1JlcXVlc3Qi4gEKG0dldERhaWx5Q2xhaW1TdGF0dXNSZXNwb25zZRIpCgVzdGF0ZRgBIAEoDjIaLmNsYWltcy52MS5EYWlseUNsYWltU3RhdGUSLAoIcmVzZXRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKB3Jld2FyZHMYAyADKAsyGy5jbGFpbXMudjEuRGFpbHlDbGFpbVJld2FyZBIQCghjbGFpbV9pZBgEIAEoCRIqCghjYW1wYWlnbhgFIAEoCzIYLmNsYWltcy52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kNsYWltRGFpbHlSZXdhcmRSZXNwb25zZSIAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2xhaW1zL3YxO2NsYWltc3YxYgZwcm90bzM=\", [file_google_protobuf_timestamp, file_polyester_type_v1_u128]);\n\n/**\n * ClaimCampaign identifies the campaign associated with a reward or claim.\n *\n * @generated from message claims.v1.ClaimCampaign\n */\nexport type ClaimCampaign = Message<\"claims.v1.ClaimCampaign\"> & {\n /**\n * Stable campaign identifier.\n *\n * @generated from field: string campaign_id = 1;\n */\n campaignId: string;\n\n /**\n * Campaign name. Existing claims retain the name that applied when they were created.\n *\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * Campaign description. Existing claims retain the description that applied when they were created.\n *\n * @generated from field: string description = 3;\n */\n description: string;\n\n /**\n * How frequently each root account may claim from this campaign.\n *\n * @generated from field: claims.v1.ClaimPolicy claim_policy = 4;\n */\n claimPolicy: ClaimPolicy;\n};\n\n/**\n * Describes the message claims.v1.ClaimCampaign.\n * Use `create(ClaimCampaignSchema)` to create a new message.\n */\nexport const ClaimCampaignSchema: GenMessage<ClaimCampaign> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 0);\n\n/**\n * DailyClaimReward describes one asset and amount offered or granted by a claim.\n *\n * @generated from message claims.v1.DailyClaimReward\n */\nexport type DailyClaimReward = Message<\"claims.v1.DailyClaimReward\"> & {\n /**\n * Asset identifier.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * Asset code.\n *\n * @generated from field: string asset_code = 2;\n */\n assetCode: string;\n\n /**\n * Claim amount in 18-decimal unified asset units.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 3;\n */\n amountE18?: U128 | undefined;\n};\n\n/**\n * Describes the message claims.v1.DailyClaimReward.\n * Use `create(DailyClaimRewardSchema)` to create a new message.\n */\nexport const DailyClaimRewardSchema: GenMessage<DailyClaimReward> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 1);\n\n/**\n * GetDailyClaimStatusRequest retrieves today's reward and claim status for the authenticated root account.\n *\n * @generated from message claims.v1.GetDailyClaimStatusRequest\n */\nexport type GetDailyClaimStatusRequest = Message<\"claims.v1.GetDailyClaimStatusRequest\"> & {\n};\n\n/**\n * Describes the message claims.v1.GetDailyClaimStatusRequest.\n * Use `create(GetDailyClaimStatusRequestSchema)` to create a new message.\n */\nexport const GetDailyClaimStatusRequestSchema: GenMessage<GetDailyClaimStatusRequest> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 2);\n\n/**\n * GetDailyClaimStatusResponse contains the reward and claim status for the current UTC day.\n *\n * @generated from message claims.v1.GetDailyClaimStatusResponse\n */\nexport type GetDailyClaimStatusResponse = Message<\"claims.v1.GetDailyClaimStatusResponse\"> & {\n /**\n * Current state of today's claim.\n *\n * @generated from field: claims.v1.DailyClaimState state = 1;\n */\n state: DailyClaimState;\n\n /**\n * Start of the next UTC calendar day.\n *\n * @generated from field: google.protobuf.Timestamp reset_at = 2;\n */\n resetAt?: Timestamp | undefined;\n\n /**\n * Assets and amounts available or already granted for the current UTC day. Future rewards are not returned.\n *\n * @generated from field: repeated claims.v1.DailyClaimReward rewards = 3;\n */\n rewards: DailyClaimReward[];\n\n /**\n * Claim identifier. Empty until a claim has been created.\n *\n * @generated from field: string claim_id = 4;\n */\n claimId: string;\n\n /**\n * Campaign associated with the current reward or existing claim. Omitted when no campaign applies.\n *\n * @generated from field: claims.v1.ClaimCampaign campaign = 5;\n */\n campaign?: ClaimCampaign | undefined;\n};\n\n/**\n * Describes the message claims.v1.GetDailyClaimStatusResponse.\n * Use `create(GetDailyClaimStatusResponseSchema)` to create a new message.\n */\nexport const GetDailyClaimStatusResponseSchema: GenMessage<GetDailyClaimStatusResponse> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 3);\n\n/**\n * ClaimDailyRewardRequest claims today's reward for the authenticated root account.\n *\n * @generated from message claims.v1.ClaimDailyRewardRequest\n */\nexport type ClaimDailyRewardRequest = Message<\"claims.v1.ClaimDailyRewardRequest\"> & {\n};\n\n/**\n * Describes the message claims.v1.ClaimDailyRewardRequest.\n * Use `create(ClaimDailyRewardRequestSchema)` to create a new message.\n */\nexport const ClaimDailyRewardRequestSchema: GenMessage<ClaimDailyRewardRequest> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 4);\n\n/**\n * DailyClaimTransfer identifies the transfer created for one claimed asset.\n *\n * @generated from message claims.v1.DailyClaimTransfer\n */\nexport type DailyClaimTransfer = Message<\"claims.v1.DailyClaimTransfer\"> & {\n /**\n * Asset identifier.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * Transfer identifier.\n *\n * @generated from field: string transfer_id = 2;\n */\n transferId: string;\n};\n\n/**\n * Describes the message claims.v1.DailyClaimTransfer.\n * Use `create(DailyClaimTransferSchema)` to create a new message.\n */\nexport const DailyClaimTransferSchema: GenMessage<DailyClaimTransfer> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 5);\n\n/**\n * ClaimDailyRewardResponse contains the result of claiming today's reward.\n *\n * @generated from message claims.v1.ClaimDailyRewardResponse\n */\nexport type ClaimDailyRewardResponse = Message<\"claims.v1.ClaimDailyRewardResponse\"> & {\n /**\n * Claim identifier.\n *\n * @generated from field: string claim_id = 1;\n */\n claimId: string;\n\n /**\n * Current claim state.\n *\n * @generated from field: claims.v1.DailyClaimState state = 2;\n */\n state: DailyClaimState;\n\n /**\n * Time when the claim completed. Omitted while the claim is processing.\n *\n * @generated from field: google.protobuf.Timestamp claimed_at = 3;\n */\n claimedAt?: Timestamp | undefined;\n\n /**\n * Assets and amounts granted by this claim. They do not change after the claim is created.\n *\n * @generated from field: repeated claims.v1.DailyClaimReward rewards = 4;\n */\n rewards: DailyClaimReward[];\n\n /**\n * Transfers created for each reward asset. Empty while the claim is processing.\n *\n * @generated from field: repeated claims.v1.DailyClaimTransfer transfers = 5;\n */\n transfers: DailyClaimTransfer[];\n\n /**\n * Start of the next UTC calendar day.\n *\n * @generated from field: google.protobuf.Timestamp reset_at = 6;\n */\n resetAt?: Timestamp | undefined;\n\n /**\n * Campaign associated with this claim, using the name and description that applied when the claim was created.\n *\n * @generated from field: claims.v1.ClaimCampaign campaign = 7;\n */\n campaign?: ClaimCampaign | undefined;\n};\n\n/**\n * Describes the message claims.v1.ClaimDailyRewardResponse.\n * Use `create(ClaimDailyRewardResponseSchema)` to create a new message.\n */\nexport const ClaimDailyRewardResponseSchema: GenMessage<ClaimDailyRewardResponse> = /*@__PURE__*/\n messageDesc(file_claims_v1_claims, 6);\n\n/**\n * ClaimPolicy controls how often a recipient may claim from a campaign.\n *\n * @generated from enum claims.v1.ClaimPolicy\n */\nexport enum ClaimPolicy {\n /**\n * No claim policy was specified.\n *\n * @generated from enum value: POLICY_UNSPECIFIED = 0;\n */\n POLICY_UNSPECIFIED = 0,\n\n /**\n * One claim is available to each root account per UTC calendar day.\n *\n * @generated from enum value: UTC_DAILY = 1;\n */\n UTC_DAILY = 1,\n}\n\n/**\n * Describes the enum claims.v1.ClaimPolicy.\n */\nexport const ClaimPolicySchema: GenEnum<ClaimPolicy> = /*@__PURE__*/\n enumDesc(file_claims_v1_claims, 0);\n\n/**\n * DailyClaimState describes today's claim.\n *\n * @generated from enum claims.v1.DailyClaimState\n */\nexport enum DailyClaimState {\n /**\n * No claim state was specified.\n *\n * @generated from enum value: CLAIM_UNSPECIFIED = 0;\n */\n CLAIM_UNSPECIFIED = 0,\n\n /**\n * Today's reward is available to claim.\n *\n * @generated from enum value: CLAIM_AVAILABLE = 1;\n */\n CLAIM_AVAILABLE = 1,\n\n /**\n * Today's claim is being processed. Retrying returns the same claim.\n *\n * @generated from enum value: CLAIM_PROCESSING = 2;\n */\n CLAIM_PROCESSING = 2,\n\n /**\n * Today's reward was claimed successfully.\n *\n * @generated from enum value: CLAIM_CLAIMED = 3;\n */\n CLAIM_CLAIMED = 3,\n\n /**\n * No reward is active for the current UTC day.\n *\n * @generated from enum value: CLAIM_UNAVAILABLE = 4;\n */\n CLAIM_UNAVAILABLE = 4,\n}\n\n/**\n * Describes the enum claims.v1.DailyClaimState.\n */\nexport const DailyClaimStateSchema: GenEnum<DailyClaimState> = /*@__PURE__*/\n enumDesc(file_claims_v1_claims, 1);\n\n/**\n * ClaimsService provides daily campaign rewards. A session JWT is required; API keys are not accepted.\n *\n * @generated from service claims.v1.ClaimsService\n */\nexport const ClaimsService: GenService<{\n /**\n * Get today's reward and claim status for the authenticated root account. Future reward schedules are not returned.\n *\n * @generated from rpc claims.v1.ClaimsService.GetDailyClaimStatus\n */\n getDailyClaimStatus: {\n methodKind: \"unary\";\n input: typeof GetDailyClaimStatusRequestSchema;\n output: typeof GetDailyClaimStatusResponseSchema;\n },\n /**\n * Claim today's reward once for the authenticated root account. All reward assets are transferred together, and retries return the same claim.\n *\n * @generated from rpc claims.v1.ClaimsService.ClaimDailyReward\n */\n claimDailyReward: {\n methodKind: \"unary\";\n input: typeof ClaimDailyRewardRequestSchema;\n output: typeof ClaimDailyRewardResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_claims_v1_claims, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAa,wBACX,uBAAS,g1DAAg1D,CAAC,gCAAgC,2BAA2B,CAAC;;;;;AAyCx5D,MAAa,sBACX,0BAAY,uBAAuB,CAAC;;;;;AAkCtC,MAAa,yBACX,0BAAY,uBAAuB,CAAC;;;;;AActC,MAAa,mCACX,0BAAY,uBAAuB,CAAC;;;;;AAgDtC,MAAa,oCACX,0BAAY,uBAAuB,CAAC;;;;;AActC,MAAa,gCACX,0BAAY,uBAAuB,CAAC;;;;;AA2BtC,MAAa,2BACX,0BAAY,uBAAuB,CAAC;;;;;AA8DtC,MAAa,iCACX,0BAAY,uBAAuB,CAAC;;;;;;AAOtC,IAAY,cAAL,yBAAA,aAAA;;;;;;CAML,YAAA,YAAA,wBAAA,KAAA;;;;;;CAOA,YAAA,YAAA,eAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,oBACX,uBAAS,uBAAuB,CAAC;;;;;;AAOnC,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,uBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,qBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,sBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,mBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,uBAAuB,CAAC;;;;;;AAOnC,MAAa,gBAsBX,0BAAY,uBAAuB,CAAC"}
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { types_pb_d_exports } from "./chain/lifecycle/v1/types_pb.js";
|
|
|
22
22
|
import { reason_pb_d_exports } from "./chain/zipper/v1/reason_pb.js";
|
|
23
23
|
import { lifecycle_read_pb_d_exports } from "./chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
24
24
|
import { zipper_pb_d_exports } from "./chain/zipper/v1/zipper_pb.js";
|
|
25
|
+
import { claims_pb_d_exports } from "./claims/v1/claims_pb.js";
|
|
25
26
|
import { whiteboard_pb_d_exports } from "./collab/v1/whiteboard_pb.js";
|
|
26
27
|
import { fees_pb_d_exports } from "./fees/v1/fees_pb.js";
|
|
27
28
|
import { polychart_pb_d_exports } from "./polychart/v1/polychart_pb.js";
|
|
@@ -36,4 +37,4 @@ import { ratelimit_pb_d_exports } from "./ratelimit/v1/ratelimit_pb.js";
|
|
|
36
37
|
import { trade_ws_pb_d_exports } from "./tradews/v1/trade_ws_pb.js";
|
|
37
38
|
import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
|
|
38
39
|
import { vip_pb_d_exports } from "./vip/v1/vip_pb.js";
|
|
39
|
-
export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
|
|
40
|
+
export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, claims_pb_d_exports as claimsPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
|