@polyester/sdk 0.35.0-devnet-20261111161451 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/services/accounts/accounts.d.ts +1 -1
  3. package/dist/services/accounts/accounts.js +1 -1
  4. package/dist/services/accounts/accounts.js.map +1 -1
  5. package/dist/services/api-keys/api-keys.d.ts +2 -2
  6. package/dist/services/api-keys/api-keys.js +2 -2
  7. package/dist/services/api-keys/api-keys.js.map +1 -1
  8. package/dist/services/assistant/assistant-events.schemas.d.ts +129 -101
  9. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  10. package/dist/services/auth/profile/profile.d.ts +2 -2
  11. package/dist/services/auth/profile/profile.js +2 -2
  12. package/dist/services/auth/profile/profile.js.map +1 -1
  13. package/dist/services/balances/balances.schemas.d.ts +3 -3
  14. package/dist/services/candles/candles.schemas.d.ts +10 -10
  15. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  16. package/dist/services/checkpoints/checkpoints.d.ts +2 -2
  17. package/dist/services/checkpoints/checkpoints.js +2 -2
  18. package/dist/services/checkpoints/checkpoints.js.map +1 -1
  19. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  20. package/dist/services/deposit/deposit.d.ts +2 -2
  21. package/dist/services/deposit/deposit.js +2 -2
  22. package/dist/services/deposit/deposit.js.map +1 -1
  23. package/dist/services/guard-signer/guard-signer.d.ts +1 -1
  24. package/dist/services/guard-signer/guard-signer.js +1 -1
  25. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  26. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  27. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  28. package/dist/services/lifecycle/lifecycle.schemas.d.ts +148 -148
  29. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  30. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  31. package/dist/services/orders/orders-batch.schemas.d.ts +19 -19
  32. package/dist/services/orders/orders-input.schemas.d.ts +1 -1
  33. package/dist/services/orders/orders-output.schemas.d.ts +22 -22
  34. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +2 -2
  35. package/dist/services/policies/api-key-policies/api-key-policies.js +2 -2
  36. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  37. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +2 -2
  38. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  39. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  40. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  41. package/dist/services/social-verification/social-verification.d.ts +1 -1
  42. package/dist/services/social-verification/social-verification.js +1 -1
  43. package/dist/services/social-verification/social-verification.js.map +1 -1
  44. package/dist/services/subaccounts/subaccounts.d.ts +6 -6
  45. package/dist/services/subaccounts/subaccounts.js +6 -6
  46. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  47. package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -12
  48. package/dist/services/trades/trades.schemas.d.ts +1 -1
  49. package/dist/services/trading-withdraws/trading-withdraws.d.ts +1 -1
  50. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  51. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  52. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  53. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  54. package/dist/services/triggers/triggers-output.schemas.d.ts +37 -37
  55. package/dist/services/vip/vip.d.ts +1 -1
  56. package/dist/services/vip/vip.js +1 -1
  57. package/dist/services/vip/vip.js.map +1 -1
  58. package/dist/services/vip/vip.schemas.d.ts +3 -3
  59. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-events.schemas.d.ts","names":[],"sources":["../../../src/services/assistant/assistant-events.schemas.ts"],"mappings":";;;;;;;iBAuLS,mBAAmB,GAAG;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUlD,oBAAoB,kBAAkB"}
