@polyester/sdk 0.32.2-devnet-20261102164441 → 0.32.2-devnet-20261103030350
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 +5 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +1 -1
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +1 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.js +1 -1
- package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +1 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.js +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +1 -1
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.js +1 -1
- package/dist/gen/fees/v1/fees_pb.js.map +1 -1
- package/dist/gen/index.js +2 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +2 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +1 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +9 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +10 -2
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/api/options_pb.d.ts +11 -4
- package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
- package/dist/gen/polyester/api/options_pb.js +11 -3
- package/dist/gen/polyester/api/options_pb.js.map +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/v1/swap_pb.js +1 -1
- package/dist/gen/swap/v1/swap_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +9 -0
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +10 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +19 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +61 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +40 -0
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.js +82 -0
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +751 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +238 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -0
- package/dist/services/auto-withdraw/service.d.ts +8 -0
- package/dist/services/auto-withdraw/service.d.ts.map +1 -0
- package/dist/services/auto-withdraw/service.js +9 -0
- package/dist/services/auto-withdraw/service.js.map +1 -0
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +5 -5
- package/dist/services/orders/orders-output.schemas.d.ts +8 -8
- package/dist/services/orders/orders.codecs.js +1 -0
- package/dist/services/orders/orders.codecs.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +7 -7
- package/dist/services/triggers/triggers.codecs.js +1 -0
- package/dist/services/triggers/triggers.codecs.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":"vip_pb.js","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file vip/v1/vip.proto (package vip.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 { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file vip/v1/vip.proto.\n */\nexport const file_vip_v1_vip: GenFile = /*@__PURE__*/\n fileDesc(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACJZChBWSVBNZXRyaWNRdWFsaXR5EikKBnN0YXR1cxgBIAEoDjIXLnZpcC52MS5WSVBNZXRyaWNTdGF0dXNCABIaChBpbmNvbXBsZXRlX2hvdXJzGAIgASgNQgAiFQoTR2V0VklQU3RhdHVzUmVxdWVzdCLQBQoUR2V0VklQU3RhdHVzUmVzcG9uc2USDgoEdGllchgBIAEoDUIAEhUKC3ZvbHVtZV90aWVyGAIgASgNQgASEgoIYW9wX3RpZXIYAyABKA1CABIlChZzZXR0bGVkX3ZvbHVtZV8zMGRfdXNkGAQgASgJQgBIAIgBARIiChNhdmVyYWdlX2FvcF8zMGRfdXNkGAUgASgJQgBIAYgBARIYCg5wb2xpY3lfdmVyc2lvbhgGIAEoBEIAEjsKFXBvbGljeV9lZmZlY3RpdmVfZnJvbRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABI3Cg5lZmZlY3RpdmVfZnJvbRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAogBARI1CgxldmFsdWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAOIAQESNgoNbWV0cmljc19hc19vZhgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIBIgBARJAChRuZXh0X3RpZXJfdGhyZXNob2xkcxgLIAEoCzIdLnZpcC52MS5OZXh0VklQVGllclRocmVzaG9sZHNIBYgBARI4ChZzZXR0bGVkX3ZvbHVtZV9xdWFsaXR5GAwgASgLMhgudmlwLnYxLlZJUE1ldHJpY1F1YWxpdHkSNQoTYXZlcmFnZV9hb3BfcXVhbGl0eRgNIAEoCzIYLnZpcC52MS5WSVBNZXRyaWNRdWFsaXR5QhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkcypmCg9WSVBNZXRyaWNTdGF0dXMSFgoSTUVUUklDX1VOU1BFQ0lGSUVEEAASDAoIQ09NUExFVEUQARIVChFQUklDRV9VTkFWQUlMQUJMRRACEhYKEklOQ09NUExFVEVfSElTVE9SWRADMqkBCgpWSVBTZXJ2aWNlEk4KDExpc3RWSVBUaWVycxIbLnZpcC52MS5MaXN0VklQVGllcnNSZXF1ZXN0GhwudmlwLnYxLkxpc3RWSVBUaWVyc1Jlc3BvbnNlIgOQAgESSwoMR2V0VklQU3RhdHVzEhsudmlwLnYxLkdldFZJUFN0YXR1c1JlcXVlc3QaHC52aXAudjEuR2V0VklQU3RhdHVzUmVzcG9uc2UiAEI6WjhnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3ZpcC92MTt2aXB2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.\n *\n * @generated from message vip.v1.VIPTier\n */\nexport type VIPTier = Message<\"vip.v1.VIPTier\"> & {\n /**\n * Numeric VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n * Omitted for VIP0, which has no average portfolio value entry threshold.\n *\n * @generated from field: optional string aop_threshold_usd = 3;\n */\n aopThresholdUsd?: string | undefined;\n\n /**\n * Absolute maker fee rate before symbol-specific adjustments, encoded as a\n * base-10 percentage string without a percent sign. Values are between\n * -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 4;\n */\n makerFeeRatePercent: string;\n\n /**\n * Absolute taker fee rate before symbol-specific adjustments, encoded as a\n * non-negative base-10 percentage string without a percent sign. Values are\n * between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 5;\n */\n takerFeeRatePercent: string;\n};\n\n/**\n * Describes the message vip.v1.VIPTier.\n * Use `create(VIPTierSchema)` to create a new message.\n */\nexport const VIPTierSchema: GenMessage<VIPTier> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 0);\n\n/**\n * ListVIPTiersRequest requests the complete active VIP tier catalog.\n *\n * @generated from message vip.v1.ListVIPTiersRequest\n */\nexport type ListVIPTiersRequest = Message<\"vip.v1.ListVIPTiersRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersRequest.\n * Use `create(ListVIPTiersRequestSchema)` to create a new message.\n */\nexport const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 1);\n\n/**\n * ListVIPTiersResponse contains one complete, immutable VIP policy version.\n *\n * @generated from message vip.v1.ListVIPTiersResponse\n */\nexport type ListVIPTiersResponse = Message<\"vip.v1.ListVIPTiersResponse\"> & {\n /**\n * Positive identifier of the returned VIP policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Average portfolio value retention threshold in basis points. One basis\n * point is 0.01%; valid values are 1 through 10000.\n *\n * @generated from field: uint32 retention_threshold_bp = 3;\n */\n retentionThresholdBp: number;\n\n /**\n * Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a\n * naturally bounded 11-row snapshot and is not paginated.\n *\n * @generated from field: repeated vip.v1.VIPTier tiers = 4;\n */\n tiers: VIPTier[];\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersResponse.\n * Use `create(ListVIPTiersResponseSchema)` to create a new message.\n */\nexport const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 2);\n\n/**\n * NextVIPTierThresholds contains the entry thresholds for the tier immediately\n * above the caller's effective tier.\n *\n * @generated from message vip.v1.NextVIPTierThresholds\n */\nexport type NextVIPTierThresholds = Message<\"vip.v1.NextVIPTierThresholds\"> & {\n /**\n * Numeric next tier in the inclusive range 1 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n *\n * @generated from field: string aop_threshold_usd = 3;\n */\n aopThresholdUsd: string;\n};\n\n/**\n * Describes the message vip.v1.NextVIPTierThresholds.\n * Use `create(NextVIPTierThresholdsSchema)` to create a new message.\n */\nexport const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 3);\n\n/**\n * VIPMetricQuality explains the completeness of one rolling 30-day\n * qualification metric.\n *\n * @generated from message vip.v1.VIPMetricQuality\n */\nexport type VIPMetricQuality = Message<\"vip.v1.VIPMetricQuality\"> & {\n /**\n * Completeness status of the metric.\n *\n * @generated from field: vip.v1.VIPMetricStatus status = 1;\n */\n status: VIPMetricStatus;\n\n /**\n * Number of hourly buckets in the rolling 720-hour window that are missing\n * or incomplete. Zero when status is COMPLETE.\n *\n * @generated from field: uint32 incomplete_hours = 2;\n */\n incompleteHours: number;\n};\n\n/**\n * Describes the message vip.v1.VIPMetricQuality.\n * Use `create(VIPMetricQualitySchema)` to create a new message.\n */\nexport const VIPMetricQualitySchema: GenMessage<VIPMetricQuality> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\n\n/**\n * GetVIPStatusRequest requests VIP status for the authenticated caller's root\n * account. All subaccounts inherit that root status, so this request has no\n * subaccount selector.\n *\n * @generated from message vip.v1.GetVIPStatusRequest\n */\nexport type GetVIPStatusRequest = Message<\"vip.v1.GetVIPStatusRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusRequest.\n * Use `create(GetVIPStatusRequestSchema)` to create a new message.\n */\nexport const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 5);\n\n/**\n * GetVIPStatusResponse contains the authenticated caller-root VIP assignment\n * and the qualification facts available for that assignment.\n *\n * @generated from message vip.v1.GetVIPStatusResponse\n */\nexport type GetVIPStatusResponse = Message<\"vip.v1.GetVIPStatusResponse\"> & {\n /**\n * Effective VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Tier earned from rolling 30-day settled spot volume, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 volume_tier = 2;\n */\n volumeTier: number;\n\n /**\n * Tier earned from rolling 30-day average portfolio value, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 aop_tier = 3;\n */\n aopTier: number;\n\n /**\n * Rolling 30-day settled spot volume in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. When\n * settled_volume_quality.status is PRICE_UNAVAILABLE, this is a lower bound\n * that excludes executions without an admissible USD reference price.\n * Omitted when settled_volume_quality is omitted or its status is\n * INCOMPLETE_HISTORY.\n *\n * @generated from field: optional string settled_volume_30d_usd = 4;\n */\n settledVolume30dUsd?: string | undefined;\n\n /**\n * Rolling 30-day average portfolio value in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * unless average_aop_quality.status is COMPLETE.\n *\n * @generated from field: optional string average_aop_30d_usd = 5;\n */\n averageAop30dUsd?: string | undefined;\n\n /**\n * Positive identifier of the VIP policy used for this assignment.\n *\n * @generated from field: uint64 policy_version = 6;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which the selected assignment policy became effective.\n *\n * @generated from field: google.protobuf.Timestamp policy_effective_from = 7;\n */\n policyEffectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time from which the explicit VIP assignment is effective. Omitted\n * while a new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_from = 8;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time at which the explicit assignment was evaluated. Omitted while a\n * new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;\n */\n evaluatedAt?: Timestamp | undefined;\n\n /**\n * UTC cutoff of the rolling metrics used for this assignment. Omitted when\n * neither settled_volume_30d_usd nor average_aop_30d_usd is present.\n *\n * @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;\n */\n metricsAsOf?: Timestamp | undefined;\n\n /**\n * Entry thresholds for the tier immediately above the effective tier.\n * Omitted when the effective tier is VIP10.\n *\n * @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;\n */\n nextTierThresholds?: NextVIPTierThresholds | undefined;\n\n /**\n * Completeness of the rolling 30-day settled spot volume. An incomplete\n * volume metric can raise the volume tier when its proven lower bound meets\n * a higher threshold, but it never lowers the tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality settled_volume_quality = 12;\n */\n settledVolumeQuality?: VIPMetricQuality | undefined;\n\n /**\n * Completeness of the rolling 30-day average portfolio value. An incomplete\n * average portfolio value keeps its previous tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality average_aop_quality = 13;\n */\n averageAopQuality?: VIPMetricQuality | undefined;\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusResponse.\n * Use `create(GetVIPStatusResponseSchema)` to create a new message.\n */\nexport const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 6);\n\n/**\n * VIPMetricStatus describes how complete one rolling 30-day qualification\n * metric is.\n *\n * @generated from enum vip.v1.VIPMetricStatus\n */\nexport enum VIPMetricStatus {\n /**\n * No metric status was specified.\n *\n * @generated from enum value: METRIC_UNSPECIFIED = 0;\n */\n METRIC_UNSPECIFIED = 0,\n\n /**\n * Every hour in the rolling window has complete evidence.\n *\n * @generated from enum value: COMPLETE = 1;\n */\n COMPLETE = 1,\n\n /**\n * Every hour in the rolling window is present, but some hours contain\n * executions or holdings without an admissible USD reference price at the\n * required time. Those contributions are not estimated.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 2;\n */\n PRICE_UNAVAILABLE = 2,\n\n /**\n * Some hours in the rolling window are missing or contain other incomplete\n * evidence.\n *\n * @generated from enum value: INCOMPLETE_HISTORY = 3;\n */\n INCOMPLETE_HISTORY = 3,\n}\n\n/**\n * Describes the enum vip.v1.VIPMetricStatus.\n */\nexport const VIPMetricStatusSchema: GenEnum<VIPMetricStatus> = /*@__PURE__*/\n enumDesc(file_vip_v1_vip, 0);\n\n/**\n * VIPService serves public VIP policy reference data and the authenticated\n * caller-root qualification status.\n *\n * @generated from service vip.v1.VIPService\n */\nexport const VIPService: GenService<{\n /**\n * List the complete active VIP0 through VIP10 tier catalog in ascending tier\n * order.\n * This public, caller-independent catalog supports cacheable ConnectRPC GET.\n *\n * @generated from rpc vip.v1.VIPService.ListVIPTiers\n */\n listVIPTiers: {\n methodKind: \"unary\";\n input: typeof ListVIPTiersRequestSchema;\n output: typeof ListVIPTiersResponseSchema;\n },\n /**\n * Get VIP qualification status for the authenticated caller's root account.\n *\n * @generated from rpc vip.v1.VIPService.GetVIPStatus\n */\n getVIPStatus: {\n methodKind: \"unary\";\n input: typeof GetVIPStatusRequestSchema;\n output: typeof GetVIPStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_vip_v1_vip, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kBACX,uBAAS,gtEAAgtE,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwDvxE,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AA6BhC,MAAa,yBACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA6HhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,wBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,cAAA,KAAA;;;;;;;;CASA,gBAAA,gBAAA,uBAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,iBAAiB,CAAC;;;;;;;AAQ7B,MAAa,aAwBX,0BAAY,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"vip_pb.js","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file vip/v1/vip.proto (package vip.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 { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file vip/v1/vip.proto.\n */\nexport const file_vip_v1_vip: GenFile = /*@__PURE__*/\n fileDesc(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACJZChBWSVBNZXRyaWNRdWFsaXR5EikKBnN0YXR1cxgBIAEoDjIXLnZpcC52MS5WSVBNZXRyaWNTdGF0dXNCABIaChBpbmNvbXBsZXRlX2hvdXJzGAIgASgNQgAiFQoTR2V0VklQU3RhdHVzUmVxdWVzdCLQBQoUR2V0VklQU3RhdHVzUmVzcG9uc2USDgoEdGllchgBIAEoDUIAEhUKC3ZvbHVtZV90aWVyGAIgASgNQgASEgoIYW9wX3RpZXIYAyABKA1CABIlChZzZXR0bGVkX3ZvbHVtZV8zMGRfdXNkGAQgASgJQgBIAIgBARIiChNhdmVyYWdlX2FvcF8zMGRfdXNkGAUgASgJQgBIAYgBARIYCg5wb2xpY3lfdmVyc2lvbhgGIAEoBEIAEjsKFXBvbGljeV9lZmZlY3RpdmVfZnJvbRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABI3Cg5lZmZlY3RpdmVfZnJvbRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAogBARI1CgxldmFsdWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAOIAQESNgoNbWV0cmljc19hc19vZhgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIBIgBARJAChRuZXh0X3RpZXJfdGhyZXNob2xkcxgLIAEoCzIdLnZpcC52MS5OZXh0VklQVGllclRocmVzaG9sZHNIBYgBARI4ChZzZXR0bGVkX3ZvbHVtZV9xdWFsaXR5GAwgASgLMhgudmlwLnYxLlZJUE1ldHJpY1F1YWxpdHkSNQoTYXZlcmFnZV9hb3BfcXVhbGl0eRgNIAEoCzIYLnZpcC52MS5WSVBNZXRyaWNRdWFsaXR5QhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkcypmCg9WSVBNZXRyaWNTdGF0dXMSFgoSTUVUUklDX1VOU1BFQ0lGSUVEEAASDAoIQ09NUExFVEUQARIVChFQUklDRV9VTkFWQUlMQUJMRRACEhYKEklOQ09NUExFVEVfSElTVE9SWRADMqsBCgpWSVBTZXJ2aWNlEk4KDExpc3RWSVBUaWVycxIbLnZpcC52MS5MaXN0VklQVGllcnNSZXF1ZXN0GhwudmlwLnYxLkxpc3RWSVBUaWVyc1Jlc3BvbnNlIgOQAgESSwoMR2V0VklQU3RhdHVzEhsudmlwLnYxLkdldFZJUFN0YXR1c1JlcXVlc3QaHC52aXAudjEuR2V0VklQU3RhdHVzUmVzcG9uc2UiABoAQjpaOGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vdmlwL3YxO3ZpcHYxYgZwcm90bzM=\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.\n *\n * @generated from message vip.v1.VIPTier\n */\nexport type VIPTier = Message<\"vip.v1.VIPTier\"> & {\n /**\n * Numeric VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n * Omitted for VIP0, which has no average portfolio value entry threshold.\n *\n * @generated from field: optional string aop_threshold_usd = 3;\n */\n aopThresholdUsd?: string | undefined;\n\n /**\n * Absolute maker fee rate before symbol-specific adjustments, encoded as a\n * base-10 percentage string without a percent sign. Values are between\n * -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 4;\n */\n makerFeeRatePercent: string;\n\n /**\n * Absolute taker fee rate before symbol-specific adjustments, encoded as a\n * non-negative base-10 percentage string without a percent sign. Values are\n * between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 5;\n */\n takerFeeRatePercent: string;\n};\n\n/**\n * Describes the message vip.v1.VIPTier.\n * Use `create(VIPTierSchema)` to create a new message.\n */\nexport const VIPTierSchema: GenMessage<VIPTier> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 0);\n\n/**\n * ListVIPTiersRequest requests the complete active VIP tier catalog.\n *\n * @generated from message vip.v1.ListVIPTiersRequest\n */\nexport type ListVIPTiersRequest = Message<\"vip.v1.ListVIPTiersRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersRequest.\n * Use `create(ListVIPTiersRequestSchema)` to create a new message.\n */\nexport const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 1);\n\n/**\n * ListVIPTiersResponse contains one complete, immutable VIP policy version.\n *\n * @generated from message vip.v1.ListVIPTiersResponse\n */\nexport type ListVIPTiersResponse = Message<\"vip.v1.ListVIPTiersResponse\"> & {\n /**\n * Positive identifier of the returned VIP policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Average portfolio value retention threshold in basis points. One basis\n * point is 0.01%; valid values are 1 through 10000.\n *\n * @generated from field: uint32 retention_threshold_bp = 3;\n */\n retentionThresholdBp: number;\n\n /**\n * Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a\n * naturally bounded 11-row snapshot and is not paginated.\n *\n * @generated from field: repeated vip.v1.VIPTier tiers = 4;\n */\n tiers: VIPTier[];\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersResponse.\n * Use `create(ListVIPTiersResponseSchema)` to create a new message.\n */\nexport const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 2);\n\n/**\n * NextVIPTierThresholds contains the entry thresholds for the tier immediately\n * above the caller's effective tier.\n *\n * @generated from message vip.v1.NextVIPTierThresholds\n */\nexport type NextVIPTierThresholds = Message<\"vip.v1.NextVIPTierThresholds\"> & {\n /**\n * Numeric next tier in the inclusive range 1 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n *\n * @generated from field: string aop_threshold_usd = 3;\n */\n aopThresholdUsd: string;\n};\n\n/**\n * Describes the message vip.v1.NextVIPTierThresholds.\n * Use `create(NextVIPTierThresholdsSchema)` to create a new message.\n */\nexport const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 3);\n\n/**\n * VIPMetricQuality explains the completeness of one rolling 30-day\n * qualification metric.\n *\n * @generated from message vip.v1.VIPMetricQuality\n */\nexport type VIPMetricQuality = Message<\"vip.v1.VIPMetricQuality\"> & {\n /**\n * Completeness status of the metric.\n *\n * @generated from field: vip.v1.VIPMetricStatus status = 1;\n */\n status: VIPMetricStatus;\n\n /**\n * Number of hourly buckets in the rolling 720-hour window that are missing\n * or incomplete. Zero when status is COMPLETE.\n *\n * @generated from field: uint32 incomplete_hours = 2;\n */\n incompleteHours: number;\n};\n\n/**\n * Describes the message vip.v1.VIPMetricQuality.\n * Use `create(VIPMetricQualitySchema)` to create a new message.\n */\nexport const VIPMetricQualitySchema: GenMessage<VIPMetricQuality> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\n\n/**\n * GetVIPStatusRequest requests VIP status for the authenticated caller's root\n * account. All subaccounts inherit that root status, so this request has no\n * subaccount selector.\n *\n * @generated from message vip.v1.GetVIPStatusRequest\n */\nexport type GetVIPStatusRequest = Message<\"vip.v1.GetVIPStatusRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusRequest.\n * Use `create(GetVIPStatusRequestSchema)` to create a new message.\n */\nexport const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 5);\n\n/**\n * GetVIPStatusResponse contains the authenticated caller-root VIP assignment\n * and the qualification facts available for that assignment.\n *\n * @generated from message vip.v1.GetVIPStatusResponse\n */\nexport type GetVIPStatusResponse = Message<\"vip.v1.GetVIPStatusResponse\"> & {\n /**\n * Effective VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Tier earned from rolling 30-day settled spot volume, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 volume_tier = 2;\n */\n volumeTier: number;\n\n /**\n * Tier earned from rolling 30-day average portfolio value, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 aop_tier = 3;\n */\n aopTier: number;\n\n /**\n * Rolling 30-day settled spot volume in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. When\n * settled_volume_quality.status is PRICE_UNAVAILABLE, this is a lower bound\n * that excludes executions without an admissible USD reference price.\n * Omitted when settled_volume_quality is omitted or its status is\n * INCOMPLETE_HISTORY.\n *\n * @generated from field: optional string settled_volume_30d_usd = 4;\n */\n settledVolume30dUsd?: string | undefined;\n\n /**\n * Rolling 30-day average portfolio value in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * unless average_aop_quality.status is COMPLETE.\n *\n * @generated from field: optional string average_aop_30d_usd = 5;\n */\n averageAop30dUsd?: string | undefined;\n\n /**\n * Positive identifier of the VIP policy used for this assignment.\n *\n * @generated from field: uint64 policy_version = 6;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which the selected assignment policy became effective.\n *\n * @generated from field: google.protobuf.Timestamp policy_effective_from = 7;\n */\n policyEffectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time from which the explicit VIP assignment is effective. Omitted\n * while a new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_from = 8;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time at which the explicit assignment was evaluated. Omitted while a\n * new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;\n */\n evaluatedAt?: Timestamp | undefined;\n\n /**\n * UTC cutoff of the rolling metrics used for this assignment. Omitted when\n * neither settled_volume_30d_usd nor average_aop_30d_usd is present.\n *\n * @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;\n */\n metricsAsOf?: Timestamp | undefined;\n\n /**\n * Entry thresholds for the tier immediately above the effective tier.\n * Omitted when the effective tier is VIP10.\n *\n * @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;\n */\n nextTierThresholds?: NextVIPTierThresholds | undefined;\n\n /**\n * Completeness of the rolling 30-day settled spot volume. An incomplete\n * volume metric can raise the volume tier when its proven lower bound meets\n * a higher threshold, but it never lowers the tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality settled_volume_quality = 12;\n */\n settledVolumeQuality?: VIPMetricQuality | undefined;\n\n /**\n * Completeness of the rolling 30-day average portfolio value. An incomplete\n * average portfolio value keeps its previous tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality average_aop_quality = 13;\n */\n averageAopQuality?: VIPMetricQuality | undefined;\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusResponse.\n * Use `create(GetVIPStatusResponseSchema)` to create a new message.\n */\nexport const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 6);\n\n/**\n * VIPMetricStatus describes how complete one rolling 30-day qualification\n * metric is.\n *\n * @generated from enum vip.v1.VIPMetricStatus\n */\nexport enum VIPMetricStatus {\n /**\n * No metric status was specified.\n *\n * @generated from enum value: METRIC_UNSPECIFIED = 0;\n */\n METRIC_UNSPECIFIED = 0,\n\n /**\n * Every hour in the rolling window has complete evidence.\n *\n * @generated from enum value: COMPLETE = 1;\n */\n COMPLETE = 1,\n\n /**\n * Every hour in the rolling window is present, but some hours contain\n * executions or holdings without an admissible USD reference price at the\n * required time. Those contributions are not estimated.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 2;\n */\n PRICE_UNAVAILABLE = 2,\n\n /**\n * Some hours in the rolling window are missing or contain other incomplete\n * evidence.\n *\n * @generated from enum value: INCOMPLETE_HISTORY = 3;\n */\n INCOMPLETE_HISTORY = 3,\n}\n\n/**\n * Describes the enum vip.v1.VIPMetricStatus.\n */\nexport const VIPMetricStatusSchema: GenEnum<VIPMetricStatus> = /*@__PURE__*/\n enumDesc(file_vip_v1_vip, 0);\n\n/**\n * VIPService serves public VIP policy reference data and the authenticated\n * caller-root qualification status.\n *\n * @generated from service vip.v1.VIPService\n */\nexport const VIPService: GenService<{\n /**\n * List the complete active VIP0 through VIP10 tier catalog in ascending tier\n * order.\n * This public, caller-independent catalog supports cacheable ConnectRPC GET.\n *\n * @generated from rpc vip.v1.VIPService.ListVIPTiers\n */\n listVIPTiers: {\n methodKind: \"unary\";\n input: typeof ListVIPTiersRequestSchema;\n output: typeof ListVIPTiersResponseSchema;\n },\n /**\n * Get VIP qualification status for the authenticated caller's root account.\n *\n * @generated from rpc vip.v1.VIPService.GetVIPStatus\n */\n getVIPStatus: {\n methodKind: \"unary\";\n input: typeof GetVIPStatusRequestSchema;\n output: typeof GetVIPStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_vip_v1_vip, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kBACX,uBAAS,otEAAotE,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwD3xE,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AA6BhC,MAAa,yBACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA6HhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,wBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,cAAA,KAAA;;;;;;;;CASA,gBAAA,gBAAA,uBAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,iBAAiB,CAAC;;;;;;;AAQ7B,MAAa,aAwBX,0BAAY,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ import { LedgerTransfer, LedgerTransferSide, ListTransfersInput } from "./servic
|
|
|
44
44
|
import { CreateInternalTransferInput, CreateInternalTransferResult, InternalTransferDestination, ResolvedInternalTransferDestination } from "./services/internal-transfers/internal-transfers.schemas.js";
|
|
45
45
|
import { CreateTradingWithdrawResult, CreateTradingWithdrawToExternalChainInput, CreateTradingWithdrawToFundingInput, ValidateWithdrawDestinationInput, ValidateWithdrawDestinationResult } from "./services/trading-withdraws/trading-withdraws.schemas.js";
|
|
46
46
|
import { CreateTradingWithdrawToExternalChainServiceInput, CreateTradingWithdrawToFundingServiceInput, PreparedTradingWithdraw, TradingWithdrawSigningConfig, TradingWithdrawWalletSigner } from "./services/trading-withdraws/trading-withdraws.js";
|
|
47
|
+
import { AutoWithdrawCadence, AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawRunState, AutoWithdrawStepReason, AutoWithdrawStepState, AutoWithdrawWeekday } from "./services/auto-withdraw/auto-withdraw.codecs.js";
|
|
48
|
+
import { AutoWithdrawDestination, AutoWithdrawDestinationInput, AutoWithdrawPause, AutoWithdrawRule, AutoWithdrawRun, AutoWithdrawSchedule, AutoWithdrawScheduleInput, AutoWithdrawScopedInput, AutoWithdrawStep, DisableAutoWithdrawRuleInput, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsResult, SetAutoWithdrawRuleInput } from "./services/auto-withdraw/auto-withdraw.schemas.js";
|
|
47
49
|
import { CreateDepositAddressInput, DepositAddress, ListDepositAddressesInput } from "./services/deposit/deposit.schemas.js";
|
|
48
50
|
import { AddressBook, AddressBookAccountScope, AddressBookEntries, AddressBookEntriesView, AddressBookEntry, AddressBookRecentDestinationsView, AddressBookTag, AddressBookTagSummary, AddressBookView, AddressBookViewInvalidated, CopyAddressBookEntryInput, CreateAddressBookEntryInput, CreateAddressBookTagInput, DeleteAddressBookEntryInput, DeleteAddressBookTagInput, GetAddressBookViewInput, InternalTransferWhitelistEntries, InternalTransferWhitelistEntry, ListAddressBookEntriesInput, ListInternalTransferWhitelistEntriesInput, ListTransferCounterpartiesInput, ListTransferDestinationsInput, MirroredWithdrawWhitelistEntry, SubaccountScopedInput, TransferCounterparties, TransferCounterparty, TransferDestination, TransferDestinations, UpdateAddressBookEntryInput, UpdateAddressBookTagInput, WithdrawWhitelistView, validateCreateAddressBookEntryInput } from "./services/address-book/address-book.schemas.js";
|
|
49
51
|
import { BatchGuardApprovals, BatchSignProtectedActionInput, CreateGuardSignerWalletResult, ExportGuardSignerWalletResult, GuardApproval, GuardSignerScopedInput, GuardSignerStatus, RotateGuardSignerWalletResult, SignProtectedActionInput } from "./services/guard-signer/guard-signer.schemas.js";
|
|
@@ -85,6 +87,7 @@ import "./services/address-book/address-book.types.js";
|
|
|
85
87
|
import "./services/api-keys/api-keys.types.js";
|
|
86
88
|
import "./services/auth/auth.types.js";
|
|
87
89
|
import "./services/auth/profile/profile.types.js";
|
|
90
|
+
import "./services/auto-withdraw/auto-withdraw.types.js";
|
|
88
91
|
import "./services/balances/balances.types.js";
|
|
89
92
|
import "./services/candles/candles.types.js";
|
|
90
93
|
import "./services/chain-analytics/chain-analytics.types.js";
|
|
@@ -121,4 +124,4 @@ import "./services/transfers/transfers.types.js";
|
|
|
121
124
|
import "./services/triggers/triggers.types.js";
|
|
122
125
|
import "./services/vip/vip.types.js";
|
|
123
126
|
import "./services/zipper/zipper.types.js";
|
|
124
|
-
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
127
|
+
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DisableAutoWithdrawRuleInput, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
2
|
+
//#region src/services/auto-withdraw/auto-withdraw.codecs.d.ts
|
|
3
|
+
declare const AUTO_WITHDRAW_CADENCE_VALUES: readonly ["hourly", "daily", "weekly", "biweekly", "monthly"];
|
|
4
|
+
type AutoWithdrawCadence = (typeof AUTO_WITHDRAW_CADENCE_VALUES)[number];
|
|
5
|
+
declare const AUTO_WITHDRAW_WEEKDAY_VALUES: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
6
|
+
type AutoWithdrawWeekday = (typeof AUTO_WITHDRAW_WEEKDAY_VALUES)[number];
|
|
7
|
+
declare const AUTO_WITHDRAW_RUN_STATE_VALUES: readonly ["planned", "paying", "completed", "partially_failed", "failed", "skipped"];
|
|
8
|
+
type AutoWithdrawRunState = (typeof AUTO_WITHDRAW_RUN_STATE_VALUES)[number];
|
|
9
|
+
declare const AUTO_WITHDRAW_STEP_STATE_VALUES: readonly ["pending", "submitting", "submitted", "completed", "failed", "skipped"];
|
|
10
|
+
type AutoWithdrawStepState = (typeof AUTO_WITHDRAW_STEP_STATE_VALUES)[number];
|
|
11
|
+
/** Why a rule paused itself. Unknown future reasons pass through as strings. */
|
|
12
|
+
type AutoWithdrawPauseReason = "destination_not_whitelisted" | "destination_invalid" | "authority_revoked" | (string & {});
|
|
13
|
+
/** Why a run was skipped. Unknown future reasons pass through as strings. */
|
|
14
|
+
type AutoWithdrawRunReason = "nothing_to_pay" | "price_unavailable" | "rule_superseded" | (string & {});
|
|
15
|
+
/** Why a step was skipped or failed. Unknown future reasons pass through as strings. */
|
|
16
|
+
type AutoWithdrawStepReason = "below_minimum" | "price_unavailable" | "rule_superseded" | "destination_not_whitelisted" | "authority_revoked" | "gateway_capacity_insufficient" | "withdrawal_released" | "withdrawal_failed" | (string & {});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AUTO_WITHDRAW_CADENCE_VALUES, AUTO_WITHDRAW_RUN_STATE_VALUES, AUTO_WITHDRAW_STEP_STATE_VALUES, AUTO_WITHDRAW_WEEKDAY_VALUES, AutoWithdrawCadence, AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawRunState, AutoWithdrawStepReason, AutoWithdrawStepState, AutoWithdrawWeekday };
|
|
19
|
+
//# sourceMappingURL=auto-withdraw.codecs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-withdraw.codecs.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.codecs.ts"],"mappings":";;cAGa;KAOD,8BAA8B;cAE7B;KASD,8BAA8B;cAE7B;KAQD,+BAA+B;cAE9B;KAQD,gCAAgC;;KA2DhC;;KAOA;;KAOA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
2
|
+
//#region src/services/auto-withdraw/auto-withdraw.codecs.ts
|
|
3
|
+
const AUTO_WITHDRAW_WEEKDAY_VALUES = [
|
|
4
|
+
"monday",
|
|
5
|
+
"tuesday",
|
|
6
|
+
"wednesday",
|
|
7
|
+
"thursday",
|
|
8
|
+
"friday",
|
|
9
|
+
"saturday",
|
|
10
|
+
"sunday"
|
|
11
|
+
];
|
|
12
|
+
const AutoWithdrawCadenceCodec = { inputToProto: {
|
|
13
|
+
hourly: 3,
|
|
14
|
+
daily: 1,
|
|
15
|
+
weekly: 2,
|
|
16
|
+
biweekly: 4,
|
|
17
|
+
monthly: 5
|
|
18
|
+
} };
|
|
19
|
+
const AutoWithdrawWeekdayCodec = {
|
|
20
|
+
inputToProto: {
|
|
21
|
+
monday: 1,
|
|
22
|
+
tuesday: 2,
|
|
23
|
+
wednesday: 3,
|
|
24
|
+
thursday: 4,
|
|
25
|
+
friday: 5,
|
|
26
|
+
saturday: 6,
|
|
27
|
+
sunday: 7
|
|
28
|
+
},
|
|
29
|
+
protoToOutput: {
|
|
30
|
+
[0]: "unspecified",
|
|
31
|
+
[1]: "monday",
|
|
32
|
+
[2]: "tuesday",
|
|
33
|
+
[3]: "wednesday",
|
|
34
|
+
[4]: "thursday",
|
|
35
|
+
[5]: "friday",
|
|
36
|
+
[6]: "saturday",
|
|
37
|
+
[7]: "sunday"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const AutoWithdrawRunStateCodec = { protoToOutput: {
|
|
41
|
+
[0]: "unspecified",
|
|
42
|
+
[1]: "planned",
|
|
43
|
+
[2]: "paying",
|
|
44
|
+
[3]: "completed",
|
|
45
|
+
[4]: "partially_failed",
|
|
46
|
+
[5]: "failed",
|
|
47
|
+
[6]: "skipped"
|
|
48
|
+
} };
|
|
49
|
+
const AutoWithdrawStepStateCodec = { protoToOutput: {
|
|
50
|
+
[0]: "unspecified",
|
|
51
|
+
[1]: "pending",
|
|
52
|
+
[2]: "submitting",
|
|
53
|
+
[3]: "submitted",
|
|
54
|
+
[4]: "completed",
|
|
55
|
+
[5]: "failed",
|
|
56
|
+
[6]: "skipped"
|
|
57
|
+
} };
|
|
58
|
+
//#endregion
|
|
59
|
+
export { AUTO_WITHDRAW_WEEKDAY_VALUES, AutoWithdrawCadenceCodec, AutoWithdrawRunStateCodec, AutoWithdrawStepStateCodec, AutoWithdrawWeekdayCodec };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=auto-withdraw.codecs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-withdraw.codecs.js","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const AUTO_WITHDRAW_CADENCE_VALUES = [\n \"hourly\",\n \"daily\",\n \"weekly\",\n \"biweekly\",\n \"monthly\",\n] as const;\nexport type AutoWithdrawCadence = (typeof AUTO_WITHDRAW_CADENCE_VALUES)[number];\n\nexport const AUTO_WITHDRAW_WEEKDAY_VALUES = [\n \"monday\",\n \"tuesday\",\n \"wednesday\",\n \"thursday\",\n \"friday\",\n \"saturday\",\n \"sunday\",\n] as const;\nexport type AutoWithdrawWeekday = (typeof AUTO_WITHDRAW_WEEKDAY_VALUES)[number];\n\nexport const AUTO_WITHDRAW_RUN_STATE_VALUES = [\n \"planned\",\n \"paying\",\n \"completed\",\n \"partially_failed\",\n \"failed\",\n \"skipped\",\n] as const;\nexport type AutoWithdrawRunState = (typeof AUTO_WITHDRAW_RUN_STATE_VALUES)[number];\n\nexport const AUTO_WITHDRAW_STEP_STATE_VALUES = [\n \"pending\",\n \"submitting\",\n \"submitted\",\n \"completed\",\n \"failed\",\n \"skipped\",\n] as const;\nexport type AutoWithdrawStepState = (typeof AUTO_WITHDRAW_STEP_STATE_VALUES)[number];\n\nexport const AutoWithdrawCadenceCodec = {\n inputToProto: {\n hourly: Proto.AutoWithdrawCadence.HOURLY,\n daily: Proto.AutoWithdrawCadence.DAILY,\n weekly: Proto.AutoWithdrawCadence.WEEKLY,\n biweekly: Proto.AutoWithdrawCadence.BIWEEKLY,\n monthly: Proto.AutoWithdrawCadence.MONTHLY,\n } satisfies InputToProto<AutoWithdrawCadence, Proto.AutoWithdrawCadence>,\n} as const;\n\nexport const AutoWithdrawWeekdayCodec = {\n inputToProto: {\n monday: Proto.AutoWithdrawWeekday.MONDAY,\n tuesday: Proto.AutoWithdrawWeekday.TUESDAY,\n wednesday: Proto.AutoWithdrawWeekday.WEDNESDAY,\n thursday: Proto.AutoWithdrawWeekday.THURSDAY,\n friday: Proto.AutoWithdrawWeekday.FRIDAY,\n saturday: Proto.AutoWithdrawWeekday.SATURDAY,\n sunday: Proto.AutoWithdrawWeekday.SUNDAY,\n } satisfies InputToProto<AutoWithdrawWeekday, Proto.AutoWithdrawWeekday>,\n protoToOutput: {\n [Proto.AutoWithdrawWeekday.WEEKDAY_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawWeekday.MONDAY]: \"monday\",\n [Proto.AutoWithdrawWeekday.TUESDAY]: \"tuesday\",\n [Proto.AutoWithdrawWeekday.WEDNESDAY]: \"wednesday\",\n [Proto.AutoWithdrawWeekday.THURSDAY]: \"thursday\",\n [Proto.AutoWithdrawWeekday.FRIDAY]: \"friday\",\n [Proto.AutoWithdrawWeekday.SATURDAY]: \"saturday\",\n [Proto.AutoWithdrawWeekday.SUNDAY]: \"sunday\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawWeekday, AutoWithdrawWeekday>,\n} as const;\n\nexport const AutoWithdrawRunStateCodec = {\n protoToOutput: {\n [Proto.AutoWithdrawRunState.RUN_STATE_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawRunState.RUN_PLANNED]: \"planned\",\n [Proto.AutoWithdrawRunState.RUN_PAYING]: \"paying\",\n [Proto.AutoWithdrawRunState.RUN_COMPLETED]: \"completed\",\n [Proto.AutoWithdrawRunState.RUN_PARTIALLY_FAILED]: \"partially_failed\",\n [Proto.AutoWithdrawRunState.RUN_FAILED]: \"failed\",\n [Proto.AutoWithdrawRunState.RUN_SKIPPED]: \"skipped\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawRunState, AutoWithdrawRunState>,\n} as const;\n\nexport const AutoWithdrawStepStateCodec = {\n protoToOutput: {\n [Proto.AutoWithdrawStepState.STEP_STATE_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawStepState.STEP_PENDING]: \"pending\",\n [Proto.AutoWithdrawStepState.STEP_SUBMITTING]: \"submitting\",\n [Proto.AutoWithdrawStepState.STEP_SUBMITTED]: \"submitted\",\n [Proto.AutoWithdrawStepState.STEP_COMPLETED]: \"completed\",\n [Proto.AutoWithdrawStepState.STEP_FAILED]: \"failed\",\n [Proto.AutoWithdrawStepState.STEP_SKIPPED]: \"skipped\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawStepState, AutoWithdrawStepState>,\n} as const;\n\n/** Why a rule paused itself. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawPauseReason =\n | \"destination_not_whitelisted\"\n | \"destination_invalid\"\n | \"authority_revoked\"\n | (string & {});\n\n/** Why a run was skipped. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawRunReason =\n | \"nothing_to_pay\"\n | \"price_unavailable\"\n | \"rule_superseded\"\n | (string & {});\n\n/** Why a step was skipped or failed. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawStepReason =\n | \"below_minimum\"\n | \"price_unavailable\"\n | \"rule_superseded\"\n | \"destination_not_whitelisted\"\n | \"authority_revoked\"\n | \"gateway_capacity_insufficient\"\n | \"withdrawal_released\"\n | \"withdrawal_failed\"\n | (string & {});\n"],"mappings":";;AAYA,MAAa,+BAA+B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAuBA,MAAa,2BAA2B,EACpC,cAAc;CACV,QAAA;CACA,OAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;AACJ,EACJ;AAEA,MAAa,2BAA2B;CACpC,cAAc;EACV,QAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,QAAA;EACA,UAAA;EACA,QAAA;CACJ;CACA,eAAe;GACsC,IAAA;GACb,IAAA;GACC,IAAA;GACE,IAAA;GACD,IAAA;GACF,IAAA;GACE,IAAA;GACF,IAAA;CACxC;AACJ;AAEA,MAAa,4BAA4B,EACrC,eAAe;EACyC,IAAA;EACV,IAAA;EACD,IAAA;EACG,IAAA;EACO,IAAA;EACV,IAAA;EACC,IAAA;AAC9C,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EAC2C,IAAA;EACV,IAAA;EACG,IAAA;EACD,IAAA;EACA,IAAA;EACH,IAAA;EACC,IAAA;AAChD,EACJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AuthApiTransports } from "../../shared/transports.js";
|
|
2
|
+
import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { SubaccountResolver } from "../subaccount-resolver.js";
|
|
4
|
+
import { AutoWithdrawRule, AutoWithdrawScopedInput, DisableAutoWithdrawRuleInput, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsResult, SetAutoWithdrawRuleInput } from "./auto-withdraw.schemas.js";
|
|
5
|
+
//#region src/services/auto-withdraw/auto-withdraw.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's
|
|
8
|
+
* balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to
|
|
9
|
+
* destinations on the account's external withdraw whitelist. API keys can read rules and runs;
|
|
10
|
+
* changing a rule needs a session login with withdraw rights and a fresh single-use step-up
|
|
11
|
+
* token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or
|
|
12
|
+
* `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new
|
|
13
|
+
* token.
|
|
14
|
+
*/
|
|
15
|
+
declare class AutoWithdrawService {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(transports: AuthApiTransports, resolver?: SubaccountResolver);
|
|
18
|
+
/** Returns the account's latest rule version, or null when the account never had a rule. */
|
|
19
|
+
getRule(input?: AutoWithdrawScopedInput, options?: PolyesterRequestOptions): Promise<AutoWithdrawRule | null>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates the account's rule, or replaces its latest version, and returns the new version.
|
|
22
|
+
* `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a
|
|
23
|
+
* stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
|
|
24
|
+
*/
|
|
25
|
+
setRule(input: SetAutoWithdrawRuleInput, options?: PolyesterMutationOptions): Promise<AutoWithdrawRule>;
|
|
26
|
+
/**
|
|
27
|
+
* Disables the account's rule and returns the disabled version, which has no destinations.
|
|
28
|
+
* A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
|
|
29
|
+
*/
|
|
30
|
+
disableRule(input: DisableAutoWithdrawRuleInput, options?: PolyesterMutationOptions): Promise<AutoWithdrawRule>;
|
|
31
|
+
/**
|
|
32
|
+
* Lists the account's runs with their payouts, newest first. Pass the previous
|
|
33
|
+
* `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.
|
|
34
|
+
*/
|
|
35
|
+
listRuns(input?: ListAutoWithdrawRunsInput, options?: PolyesterRequestOptions): Promise<ListAutoWithdrawRunsResult>;
|
|
36
|
+
private resolveInput;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { AutoWithdrawService };
|
|
40
|
+
//# sourceMappingURL=auto-withdraw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-withdraw.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.ts"],"mappings":";;;;;;;;;;;;;;cA6Da;;EAIG,YAAA,YAAY,mBAAmB,WAAW;;EAMhD,QACF,QAAO,yBACP,UAAU,0BACX,QAAQ;;;;;;EAcL,QACF,OAAO,0BACP,UAAU,2BACX,QAAQ;;;;;EAYL,YACF,OAAO,8BACP,UAAU,2BACX,QAAQ;;;;;EAYL,SACF,QAAO,2BACP,UAAU,0BACX,QAAQ;UASH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { PolyesterError, RevisionConflictError } from "../../shared/errors.js";
|
|
2
|
+
import { toPolyesterError } from "../../shared/connect-error-mapping.js";
|
|
3
|
+
import { parse } from "../../shared/validation.js";
|
|
4
|
+
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
5
|
+
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
6
|
+
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
7
|
+
import { AutoWithdrawService as AutoWithdrawService$1 } from "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
8
|
+
import { AutoWithdrawRuleSchema, AutoWithdrawScopedInputSchema, DisableAutoWithdrawRuleInputSchema, ListAutoWithdrawRunsInputSchema, ListAutoWithdrawRunsResultSchema, SetAutoWithdrawRuleInputSchema } from "./auto-withdraw.schemas.js";
|
|
9
|
+
import { Code, ConnectError, createClient } from "@connectrpc/connect";
|
|
10
|
+
//#region src/services/auto-withdraw/auto-withdraw.ts
|
|
11
|
+
/**
|
|
12
|
+
* A stale `expectedVersion` comes back as the withdraw `CONFLICT` detail, or as a bare
|
|
13
|
+
* `Aborted`, which the transport would otherwise surface as a retryable `TransientError`.
|
|
14
|
+
* Either one becomes a `RevisionConflictError`: refetch the rule, don't retry blindly.
|
|
15
|
+
*/
|
|
16
|
+
function rethrowVersionConflict(err) {
|
|
17
|
+
const mapped = toPolyesterError(err);
|
|
18
|
+
if (mapped instanceof PolyesterError && !(mapped instanceof RevisionConflictError) && (mapped.detail?.service === "withdraw" && mapped.detail.code === "CONFLICT" || mapped.cause instanceof ConnectError && mapped.cause.code === Code.Aborted && mapped.cause.details.length === 0)) throw new RevisionConflictError(mapped.message || "Auto-withdraw rule changed since it was last read.", {
|
|
19
|
+
cause: mapped.cause,
|
|
20
|
+
detail: mapped.detail,
|
|
21
|
+
status: mapped.status
|
|
22
|
+
});
|
|
23
|
+
throw mapped;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's
|
|
27
|
+
* balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to
|
|
28
|
+
* destinations on the account's external withdraw whitelist. API keys can read rules and runs;
|
|
29
|
+
* changing a rule needs a session login with withdraw rights and a fresh single-use step-up
|
|
30
|
+
* token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or
|
|
31
|
+
* `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new
|
|
32
|
+
* token.
|
|
33
|
+
*/
|
|
34
|
+
var AutoWithdrawService = class {
|
|
35
|
+
#client;
|
|
36
|
+
#resolver;
|
|
37
|
+
constructor(transports, resolver) {
|
|
38
|
+
this.#client = createClient(AutoWithdrawService$1, transports.authApi);
|
|
39
|
+
this.#resolver = resolver;
|
|
40
|
+
}
|
|
41
|
+
/** Returns the account's latest rule version, or null when the account never had a rule. */
|
|
42
|
+
async getRule(input = {}, options) {
|
|
43
|
+
const request = parse(AutoWithdrawScopedInputSchema, this.resolveInput(input));
|
|
44
|
+
const response = await this.#client.getAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options));
|
|
45
|
+
return response.rule ? parse(AutoWithdrawRuleSchema, response.rule) : null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates the account's rule, or replaces its latest version, and returns the new version.
|
|
49
|
+
* `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a
|
|
50
|
+
* stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
|
|
51
|
+
*/
|
|
52
|
+
async setRule(input, options) {
|
|
53
|
+
const request = parse(SetAutoWithdrawRuleInputSchema, this.resolveInput(input));
|
|
54
|
+
const response = await this.#client.setAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options)).catch(rethrowVersionConflict);
|
|
55
|
+
return parse(AutoWithdrawRuleSchema, response.rule);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Disables the account's rule and returns the disabled version, which has no destinations.
|
|
59
|
+
* A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
|
|
60
|
+
*/
|
|
61
|
+
async disableRule(input, options) {
|
|
62
|
+
const request = parse(DisableAutoWithdrawRuleInputSchema, this.resolveInput(input));
|
|
63
|
+
const response = await this.#client.disableAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options)).catch(rethrowVersionConflict);
|
|
64
|
+
return parse(AutoWithdrawRuleSchema, response.rule);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Lists the account's runs with their payouts, newest first. Pass the previous
|
|
68
|
+
* `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.
|
|
69
|
+
*/
|
|
70
|
+
async listRuns(input = {}, options) {
|
|
71
|
+
const request = parse(ListAutoWithdrawRunsInputSchema, this.resolveInput(input));
|
|
72
|
+
const response = await this.#client.listAutoWithdrawRuns(removeUndefined(request), toConnectCallOptions(options));
|
|
73
|
+
return parse(ListAutoWithdrawRunsResultSchema, response);
|
|
74
|
+
}
|
|
75
|
+
resolveInput(input) {
|
|
76
|
+
return resolveAccountScopedInput(input, this.#resolver);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
80
|
+
export { AutoWithdrawService };
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=auto-withdraw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-withdraw.js","names":["#client","Proto.AutoWithdrawService","#resolver"],"sources":["../../../src/services/auto-withdraw/auto-withdraw.ts"],"sourcesContent":["import { Code, ConnectError, createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport type { AccountScopedInput } from \"../../shared/account-scope.js\";\nimport { toPolyesterError } from \"../../shared/connect-error-mapping.js\";\nimport { PolyesterError, RevisionConflictError } from \"../../shared/errors.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport {\n AutoWithdrawRuleSchema,\n AutoWithdrawScopedInputSchema,\n DisableAutoWithdrawRuleInputSchema,\n ListAutoWithdrawRunsInputSchema,\n ListAutoWithdrawRunsResultSchema,\n SetAutoWithdrawRuleInputSchema,\n type AutoWithdrawRule,\n type AutoWithdrawScopedInput,\n type DisableAutoWithdrawRuleInput,\n type ListAutoWithdrawRunsInput,\n type ListAutoWithdrawRunsResult,\n type SetAutoWithdrawRuleInput,\n} from \"./auto-withdraw.schemas.js\";\n\n/**\n * A stale `expectedVersion` comes back as the withdraw `CONFLICT` detail, or as a bare\n * `Aborted`, which the transport would otherwise surface as a retryable `TransientError`.\n * Either one becomes a `RevisionConflictError`: refetch the rule, don't retry blindly.\n */\nfunction rethrowVersionConflict(err: unknown): never {\n const mapped = toPolyesterError(err);\n if (\n mapped instanceof PolyesterError &&\n !(mapped instanceof RevisionConflictError) &&\n ((mapped.detail?.service === \"withdraw\" && mapped.detail.code === \"CONFLICT\") ||\n (mapped.cause instanceof ConnectError &&\n mapped.cause.code === Code.Aborted &&\n mapped.cause.details.length === 0))\n ) {\n throw new RevisionConflictError(\n mapped.message || \"Auto-withdraw rule changed since it was last read.\",\n { cause: mapped.cause, detail: mapped.detail, status: mapped.status },\n );\n }\n throw mapped;\n}\n\n/**\n * Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's\n * balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to\n * destinations on the account's external withdraw whitelist. API keys can read rules and runs;\n * changing a rule needs a session login with withdraw rights and a fresh single-use step-up\n * token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or\n * `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new\n * token.\n */\nexport class AutoWithdrawService {\n #client: Client<typeof Proto.AutoWithdrawService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.AutoWithdrawService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /** Returns the account's latest rule version, or null when the account never had a rule. */\n async getRule(\n input: AutoWithdrawScopedInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<AutoWithdrawRule | null> {\n const request = parse(AutoWithdrawScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.getAutoWithdrawRule(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.rule ? parse(AutoWithdrawRuleSchema, response.rule) : null;\n }\n\n /**\n * Creates the account's rule, or replaces its latest version, and returns the new version.\n * `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a\n * stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.\n */\n async setRule(\n input: SetAutoWithdrawRuleInput,\n options?: PolyesterMutationOptions,\n ): Promise<AutoWithdrawRule> {\n const request = parse(SetAutoWithdrawRuleInputSchema, this.resolveInput(input));\n const response = await this.#client\n .setAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options))\n .catch(rethrowVersionConflict);\n return parse(AutoWithdrawRuleSchema, response.rule);\n }\n\n /**\n * Disables the account's rule and returns the disabled version, which has no destinations.\n * A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.\n */\n async disableRule(\n input: DisableAutoWithdrawRuleInput,\n options?: PolyesterMutationOptions,\n ): Promise<AutoWithdrawRule> {\n const request = parse(DisableAutoWithdrawRuleInputSchema, this.resolveInput(input));\n const response = await this.#client\n .disableAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options))\n .catch(rethrowVersionConflict);\n return parse(AutoWithdrawRuleSchema, response.rule);\n }\n\n /**\n * Lists the account's runs with their payouts, newest first. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.\n */\n async listRuns(\n input: ListAutoWithdrawRunsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListAutoWithdrawRunsResult> {\n const request = parse(ListAutoWithdrawRunsInputSchema, this.resolveInput(input));\n const response = await this.#client.listAutoWithdrawRuns(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(ListAutoWithdrawRunsResultSchema, response);\n }\n\n private resolveInput<TInput extends AccountScopedInput>(input: TInput): TInput {\n return resolveAccountScopedInput(input, this.#resolver);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,SAAS,uBAAuB,KAAqB;CACjD,MAAM,SAAS,iBAAiB,GAAG;CACnC,IACI,kBAAkB,kBAClB,EAAE,kBAAkB,2BAClB,OAAO,QAAQ,YAAY,cAAc,OAAO,OAAO,SAAS,cAC7D,OAAO,iBAAiB,gBACrB,OAAO,MAAM,SAAS,KAAK,WAC3B,OAAO,MAAM,QAAQ,WAAW,IAExC,MAAM,IAAI,sBACN,OAAO,WAAW,sDAClB;EAAE,OAAO,OAAO;EAAO,QAAQ,OAAO;EAAQ,QAAQ,OAAO;CAAO,CACxE;CAEJ,MAAM;AACV;;;;;;;;;;AAWA,IAAa,sBAAb,MAAiC;CAC7B;CACA;CAEA,YAAY,YAA+B,UAA+B;EACtE,KAAKA,UAAU,aAAaC,uBAA2B,WAAW,OAAO;EACzE,KAAKC,YAAY;CACrB;;CAGA,MAAM,QACF,QAAiC,CAAC,GAClC,SACgC;EAChC,MAAM,UAAU,MAAM,+BAA+B,KAAK,aAAa,KAAK,CAAC;EAC7E,MAAM,WAAW,MAAM,KAAKF,QAAQ,oBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,SAAS,OAAO,MAAM,wBAAwB,SAAS,IAAI,IAAI;CAC1E;;;;;;CAOA,MAAM,QACF,OACA,SACyB;EACzB,MAAM,UAAU,MAAM,gCAAgC,KAAK,aAAa,KAAK,CAAC;EAC9E,MAAM,WAAW,MAAM,KAAKA,QACvB,oBAAoB,gBAAgB,OAAO,GAAG,qBAAqB,OAAO,CAAC,CAAC,CAC5E,MAAM,sBAAsB;EACjC,OAAO,MAAM,wBAAwB,SAAS,IAAI;CACtD;;;;;CAMA,MAAM,YACF,OACA,SACyB;EACzB,MAAM,UAAU,MAAM,oCAAoC,KAAK,aAAa,KAAK,CAAC;EAClF,MAAM,WAAW,MAAM,KAAKA,QACvB,wBAAwB,gBAAgB,OAAO,GAAG,qBAAqB,OAAO,CAAC,CAAC,CAChF,MAAM,sBAAsB;EACjC,OAAO,MAAM,wBAAwB,SAAS,IAAI;CACtD;;;;;CAMA,MAAM,SACF,QAAmC,CAAC,GACpC,SACmC;EACnC,MAAM,UAAU,MAAM,iCAAiC,KAAK,aAAa,KAAK,CAAC;EAC/E,MAAM,WAAW,MAAM,KAAKA,QAAQ,qBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,kCAAkC,QAAQ;CAC3D;CAEA,aAAwD,OAAuB;EAC3E,OAAO,0BAA0B,OAAO,KAAKE,SAAS;CAC1D;AACJ"}
|