@polyester/sdk 0.30.0 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/index.d.ts +2 -1
  7. package/dist/gen/index.js +2 -1
  8. package/dist/gen/rewards/v1/rewards_pb.d.ts +284 -0
  9. package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -0
  10. package/dist/gen/rewards/v1/rewards_pb.js +117 -0
  11. package/dist/gen/rewards/v1/rewards_pb.js.map +1 -0
  12. package/dist/index.d.ts +4 -1
  13. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  14. package/dist/services/balances/balances.schemas.d.ts +3 -3
  15. package/dist/services/candles/candles.schemas.d.ts +10 -10
  16. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  17. package/dist/services/lifecycle/lifecycle.schemas.d.ts +96 -96
  18. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  19. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  20. package/dist/services/orders/orders-batch.schemas.d.ts +14 -14
  21. package/dist/services/orders/orders-output.schemas.d.ts +14 -14
  22. package/dist/services/rewards/rewards.codecs.d.ts +8 -0
  23. package/dist/services/rewards/rewards.codecs.d.ts.map +1 -0
  24. package/dist/services/rewards/rewards.codecs.js +19 -0
  25. package/dist/services/rewards/rewards.codecs.js.map +1 -0
  26. package/dist/services/rewards/rewards.d.ts +23 -0
  27. package/dist/services/rewards/rewards.d.ts.map +1 -0
  28. package/dist/services/rewards/rewards.js +36 -0
  29. package/dist/services/rewards/rewards.js.map +1 -0
  30. package/dist/services/rewards/rewards.schemas.d.ts +85 -0
  31. package/dist/services/rewards/rewards.schemas.d.ts.map +1 -0
  32. package/dist/services/rewards/rewards.schemas.js +38 -0
  33. package/dist/services/rewards/rewards.schemas.js.map +1 -0
  34. package/dist/services/rewards/rewards.types.d.ts +3 -0
  35. package/dist/services/rewards/service.d.ts +8 -0
  36. package/dist/services/rewards/service.d.ts.map +1 -0
  37. package/dist/services/rewards/service.js +9 -0
  38. package/dist/services/rewards/service.js.map +1 -0
  39. package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -12
  40. package/dist/services/trades/trades.schemas.d.ts +1 -1
  41. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  42. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  43. package/dist/services/triggers/triggers-output.schemas.d.ts +18 -18
  44. package/dist/services/whiteboard/whiteboard.schemas.d.ts +49 -49
  45. package/dist/wired-services.d.ts.map +1 -1
  46. package/dist/wired-services.js +2 -0
  47. package/dist/wired-services.js.map +1 -1
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @polyester/sdk
2
2
 
3
+ ## 0.30.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `rewards.listAwards` (also `rewardsService(core)` from `@polyester/sdk/services/rewards`) to list published reward campaign awards for the authenticated root account, newest first. Each award includes its campaign, asset, exact `amountBaseUnits`, `fulfillmentMethod`, `fulfillmentState`, `publishedAt`, payout `network`, `fulfillmentRevision`, `destinationAddress`, and `transactionId`. `limit` accepts 0 through 100 (0 or omitted uses 50), and `pageToken` is capped at 256 characters. Requires a session token; API keys are not accepted. ([#187](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/187))
8
+
9
+ - Add `rewards.setDestination` to record a write-once payout destination for an award owned by the authenticated root account. Pass the award's `fulfillmentRevision` as `expectedRevision` (a positive decimal string) and a client-generated `requestId` (1 through 128 characters, reused on retry); `awardId` accepts 1 through 128 characters and `destinationAddress` 1 through 512. Requires a session token and a fresh step-up proof via `stepUpToken`; it does not execute a transfer or mark the award delivered. ([#189](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/189))
10
+
3
11
  ## 0.30.0
4
12
 
5
13
  ### Minor Changes
package/dist/client.d.ts CHANGED
@@ -23,6 +23,7 @@ import { WhiteboardService } from "./services/whiteboard/whiteboard.js";
23
23
  import { ZipperService } from "./services/zipper/zipper.js";
24
24
  import { MfaService } from "./services/mfa/mfa.js";
25
25
  import { ClaimsService } from "./services/claims/claims.js";
26
+ import { RewardsService } from "./services/rewards/rewards.js";
26
27
  import { VipService } from "./services/vip/vip.js";
27
28
  import { FeesService } from "./services/fees/fees.js";
28
29
  import { RateLimitService } from "./services/rate-limits/rate-limits.js";
@@ -55,6 +56,7 @@ declare const POLYESTER_SERVICES: {
55
56
  zipper: (client: PolyesterCore) => ZipperService;
56
57
  mfa: (client: PolyesterCore) => MfaService;
57
58
  claims: (client: PolyesterCore) => ClaimsService;
59
+ rewards: (client: PolyesterCore) => RewardsService;
58
60
  vip: (client: PolyesterCore) => VipService;
59
61
  fees: (client: PolyesterCore) => FeesService;
60
62
  tradingRateLimits: (client: PolyesterCore) => RateLimitService;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Ba;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,gCACE,kBAAkB,qBAAqB,mBAAmB,oBAAoB;UAgB3E,wBAAwB;;;;;cAO5B,wBAAwB"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCD,gCACE,kBAAkB,qBAAqB,mBAAmB,oBAAoB;UAgB3E,wBAAwB;;;;;cAO5B,wBAAwB"}
package/dist/client.js CHANGED
@@ -18,6 +18,7 @@ import { mfaService } from "./services/mfa/service.js";
18
18
  import { orderbookService } from "./services/orderbook/service.js";
19
19
  import { ordersService } from "./services/orders/service.js";
20
20
  import { tradingRateLimitsService } from "./services/rate-limits/service.js";
21
+ import { rewardsService } from "./services/rewards/service.js";
21
22
  import { socialVerificationService } from "./services/social-verification/service.js";
22
23
  import { subaccountsService } from "./services/subaccounts/service.js";
23
24
  import { tradesService } from "./services/trades/service.js";