@@ -14,7 +14,7 @@ declare class ProfileService {
14
14
  #private;
15
15
  constructor(transports: AuthApiTransports, realtime: PolyesterRealtime);
16
16
  /**
17
- * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp.
17
+ * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp. API keys need `read-profile` and must be scoped to the main account.
18
18
  */
19
19
  get(options?: PolyesterRequestOptions): Promise<Profile>;
20
20
  /**
@@ -22,7 +22,7 @@ declare class ProfileService {
22
22
  */
23
23
  update(input: v.InferInput<typeof UpdateProfileInputSchema>, options?: PolyesterMutationOptions): Promise<Profile>;
24
24
  /**
25
- * Returns the caller's recent username changes, newest first, capped at 20 entries.
25
+ * Returns the caller's recent username changes, newest first, capped at 20 entries. API keys need `read-profile` and must be scoped to the main account.
26
26
  */
27
27
  getUsernameHistory(options?: PolyesterRequestOptions): Promise<UsernameHistoryEntry[]>;
28
28
  /**
@@ -17,7 +17,7 @@ var ProfileService = class {
17
17
  this.#realtime = realtime;
18
18
  }
19
19
  /**
20
- * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp.
20
+ * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp. API keys need `read-profile` and must be scoped to the main account.
21
21
  */
22
22
  async get(options) {
23
23
  const res = await this.#client.getProfile({}, toConnectCallOptions(options));
@@ -33,7 +33,7 @@ var ProfileService = class {
33
33
  return parse(ProfileSchema, res);
34
34
  }
35
35
  /**
36
- * Returns the caller's recent username changes, newest first, capped at 20 entries.
36
+ * Returns the caller's recent username changes, newest first, capped at 20 entries. API keys need `read-profile` and must be scoped to the main account.
37
37
  */
38
38
  async getUsernameHistory(options) {
39
39
  const res = await this.#client.getUsernameHistory({}, toConnectCallOptions(options));
@@ -1 +1 @@
1
- {"version":3,"file":"profile.js","names":["#client","Proto.ProfileService","#realtime","Proto.AccountIdentitySchema","AccountIdentitySchema"],"sources":["../../../../src/services/auth/profile/profile.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../../gen/auth/v1/profile_pb.js\";\nimport type { AuthApiTransports } from \"../../../shared/transports.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../../shared/validation.js\";\nimport { removeUndefined } from \"../../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../../shared/request-options.js\";\nimport {\n AccountIdentitySchema,\n ClaimGeneratedUsernameInputSchema,\n GeneratedUsernameOfferSchema,\n ProfileSchema,\n UpdateProfileInputSchema,\n UsernameHistoryEntrySchema,\n type AccountIdentity,\n type GeneratedUsernameOffer,\n type Profile,\n type UsernameHistoryEntry,\n} from \"./profile.schemas.js\";\nimport type { BaseSubscribeInput } from \"../../../shared/types.js\";\nimport type { PolyesterRealtime } from \"../../../realtime/index.js\";\n\ninterface SubscribeIdentityInput extends BaseSubscribeInput<AccountIdentity> {}\n\n/**\n * Manages the authenticated account's public profile and realtime identity updates.\n */\nexport class ProfileService {\n #client: Client<typeof Proto.ProfileService>;\n #realtime: PolyesterRealtime;\n\n constructor(transports: AuthApiTransports, realtime: PolyesterRealtime) {\n this.#client = createClient(Proto.ProfileService, transports.authApi);\n this.#realtime = realtime;\n }\n\n /**\n * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp.\n */\n async get(options?: PolyesterRequestOptions): Promise<Profile> {\n const res = await this.#client.getProfile({}, toConnectCallOptions(options));\n if (!res) throw new Error(\"Profile not found\");\n return parse(ProfileSchema, res);\n }\n\n /**\n * Updates only the provided mutable profile fields; omitted fields are unchanged, while present empty strings clear optional text fields such as bio, website, Twitter, and avatar URL.\n */\n async update(\n input: v.InferInput<typeof UpdateProfileInputSchema>,\n options?: PolyesterMutationOptions,\n ): Promise<Profile> {\n const validatedInput = parse(UpdateProfileInputSchema, input);\n const res = await this.#client.updateProfile(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(ProfileSchema, res);\n }\n\n /**\n * Returns the caller's recent username changes, newest first, capped at 20 entries.\n */\n async getUsernameHistory(options?: PolyesterRequestOptions): Promise<UsernameHistoryEntry[]> {\n const res = await this.#client.getUsernameHistory({}, toConnectCallOptions(options));\n return parse(v.array(UsernameHistoryEntrySchema), res.history);\n }\n\n /**\n * Returns five generated username options and the short-lived offer token required to claim one of them.\n */\n async generateUsernameOptions(\n options?: PolyesterRequestOptions,\n ): Promise<GeneratedUsernameOffer> {\n const res = await this.#client.generateUsernameOptions({}, toConnectCallOptions(options));\n return parse(GeneratedUsernameOfferSchema, res);\n }\n\n /**\n * Claims one username from a generated offer by its zero-based option index.\n */\n async claimGeneratedUsername(\n input: v.InferInput<typeof ClaimGeneratedUsernameInputSchema>,\n options?: PolyesterMutationOptions,\n ): Promise<Profile> {\n const validatedInput = parse(ClaimGeneratedUsernameInputSchema, input);\n const res = await this.#client.claimGeneratedUsername(\n validatedInput,\n toConnectCallOptions(options),\n );\n return parse(ProfileSchema, res);\n }\n\n /**\n * Subscribes to public identity updates and emits normalized account identity records with base58 account IDs, username, avatar URL, and root smart-account address.\n */\n subscribeIdentity(input: SubscribeIdentityInput): () => void {\n const channel = \"public:identity:updates:proto\";\n return this.#realtime.connectProtoChannel({\n channel,\n schema: Proto.AccountIdentitySchema,\n onPublication: (data) => {\n const identity = parse(AccountIdentitySchema, data);\n input.onEvent(identity);\n },\n onConnected: () => input.onOpen?.(),\n onDisconnected: () => input.onClose?.(),\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AA+BA,IAAa,iBAAb,MAA4B;CACxB;CACA;CAEA,YAAY,YAA+B,UAA6B;EACpE,KAAKA,UAAU,aAAaC,kBAAsB,WAAW,OAAO;EACpE,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,IAAI,SAAqD;EAC3D,MAAM,MAAM,MAAM,KAAKF,QAAQ,WAAW,CAAC,GAAG,qBAAqB,OAAO,CAAC;EAC3E,IAAI,CAAC,KAAK,MAAM,IAAI,MAAM,mBAAmB;EAC7C,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,MAAM,OACF,OACA,SACgB;EAChB,MAAM,iBAAiB,MAAM,0BAA0B,KAAK;EAC5D,MAAM,MAAM,MAAM,KAAKA,QAAQ,cAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,MAAM,mBAAmB,SAAoE;EACzF,MAAM,MAAM,MAAM,KAAKA,QAAQ,mBAAmB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACnF,OAAO,MAAM,EAAE,MAAM,0BAA0B,GAAG,IAAI,OAAO;CACjE;;;;CAKA,MAAM,wBACF,SAC+B;EAC/B,MAAM,MAAM,MAAM,KAAKA,QAAQ,wBAAwB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACxF,OAAO,MAAM,8BAA8B,GAAG;CAClD;;;;CAKA,MAAM,uBACF,OACA,SACgB;EAChB,MAAM,iBAAiB,MAAM,mCAAmC,KAAK;EACrE,MAAM,MAAM,MAAM,KAAKA,QAAQ,uBAC3B,gBACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,kBAAkB,OAA2C;EAEzD,OAAO,KAAKE,UAAU,oBAAoB;GACtC,SAAA;GACA,QAAQC;GACR,gBAAgB,SAAS;IACrB,MAAM,WAAW,MAAMC,yBAAuB,IAAI;IAClD,MAAM,QAAQ,QAAQ;GAC1B;GACA,mBAAmB,MAAM,SAAS;GAClC,sBAAsB,MAAM,UAAU;GACtC,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
1
+ {"version":3,"file":"profile.js","names":["#client","Proto.ProfileService","#realtime","Proto.AccountIdentitySchema","AccountIdentitySchema"],"sources":["../../../../src/services/auth/profile/profile.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../../gen/auth/v1/profile_pb.js\";\nimport type { AuthApiTransports } from \"../../../shared/transports.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../../shared/validation.js\";\nimport { removeUndefined } from \"../../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../../shared/request-options.js\";\nimport {\n AccountIdentitySchema,\n ClaimGeneratedUsernameInputSchema,\n GeneratedUsernameOfferSchema,\n ProfileSchema,\n UpdateProfileInputSchema,\n UsernameHistoryEntrySchema,\n type AccountIdentity,\n type GeneratedUsernameOffer,\n type Profile,\n type UsernameHistoryEntry,\n} from \"./profile.schemas.js\";\nimport type { BaseSubscribeInput } from \"../../../shared/types.js\";\nimport type { PolyesterRealtime } from \"../../../realtime/index.js\";\n\ninterface SubscribeIdentityInput extends BaseSubscribeInput<AccountIdentity> {}\n\n/**\n * Manages the authenticated account's public profile and realtime identity updates.\n */\nexport class ProfileService {\n #client: Client<typeof Proto.ProfileService>;\n #realtime: PolyesterRealtime;\n\n constructor(transports: AuthApiTransports, realtime: PolyesterRealtime) {\n this.#client = createClient(Proto.ProfileService, transports.authApi);\n this.#realtime = realtime;\n }\n\n /**\n * Fetches the caller's public profile, including username eligibility/cooldown, verified social handles, avatar, VIP tier, and account creation timestamp. API keys need `read-profile` and must be scoped to the main account.\n */\n async get(options?: PolyesterRequestOptions): Promise<Profile> {\n const res = await this.#client.getProfile({}, toConnectCallOptions(options));\n if (!res) throw new Error(\"Profile not found\");\n return parse(ProfileSchema, res);\n }\n\n /**\n * Updates only the provided mutable profile fields; omitted fields are unchanged, while present empty strings clear optional text fields such as bio, website, Twitter, and avatar URL.\n */\n async update(\n input: v.InferInput<typeof UpdateProfileInputSchema>,\n options?: PolyesterMutationOptions,\n ): Promise<Profile> {\n const validatedInput = parse(UpdateProfileInputSchema, input);\n const res = await this.#client.updateProfile(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(ProfileSchema, res);\n }\n\n /**\n * Returns the caller's recent username changes, newest first, capped at 20 entries. API keys need `read-profile` and must be scoped to the main account.\n */\n async getUsernameHistory(options?: PolyesterRequestOptions): Promise<UsernameHistoryEntry[]> {\n const res = await this.#client.getUsernameHistory({}, toConnectCallOptions(options));\n return parse(v.array(UsernameHistoryEntrySchema), res.history);\n }\n\n /**\n * Returns five generated username options and the short-lived offer token required to claim one of them.\n */\n async generateUsernameOptions(\n options?: PolyesterRequestOptions,\n ): Promise<GeneratedUsernameOffer> {\n const res = await this.#client.generateUsernameOptions({}, toConnectCallOptions(options));\n return parse(GeneratedUsernameOfferSchema, res);\n }\n\n /**\n * Claims one username from a generated offer by its zero-based option index.\n */\n async claimGeneratedUsername(\n input: v.InferInput<typeof ClaimGeneratedUsernameInputSchema>,\n options?: PolyesterMutationOptions,\n ): Promise<Profile> {\n const validatedInput = parse(ClaimGeneratedUsernameInputSchema, input);\n const res = await this.#client.claimGeneratedUsername(\n validatedInput,\n toConnectCallOptions(options),\n );\n return parse(ProfileSchema, res);\n }\n\n /**\n * Subscribes to public identity updates and emits normalized account identity records with base58 account IDs, username, avatar URL, and root smart-account address.\n */\n subscribeIdentity(input: SubscribeIdentityInput): () => void {\n const channel = \"public:identity:updates:proto\";\n return this.#realtime.connectProtoChannel({\n channel,\n schema: Proto.AccountIdentitySchema,\n onPublication: (data) => {\n const identity = parse(AccountIdentitySchema, data);\n input.onEvent(identity);\n },\n onConnected: () => input.onOpen?.(),\n onDisconnected: () => input.onClose?.(),\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AA+BA,IAAa,iBAAb,MAA4B;CACxB;CACA;CAEA,YAAY,YAA+B,UAA6B;EACpE,KAAKA,UAAU,aAAaC,kBAAsB,WAAW,OAAO;EACpE,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,IAAI,SAAqD;EAC3D,MAAM,MAAM,MAAM,KAAKF,QAAQ,WAAW,CAAC,GAAG,qBAAqB,OAAO,CAAC;EAC3E,IAAI,CAAC,KAAK,MAAM,IAAI,MAAM,mBAAmB;EAC7C,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,MAAM,OACF,OACA,SACgB;EAChB,MAAM,iBAAiB,MAAM,0BAA0B,KAAK;EAC5D,MAAM,MAAM,MAAM,KAAKA,QAAQ,cAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,MAAM,mBAAmB,SAAoE;EACzF,MAAM,MAAM,MAAM,KAAKA,QAAQ,mBAAmB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACnF,OAAO,MAAM,EAAE,MAAM,0BAA0B,GAAG,IAAI,OAAO;CACjE;;;;CAKA,MAAM,wBACF,SAC+B;EAC/B,MAAM,MAAM,MAAM,KAAKA,QAAQ,wBAAwB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACxF,OAAO,MAAM,8BAA8B,GAAG;CAClD;;;;CAKA,MAAM,uBACF,OACA,SACgB;EAChB,MAAM,iBAAiB,MAAM,mCAAmC,KAAK;EACrE,MAAM,MAAM,MAAM,KAAKA,QAAQ,uBAC3B,gBACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,eAAe,GAAG;CACnC;;;;CAKA,kBAAkB,OAA2C;EAEzD,OAAO,KAAKE,UAAU,oBAAoB;GACtC,SAAA;GACA,QAAQC;GACR,gBAAgB,SAAS;IACrB,MAAM,WAAW,MAAMC,yBAAuB,IAAI;IAClD,MAAM,QAAQ,QAAQ;GAC1B;GACA,mBAAmB,MAAM,SAAS;GAClC,sBAAsB,MAAM,UAAU;GACtC,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
@@ -57,7 +57,7 @@ type EquityGroupBy = v.InferOutput<typeof EquityGroupBySchema>;
57
57
  declare const BalanceHistoryInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
58
58
  readonly range: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1d", "7d", "30d", "90d", "180d", "365d"], undefined>, v.TransformAction<"1d" | "7d" | "30d" | "90d" | "180d" | "365d", BalanceRange$1.DAY_1 | BalanceRange$1.DAY_7 | BalanceRange$1.DAY_30 | BalanceRange$1.DAY_90 | BalanceRange$1.DAY_180 | BalanceRange$1.DAY_365>]>;
59
59
  readonly ledger: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, 0>;
60
- readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"funding" | "trading", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
60
+ readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"trading" | "funding", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
61
61
  readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
62
62
  readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
63
63
  }, undefined>], undefined>, undefined>;
@@ -111,14 +111,14 @@ declare function createBalanceHistoryResponseSchema(): v.SchemaWithPipe<readonly
111
111
  points: number;
112
112
  series: {
113
113
  assetId: number;
114
- accountCode: "unspecified" | "funding" | "trading";
114
+ accountCode: "unspecified" | "trading" | "funding";
115
115
  balance: string[];
116
116
  }[];
117
117
  }>]>;
118
118
  type BalanceHistoryResponse = v.InferOutput<ReturnType<typeof createBalanceHistoryResponseSchema>>;
119
119
  declare const EquityHistoryInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
120
120
  readonly range: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1d", "7d", "30d", "90d", "180d", "365d"], undefined>, v.TransformAction<"1d" | "7d" | "30d" | "90d" | "180d" | "365d", BalanceRange$1.DAY_1 | BalanceRange$1.DAY_7 | BalanceRange$1.DAY_30 | BalanceRange$1.DAY_90 | BalanceRange$1.DAY_180 | BalanceRange$1.DAY_365>]>;
121
- readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"funding" | "trading", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
121
+ readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"trading" | "funding", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
122
122
  readonly groupBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["account", "asset"], undefined>, "account">, v.TransformAction<"account" | "asset", EquityGroupBy$1.GROUP_BY_ACCOUNT | EquityGroupBy$1.GROUP_BY_ASSET>]>;
123
123
  readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
124
124
  readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
@@ -11,7 +11,7 @@ type TimestampInit = {
11
11
  };
12
12
  declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
13
13
  readonly symbolId: v.NumberSchema<undefined>;
14
- readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
14
+ readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
15
15
  readonly tsSec: v.BigintSchema<undefined>;
16
16
  readonly open: v.BigintSchema<undefined>;
17
17
  readonly high: v.BigintSchema<undefined>;
@@ -22,7 +22,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
22
22
  readonly isClosed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
23
23
  }, undefined>, v.TransformAction<{
24
24
  symbolId: number;
25
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
25
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
26
26
  tsSec: bigint;
27
27
  open: bigint;
28
28
  high: bigint;
@@ -33,7 +33,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
33
33
  isClosed: boolean;
34
34
  }, {
35
35
  symbolId: number;
36
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
36
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
37
37
  time: number;
38
38
  open: string;
39
39
  high: string;
@@ -46,7 +46,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
46
46
  declare const createCandleRowIntSchema: typeof createCandleRowSchema;
47
47
  declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
48
48
  readonly symbolId: v.NumberSchema<undefined>;
49
- readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
49
+ readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
50
50
  readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
51
51
  readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
52
52
  readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
@@ -63,7 +63,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
63
63
  readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
64
64
  }, undefined>, v.TransformAction<{
65
65
  symbolId: number;
66
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
66
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
67
67
  tsSec: bigint[];
68
68
  open: bigint[];
69
69
  high: bigint[];
@@ -80,7 +80,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
80
80
  nextPageToken: string;
81
81
  }, {
82
82
  symbolId: number;
83
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
83
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
84
84
  time: number[];
85
85
  open: string[];
86
86
  high: string[];
@@ -100,7 +100,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
100
100
  }>]>;
101
101
  declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
102
102
  readonly symbolId: v.NumberSchema<undefined>;
103
- readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
103
+ readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
104
104
  readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
105
105
  readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
106
106
  readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
@@ -117,7 +117,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
117
117
  readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
118
118
  }, undefined>, v.TransformAction<{
119
119
  symbolId: number;
120
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
120
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
121
121
  tsSec: bigint[];
122
122
  open: bigint[];
123
123
  high: bigint[];
@@ -134,7 +134,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
134
134
  nextPageToken: string;
135
135
  }, {
136
136
  symbolId: number;
137
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
137
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
138
138
  tsSec: number[];
139
139
  open: string[];
140
140
  high: string[];
@@ -158,7 +158,7 @@ type CandleColumnar = v.InferOutput<ReturnType<typeof createCandleColumnarSchema
158
158
  type CandleColumnarInt = v.InferOutput<ReturnType<typeof createCandleColumnarIntSchema>>;
159
159
  declare function createListCandlesInputSchema(): v.SchemaWithPipe<readonly [v.ObjectSchema<{
160
160
  readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
161
- readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_3 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_2 | Timeframe$1.HOUR_4 | Timeframe$1.HOUR_6 | Timeframe$1.HOUR_8 | Timeframe$1.HOUR_12 | Timeframe$1.DAY_1 | Timeframe$1.DAY_3 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
161
+ readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_3 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_2 | Timeframe$1.HOUR_4 | Timeframe$1.HOUR_6 | Timeframe$1.HOUR_8 | Timeframe$1.HOUR_12 | Timeframe$1.DAY_1 | Timeframe$1.DAY_3 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
162
162
  readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
163
163
  readonly includeIncomplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
164
164
  readonly includeReference: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
31
31
  }, undefined>, v.CheckAction<{
32
32
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
33
33
  actionRequired?: boolean | undefined;
34
- surfaces: ("rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
34
+ surfaces: ("rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
35
35
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
36
36
  startTime?: number | undefined;
37
37
  endTime?: number | undefined;
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
42
42
  }, "endTime: must be after startTime">, v.TransformAction<{
43
43
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
44
44
  actionRequired?: boolean | undefined;
45
- surfaces: ("rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
45
+ surfaces: ("rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
46
46
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
47
47
  startTime?: number | undefined;
48
48
  endTime?: number | undefined;
@@ -73,14 +73,14 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
73
73
  readonly actionRequired: v.BooleanSchema<undefined>;
74
74
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
75
75
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
76
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
76
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
77
77
  }, undefined>;
78
78
  type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
79
79
  /** `surface` is the product area the section covers, `"unspecified"` when it spans several. */
80
80
  declare const ChangelogSectionSchema: v.ObjectSchema<{
81
81
  readonly heading: v.StringSchema<undefined>;
82
82
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
83
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
84
84
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
85
85
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
86
86
  readonly title: v.StringSchema<undefined>;
@@ -90,7 +90,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
90
90
  readonly actionRequired: v.BooleanSchema<undefined>;
91
91
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
92
92
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
93
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
93
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
94
94
  }, undefined>, undefined>, readonly []>;
95
95
  }, undefined>;
96
96
  type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
@@ -209,7 +209,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
209
209
  readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
210
210
  readonly heading: v.StringSchema<undefined>;
211
211
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
212
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
212
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
213
213
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
214
214
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
215
215
  readonly title: v.StringSchema<undefined>;
@@ -219,7 +219,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
219
219
  readonly actionRequired: v.BooleanSchema<undefined>;
220
220
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
221
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
222
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
222
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
223
223
  }, undefined>, undefined>, readonly []>;
224
224
  }, undefined>, undefined>, readonly []>;
225
225
  }, undefined>, v.TransformAction<{
@@ -241,7 +241,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
241
241
  sections: {
242
242
  heading: string;
243
243
  summary?: string | undefined;
244
- surface: "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
244
+ surface: "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
245
245
  changes: {
246
246
  id: string;
247
247
  title: string;
@@ -251,14 +251,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
251
251
  actionRequired: boolean;
252
252
  migrationGuidance?: string | undefined;
253
253
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
254
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
254
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
255
255
  }[];
256
256
  }[];
257
257
  }, {
258
258
  sections: {
259
259
  heading: string;
260
260
  summary?: string | undefined;
261
- surface: "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
261
+ surface: "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
262
262
  changes: {
263
263
  id: string;
264
264
  title: string;
@@ -268,7 +268,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
268
268
  actionRequired: boolean;
269
269
  migrationGuidance?: string | undefined;
270
270
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
271
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
271
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
272
272
  }[];
273
273
  }[];
274
274
  slug: string;
@@ -296,7 +296,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
296
296
  readonly actionRequired: v.BooleanSchema<undefined>;
297
297
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
298
298
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
299
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
299
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
300
300
  }, undefined>;
301
301
  readonly postSlug: v.StringSchema<undefined>;
302
302
  readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -317,7 +317,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
317
317
  actionRequired: boolean;
318
318
  migrationGuidance?: string | undefined;
319
319
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
320
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
320
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
321
321
  };
322
322
  postSlug: string;
323
323
  publishedAt: number;
@@ -334,7 +334,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
334
334
  actionRequired: boolean;
335
335
  migrationGuidance?: string | undefined;
336
336
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
337
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
337
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
338
338
  }>]>;