@@ -55,6 +56,7 @@ const POLYESTER_SERVICES = {
55
56
  zipper: zipperService,
56
57
  mfa: mfaService,
57
58
  claims: claimsService,
59
+ rewards: rewardsService,
58
60
  vip: vipService,
59
61
  fees: feesService,
60
62
  tradingRateLimits: tradingRateLimitsService
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":[],"sources":["../src/client.ts"],"sourcesContent":["import { PolyesterCore } from \"./core-client.js\";\nimport { accountsService } from \"./services/accounts/service.js\";\nimport { addressBookService } from \"./services/address-book/service.js\";\nimport { apiKeysService } from \"./services/api-keys/service.js\";\nimport { balancesService } from \"./services/balances/service.js\";\nimport { candlesService } from \"./services/candles/service.js\";\nimport { chainAnalyticsService } from \"./services/chain-analytics/service.js\";\nimport { claimsService } from \"./services/claims/service.js\";\nimport { depositService } from \"./services/deposit/service.js\";\nimport { feesService } from \"./services/fees/service.js\";\nimport { guardSignerService } from \"./services/guard-signer/service.js\";\nimport { heatmapService } from \"./services/heatmap/service.js\";\nimport { internalTransfersService } from \"./services/internal-transfers/service.js\";\nimport { lifecycleService } from \"./services/lifecycle/service.js\";\nimport { marketDataService } from \"./services/market-data/service.js\";\nimport { marketOverviewService } from \"./services/market-overview/service.js\";\nimport { mfaService } from \"./services/mfa/service.js\";\nimport { orderbookService } from \"./services/orderbook/service.js\";\nimport { ordersService } from \"./services/orders/service.js\";\nimport { tradingRateLimitsService } from \"./services/rate-limits/service.js\";\nimport { socialVerificationService } from \"./services/social-verification/service.js\";\nimport { subaccountsService } from \"./services/subaccounts/service.js\";\nimport { tradesService } from \"./services/trades/service.js\";\nimport { tradingWithdrawsService } from \"./services/trading-withdraws/service.js\";\nimport { transfersService } from \"./services/transfers/service.js\";\nimport { triggersService } from \"./services/triggers/service.js\";\nimport { vipService } from \"./services/vip/service.js\";\nimport { whiteboardService } from \"./services/whiteboard/service.js\";\nimport { zipperService } from \"./services/zipper/service.js\";\n\n/** Every service accessor, keyed by its getter name on the full clients. */\nexport const POLYESTER_SERVICES = {\n accounts: accountsService,\n apiKeys: apiKeysService,\n subaccounts: subaccountsService,\n candles: candlesService,\n chainAnalytics: chainAnalyticsService,\n marketData: marketDataService,\n marketOverview: marketOverviewService,\n orderbook: orderbookService,\n heatmap: heatmapService,\n lifecycle: lifecycleService,\n trades: tradesService,\n orders: ordersService,\n triggers: triggersService,\n balances: balancesService,\n transfers: transfersService,\n internalTransfers: internalTransfersService,\n tradingWithdraws: tradingWithdrawsService,\n deposit: depositService,\n addressBook: addressBookService,\n guardSigner: guardSignerService,\n socialVerification: socialVerificationService,\n whiteboard: whiteboardService,\n zipper: zipperService,\n mfa: mfaService,\n claims: claimsService,\n vip: vipService,\n fees: feesService,\n tradingRateLimits: tradingRateLimitsService,\n};\n\n/** Service getters shared by the full clients; each returns the same instance as its accessor. */\nexport type PolyesterServices = {\n readonly [K in keyof typeof POLYESTER_SERVICES]: ReturnType<(typeof POLYESTER_SERVICES)[K]>;\n};\n\n/** Defines a lazy getter per service, so the full clients stay in sync with the accessors. */\nexport function installServiceGetters(target: abstract new (...args: never[]) => PolyesterCore) {\n for (const [name, service] of Object.entries(POLYESTER_SERVICES)) {\n Object.defineProperty(target.prototype, name, {\n configurable: true,\n get(this: PolyesterCore) {\n return service(this);\n },\n });\n }\n}\n\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport interface PolyesterClient extends PolyesterServices {}\n\n/**\n * Base SDK client with a lazy getter for every public service. Bundles that only\n * need a few services can use `PolyesterCore` with `@polyester/sdk/services/*` instead.\n */\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport class PolyesterClient extends PolyesterCore {\n static {\n installServiceGetters(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAa,qBAAqB;CAC9B,UAAU;CACV,SAAS;CACT,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,UAAU;CACV,WAAW;CACX,mBAAmB;CACnB,kBAAkB;CAClB,SAAS;CACT,aAAa;CACb,aAAa;CACb,oBAAoB;CACpB,YAAY;CACZ,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,KAAK;CACL,MAAM;CACN,mBAAmB;AACvB;;AAQA,SAAgB,sBAAsB,QAA0D;CAC5F,KAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,kBAAkB,GAC3D,OAAO,eAAe,OAAO,WAAW,MAAM;EAC1C,cAAc;EACd,MAAyB;GACrB,OAAO,QAAQ,IAAI;EACvB;CACJ,CAAC;AAET;;;;;AAUA,IAAa,kBAAb,cAAqC,cAAc;CAC/C;EACI,sBAAsB,IAAI;CAC9B;AACJ"}
1
+ {"version":3,"file":"client.js","names":[],"sources":["../src/client.ts"],"sourcesContent":["import { PolyesterCore } from \"./core-client.js\";\nimport { accountsService } from \"./services/accounts/service.js\";\nimport { addressBookService } from \"./services/address-book/service.js\";\nimport { apiKeysService } from \"./services/api-keys/service.js\";\nimport { balancesService } from \"./services/balances/service.js\";\nimport { candlesService } from \"./services/candles/service.js\";\nimport { chainAnalyticsService } from \"./services/chain-analytics/service.js\";\nimport { claimsService } from \"./services/claims/service.js\";\nimport { depositService } from \"./services/deposit/service.js\";\nimport { feesService } from \"./services/fees/service.js\";\nimport { guardSignerService } from \"./services/guard-signer/service.js\";\nimport { heatmapService } from \"./services/heatmap/service.js\";\nimport { internalTransfersService } from \"./services/internal-transfers/service.js\";\nimport { lifecycleService } from \"./services/lifecycle/service.js\";\nimport { marketDataService } from \"./services/market-data/service.js\";\nimport { marketOverviewService } from \"./services/market-overview/service.js\";\nimport { mfaService } from \"./services/mfa/service.js\";\nimport { orderbookService } from \"./services/orderbook/service.js\";\nimport { ordersService } from \"./services/orders/service.js\";\nimport { tradingRateLimitsService } from \"./services/rate-limits/service.js\";\nimport { rewardsService } from \"./services/rewards/service.js\";\nimport { socialVerificationService } from \"./services/social-verification/service.js\";\nimport { subaccountsService } from \"./services/subaccounts/service.js\";\nimport { tradesService } from \"./services/trades/service.js\";\nimport { tradingWithdrawsService } from \"./services/trading-withdraws/service.js\";\nimport { transfersService } from \"./services/transfers/service.js\";\nimport { triggersService } from \"./services/triggers/service.js\";\nimport { vipService } from \"./services/vip/service.js\";\nimport { whiteboardService } from \"./services/whiteboard/service.js\";\nimport { zipperService } from \"./services/zipper/service.js\";\n\n/** Every service accessor, keyed by its getter name on the full clients. */\nexport const POLYESTER_SERVICES = {\n accounts: accountsService,\n apiKeys: apiKeysService,\n subaccounts: subaccountsService,\n candles: candlesService,\n chainAnalytics: chainAnalyticsService,\n marketData: marketDataService,\n marketOverview: marketOverviewService,\n orderbook: orderbookService,\n heatmap: heatmapService,\n lifecycle: lifecycleService,\n trades: tradesService,\n orders: ordersService,\n triggers: triggersService,\n balances: balancesService,\n transfers: transfersService,\n internalTransfers: internalTransfersService,\n tradingWithdraws: tradingWithdrawsService,\n deposit: depositService,\n addressBook: addressBookService,\n guardSigner: guardSignerService,\n socialVerification: socialVerificationService,\n whiteboard: whiteboardService,\n zipper: zipperService,\n mfa: mfaService,\n claims: claimsService,\n rewards: rewardsService,\n vip: vipService,\n fees: feesService,\n tradingRateLimits: tradingRateLimitsService,\n};\n\n/** Service getters shared by the full clients; each returns the same instance as its accessor. */\nexport type PolyesterServices = {\n readonly [K in keyof typeof POLYESTER_SERVICES]: ReturnType<(typeof POLYESTER_SERVICES)[K]>;\n};\n\n/** Defines a lazy getter per service, so the full clients stay in sync with the accessors. */\nexport function installServiceGetters(target: abstract new (...args: never[]) => PolyesterCore) {\n for (const [name, service] of Object.entries(POLYESTER_SERVICES)) {\n Object.defineProperty(target.prototype, name, {\n configurable: true,\n get(this: PolyesterCore) {\n return service(this);\n },\n });\n }\n}\n\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport interface PolyesterClient extends PolyesterServices {}\n\n/**\n * Base SDK client with a lazy getter for every public service. Bundles that only\n * need a few services can use `PolyesterCore` with `@polyester/sdk/services/*` instead.\n */\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport class PolyesterClient extends PolyesterCore {\n static {\n installServiceGetters(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAa,qBAAqB;CAC9B,UAAU;CACV,SAAS;CACT,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,UAAU;CACV,WAAW;CACX,mBAAmB;CACnB,kBAAkB;CAClB,SAAS;CACT,aAAa;CACb,aAAa;CACb,oBAAoB;CACpB,YAAY;CACZ,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,SAAS;CACT,KAAK;CACL,MAAM;CACN,mBAAmB;AACvB;;AAQA,SAAgB,sBAAsB,QAA0D;CAC5F,KAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,kBAAkB,GAC3D,OAAO,eAAe,OAAO,WAAW,MAAM;EAC1C,cAAc;EACd,MAAyB;GACrB,OAAO,QAAQ,IAAI;EACvB;CACJ,CAAC;AAET;;;;;AAUA,IAAa,kBAAb,cAAqC,cAAc;CAC/C;EACI,sBAAsB,IAAI;CAC9B;AACJ"}
@@ -34,7 +34,8 @@ import { orders_read_pb_d_exports } from "./orders/v1/orders_read_pb.js";
34
34
  import { polychart_events_pb_d_exports } from "./polychart/events/v1/polychart_events_pb.js";
35
35
  import { options_pb_d_exports } from "./polyester/api/options_pb.js";
36
36
  import { ratelimit_pb_d_exports } from "./ratelimit/v1/ratelimit_pb.js";
37
+ import { rewards_pb_d_exports } from "./rewards/v1/rewards_pb.js";
37
38
  import { trade_ws_pb_d_exports } from "./tradews/v1/trade_ws_pb.js";
38
39
  import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
39
40
  import { vip_pb_d_exports } from "./vip/v1/vip_pb.js";
40
- export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, claims_pb_d_exports as claimsPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
41
+ export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, claims_pb_d_exports as claimsPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, rewards_pb_d_exports as rewardsPb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
package/dist/gen/index.js CHANGED
@@ -27,6 +27,7 @@ import { types_pb_exports as types_pb_exports$1 } from "./polyester/ratelimit/v1
27
27
  import { orders_pb_exports } from "./orders/v1/orders_pb.js";
28
28
  import { orders_read_pb_exports } from "./orders/v1/orders_read_pb.js";
29
29
  import { ratelimit_pb_exports } from "./ratelimit/v1/ratelimit_pb.js";
30
+ import { rewards_pb_exports } from "./rewards/v1/rewards_pb.js";
30
31
  import { social_verification_pb_exports } from "./auth/v1/social_verification_pb.js";
31
32
  import { withdraw_pb_exports } from "./chain/withdraw/v1/withdraw_pb.js";
32
33
  import { triggers_pb_exports } from "./triggers/v1/triggers_pb.js";
@@ -37,4 +38,4 @@ import { polychart_pb_exports } from "./polychart/v1/polychart_pb.js";
37
38
  import { layout_pb_exports } from "./layout/v1/layout_pb.js";
38
39
  import { polychart_events_pb_exports } from "./polychart/events/v1/polychart_events_pb.js";
39
40
  import { trade_ws_pb_exports } from "./tradews/v1/trade_ws_pb.js";
40
- export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, claims_pb_exports as claimsPb, deposit_pb_exports as depositPb, fees_pb_exports as feesPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, ratelimit_pb_exports as tradingRateLimitPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, vip_pb_exports as vipPb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
41
+ export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, claims_pb_exports as claimsPb, deposit_pb_exports as depositPb, fees_pb_exports as feesPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, rewards_pb_exports as rewardsPb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, ratelimit_pb_exports as tradingRateLimitPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, vip_pb_exports as vipPb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
@@ -0,0 +1,284 @@
1
+ import { Message } from "@bufbuild/protobuf";
2
+ import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
+ import { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ declare namespace rewards_pb_d_exports {
5
+ export { ListMyRewardAwardsRequest, ListMyRewardAwardsRequestSchema, ListMyRewardAwardsResponse, ListMyRewardAwardsResponseSchema, RewardAward, RewardAwardSchema, RewardCampaignService, RewardFulfillmentMethod, RewardFulfillmentMethodSchema, RewardFulfillmentState, RewardFulfillmentStateSchema, SetMyRewardDestinationRequest, SetMyRewardDestinationRequestSchema, SetMyRewardDestinationResponse, SetMyRewardDestinationResponseSchema, file_rewards_v1_rewards };
6
+ }
7
+ /**
8
+ * Describes the file rewards/v1/rewards.proto.
9
+ */
10
+ declare const file_rewards_v1_rewards: GenFile;
11
+ /**
12
+ * RewardAward contains immutable published terms and current delivery details for the authenticated root account.
13
+ *
14
+ * @generated from message rewards.v1.RewardAward
15
+ */
16
+ type RewardAward = Message<"rewards.v1.RewardAward"> & {
17
+ /**
18
+ * Stable opaque award identifier.
19
+ *
20
+ * @generated from field: string award_id = 1;
21
+ */
22
+ awardId: string;
23
+ /**
24
+ * Stable campaign identifier.
25
+ *
26
+ * @generated from field: string campaign_id = 2;
27
+ */
28
+ campaignId: string;
29
+ /**
30
+ * Campaign display name frozen at publication.
31
+ *
32
+ * @generated from field: string campaign_name = 3;
33
+ */
34
+ campaignName: string;
35
+ /**
36
+ * Canonical asset identifier.
37
+ *
38
+ * @generated from field: uint32 asset_id = 4;
39
+ */
40
+ assetId: number;
41
+ /**
42
+ * Exact integer amount in the asset's smallest base unit.
43
+ *
44
+ * @generated from field: string amount_base_units = 5;
45
+ */
46
+ amountBaseUnits: string;
47
+ /**
48
+ * Selected delivery method.
49
+ *
50
+ * @generated from field: rewards.v1.RewardFulfillmentMethod fulfillment_method = 6;
51
+ */
52
+ fulfillmentMethod: RewardFulfillmentMethod;
53
+ /**
54
+ * Current delivery state.
55
+ *
56
+ * @generated from field: rewards.v1.RewardFulfillmentState fulfillment_state = 7;
57
+ */
58
+ fulfillmentState: RewardFulfillmentState;
59
+ /**
60
+ * Publication time.
61
+ *
62
+ * @generated from field: google.protobuf.Timestamp published_at = 8;
63
+ */
64
+ publishedAt?: Timestamp | undefined;
65
+ /**
66
+ * Campaign payout network. Interpret destination_address in this network.
67
+ *
68
+ * @generated from field: string network = 9;
69
+ */
70
+ network: string;
71
+ /**
72
+ * Current fulfillment revision for optimistic concurrency.
73
+ *
74
+ * @generated from field: uint64 fulfillment_revision = 10;
75
+ */
76
+ fulfillmentRevision: bigint;
77
+ /**
78
+ * Recipient payout destination once submitted. Empty until provided.
79
+ *
80
+ * @generated from field: string destination_address = 11;
81
+ */
82
+ destinationAddress: string;
83
+ /**
84
+ * External transaction identifier once staff records delivery. Empty until delivered.
85
+ *
86
+ * @generated from field: string transaction_id = 12;
87
+ */
88
+ transactionId: string;
89
+ };
90
+ /**
91
+ * Describes the message rewards.v1.RewardAward.
92
+ * Use `create(RewardAwardSchema)` to create a new message.
93
+ */
94
+ declare const RewardAwardSchema: GenMessage<RewardAward>;
95
+ /**
96
+ * SetMyRewardDestinationRequest records the authenticated recipient's payout destination.
97
+ *
98
+ * @generated from message rewards.v1.SetMyRewardDestinationRequest
99
+ */
100
+ type SetMyRewardDestinationRequest = Message<"rewards.v1.SetMyRewardDestinationRequest"> & {
101
+ /**
102
+ * Award owned by the authenticated root account.
103
+ *
104
+ * @generated from field: string award_id = 1;
105
+ */
106
+ awardId: string;
107
+ /**
108
+ * Destination address interpreted according to the award campaign's network.
109
+ *
110
+ * @generated from field: string destination_address = 2;
111
+ */
112
+ destinationAddress: string;
113
+ /**
114
+ * Fulfillment revision observed by the recipient.
115
+ *
116
+ * @generated from field: uint64 expected_revision = 3;
117
+ */
118
+ expectedRevision: bigint;
119
+ /**
120
+ * Client-generated idempotency identifier. Maximum 128 characters.
121
+ *
122
+ * @generated from field: string request_id = 4;
123
+ */
124
+ requestId: string;
125
+ };
126
+ /**
127
+ * Describes the message rewards.v1.SetMyRewardDestinationRequest.
128
+ * Use `create(SetMyRewardDestinationRequestSchema)` to create a new message.
129
+ */
130
+ declare const SetMyRewardDestinationRequestSchema: GenMessage<SetMyRewardDestinationRequest>;
131
+ /**
132
+ * SetMyRewardDestinationResponse returns the updated award.
133
+ *
134
+ * @generated from message rewards.v1.SetMyRewardDestinationResponse
135
+ */
136
+ type SetMyRewardDestinationResponse = Message<"rewards.v1.SetMyRewardDestinationResponse"> & {
137
+ /**
138
+ * Award with the persisted destination and updated fulfillment state.
139
+ *
140
+ * @generated from field: rewards.v1.RewardAward award = 1;
141
+ */
142
+ award?: RewardAward | undefined;
143
+ };
144
+ /**
145
+ * Describes the message rewards.v1.SetMyRewardDestinationResponse.
146
+ * Use `create(SetMyRewardDestinationResponseSchema)` to create a new message.
147
+ */
148
+ declare const SetMyRewardDestinationResponseSchema: GenMessage<SetMyRewardDestinationResponse>;
149
+ /**
150
+ * ListMyRewardAwardsRequest requests a page of awards for the authenticated root account.
151
+ *
152
+ * @generated from message rewards.v1.ListMyRewardAwardsRequest
153
+ */
154
+ type ListMyRewardAwardsRequest = Message<"rewards.v1.ListMyRewardAwardsRequest"> & {
155
+ /**
156
+ * Maximum awards to return. Zero uses 50; maximum 100.
157
+ *
158
+ * @generated from field: uint32 limit = 1;
159
+ */
160
+ limit: number;
161
+ /**
162
+ * Opaque exclusive continuation token bound to the authenticated root account.
163
+ *
164
+ * @generated from field: string page_token = 2;
165
+ */
166
+ pageToken: string;
167
+ };
168
+ /**
169
+ * Describes the message rewards.v1.ListMyRewardAwardsRequest.
170
+ * Use `create(ListMyRewardAwardsRequestSchema)` to create a new message.
171
+ */
172
+ declare const ListMyRewardAwardsRequestSchema: GenMessage<ListMyRewardAwardsRequest>;
173
+ /**
174
+ * ListMyRewardAwardsResponse contains newest awards first.
175
+ *
176
+ * @generated from message rewards.v1.ListMyRewardAwardsResponse
177
+ */
178
+ type ListMyRewardAwardsResponse = Message<"rewards.v1.ListMyRewardAwardsResponse"> & {
179
+ /**
180
+ * Awards ordered by publication time and award identifier, newest first.
181
+ *
182
+ * @generated from field: repeated rewards.v1.RewardAward awards = 1;
183
+ */
184
+ awards: RewardAward[];
185
+ /**
186
+ * Opaque continuation token. Empty when no more results exist.
187
+ *
188
+ * @generated from field: string next_page_token = 2;
189
+ */
190
+ nextPageToken: string;
191
+ };
192
+ /**
193
+ * Describes the message rewards.v1.ListMyRewardAwardsResponse.
194
+ * Use `create(ListMyRewardAwardsResponseSchema)` to create a new message.
195
+ */
196
+ declare const ListMyRewardAwardsResponseSchema: GenMessage<ListMyRewardAwardsResponse>;
197
+ /**
198
+ * RewardFulfillmentMethod identifies how an award will be delivered.
199
+ *
200
+ * @generated from enum rewards.v1.RewardFulfillmentMethod
201
+ */
202
+ declare enum RewardFulfillmentMethod {
203
+ /**
204
+ * @generated from enum value: METHOD_UNSPECIFIED = 0;
205
+ */
206
+ METHOD_UNSPECIFIED = 0,
207
+ /**
208
+ * @generated from enum value: EXTERNAL_TESTNET = 1;
209
+ */
210
+ EXTERNAL_TESTNET = 1,
211
+ /**
212
+ * @generated from enum value: INTERNAL_TRADING = 2;
213
+ */
214
+ INTERNAL_TRADING = 2
215
+ }
216
+ /**
217
+ * Describes the enum rewards.v1.RewardFulfillmentMethod.
218
+ */
219
+ declare const RewardFulfillmentMethodSchema: GenEnum<RewardFulfillmentMethod>;
220
+ /**
221
+ * RewardFulfillmentState describes the current delivery state.
222
+ *
223
+ * @generated from enum rewards.v1.RewardFulfillmentState
224
+ */
225
+ declare enum RewardFulfillmentState {
226
+ /**
227
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
228
+ */
229
+ STATE_UNSPECIFIED = 0,
230
+ /**
231
+ * @generated from enum value: AWAITING_DESTINATION = 1;
232
+ */
233
+ AWAITING_DESTINATION = 1,
234
+ /**
235
+ * @generated from enum value: READY_FOR_PAYOUT = 2;
236
+ */
237
+ READY_FOR_PAYOUT = 2,
238
+ /**
239
+ * @generated from enum value: PAID = 3;
240
+ */
241
+ PAID = 3,
242
+ /**
243
+ * @generated from enum value: FAILED = 4;
244
+ */
245
+ FAILED = 4,
246
+ /**
247
+ * @generated from enum value: CANCELED = 5;
248
+ */
249
+ CANCELED = 5
250
+ }
251
+ /**
252
+ * Describes the enum rewards.v1.RewardFulfillmentState.
253
+ */
254
+ declare const RewardFulfillmentStateSchema: GenEnum<RewardFulfillmentState>;
255
+ /**
256
+ * RewardCampaignService exposes published rewards to authenticated recipients.
257
+ *
258
+ * @generated from service rewards.v1.RewardCampaignService
259
+ */
260
+ declare const RewardCampaignService: GenService<{
261
+ /**
262
+ * List published awards for the authenticated root account, newest first.
263
+ *
264
+ * @generated from rpc rewards.v1.RewardCampaignService.ListMyRewardAwards
265
+ */
266
+ listMyRewardAwards: {
267
+ methodKind: "unary";
268
+ input: typeof ListMyRewardAwardsRequestSchema;
269
+ output: typeof ListMyRewardAwardsResponseSchema;
270
+ };
271
+ /**
272
+ * Record a write-once external payout destination for an award owned by the authenticated root account.
273
+ *
274
+ * @generated from rpc rewards.v1.RewardCampaignService.SetMyRewardDestination
275
+ */
276
+ setMyRewardDestination: {
277
+ methodKind: "unary";
278
+ input: typeof SetMyRewardDestinationRequestSchema;
279
+ output: typeof SetMyRewardDestinationResponseSchema;
280
+ };
281
+ }>;
282
+ //#endregion
283
+ export { ListMyRewardAwardsRequest, ListMyRewardAwardsRequestSchema, ListMyRewardAwardsResponse, ListMyRewardAwardsResponseSchema, RewardAward, RewardAwardSchema, RewardCampaignService, RewardFulfillmentMethod, RewardFulfillmentMethodSchema, RewardFulfillmentState, RewardFulfillmentStateSchema, SetMyRewardDestinationRequest, SetMyRewardDestinationRequestSchema, SetMyRewardDestinationResponse, SetMyRewardDestinationResponseSchema, file_rewards_v1_rewards, rewards_pb_d_exports };
284
+ //# sourceMappingURL=rewards_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewards_pb.d.ts","names":[],"sources":["../../../../src/gen/rewards/v1/rewards_pb.ts"],"mappings":";;;;;;;;;cAca,yBAAyB;;;;;;KAQ1B,cAAc;;;;;;EAMxB;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,mBAAmB;;;;;;EAOnB,kBAAkB;;;;;;EAOlB,cAAc;;;;;;EAOd;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,mBAAmB,WAAW;;;;;;KAQ/B,gCAAgC;;;;;;EAM1C;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,qCAAqC,WAAW;;;;;;KAQjD,iCAAiC;;;;;;EAM3C,QAAQ;;;;;;cAOG,sCAAsC,WAAW;;;;;;KAQlD,4BAA4B;;;;;;EAMtC;;;;;;EAOA;;;;;;cAOW,iCAAiC,WAAW;;;;;;KAQ7C,6BAA6B;;;;;;EAMvC,QAAQ;;;;;;EAOR;;;;;;cAOW,kCAAkC,WAAW;;;;;;aAQ9C;;;;EAIV;;;;EAKA;;;;EAKA;;;;;cAMW,+BAA+B,QAAQ;;;;;;aAQxC;;;;EAIV;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;cAMW,8BAA8B,QAAQ;;;;;;cAQtC,uBAAuB;;;;;;EAMlC;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -0,0 +1,117 @@
1
+ import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
2
+ import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
3
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
4
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
5
+ //#region src/gen/rewards/v1/rewards_pb.ts
6
+ var rewards_pb_exports = /* @__PURE__ */ __exportAll({
7
+ ListMyRewardAwardsRequestSchema: () => ListMyRewardAwardsRequestSchema,
8
+ ListMyRewardAwardsResponseSchema: () => ListMyRewardAwardsResponseSchema,
9
+ RewardAwardSchema: () => RewardAwardSchema,
10
+ RewardCampaignService: () => RewardCampaignService,
11
+ RewardFulfillmentMethod: () => RewardFulfillmentMethod,
12
+ RewardFulfillmentMethodSchema: () => RewardFulfillmentMethodSchema,
13
+ RewardFulfillmentState: () => RewardFulfillmentState,
14
+ RewardFulfillmentStateSchema: () => RewardFulfillmentStateSchema,
15
+ SetMyRewardDestinationRequestSchema: () => SetMyRewardDestinationRequestSchema,
16
+ SetMyRewardDestinationResponseSchema: () => SetMyRewardDestinationResponseSchema,
17
+ file_rewards_v1_rewards: () => file_rewards_v1_rewards
18
+ });
19
+ /**
20
+ * Describes the file rewards/v1/rewards.proto.
21
+ */
22
+ const file_rewards_v1_rewards = /*@__PURE__*/ fileDesc("ChhyZXdhcmRzL3YxL3Jld2FyZHMucHJvdG8SCnJld2FyZHMudjEijgMKC1Jld2FyZEF3YXJkEhAKCGF3YXJkX2lkGAEgASgJEhMKC2NhbXBhaWduX2lkGAIgASgJEhUKDWNhbXBhaWduX25hbWUYAyABKAkSEAoIYXNzZXRfaWQYBCABKA0SGQoRYW1vdW50X2Jhc2VfdW5pdHMYBSABKAkSPwoSZnVsZmlsbG1lbnRfbWV0aG9kGAYgASgOMiMucmV3YXJkcy52MS5SZXdhcmRGdWxmaWxsbWVudE1ldGhvZBI9ChFmdWxmaWxsbWVudF9zdGF0ZRgHIAEoDjIiLnJld2FyZHMudjEuUmV3YXJkRnVsZmlsbG1lbnRTdGF0ZRIwCgxwdWJsaXNoZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg8KB25ldHdvcmsYCSABKAkSHAoUZnVsZmlsbG1lbnRfcmV2aXNpb24YCiABKAQSGwoTZGVzdGluYXRpb25fYWRkcmVzcxgLIAEoCRIWCg50cmFuc2FjdGlvbl9pZBgMIAEoCSKFAQodU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlcXVlc3QSEgoIYXdhcmRfaWQYASABKAlCABIdChNkZXN0aW5hdGlvbl9hZGRyZXNzGAIgASgJQgASGwoRZXhwZWN0ZWRfcmV2aXNpb24YAyABKARCABIUCgpyZXF1ZXN0X2lkGAQgASgJQgAiSAoeU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlc3BvbnNlEiYKBWF3YXJkGAEgASgLMhcucmV3YXJkcy52MS5SZXdhcmRBd2FyZCJCChlMaXN0TXlSZXdhcmRBd2FyZHNSZXF1ZXN0Eg8KBWxpbWl0GAEgASgNQgASFAoKcGFnZV90b2tlbhgCIAEoCUIAIl4KGkxpc3RNeVJld2FyZEF3YXJkc1Jlc3BvbnNlEicKBmF3YXJkcxgBIAMoCzIXLnJld2FyZHMudjEuUmV3YXJkQXdhcmQSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJKl0KF1Jld2FyZEZ1bGZpbGxtZW50TWV0aG9kEhYKEk1FVEhPRF9VTlNQRUNJRklFRBAAEhQKEEVYVEVSTkFMX1RFU1RORVQQARIUChBJTlRFUk5BTF9UUkFESU5HEAIqgwEKFlJld2FyZEZ1bGZpbGxtZW50U3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIYChRBV0FJVElOR19ERVNUSU5BVElPThABEhQKEFJFQURZX0ZPUl9QQVlPVVQQAhIICgRQQUlEEAMSCgoGRkFJTEVEEAQSDAoIQ0FOQ0VMRUQQBTLxAQoVUmV3YXJkQ2FtcGFpZ25TZXJ2aWNlEmUKEkxpc3RNeVJld2FyZEF3YXJkcxIlLnJld2FyZHMudjEuTGlzdE15UmV3YXJkQXdhcmRzUmVxdWVzdBomLnJld2FyZHMudjEuTGlzdE15UmV3YXJkQXdhcmRzUmVzcG9uc2UiABJxChZTZXRNeVJld2FyZERlc3RpbmF0aW9uEikucmV3YXJkcy52MS5TZXRNeVJld2FyZERlc3RpbmF0aW9uUmVxdWVzdBoqLnJld2FyZHMudjEuU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlc3BvbnNlIgBCQlpAZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9yZXdhcmRzL3YxO3Jld2FyZHN2MWIGcHJvdG8z", [file_google_protobuf_timestamp, file_polyester_api_options]);
23
+ /**
24
+ * Describes the message rewards.v1.RewardAward.
25
+ * Use `create(RewardAwardSchema)` to create a new message.
26
+ */
27
+ const RewardAwardSchema = /*@__PURE__*/ messageDesc(file_rewards_v1_rewards, 0);
28
+ /**
29
+ * Describes the message rewards.v1.SetMyRewardDestinationRequest.
30
+ * Use `create(SetMyRewardDestinationRequestSchema)` to create a new message.
31
+ */
32
+ const SetMyRewardDestinationRequestSchema = /*@__PURE__*/ messageDesc(file_rewards_v1_rewards, 1);
33
+ /**
34
+ * Describes the message rewards.v1.SetMyRewardDestinationResponse.
35
+ * Use `create(SetMyRewardDestinationResponseSchema)` to create a new message.
36
+ */
37
+ const SetMyRewardDestinationResponseSchema = /*@__PURE__*/ messageDesc(file_rewards_v1_rewards, 2);
38
+ /**
39
+ * Describes the message rewards.v1.ListMyRewardAwardsRequest.
40
+ * Use `create(ListMyRewardAwardsRequestSchema)` to create a new message.
41
+ */
42
+ const ListMyRewardAwardsRequestSchema = /*@__PURE__*/ messageDesc(file_rewards_v1_rewards, 3);
43
+ /**
44
+ * Describes the message rewards.v1.ListMyRewardAwardsResponse.
45
+ * Use `create(ListMyRewardAwardsResponseSchema)` to create a new message.
46
+ */
47
+ const ListMyRewardAwardsResponseSchema = /*@__PURE__*/ messageDesc(file_rewards_v1_rewards, 4);
48
+ /**
49
+ * RewardFulfillmentMethod identifies how an award will be delivered.
50
+ *
51
+ * @generated from enum rewards.v1.RewardFulfillmentMethod
52
+ */
53
+ let RewardFulfillmentMethod = /* @__PURE__ */ function(RewardFulfillmentMethod) {
54
+ /**
55
+ * @generated from enum value: METHOD_UNSPECIFIED = 0;
56
+ */
57
+ RewardFulfillmentMethod[RewardFulfillmentMethod["METHOD_UNSPECIFIED"] = 0] = "METHOD_UNSPECIFIED";
58
+ /**
59
+ * @generated from enum value: EXTERNAL_TESTNET = 1;
60
+ */
61
+ RewardFulfillmentMethod[RewardFulfillmentMethod["EXTERNAL_TESTNET"] = 1] = "EXTERNAL_TESTNET";
62
+ /**
63
+ * @generated from enum value: INTERNAL_TRADING = 2;
64
+ */
65
+ RewardFulfillmentMethod[RewardFulfillmentMethod["INTERNAL_TRADING"] = 2] = "INTERNAL_TRADING";
66
+ return RewardFulfillmentMethod;
67
+ }({});
68
+ /**
69
+ * Describes the enum rewards.v1.RewardFulfillmentMethod.
70
+ */
71
+ const RewardFulfillmentMethodSchema = /*@__PURE__*/ enumDesc(file_rewards_v1_rewards, 0);
72
+ /**
73
+ * RewardFulfillmentState describes the current delivery state.
74
+ *
75
+ * @generated from enum rewards.v1.RewardFulfillmentState
76
+ */
77
+ let RewardFulfillmentState = /* @__PURE__ */ function(RewardFulfillmentState) {
78
+ /**
79
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
80
+ */
81
+ RewardFulfillmentState[RewardFulfillmentState["STATE_UNSPECIFIED"] = 0] = "STATE_UNSPECIFIED";
82
+ /**
83
+ * @generated from enum value: AWAITING_DESTINATION = 1;
84
+ */
85
+ RewardFulfillmentState[RewardFulfillmentState["AWAITING_DESTINATION"] = 1] = "AWAITING_DESTINATION";
86
+ /**
87
+ * @generated from enum value: READY_FOR_PAYOUT = 2;
88
+ */
89
+ RewardFulfillmentState[RewardFulfillmentState["READY_FOR_PAYOUT"] = 2] = "READY_FOR_PAYOUT";
90
+ /**
91
+ * @generated from enum value: PAID = 3;
92
+ */
93
+ RewardFulfillmentState[RewardFulfillmentState["PAID"] = 3] = "PAID";
94
+ /**
95
+ * @generated from enum value: FAILED = 4;
96
+ */
97
+ RewardFulfillmentState[RewardFulfillmentState["FAILED"] = 4] = "FAILED";
98
+ /**
99
+ * @generated from enum value: CANCELED = 5;
100
+ */
101
+ RewardFulfillmentState[RewardFulfillmentState["CANCELED"] = 5] = "CANCELED";
102
+ return RewardFulfillmentState;
103
+ }({});
104
+ /**
105
+ * Describes the enum rewards.v1.RewardFulfillmentState.
106
+ */
107
+ const RewardFulfillmentStateSchema = /*@__PURE__*/ enumDesc(file_rewards_v1_rewards, 1);
108
+ /**
109
+ * RewardCampaignService exposes published rewards to authenticated recipients.
110
+ *
111
+ * @generated from service rewards.v1.RewardCampaignService
112
+ */
113
+ const RewardCampaignService = /*@__PURE__*/ serviceDesc(file_rewards_v1_rewards, 0);
114
+ //#endregion
115
+ export { ListMyRewardAwardsRequestSchema, ListMyRewardAwardsResponseSchema, RewardAwardSchema, RewardCampaignService, RewardFulfillmentMethod, RewardFulfillmentMethodSchema, RewardFulfillmentState, RewardFulfillmentStateSchema, SetMyRewardDestinationRequestSchema, SetMyRewardDestinationResponseSchema, file_rewards_v1_rewards, rewards_pb_exports };
116
+
117
+ //# sourceMappingURL=rewards_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewards_pb.js","names":[],"sources":["../../../../src/gen/rewards/v1/rewards_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file rewards/v1/rewards.proto (package rewards.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 rewards/v1/rewards.proto.\n */\nexport const file_rewards_v1_rewards: GenFile = /*@__PURE__*/\n fileDesc(\"ChhyZXdhcmRzL3YxL3Jld2FyZHMucHJvdG8SCnJld2FyZHMudjEijgMKC1Jld2FyZEF3YXJkEhAKCGF3YXJkX2lkGAEgASgJEhMKC2NhbXBhaWduX2lkGAIgASgJEhUKDWNhbXBhaWduX25hbWUYAyABKAkSEAoIYXNzZXRfaWQYBCABKA0SGQoRYW1vdW50X2Jhc2VfdW5pdHMYBSABKAkSPwoSZnVsZmlsbG1lbnRfbWV0aG9kGAYgASgOMiMucmV3YXJkcy52MS5SZXdhcmRGdWxmaWxsbWVudE1ldGhvZBI9ChFmdWxmaWxsbWVudF9zdGF0ZRgHIAEoDjIiLnJld2FyZHMudjEuUmV3YXJkRnVsZmlsbG1lbnRTdGF0ZRIwCgxwdWJsaXNoZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg8KB25ldHdvcmsYCSABKAkSHAoUZnVsZmlsbG1lbnRfcmV2aXNpb24YCiABKAQSGwoTZGVzdGluYXRpb25fYWRkcmVzcxgLIAEoCRIWCg50cmFuc2FjdGlvbl9pZBgMIAEoCSKFAQodU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlcXVlc3QSEgoIYXdhcmRfaWQYASABKAlCABIdChNkZXN0aW5hdGlvbl9hZGRyZXNzGAIgASgJQgASGwoRZXhwZWN0ZWRfcmV2aXNpb24YAyABKARCABIUCgpyZXF1ZXN0X2lkGAQgASgJQgAiSAoeU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlc3BvbnNlEiYKBWF3YXJkGAEgASgLMhcucmV3YXJkcy52MS5SZXdhcmRBd2FyZCJCChlMaXN0TXlSZXdhcmRBd2FyZHNSZXF1ZXN0Eg8KBWxpbWl0GAEgASgNQgASFAoKcGFnZV90b2tlbhgCIAEoCUIAIl4KGkxpc3RNeVJld2FyZEF3YXJkc1Jlc3BvbnNlEicKBmF3YXJkcxgBIAMoCzIXLnJld2FyZHMudjEuUmV3YXJkQXdhcmQSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJKl0KF1Jld2FyZEZ1bGZpbGxtZW50TWV0aG9kEhYKEk1FVEhPRF9VTlNQRUNJRklFRBAAEhQKEEVYVEVSTkFMX1RFU1RORVQQARIUChBJTlRFUk5BTF9UUkFESU5HEAIqgwEKFlJld2FyZEZ1bGZpbGxtZW50U3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIYChRBV0FJVElOR19ERVNUSU5BVElPThABEhQKEFJFQURZX0ZPUl9QQVlPVVQQAhIICgRQQUlEEAMSCgoGRkFJTEVEEAQSDAoIQ0FOQ0VMRUQQBTLxAQoVUmV3YXJkQ2FtcGFpZ25TZXJ2aWNlEmUKEkxpc3RNeVJld2FyZEF3YXJkcxIlLnJld2FyZHMudjEuTGlzdE15UmV3YXJkQXdhcmRzUmVxdWVzdBomLnJld2FyZHMudjEuTGlzdE15UmV3YXJkQXdhcmRzUmVzcG9uc2UiABJxChZTZXRNeVJld2FyZERlc3RpbmF0aW9uEikucmV3YXJkcy52MS5TZXRNeVJld2FyZERlc3RpbmF0aW9uUmVxdWVzdBoqLnJld2FyZHMudjEuU2V0TXlSZXdhcmREZXN0aW5hdGlvblJlc3BvbnNlIgBCQlpAZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9yZXdhcmRzL3YxO3Jld2FyZHN2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * RewardAward contains immutable published terms and current delivery details for the authenticated root account.\n *\n * @generated from message rewards.v1.RewardAward\n */\nexport type RewardAward = Message<\"rewards.v1.RewardAward\"> & {\n /**\n * Stable opaque award identifier.\n *\n * @generated from field: string award_id = 1;\n */\n awardId: string;\n\n /**\n * Stable campaign identifier.\n *\n * @generated from field: string campaign_id = 2;\n */\n campaignId: string;\n\n /**\n * Campaign display name frozen at publication.\n *\n * @generated from field: string campaign_name = 3;\n */\n campaignName: string;\n\n /**\n * Canonical asset identifier.\n *\n * @generated from field: uint32 asset_id = 4;\n */\n assetId: number;\n\n /**\n * Exact integer amount in the asset's smallest base unit.\n *\n * @generated from field: string amount_base_units = 5;\n */\n amountBaseUnits: string;\n\n /**\n * Selected delivery method.\n *\n * @generated from field: rewards.v1.RewardFulfillmentMethod fulfillment_method = 6;\n */\n fulfillmentMethod: RewardFulfillmentMethod;\n\n /**\n * Current delivery state.\n *\n * @generated from field: rewards.v1.RewardFulfillmentState fulfillment_state = 7;\n */\n fulfillmentState: RewardFulfillmentState;\n\n /**\n * Publication time.\n *\n * @generated from field: google.protobuf.Timestamp published_at = 8;\n */\n publishedAt?: Timestamp | undefined;\n\n /**\n * Campaign payout network. Interpret destination_address in this network.\n *\n * @generated from field: string network = 9;\n */\n network: string;\n\n /**\n * Current fulfillment revision for optimistic concurrency.\n *\n * @generated from field: uint64 fulfillment_revision = 10;\n */\n fulfillmentRevision: bigint;\n\n /**\n * Recipient payout destination once submitted. Empty until provided.\n *\n * @generated from field: string destination_address = 11;\n */\n destinationAddress: string;\n\n /**\n * External transaction identifier once staff records delivery. Empty until delivered.\n *\n * @generated from field: string transaction_id = 12;\n */\n transactionId: string;\n};\n\n/**\n * Describes the message rewards.v1.RewardAward.\n * Use `create(RewardAwardSchema)` to create a new message.\n */\nexport const RewardAwardSchema: GenMessage<RewardAward> = /*@__PURE__*/\n messageDesc(file_rewards_v1_rewards, 0);\n\n/**\n * SetMyRewardDestinationRequest records the authenticated recipient's payout destination.\n *\n * @generated from message rewards.v1.SetMyRewardDestinationRequest\n */\nexport type SetMyRewardDestinationRequest = Message<\"rewards.v1.SetMyRewardDestinationRequest\"> & {\n /**\n * Award owned by the authenticated root account.\n *\n * @generated from field: string award_id = 1;\n */\n awardId: string;\n\n /**\n * Destination address interpreted according to the award campaign's network.\n *\n * @generated from field: string destination_address = 2;\n */\n destinationAddress: string;\n\n /**\n * Fulfillment revision observed by the recipient.\n *\n * @generated from field: uint64 expected_revision = 3;\n */\n expectedRevision: bigint;\n\n /**\n * Client-generated idempotency identifier. Maximum 128 characters.\n *\n * @generated from field: string request_id = 4;\n */\n requestId: string;\n};\n\n/**\n * Describes the message rewards.v1.SetMyRewardDestinationRequest.\n * Use `create(SetMyRewardDestinationRequestSchema)` to create a new message.\n */\nexport const SetMyRewardDestinationRequestSchema: GenMessage<SetMyRewardDestinationRequest> = /*@__PURE__*/\n messageDesc(file_rewards_v1_rewards, 1);\n\n/**\n * SetMyRewardDestinationResponse returns the updated award.\n *\n * @generated from message rewards.v1.SetMyRewardDestinationResponse\n */\nexport type SetMyRewardDestinationResponse = Message<\"rewards.v1.SetMyRewardDestinationResponse\"> & {\n /**\n * Award with the persisted destination and updated fulfillment state.\n *\n * @generated from field: rewards.v1.RewardAward award = 1;\n */\n award?: RewardAward | undefined;\n};\n\n/**\n * Describes the message rewards.v1.SetMyRewardDestinationResponse.\n * Use `create(SetMyRewardDestinationResponseSchema)` to create a new message.\n */\nexport const SetMyRewardDestinationResponseSchema: GenMessage<SetMyRewardDestinationResponse> = /*@__PURE__*/\n messageDesc(file_rewards_v1_rewards, 2);\n\n/**\n * ListMyRewardAwardsRequest requests a page of awards for the authenticated root account.\n *\n * @generated from message rewards.v1.ListMyRewardAwardsRequest\n */\nexport type ListMyRewardAwardsRequest = Message<\"rewards.v1.ListMyRewardAwardsRequest\"> & {\n /**\n * Maximum awards to return. Zero uses 50; maximum 100.\n *\n * @generated from field: uint32 limit = 1;\n */\n limit: number;\n\n /**\n * Opaque exclusive continuation token bound to the authenticated root account.\n *\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message rewards.v1.ListMyRewardAwardsRequest.\n * Use `create(ListMyRewardAwardsRequestSchema)` to create a new message.\n */\nexport const ListMyRewardAwardsRequestSchema: GenMessage<ListMyRewardAwardsRequest> = /*@__PURE__*/\n messageDesc(file_rewards_v1_rewards, 3);\n\n/**\n * ListMyRewardAwardsResponse contains newest awards first.\n *\n * @generated from message rewards.v1.ListMyRewardAwardsResponse\n */\nexport type ListMyRewardAwardsResponse = Message<\"rewards.v1.ListMyRewardAwardsResponse\"> & {\n /**\n * Awards ordered by publication time and award identifier, newest first.\n *\n * @generated from field: repeated rewards.v1.RewardAward awards = 1;\n */\n awards: RewardAward[];\n\n /**\n * Opaque continuation token. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message rewards.v1.ListMyRewardAwardsResponse.\n * Use `create(ListMyRewardAwardsResponseSchema)` to create a new message.\n */\nexport const ListMyRewardAwardsResponseSchema: GenMessage<ListMyRewardAwardsResponse> = /*@__PURE__*/\n messageDesc(file_rewards_v1_rewards, 4);\n\n/**\n * RewardFulfillmentMethod identifies how an award will be delivered.\n *\n * @generated from enum rewards.v1.RewardFulfillmentMethod\n */\nexport enum RewardFulfillmentMethod {\n /**\n * @generated from enum value: METHOD_UNSPECIFIED = 0;\n */\n METHOD_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: EXTERNAL_TESTNET = 1;\n */\n EXTERNAL_TESTNET = 1,\n\n /**\n * @generated from enum value: INTERNAL_TRADING = 2;\n */\n INTERNAL_TRADING = 2,\n}\n\n/**\n * Describes the enum rewards.v1.RewardFulfillmentMethod.\n */\nexport const RewardFulfillmentMethodSchema: GenEnum<RewardFulfillmentMethod> = /*@__PURE__*/\n enumDesc(file_rewards_v1_rewards, 0);\n\n/**\n * RewardFulfillmentState describes the current delivery state.\n *\n * @generated from enum rewards.v1.RewardFulfillmentState\n */\nexport enum RewardFulfillmentState {\n /**\n * @generated from enum value: STATE_UNSPECIFIED = 0;\n */\n STATE_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: AWAITING_DESTINATION = 1;\n */\n AWAITING_DESTINATION = 1,\n\n /**\n * @generated from enum value: READY_FOR_PAYOUT = 2;\n */\n READY_FOR_PAYOUT = 2,\n\n /**\n * @generated from enum value: PAID = 3;\n */\n PAID = 3,\n\n /**\n * @generated from enum value: FAILED = 4;\n */\n FAILED = 4,\n\n /**\n * @generated from enum value: CANCELED = 5;\n */\n CANCELED = 5,\n}\n\n/**\n * Describes the enum rewards.v1.RewardFulfillmentState.\n */\nexport const RewardFulfillmentStateSchema: GenEnum<RewardFulfillmentState> = /*@__PURE__*/\n enumDesc(file_rewards_v1_rewards, 1);\n\n/**\n * RewardCampaignService exposes published rewards to authenticated recipients.\n *\n * @generated from service rewards.v1.RewardCampaignService\n */\nexport const RewardCampaignService: GenService<{\n /**\n * List published awards for the authenticated root account, newest first.\n *\n * @generated from rpc rewards.v1.RewardCampaignService.ListMyRewardAwards\n */\n listMyRewardAwards: {\n methodKind: \"unary\";\n input: typeof ListMyRewardAwardsRequestSchema;\n output: typeof ListMyRewardAwardsResponseSchema;\n },\n /**\n * Record a write-once external payout destination for an award owned by the authenticated root account.\n *\n * @generated from rpc rewards.v1.RewardCampaignService.SetMyRewardDestination\n */\n setMyRewardDestination: {\n methodKind: \"unary\";\n input: typeof SetMyRewardDestinationRequestSchema;\n output: typeof SetMyRewardDestinationResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_rewards_v1_rewards, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,0BACX,uBAAS,4xDAA4xD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAiGn2D,MAAa,oBACX,0BAAY,yBAAyB,CAAC;;;;;AAyCxC,MAAa,sCACX,0BAAY,yBAAyB,CAAC;;;;;AAoBxC,MAAa,uCACX,0BAAY,yBAAyB,CAAC;;;;;AA2BxC,MAAa,kCACX,0BAAY,yBAAyB,CAAC;;;;;AA2BxC,MAAa,mCACX,0BAAY,yBAAyB,CAAC;;;;;;AAOxC,IAAY,0BAAL,yBAAA,yBAAA;;;;CAIL,wBAAA,wBAAA,wBAAA,KAAA;;;;CAKA,wBAAA,wBAAA,sBAAA,KAAA;;;;CAKA,wBAAA,wBAAA,sBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,gCACX,uBAAS,yBAAyB,CAAC;;;;;;AAOrC,IAAY,yBAAL,yBAAA,wBAAA;;;;CAIL,uBAAA,uBAAA,uBAAA,KAAA;;;;CAKA,uBAAA,uBAAA,0BAAA,KAAA;;;;CAKA,uBAAA,uBAAA,sBAAA,KAAA;;;;CAKA,uBAAA,uBAAA,UAAA,KAAA;;;;CAKA,uBAAA,uBAAA,YAAA,KAAA;;;;CAKA,uBAAA,uBAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,+BACX,uBAAS,yBAAyB,CAAC;;;;;;AAOrC,MAAa,wBAsBX,0BAAY,yBAAyB,CAAC"}