339
339
  /** A change with the slug, first publication time and section heading of the post that announced it. */
340
340
  type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
@@ -349,7 +349,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
349
349
  readonly actionRequired: v.BooleanSchema<undefined>;
350
350
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
351
351
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
352
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
352
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
353
353
  }, undefined>;
354
354
  readonly postSlug: v.StringSchema<undefined>;
355
355
  readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -370,7 +370,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
370
370
  actionRequired: boolean;
371
371
  migrationGuidance?: string | undefined;
372
372
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
373
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
373
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
374
374
  };
375
375
  postSlug: string;
376
376
  publishedAt: number;
@@ -387,7 +387,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
387
387
  actionRequired: boolean;
388
388
  migrationGuidance?: string | undefined;
389
389
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
390
- surfaces: ("unspecified" | "rewards" | "funding" | "trading" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
390
+ surfaces: ("unspecified" | "rewards" | "accounts" | "trading" | "funding" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
391
391
  }>]>, undefined>, readonly []>;
392
392
  readonly nextPageToken: v.StringSchema<undefined>;
393
393
  }, undefined>;
@@ -3,8 +3,8 @@ import { PolyesterRequestOptions } from "../../shared/request-options.js";
3
3
  import { Checkpoint, ListCheckpointsInput } from "./checkpoints.schemas.js";
4
4
  //#region src/services/checkpoints/checkpoints.d.ts
5
5
  /**
6
- * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs
7
- * for this service; API keys are refused with `PERMISSION_DENIED`.
6
+ * Reads the signed-in account's frozen testnet season recaps. API keys need `read-checkpoints`
7
+ * and must be scoped to the main account.
8
8
  */
9
9
  declare class CheckpointsService {
10
10
  #private;
@@ -5,8 +5,8 @@ import { ListCheckpointsInputSchema, ListCheckpointsResultSchema } from "./check
5
5
  import { createClient } from "@connectrpc/connect";
6
6
  //#region src/services/checkpoints/checkpoints.ts
7
7
  /**
8
- * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs
9
- * for this service; API keys are refused with `PERMISSION_DENIED`.
8
+ * Reads the signed-in account's frozen testnet season recaps. API keys need `read-checkpoints`
9
+ * and must be scoped to the main account.
10
10
  */
11
11
  var CheckpointsService = class {
12
12
  #client;
@@ -1 +1 @@
1
- {"version":3,"file":"checkpoints.js","names":["#client","Proto.CheckpointService"],"sources":["../../../src/services/checkpoints/checkpoints.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/checkpoints/v1/checkpoints_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ListCheckpointsInputSchema,\n ListCheckpointsResultSchema,\n type Checkpoint,\n type ListCheckpointsInput,\n} from \"./checkpoints.schemas.js\";\n\n/**\n * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs\n * for this service; API keys are refused with `PERMISSION_DENIED`.\n */\nexport class CheckpointsService {\n #client: Client<typeof Proto.CheckpointService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.CheckpointService, transports.authApi);\n }\n\n /**\n * Lists every checkpoint of the signed-in root account, newest first, at most one per duration.\n * A checkpoint covers the root account and all of its subaccounts, so `subaccountId` resolves\n * to its root account, which must be the caller's own. An account without checkpoints gets an\n * empty list.\n */\n async list(\n input: ListCheckpointsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<Checkpoint[]> {\n const { subaccountId } = parse(ListCheckpointsInputSchema, input);\n const response = await this.#client.listMyCheckpoints(\n { subaccountId },\n toConnectCallOptions(options),\n );\n return parse(ListCheckpointsResultSchema, response).checkpoints;\n }\n}\n"],"mappings":";;;;;;;;;;AAmBA,IAAa,qBAAb,MAAgC;CAC5B;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,mBAAyB,WAAW,OAAO;CAC3E;;;;;;;CAQA,MAAM,KACF,QAA8B,CAAC,GAC/B,SACqB;EACrB,MAAM,EAAE,iBAAiB,MAAM,4BAA4B,KAAK;EAChE,MAAM,WAAW,MAAM,KAAKD,QAAQ,kBAChC,EAAE,aAAa,GACf,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,6BAA6B,QAAQ,CAAC,CAAC;CACxD;AACJ"}
1
+ {"version":3,"file":"checkpoints.js","names":["#client","Proto.CheckpointService"],"sources":["../../../src/services/checkpoints/checkpoints.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/checkpoints/v1/checkpoints_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ListCheckpointsInputSchema,\n ListCheckpointsResultSchema,\n type Checkpoint,\n type ListCheckpointsInput,\n} from \"./checkpoints.schemas.js\";\n\n/**\n * Reads the signed-in account's frozen testnet season recaps. API keys need `read-checkpoints`\n * and must be scoped to the main account.\n */\nexport class CheckpointsService {\n #client: Client<typeof Proto.CheckpointService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.CheckpointService, transports.authApi);\n }\n\n /**\n * Lists every checkpoint of the signed-in root account, newest first, at most one per duration.\n * A checkpoint covers the root account and all of its subaccounts, so `subaccountId` resolves\n * to its root account, which must be the caller's own. An account without checkpoints gets an\n * empty list.\n */\n async list(\n input: ListCheckpointsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<Checkpoint[]> {\n const { subaccountId } = parse(ListCheckpointsInputSchema, input);\n const response = await this.#client.listMyCheckpoints(\n { subaccountId },\n toConnectCallOptions(options),\n );\n return parse(ListCheckpointsResultSchema, response).checkpoints;\n }\n}\n"],"mappings":";;;;;;;;;;AAmBA,IAAa,qBAAb,MAAgC;CAC5B;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,mBAAyB,WAAW,OAAO;CAC3E;;;;;;;CAQA,MAAM,KACF,QAA8B,CAAC,GAC/B,SACqB;EACrB,MAAM,EAAE,iBAAiB,MAAM,4BAA4B,KAAK;EAChE,MAAM,WAAW,MAAM,KAAKD,QAAQ,kBAChC,EAAE,aAAa,GACf,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,6BAA6B,QAAQ,CAAC,CAAC;CACxD;AACJ"}
@@ -427,7 +427,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
427
427
  readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
428
428
  readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
429
429
  /** Values computed from partial evidence; show them with an approximation marker. */
430
- readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "transfers" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "season_result">]>, undefined>, readonly []>;
430
+ readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "transfers" | "volume" | "tools" | "deposits" | "withdrawals" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "season_result">]>, undefined>, readonly []>;
431
431
  }, undefined>;
432
432
  /**
433
433
  * One frozen season recap of a root account and all of its subaccounts. An absent USD value
@@ -10,11 +10,11 @@ declare class DepositService {
10
10
  #private;
11
11
  constructor(transports: AuthApiTransports, resolver?: SubaccountResolver);
12
12
  /**
13
- * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address.
13
+ * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address. API keys need `create-deposit-address`.
14
14
  */
15
15
  createAddress(input: CreateDepositAddressInput, options?: PolyesterMutationOptions): Promise<DepositAddress | null>;
16
16
  /**
17
- * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract.
17
+ * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract. API keys need `read-deposit-addresses`.
18
18
  */
19
19
  listAddresses(input?: ListDepositAddressesInput, options?: PolyesterRequestOptions): Promise<DepositAddress[]>;
20
20
  }
@@ -17,7 +17,7 @@ var DepositService = class {
17
17
  this.#resolver = resolver;
18
18
  }
19
19
  /**
20
- * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address.
20
+ * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address. API keys need `create-deposit-address`.
21
21
  */
22
22
  async createAddress(input, options) {
23
23
  const resolvedInput = resolveAccountScopedInput(input, this.#resolver);
@@ -27,7 +27,7 @@ var DepositService = class {
27
27
  return parse(DepositAddressSchema, res.depositAddress);
28
28
  }
29
29
  /**
30
- * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract.
30
+ * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract. API keys need `read-deposit-addresses`.
31
31
  */
32
32
  async listAddresses(input = {}, options) {
33
33
  const resolvedInput = resolveAccountScopedInput(input, this.#resolver);
@@ -1 +1 @@
1
- {"version":3,"file":"deposit.js","names":["#client","Proto.DepositAddressService","#resolver"],"sources":["../../../src/services/deposit/deposit.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/deposit/v1/deposit_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n CreateDepositAddressInputSchema,\n DepositAddressSchema,\n DepositAddressesSchema,\n ListDepositAddressesInputSchema,\n type CreateDepositAddressInput,\n type ListDepositAddressesInput,\n type DepositAddress,\n} from \"./deposit.schemas.js\";\n\n/**\n * Manages chain deposit addresses for root accounts and subaccounts.\n */\nexport class DepositService {\n #client: Client<typeof Proto.DepositAddressService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.DepositAddressService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /**\n * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address.\n */\n async createAddress(\n input: CreateDepositAddressInput,\n options?: PolyesterMutationOptions,\n ): Promise<DepositAddress | null> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(CreateDepositAddressInputSchema, resolvedInput);\n const res = await this.#client.createDepositAddress(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n if (!res.depositAddress) return null;\n return parse(DepositAddressSchema, res.depositAddress);\n }\n\n /**\n * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract.\n */\n async listAddresses(\n input: ListDepositAddressesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<DepositAddress[]> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(ListDepositAddressesInputSchema, resolvedInput);\n const res = await this.#client.listDepositAddresses(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(DepositAddressesSchema, res.depositAddresses);\n }\n}\n"],"mappings":";;;;;;;;;;;AAwBA,IAAa,iBAAb,MAA4B;CACxB;CACA;CAEA,YAAY,YAA+B,UAA+B;EACtE,KAAKA,UAAU,aAAaC,uBAA6B,WAAW,OAAO;EAC3E,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,cACF,OACA,SAC8B;EAC9B,MAAM,gBAAgB,0BAA0B,OAAO,KAAKA,SAAS;EACrE,MAAM,iBAAiB,MAAM,iCAAiC,aAAa;EAC3E,MAAM,MAAM,MAAM,KAAKF,QAAQ,qBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,IAAI,CAAC,IAAI,gBAAgB,OAAO;EAChC,OAAO,MAAM,sBAAsB,IAAI,cAAc;CACzD;;;;CAKA,MAAM,cACF,QAAmC,CAAC,GACpC,SACyB;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKE,SAAS;EACrE,MAAM,iBAAiB,MAAM,iCAAiC,aAAa;EAC3E,MAAM,MAAM,MAAM,KAAKF,QAAQ,qBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,wBAAwB,IAAI,gBAAgB;CAC7D;AACJ"}
1
+ {"version":3,"file":"deposit.js","names":["#client","Proto.DepositAddressService","#resolver"],"sources":["../../../src/services/deposit/deposit.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/deposit/v1/deposit_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n CreateDepositAddressInputSchema,\n DepositAddressSchema,\n DepositAddressesSchema,\n ListDepositAddressesInputSchema,\n type CreateDepositAddressInput,\n type ListDepositAddressesInput,\n type DepositAddress,\n} from \"./deposit.schemas.js\";\n\n/**\n * Manages chain deposit addresses for root accounts and subaccounts.\n */\nexport class DepositService {\n #client: Client<typeof Proto.DepositAddressService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.DepositAddressService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /**\n * Creates or returns the deposit address assigned to the resolved account target for a selected chain. Returns null if the backend response does not include an address. API keys need `create-deposit-address`.\n */\n async createAddress(\n input: CreateDepositAddressInput,\n options?: PolyesterMutationOptions,\n ): Promise<DepositAddress | null> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(CreateDepositAddressInputSchema, resolvedInput);\n const res = await this.#client.createDepositAddress(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n if (!res.depositAddress) return null;\n return parse(DepositAddressSchema, res.depositAddress);\n }\n\n /**\n * Lists known deposit addresses for the resolved account target, optionally filtered by chain. Results are ordered by ascending chain id in the generated proto contract. API keys need `read-deposit-addresses`.\n */\n async listAddresses(\n input: ListDepositAddressesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<DepositAddress[]> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(ListDepositAddressesInputSchema, resolvedInput);\n const res = await this.#client.listDepositAddresses(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(DepositAddressesSchema, res.depositAddresses);\n }\n}\n"],"mappings":";;;;;;;;;;;AAwBA,IAAa,iBAAb,MAA4B;CACxB;CACA;CAEA,YAAY,YAA+B,UAA+B;EACtE,KAAKA,UAAU,aAAaC,uBAA6B,WAAW,OAAO;EAC3E,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,cACF,OACA,SAC8B;EAC9B,MAAM,gBAAgB,0BAA0B,OAAO,KAAKA,SAAS;EACrE,MAAM,iBAAiB,MAAM,iCAAiC,aAAa;EAC3E,MAAM,MAAM,MAAM,KAAKF,QAAQ,qBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,IAAI,CAAC,IAAI,gBAAgB,OAAO;EAChC,OAAO,MAAM,sBAAsB,IAAI,cAAc;CACzD;;;;CAKA,MAAM,cACF,QAAmC,CAAC,GACpC,SACyB;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKE,SAAS;EACrE,MAAM,iBAAiB,MAAM,iCAAiC,aAAa;EAC3E,MAAM,MAAM,MAAM,KAAKF,QAAQ,qBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,wBAAwB,IAAI,gBAAgB;CAC7D;AACJ"}
@@ -14,7 +14,7 @@ declare class GuardSignerService {
14
14
  */
15
15
  createWallet(input?: GuardSignerScopedInput, options?: PolyesterMutationOptions): Promise<CreateGuardSignerWalletResult>;
16
16
  /**
17
- * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found.
17
+ * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found. API keys need `read-guard-signer-status`.
18
18
  */
19
19
  getStatus(input?: GuardSignerScopedInput, options?: PolyesterRequestOptions): Promise<GuardSignerStatus | null>;
20
20
  /**
@@ -30,7 +30,7 @@ var GuardSignerService = class {
30
30
  return parse(CreateGuardSignerWalletResultSchema, response);
31
31
  }
32
32
  /**
33
- * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found.
33
+ * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found. API keys need `read-guard-signer-status`.
34
34
  */
35
35
  async getStatus(input = {}, options) {
36
36
  const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));
@@ -1 +1 @@
1
- {"version":3,"file":"guard-signer.js","names":["#client","Proto.GuardSignerService","#resolver"],"sources":["../../../src/services/guard-signer/guard-signer.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/guard/v1/guard_signer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport type { AccountScopedInput } from \"../../shared/account-scope.js\";\nimport {\n BatchGuardApprovalsSchema,\n BatchSignProtectedActionInputSchema,\n CreateGuardSignerWalletResultSchema,\n ExportGuardSignerWalletResultSchema,\n GuardApprovalSchema,\n GuardSignerScopedInputSchema,\n GuardSignerStatusSchema,\n RotateGuardSignerWalletResultSchema,\n SignProtectedActionInputSchema,\n type BatchGuardApprovals,\n type BatchSignProtectedActionInput,\n type CreateGuardSignerWalletResult,\n type ExportGuardSignerWalletResult,\n type GuardApproval,\n type GuardSignerScopedInput,\n type GuardSignerStatus,\n type RotateGuardSignerWalletResult,\n type SignProtectedActionInput,\n} from \"./guard-signer.schemas.js\";\nimport { formatConnectError, isResourceNotFoundError } from \"../../utils/errors.js\";\nimport { parse } from \"../../shared/validation.js\";\n\nconst GUARD_SIGNER_WALLET_NOT_FOUND_MESSAGE = \"guard signer wallet not found\";\n\nfunction isGuardSignerWalletNotFoundError(err: unknown): boolean {\n return formatConnectError(err, \"\")\n .toLowerCase()\n .includes(GUARD_SIGNER_WALLET_NOT_FOUND_MESSAGE);\n}\n\n/**\n * Manages backend guard signer wallets and approval signatures for protected Polyester account actions.\n */\nexport class GuardSignerService {\n #client: Client<typeof Proto.GuardSignerService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.GuardSignerService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /**\n * Creates a guard signer wallet for the resolved account target and returns the generated signer EVM address.\n */\n async createWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<CreateGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.createGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(CreateGuardSignerWalletResultSchema, response);\n }\n\n /**\n * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found.\n */\n async getStatus(\n input: GuardSignerScopedInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<GuardSignerStatus | null> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n try {\n const response = await this.#client.getGuardSignerStatus(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.status ? parse(GuardSignerStatusSchema, response.status) : null;\n } catch (err) {\n if (isResourceNotFoundError(err) || isGuardSignerWalletNotFoundError(err)) return null;\n throw err;\n }\n }\n\n /**\n * Creates one guard approval signature for a supported protected action, such as whitelist updates or whitelist requirement changes. Returns null if the backend response has no approval payload.\n */\n async signProtectedAction(\n input: SignProtectedActionInput,\n options?: PolyesterMutationOptions,\n ): Promise<GuardApproval | null> {\n const request = parse(SignProtectedActionInputSchema, this.resolveInput(input));\n const response = await this.#client.signProtectedAction(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.approval ? parse(GuardApprovalSchema, response.approval) : null;\n }\n\n /**\n * Creates ordered guard approval signatures for a batch of protected actions and verifies the backend returned one approval per requested action.\n */\n async batchSignProtectedActions(\n input: BatchSignProtectedActionInput,\n options?: PolyesterMutationOptions,\n ): Promise<BatchGuardApprovals> {\n const request = parse(BatchSignProtectedActionInputSchema, this.resolveInput(input));\n const response = await this.#client.batchSignProtectedActions(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n\n if (response.approvals.length !== input.actions.length) {\n throw new Error(\"Backend returned a mismatched number of GuardSigner approvals.\");\n }\n\n return parse(BatchGuardApprovalsSchema, response);\n }\n\n /**\n * Generates a backend-managed replacement guard signer for the resolved account target and returns the new signer address plus the rotation approval payload.\n */\n async rotateWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<RotateGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.rotateGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(RotateGuardSignerWalletResultSchema, response);\n }\n\n /**\n * Exports guard signer private key material for the resolved account target after owner authorization and fresh step-up, returning the backend export response.\n */\n async exportWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<ExportGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.exportGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(ExportGuardSignerWalletResultSchema, response);\n }\n\n private resolveInput<TInput extends AccountScopedInput>(input: TInput): TInput {\n return resolveAcc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KAAK,CAAC;EACnF,MAAM,WAAW,MAAM,KAAKA,QAAQ,0BAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EAEA,IAAI,SAAS,UAAU,WAAW,MAAM,QAAQ,QAC5C,MAAM,IAAI,MAAM,gEAAgE;EAGpF,OAAO,MAAM,2BAA2B,QAAQ;CACpD;;;;CAKA,MAAM,aACF,QAAgC,CAAC,GACjC,SACsC;EACtC,MAAM,UAAU,MAAM,8BAA8B,KAAK,aAAa,KAAK,CAAC;EAC5E,MAAM,WAAW,MAAM,KAAKA,QAAQ,wBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,qCAAqC,QAAQ;CAC9D;;;;CAKA,MAAM,aACF,QAAgC,CAAC,GACjC,SACsC;EACtC,MAAM,UAAU,MAAM,8BAA8B,KAAK,aAAa,KAAK,CAAC;EAC5E,MAAM,WAAW,MAAM,KAAKA,QAAQ,wBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,qCAAqC,QAAQ;CAC9D;CAEA,aAAwD,OAAuB;EAC3E,OAAO,0BAA0B,OAAO,KAAKE,SAAS;CAC1D;AACJ"}
1
+ {"version":3,"file":"guard-signer.js","names":["#client","Proto.GuardSignerService","#resolver"],"sources":["../../../src/services/guard-signer/guard-signer.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/guard/v1/guard_signer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport type { AccountScopedInput } from \"../../shared/account-scope.js\";\nimport {\n BatchGuardApprovalsSchema,\n BatchSignProtectedActionInputSchema,\n CreateGuardSignerWalletResultSchema,\n ExportGuardSignerWalletResultSchema,\n GuardApprovalSchema,\n GuardSignerScopedInputSchema,\n GuardSignerStatusSchema,\n RotateGuardSignerWalletResultSchema,\n SignProtectedActionInputSchema,\n type BatchGuardApprovals,\n type BatchSignProtectedActionInput,\n type CreateGuardSignerWalletResult,\n type ExportGuardSignerWalletResult,\n type GuardApproval,\n type GuardSignerScopedInput,\n type GuardSignerStatus,\n type RotateGuardSignerWalletResult,\n type SignProtectedActionInput,\n} from \"./guard-signer.schemas.js\";\nimport { formatConnectError, isResourceNotFoundError } from \"../../utils/errors.js\";\nimport { parse } from \"../../shared/validation.js\";\n\nconst GUARD_SIGNER_WALLET_NOT_FOUND_MESSAGE = \"guard signer wallet not found\";\n\nfunction isGuardSignerWalletNotFoundError(err: unknown): boolean {\n return formatConnectError(err, \"\")\n .toLowerCase()\n .includes(GUARD_SIGNER_WALLET_NOT_FOUND_MESSAGE);\n}\n\n/**\n * Manages backend guard signer wallets and approval signatures for protected Polyester account actions.\n */\nexport class GuardSignerService {\n #client: Client<typeof Proto.GuardSignerService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.GuardSignerService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /**\n * Creates a guard signer wallet for the resolved account target and returns the generated signer EVM address.\n */\n async createWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<CreateGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.createGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(CreateGuardSignerWalletResultSchema, response);\n }\n\n /**\n * Returns stored and live guard signer status for the resolved account target, including signer address, on-chain signer, initialization state, nonce, and nonce space. Returns null when the backend reports the wallet is not found. API keys need `read-guard-signer-status`.\n */\n async getStatus(\n input: GuardSignerScopedInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<GuardSignerStatus | null> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n try {\n const response = await this.#client.getGuardSignerStatus(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.status ? parse(GuardSignerStatusSchema, response.status) : null;\n } catch (err) {\n if (isResourceNotFoundError(err) || isGuardSignerWalletNotFoundError(err)) return null;\n throw err;\n }\n }\n\n /**\n * Creates one guard approval signature for a supported protected action, such as whitelist updates or whitelist requirement changes. Returns null if the backend response has no approval payload.\n */\n async signProtectedAction(\n input: SignProtectedActionInput,\n options?: PolyesterMutationOptions,\n ): Promise<GuardApproval | null> {\n const request = parse(SignProtectedActionInputSchema, this.resolveInput(input));\n const response = await this.#client.signProtectedAction(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.approval ? parse(GuardApprovalSchema, response.approval) : null;\n }\n\n /**\n * Creates ordered guard approval signatures for a batch of protected actions and verifies the backend returned one approval per requested action.\n */\n async batchSignProtectedActions(\n input: BatchSignProtectedActionInput,\n options?: PolyesterMutationOptions,\n ): Promise<BatchGuardApprovals> {\n const request = parse(BatchSignProtectedActionInputSchema, this.resolveInput(input));\n const response = await this.#client.batchSignProtectedActions(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n\n if (response.approvals.length !== input.actions.length) {\n throw new Error(\"Backend returned a mismatched number of GuardSigner approvals.\");\n }\n\n return parse(BatchGuardApprovalsSchema, response);\n }\n\n /**\n * Generates a backend-managed replacement guard signer for the resolved account target and returns the new signer address plus the rotation approval payload.\n */\n async rotateWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<RotateGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.rotateGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(RotateGuardSignerWalletResultSchema, response);\n }\n\n /**\n * Exports guard signer private key material for the resolved account target after owner authorization and fresh step-up, returning the backend export response.\n */\n async exportWallet(\n input: GuardSignerScopedInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<ExportGuardSignerWalletResult> {\n const request = parse(GuardSignerScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.exportGuardSignerWallet(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(ExportGuardSignerWalletResultSchema, response);\n }\n\n private resolveInput<TInput extends AccountScopedInput>(input: TInput): TInput {\n return resolveAccountScopedInput(input, this.#resolver);\n }\n}\n"],"mappings":";;;;;;;;;AAkCA,MAAM,wCAAwC;AAE9C,SAAS,iCAAiC,KAAuB;CAC7D,OAAO,mBAAmB,KAAK,EAAE,CAAC,CAC7B,YAAY,CAAC,CACb,SAAS,qCAAqC;AACvD;;;;AAKA,IAAa,qBAAb,MAAgC;CAC5B;CACA;CAEA,YAAY,YAA+B,UAA+B;EACtE,KAAKA,UAAU,aAAaC,sBAA0B,WAAW,OAAO;EACxE,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,aACF,QAAgC,CAAC,GACjC,SACsC;EACtC,MAAM,UAAU,MAAM,8BAA8B,KAAK,aAAa,KAAK,CAAC;EAC5E,MAAM,WAAW,MAAM,KAAKF,QAAQ,wBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,qCAAqC,QAAQ;CAC9D;;;;CAKA,MAAM,UACF,QAAgC,CAAC,GACjC,SACiC;EACjC,MAAM,UAAU,MAAM,8BAA8B,KAAK,aAAa,KAAK,CAAC;EAC5E,IAAI;GACA,MAAM,WAAW,MAAM,KAAKA,QAAQ,qBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;GACA,OAAO,SAAS,SAAS,MAAM,yBAAyB,SAAS,MAAM,IAAI;EAC/E,SAAS,KAAK;GACV,IAAI,wBAAwB,GAAG,KAAK,iCAAiC,GAAG,GAAG,OAAO;GAClF,MAAM;EACV;CACJ;;;;CAKA,MAAM,oBACF,OACA,SAC6B;EAC7B,MAAM,UAAU,MAAM,gCAAgC,KAAK,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