@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111031027
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +5 -2
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +5 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +8 -1
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +8 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +116 -8
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +102 -3
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +3 -0
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +8 -3
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +2 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +19 -2
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +11 -2
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +44 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +44 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +25 -4
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +18 -5
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
- package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +16 -4
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +145 -3
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +27 -3
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +48 -19
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +3 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/claims/claims.d.ts +5 -2
- package/dist/services/claims/claims.d.ts.map +1 -1
- package/dist/services/claims/claims.js +5 -2
- package/dist/services/claims/claims.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +12 -12
- package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +17 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +56 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +54 -54
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +34 -34
- package/dist/services/orders/orders-input.schemas.d.ts +4 -4
- package/dist/services/orders/orders-output.schemas.d.ts +16 -16
- package/dist/services/orders/orders.d.ts +2 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +2 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +64 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +5 -14
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +13 -3
- package/dist/services/rewards/rewards.d.ts.map +1 -1
- package/dist/services/rewards/rewards.js +17 -3
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +101 -4
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +12 -2
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +16 -16
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +15 -15
- package/dist/services/zipper/zipper.schemas.d.ts +2 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +13 -2
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.types.d.ts +2 -2
- package/dist/shared/catalog-config.d.ts +13 -1
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js +7 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +2 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/claims.js +7 -2
- package/dist/shared/error-details/claims.js.map +1 -1
- package/dist/shared/errors.d.ts +20 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +17 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +5 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +24 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewards.js","names":["#client","Proto.RewardCampaignService"],"sources":["../../../src/services/rewards/rewards.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/rewards/v1/rewards_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ListRewardAwardsInputSchema,\n ListRewardAwardsResultSchema,\n type ListRewardAwardsInput,\n type ListRewardAwardsResult,\n SetRewardDestinationInputSchema,\n SetRewardDestinationResultSchema,\n type SetRewardDestinationInput,\n type SetRewardDestinationResult,\n} from \"./rewards.schemas.js\";\n\n/**\n * Reads published reward campaign awards for the authenticated root account
|
|
1
|
+
{"version":3,"file":"rewards.js","names":["#client","Proto.RewardCampaignService"],"sources":["../../../src/services/rewards/rewards.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/rewards/v1/rewards_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n AcknowledgeRewardAwardInputSchema,\n AcknowledgeRewardAwardResultSchema,\n type AcknowledgeRewardAwardInput,\n type AcknowledgeRewardAwardResult,\n ListRewardAwardsInputSchema,\n ListRewardAwardsResultSchema,\n type ListRewardAwardsInput,\n type ListRewardAwardsResult,\n SetRewardDestinationInputSchema,\n SetRewardDestinationResultSchema,\n type SetRewardDestinationInput,\n type SetRewardDestinationResult,\n} from \"./rewards.schemas.js\";\n\n/**\n * Reads published reward campaign awards for the authenticated root account, records payout\n * destinations, and acknowledges seen awards. Every call accepts a session JWT. `listAwards` also\n * accepts an API key scoped to the main account whose policy grants `read-rewards`.\n */\nexport class RewardsService {\n #client: Client<typeof Proto.RewardCampaignService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.RewardCampaignService, transports.authApi);\n }\n\n /**\n * Returns published awards newest first. `limit` is 0 through 100 (0 or omitted uses 50); pass the previous `nextPageToken` as `pageToken` to continue. An empty `nextPageToken` means no more awards. When `awardsMayChange` is false, polling cannot surface new awards or changes until a new campaign is created.\n */\n async listAwards(\n input: ListRewardAwardsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListRewardAwardsResult> {\n const request = parse(ListRewardAwardsInputSchema, input);\n const response = await this.#client.listMyRewardAwards(\n request,\n toConnectCallOptions(options),\n );\n return parse(ListRewardAwardsResultSchema, response);\n }\n\n /**\n * Records a write-once payout destination for an award, interpreted in the award's `network`. Pass the award's `fulfillmentRevision` as `expectedRevision` and reuse the same `requestId` when retrying. Requires a fresh step-up proof via `options.stepUpToken`. This does not execute a transfer or mark the award delivered.\n */\n async setDestination(\n input: SetRewardDestinationInput,\n options?: PolyesterMutationOptions,\n ): Promise<SetRewardDestinationResult> {\n const request = parse(SetRewardDestinationInputSchema, input);\n const response = await this.#client.setMyRewardDestination(\n request,\n toConnectCallOptions(options),\n );\n return parse(SetRewardDestinationResultSchema, response);\n }\n\n /**\n * Records that the recipient revealed an award (`revealed: true`) or saw a paid award's\n * delivery (`deliverySeen: true`), so other sessions and devices do not show the dialog again.\n * Set at least one. Marks are independent, permanent and idempotent: the first timestamp is\n * kept, `false` leaves a mark unchanged, and a failed call can be retried as is. `deliverySeen`\n * on an award that is not paid fails the whole call with `PreconditionFailedError`. Returns the\n * current award with its marks; fulfillment state and revision are unchanged. Session JWT only.\n */\n async acknowledgeAward(\n input: AcknowledgeRewardAwardInput,\n options?: PolyesterRequestOptions,\n ): Promise<AcknowledgeRewardAwardResult> {\n const request = parse(AcknowledgeRewardAwardInputSchema, input);\n const response = await this.#client.acknowledgeMyRewardAward(\n request,\n toConnectCallOptions(options),\n );\n return parse(AcknowledgeRewardAwardResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AA6BA,IAAa,iBAAb,MAA4B;CACxB;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,uBAA6B,WAAW,OAAO;CAC/E;;;;CAKA,MAAM,WACF,QAA+B,CAAC,GAChC,SAC+B;EAC/B,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKD,QAAQ,mBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;CAKA,MAAM,eACF,OACA,SACmC;EACnC,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,uBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,kCAAkC,QAAQ;CAC3D;;;;;;;;;CAUA,MAAM,iBACF,OACA,SACqC;EACrC,MAAM,UAAU,MAAM,mCAAmC,KAAK;EAC9D,MAAM,WAAW,MAAM,KAAKA,QAAQ,yBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;AACJ"}
|
|
@@ -12,6 +12,16 @@ declare const SetRewardDestinationInputSchema: v.StrictObjectSchema<{
|
|
|
12
12
|
readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
|
|
13
13
|
}, undefined>;
|
|
14
14
|
type SetRewardDestinationInput = v.InferInput<typeof SetRewardDestinationInputSchema>;
|
|
15
|
+
declare const AcknowledgeRewardAwardInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
16
|
+
readonly awardId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UuidAction<string, undefined>]>;
|
|
17
|
+
readonly revealed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
18
|
+
readonly deliverySeen: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
19
|
+
}, undefined>, v.CheckAction<{
|
|
20
|
+
awardId: string;
|
|
21
|
+
revealed: boolean;
|
|
22
|
+
deliverySeen: boolean;
|
|
23
|
+
}, "Set revealed or deliverySeen to true.">]>;
|
|
24
|
+
type AcknowledgeRewardAwardInput = v.InferInput<typeof AcknowledgeRewardAwardInputSchema>;
|
|
15
25
|
declare const RewardAwardSchema: v.ObjectSchema<{
|
|
16
26
|
readonly awardId: v.StringSchema<undefined>;
|
|
17
27
|
readonly campaignId: v.StringSchema<undefined>;
|
|
@@ -19,7 +29,7 @@ declare const RewardAwardSchema: v.ObjectSchema<{
|
|
|
19
29
|
readonly assetId: v.NumberSchema<undefined>;
|
|
20
30
|
readonly amountBaseUnits: v.StringSchema<undefined>;
|
|
21
31
|
readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
|
|
22
|
-
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
32
|
+
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
|
|
23
33
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
24
34
|
readonly seconds: v.BigintSchema<undefined>;
|
|
25
35
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -31,6 +41,22 @@ declare const RewardAwardSchema: v.ObjectSchema<{
|
|
|
31
41
|
readonly fulfillmentRevision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
32
42
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
33
43
|
readonly transactionId: v.StringSchema<undefined>;
|
|
44
|
+
/** When the recipient first acknowledged revealing the award, in any session; absent until then. */
|
|
45
|
+
readonly revealedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
46
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
47
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
48
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
49
|
+
seconds: bigint;
|
|
50
|
+
nanos: number;
|
|
51
|
+
} | undefined, number | undefined>]>;
|
|
52
|
+
/** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */
|
|
53
|
+
readonly deliverySeenAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
54
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
55
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
56
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
57
|
+
seconds: bigint;
|
|
58
|
+
nanos: number;
|
|
59
|
+
} | undefined, number | undefined>]>;
|
|
34
60
|
}, undefined>;
|
|
35
61
|
type RewardAward = v.InferOutput<typeof RewardAwardSchema>;
|
|
36
62
|
declare const ListRewardAwardsResultSchema: v.ObjectSchema<{
|
|
@@ -41,7 +67,7 @@ declare const ListRewardAwardsResultSchema: v.ObjectSchema<{
|
|
|
41
67
|
readonly assetId: v.NumberSchema<undefined>;
|
|
42
68
|
readonly amountBaseUnits: v.StringSchema<undefined>;
|
|
43
69
|
readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
|
|
44
|
-
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
70
|
+
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
|
|
45
71
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
46
72
|
readonly seconds: v.BigintSchema<undefined>;
|
|
47
73
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -53,6 +79,22 @@ declare const ListRewardAwardsResultSchema: v.ObjectSchema<{
|
|
|
53
79
|
readonly fulfillmentRevision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
54
80
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
55
81
|
readonly transactionId: v.StringSchema<undefined>;
|
|
82
|
+
/** When the recipient first acknowledged revealing the award, in any session; absent until then. */
|
|
83
|
+
readonly revealedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
84
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
85
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
86
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
87
|
+
seconds: bigint;
|
|
88
|
+
nanos: number;
|
|
89
|
+
} | undefined, number | undefined>]>;
|
|
90
|
+
/** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */
|
|
91
|
+
readonly deliverySeenAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
92
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
93
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
94
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
95
|
+
seconds: bigint;
|
|
96
|
+
nanos: number;
|
|
97
|
+
} | undefined, number | undefined>]>;
|
|
56
98
|
}, undefined>, undefined>, readonly []>;
|
|
57
99
|
readonly nextPageToken: v.StringSchema<undefined>;
|
|
58
100
|
/**
|
|
@@ -72,7 +114,7 @@ declare const SetRewardDestinationResultSchema: v.ObjectSchema<{
|
|
|
72
114
|
readonly assetId: v.NumberSchema<undefined>;
|
|
73
115
|
readonly amountBaseUnits: v.StringSchema<undefined>;
|
|
74
116
|
readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
|
|
75
|
-
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
117
|
+
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
|
|
76
118
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
77
119
|
readonly seconds: v.BigintSchema<undefined>;
|
|
78
120
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -84,9 +126,64 @@ declare const SetRewardDestinationResultSchema: v.ObjectSchema<{
|
|
|
84
126
|
readonly fulfillmentRevision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
85
127
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
86
128
|
readonly transactionId: v.StringSchema<undefined>;
|
|
129
|
+
/** When the recipient first acknowledged revealing the award, in any session; absent until then. */
|
|
130
|
+
readonly revealedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
131
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
132
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
133
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
134
|
+
seconds: bigint;
|
|
135
|
+
nanos: number;
|
|
136
|
+
} | undefined, number | undefined>]>;
|
|
137
|
+
/** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */
|
|
138
|
+
readonly deliverySeenAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
139
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
140
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
141
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
142
|
+
seconds: bigint;
|
|
143
|
+
nanos: number;
|
|
144
|
+
} | undefined, number | undefined>]>;
|
|
87
145
|
}, undefined>;
|
|
88
146
|
}, undefined>;
|
|
89
147
|
type SetRewardDestinationResult = v.InferOutput<typeof SetRewardDestinationResultSchema>;
|
|
148
|
+
declare const AcknowledgeRewardAwardResultSchema: v.ObjectSchema<{
|
|
149
|
+
readonly award: v.ObjectSchema<{
|
|
150
|
+
readonly awardId: v.StringSchema<undefined>;
|
|
151
|
+
readonly campaignId: v.StringSchema<undefined>;
|
|
152
|
+
readonly campaignName: v.StringSchema<undefined>;
|
|
153
|
+
readonly assetId: v.NumberSchema<undefined>;
|
|
154
|
+
readonly amountBaseUnits: v.StringSchema<undefined>;
|
|
155
|
+
readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
|
|
156
|
+
readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
|
|
157
|
+
readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
158
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
159
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
160
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
161
|
+
seconds: bigint;
|
|
162
|
+
nanos: number;
|
|
163
|
+
} | undefined, number | undefined>]>;
|
|
164
|
+
readonly network: v.StringSchema<undefined>;
|
|
165
|
+
readonly fulfillmentRevision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
166
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
167
|
+
readonly transactionId: v.StringSchema<undefined>;
|
|
168
|
+
/** When the recipient first acknowledged revealing the award, in any session; absent until then. */
|
|
169
|
+
readonly revealedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
170
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
171
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
172
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
173
|
+
seconds: bigint;
|
|
174
|
+
nanos: number;
|
|
175
|
+
} | undefined, number | undefined>]>;
|
|
176
|
+
/** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */
|
|
177
|
+
readonly deliverySeenAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
178
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
179
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
180
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
181
|
+
seconds: bigint;
|
|
182
|
+
nanos: number;
|
|
183
|
+
} | undefined, number | undefined>]>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
type AcknowledgeRewardAwardResult = v.InferOutput<typeof AcknowledgeRewardAwardResultSchema>;
|
|
90
187
|
//#endregion
|
|
91
|
-
export { ListRewardAwardsInput, ListRewardAwardsInputSchema, ListRewardAwardsResult, ListRewardAwardsResultSchema, RewardAward, RewardAwardSchema, SetRewardDestinationInput, SetRewardDestinationInputSchema, SetRewardDestinationResult, SetRewardDestinationResultSchema };
|
|
188
|
+
export { AcknowledgeRewardAwardInput, AcknowledgeRewardAwardInputSchema, AcknowledgeRewardAwardResult, AcknowledgeRewardAwardResultSchema, ListRewardAwardsInput, ListRewardAwardsInputSchema, ListRewardAwardsResult, ListRewardAwardsResultSchema, RewardAward, RewardAwardSchema, SetRewardDestinationInput, SetRewardDestinationInputSchema, SetRewardDestinationResult, SetRewardDestinationResultSchema };
|
|
92
189
|
//# sourceMappingURL=rewards.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewards.schemas.d.ts","names":[],"sources":["../../../src/services/rewards/rewards.schemas.ts"],"mappings":";;cASa,6BAA2B,EAAA;;;;KAK5B,wBAAwB,EAAE,kBAAkB;cAE3C,iCAA+B,EAAA;;;;;;KAOhC,4BAA4B,EAAE,kBAAkB;cAE/C,mBAAiB,EAAA
|
|
1
|
+
{"version":3,"file":"rewards.schemas.d.ts","names":[],"sources":["../../../src/services/rewards/rewards.schemas.ts"],"mappings":";;cASa,6BAA2B,EAAA;;;;KAK5B,wBAAwB,EAAE,kBAAkB;cAE3C,iCAA+B,EAAA;;;;;;KAOhC,4BAA4B,EAAE,kBAAkB;cAE/C,mCAAiC,EAAA,yBAAA,EAAA;;;;;;;;;KAYlC,8BAA8B,EAAE,kBAAkB;cAEjD,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBlB,cAAc,EAAE,mBAAmB;cAElC,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAY7B,yBAAyB,EAAE,mBAAmB;cAE7C,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIjC,6BAA6B,EAAE,mBAAmB;cAEjD,oCAAkC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAInC,+BAA+B,EAAE,mBAAmB"}
|
|
@@ -13,6 +13,11 @@ const SetRewardDestinationInputSchema = v.strictObject({
|
|
|
13
13
|
expectedRevision: positiveBigintStringInputSchema("expectedRevision"),
|
|
14
14
|
requestId: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128))
|
|
15
15
|
});
|
|
16
|
+
const AcknowledgeRewardAwardInputSchema = v.pipe(v.strictObject({
|
|
17
|
+
awardId: v.pipe(v.string(), v.trim(), v.uuid()),
|
|
18
|
+
revealed: v.optional(v.boolean(), false),
|
|
19
|
+
deliverySeen: v.optional(v.boolean(), false)
|
|
20
|
+
}), v.check(({ revealed, deliverySeen }) => revealed || deliverySeen, "Set revealed or deliverySeen to true."));
|
|
16
21
|
const RewardAwardSchema = v.object({
|
|
17
22
|
awardId: v.string(),
|
|
18
23
|
campaignId: v.string(),
|
|
@@ -25,7 +30,11 @@ const RewardAwardSchema = v.object({
|
|
|
25
30
|
network: v.string(),
|
|
26
31
|
fulfillmentRevision: BigIntStringSchema,
|
|
27
32
|
destinationAddress: v.string(),
|
|
28
|
-
transactionId: v.string()
|
|
33
|
+
transactionId: v.string(),
|
|
34
|
+
/** When the recipient first acknowledged revealing the award, in any session; absent until then. */
|
|
35
|
+
revealedAt: OptionalTimestampMsSchema,
|
|
36
|
+
/** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */
|
|
37
|
+
deliverySeenAt: OptionalTimestampMsSchema
|
|
29
38
|
});
|
|
30
39
|
const ListRewardAwardsResultSchema = v.object({
|
|
31
40
|
awards: v.optional(v.array(RewardAwardSchema), []),
|
|
@@ -39,7 +48,8 @@ const ListRewardAwardsResultSchema = v.object({
|
|
|
39
48
|
awardsMayChange: v.boolean()
|
|
40
49
|
});
|
|
41
50
|
const SetRewardDestinationResultSchema = v.object({ award: RewardAwardSchema });
|
|
51
|
+
const AcknowledgeRewardAwardResultSchema = v.object({ award: RewardAwardSchema });
|
|
42
52
|
//#endregion
|
|
43
|
-
export { ListRewardAwardsInputSchema, ListRewardAwardsResultSchema, RewardAwardSchema, SetRewardDestinationInputSchema, SetRewardDestinationResultSchema };
|
|
53
|
+
export { AcknowledgeRewardAwardInputSchema, AcknowledgeRewardAwardResultSchema, ListRewardAwardsInputSchema, ListRewardAwardsResultSchema, RewardAwardSchema, SetRewardDestinationInputSchema, SetRewardDestinationResultSchema };
|
|
44
54
|
|
|
45
55
|
//# sourceMappingURL=rewards.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewards.schemas.js","names":[],"sources":["../../../src/services/rewards/rewards.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n BigIntStringSchema,\n OptionalTimestampMsSchema,\n positiveBigintStringInputSchema,\n} from \"../../shared/schemas.js\";\nimport { RewardFulfillmentMethodCodec, RewardFulfillmentStateCodec } from \"./rewards.codecs.js\";\n\nexport const ListRewardAwardsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100))),\n pageToken: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(256)), \"\"),\n});\n\nexport type ListRewardAwardsInput = v.InferInput<typeof ListRewardAwardsInputSchema>;\n\nexport const SetRewardDestinationInputSchema = v.strictObject({\n awardId: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128)),\n destinationAddress: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(512)),\n expectedRevision: positiveBigintStringInputSchema(\"expectedRevision\"),\n requestId: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128)),\n});\n\nexport type SetRewardDestinationInput = v.InferInput<typeof SetRewardDestinationInputSchema>;\n\nexport const RewardAwardSchema = v.object({\n awardId: v.string(),\n campaignId: v.string(),\n campaignName: v.string(),\n assetId: v.number(),\n amountBaseUnits: v.string(),\n fulfillmentMethod: enumLabelSchema(RewardFulfillmentMethodCodec.protoToOutput),\n fulfillmentState: enumLabelSchema(RewardFulfillmentStateCodec.protoToOutput),\n publishedAt: OptionalTimestampMsSchema,\n network: v.string(),\n fulfillmentRevision: BigIntStringSchema,\n destinationAddress: v.string(),\n transactionId: v.string(),\n});\n\nexport type RewardAward = v.InferOutput<typeof RewardAwardSchema>;\n\nexport const ListRewardAwardsResultSchema = v.object({\n awards: v.optional(v.array(RewardAwardSchema), []),\n nextPageToken: v.string(),\n /**\n * True while a campaign can still publish awards or one of this account's awards is awaiting\n * a destination, ready for payout, or failed and retryable. When false, polling cannot return\n * new awards or award changes until a new campaign is created, so check again on the next\n * page load or focus instead.\n */\n awardsMayChange: v.boolean(),\n});\n\nexport type ListRewardAwardsResult = v.InferOutput<typeof ListRewardAwardsResultSchema>;\n\nexport const SetRewardDestinationResultSchema = v.object({\n award: RewardAwardSchema,\n});\n\nexport type SetRewardDestinationResult = v.InferOutput<typeof SetRewardDestinationResultSchema>;\n"],"mappings":";;;;;AASA,MAAa,8BAA8B,EAAE,aAAa;CACtD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,CAAC,CAAC;CACjF,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,GAAG,CAAC,GAAG,EAAE;AAC5E,CAAC;AAID,MAAa,kCAAkC,EAAE,aAAa;CAC1D,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;CACtE,oBAAoB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;CACjF,kBAAkB,gCAAgC,kBAAkB;CACpE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;AAC5E,CAAC;AAID,MAAa,oBAAoB,EAAE,OAAO;CACtC,SAAS,EAAE,OAAO;CAClB,YAAY,EAAE,OAAO;CACrB,cAAc,EAAE,OAAO;CACvB,SAAS,EAAE,OAAO;CAClB,iBAAiB,EAAE,OAAO;CAC1B,mBAAmB,gBAAgB,6BAA6B,aAAa;CAC7E,kBAAkB,gBAAgB,4BAA4B,aAAa;CAC3E,aAAa;CACb,SAAS,EAAE,OAAO;CAClB,qBAAqB;CACrB,oBAAoB,EAAE,OAAO;CAC7B,eAAe,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"rewards.schemas.js","names":[],"sources":["../../../src/services/rewards/rewards.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n BigIntStringSchema,\n OptionalTimestampMsSchema,\n positiveBigintStringInputSchema,\n} from \"../../shared/schemas.js\";\nimport { RewardFulfillmentMethodCodec, RewardFulfillmentStateCodec } from \"./rewards.codecs.js\";\n\nexport const ListRewardAwardsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100))),\n pageToken: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(256)), \"\"),\n});\n\nexport type ListRewardAwardsInput = v.InferInput<typeof ListRewardAwardsInputSchema>;\n\nexport const SetRewardDestinationInputSchema = v.strictObject({\n awardId: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128)),\n destinationAddress: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(512)),\n expectedRevision: positiveBigintStringInputSchema(\"expectedRevision\"),\n requestId: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128)),\n});\n\nexport type SetRewardDestinationInput = v.InferInput<typeof SetRewardDestinationInputSchema>;\n\nexport const AcknowledgeRewardAwardInputSchema = v.pipe(\n v.strictObject({\n awardId: v.pipe(v.string(), v.trim(), v.uuid()),\n revealed: v.optional(v.boolean(), false),\n deliverySeen: v.optional(v.boolean(), false),\n }),\n v.check(\n ({ revealed, deliverySeen }) => revealed || deliverySeen,\n \"Set revealed or deliverySeen to true.\",\n ),\n);\n\nexport type AcknowledgeRewardAwardInput = v.InferInput<typeof AcknowledgeRewardAwardInputSchema>;\n\nexport const RewardAwardSchema = v.object({\n awardId: v.string(),\n campaignId: v.string(),\n campaignName: v.string(),\n assetId: v.number(),\n amountBaseUnits: v.string(),\n fulfillmentMethod: enumLabelSchema(RewardFulfillmentMethodCodec.protoToOutput),\n fulfillmentState: enumLabelSchema(RewardFulfillmentStateCodec.protoToOutput),\n publishedAt: OptionalTimestampMsSchema,\n network: v.string(),\n fulfillmentRevision: BigIntStringSchema,\n destinationAddress: v.string(),\n transactionId: v.string(),\n /** When the recipient first acknowledged revealing the award, in any session; absent until then. */\n revealedAt: OptionalTimestampMsSchema,\n /** When the recipient first acknowledged seeing the paid award's delivery; absent until then. */\n deliverySeenAt: OptionalTimestampMsSchema,\n});\n\nexport type RewardAward = v.InferOutput<typeof RewardAwardSchema>;\n\nexport const ListRewardAwardsResultSchema = v.object({\n awards: v.optional(v.array(RewardAwardSchema), []),\n nextPageToken: v.string(),\n /**\n * True while a campaign can still publish awards or one of this account's awards is awaiting\n * a destination, ready for payout, or failed and retryable. When false, polling cannot return\n * new awards or award changes until a new campaign is created, so check again on the next\n * page load or focus instead.\n */\n awardsMayChange: v.boolean(),\n});\n\nexport type ListRewardAwardsResult = v.InferOutput<typeof ListRewardAwardsResultSchema>;\n\nexport const SetRewardDestinationResultSchema = v.object({\n award: RewardAwardSchema,\n});\n\nexport type SetRewardDestinationResult = v.InferOutput<typeof SetRewardDestinationResultSchema>;\n\nexport const AcknowledgeRewardAwardResultSchema = v.object({\n award: RewardAwardSchema,\n});\n\nexport type AcknowledgeRewardAwardResult = v.InferOutput<typeof AcknowledgeRewardAwardResultSchema>;\n"],"mappings":";;;;;AASA,MAAa,8BAA8B,EAAE,aAAa;CACtD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,CAAC,CAAC;CACjF,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,GAAG,CAAC,GAAG,EAAE;AAC5E,CAAC;AAID,MAAa,kCAAkC,EAAE,aAAa;CAC1D,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;CACtE,oBAAoB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;CACjF,kBAAkB,gCAAgC,kBAAkB;CACpE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC;AAC5E,CAAC;AAID,MAAa,oCAAoC,EAAE,KAC/C,EAAE,aAAa;CACX,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,KAAK,CAAC;CAC9C,UAAU,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK;CACvC,cAAc,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK;AAC/C,CAAC,GACD,EAAE,OACG,EAAE,UAAU,mBAAmB,YAAY,cAC5C,uCACJ,CACJ;AAIA,MAAa,oBAAoB,EAAE,OAAO;CACtC,SAAS,EAAE,OAAO;CAClB,YAAY,EAAE,OAAO;CACrB,cAAc,EAAE,OAAO;CACvB,SAAS,EAAE,OAAO;CAClB,iBAAiB,EAAE,OAAO;CAC1B,mBAAmB,gBAAgB,6BAA6B,aAAa;CAC7E,kBAAkB,gBAAgB,4BAA4B,aAAa;CAC3E,aAAa;CACb,SAAS,EAAE,OAAO;CAClB,qBAAqB;CACrB,oBAAoB,EAAE,OAAO;CAC7B,eAAe,EAAE,OAAO;;CAExB,YAAY;;CAEZ,gBAAgB;AACpB,CAAC;AAID,MAAa,+BAA+B,EAAE,OAAO;CACjD,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,GAAG,CAAC,CAAC;CACjD,eAAe,EAAE,OAAO;;;;;;;CAOxB,iBAAiB,EAAE,QAAQ;AAC/B,CAAC;AAID,MAAa,mCAAmC,EAAE,OAAO,EACrD,OAAO,kBACX,CAAC;AAID,MAAa,qCAAqC,EAAE,OAAO,EACvD,OAAO,kBACX,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ListRewardAwardsInput, ListRewardAwardsResult, RewardAward, SetRewardDestinationInput, SetRewardDestinationResult } from "./rewards.schemas.js";
|
|
1
|
+
import { AcknowledgeRewardAwardInput, AcknowledgeRewardAwardResult, ListRewardAwardsInput, ListRewardAwardsResult, RewardAward, SetRewardDestinationInput, SetRewardDestinationResult } from "./rewards.schemas.js";
|
|
2
2
|
import { RewardFulfillmentMethod, RewardFulfillmentState } from "./rewards.codecs.js";
|
|
3
|
-
export type { ListRewardAwardsInput, ListRewardAwardsResult, RewardAward, RewardFulfillmentMethod, RewardFulfillmentState, SetRewardDestinationInput, SetRewardDestinationResult };
|
|
3
|
+
export type { AcknowledgeRewardAwardInput, AcknowledgeRewardAwardResult, ListRewardAwardsInput, ListRewardAwardsResult, RewardAward, RewardFulfillmentMethod, RewardFulfillmentState, SetRewardDestinationInput, SetRewardDestinationResult };
|
|
@@ -9,11 +9,11 @@ declare const SubaccountPermissionDefinitionSchema: v.ObjectSchema<{
|
|
|
9
9
|
readonly permission: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "internal_transfer" | "read_subaccount" | "update_subaccount" | "read_balances" | "read_spot" | "trade_spot" | "read_internal_transfers" | "external_withdraw" | "read_address_book" | "manage_address_book" | "read_members" | "manage_members" | "read_invites" | "manage_invites" | "read_api_keys" | "manage_api_keys" | "read_subaccount_policy" | "manage_subaccount_policy" | "read_activity" | "read_activity_security_details" | "manage_member_mfa_requirement" | "create_deposit_address" | "read_deposit_addresses" | "read_guard_signer_status" | "manage_guard_signer" | "read_auto_withdraw" | "manage_auto_withdraw" | "swap">]>;
|
|
10
10
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
11
11
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
12
|
-
readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw">]>;
|
|
12
|
+
readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw" | "read-api-keys" | "read-api-policies" | "read-subaccount-policies" | "read-subaccount-permissions" | "read-vip-status" | "read-social-verification" | "read-profile" | "read-account-directory" | "read-withdraw-validation" | "read-daily-claims" | "claim-daily-reward" | "read-checkpoints" | "read-rewards">]>;
|
|
13
13
|
}, undefined>;
|
|
14
14
|
type SubaccountPermissionDefinition = v.InferOutput<typeof SubaccountPermissionDefinitionSchema>;
|
|
15
15
|
declare const SubaccountRoleDefinitionSchema: v.ObjectSchema<{
|
|
16
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
16
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
17
17
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
18
18
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
19
19
|
readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -25,10 +25,10 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
|
|
|
25
25
|
readonly permission: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "internal_transfer" | "read_subaccount" | "update_subaccount" | "read_balances" | "read_spot" | "trade_spot" | "read_internal_transfers" | "external_withdraw" | "read_address_book" | "manage_address_book" | "read_members" | "manage_members" | "read_invites" | "manage_invites" | "read_api_keys" | "manage_api_keys" | "read_subaccount_policy" | "manage_subaccount_policy" | "read_activity" | "read_activity_security_details" | "manage_member_mfa_requirement" | "create_deposit_address" | "read_deposit_addresses" | "read_guard_signer_status" | "manage_guard_signer" | "read_auto_withdraw" | "manage_auto_withdraw" | "swap">]>;
|
|
26
26
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
27
27
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
28
|
-
readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw">]>;
|
|
28
|
+
readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw" | "read-api-keys" | "read-api-policies" | "read-subaccount-policies" | "read-subaccount-permissions" | "read-vip-status" | "read-social-verification" | "read-profile" | "read-account-directory" | "read-withdraw-validation" | "read-daily-claims" | "claim-daily-reward" | "read-checkpoints" | "read-rewards">]>;
|
|
29
29
|
}, undefined>, undefined>, readonly []>;
|
|
30
30
|
readonly roles: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
31
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
31
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
32
32
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
33
33
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
34
34
|
readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -37,7 +37,7 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
|
|
|
37
37
|
}, undefined>;
|
|
38
38
|
type SubaccountRoleCatalog = v.InferOutput<typeof SubaccountRoleCatalogSchema>;
|
|
39
39
|
declare const EffectiveSubaccountPermissionsSchema: v.ObjectSchema<{
|
|
40
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
40
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
41
41
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "internal_transfer" | "read_subaccount" | "update_subaccount" | "read_balances" | "read_spot" | "trade_spot" | "read_internal_transfers" | "external_withdraw" | "read_address_book" | "manage_address_book" | "read_members" | "manage_members" | "read_invites" | "manage_invites" | "read_api_keys" | "manage_api_keys" | "read_subaccount_policy" | "manage_subaccount_policy" | "read_activity" | "read_activity_security_details" | "manage_member_mfa_requirement" | "create_deposit_address" | "read_deposit_addresses" | "read_guard_signer_status" | "manage_guard_signer" | "read_auto_withdraw" | "manage_auto_withdraw" | "swap">]>, undefined>, readonly []>;
|
|
42
42
|
readonly subaccountPolicyId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
43
43
|
}, undefined>;
|
|
@@ -163,7 +163,7 @@ declare const ProtoSubaccountStatusSchema: v.SchemaWithPipe<readonly [v.NumberSc
|
|
|
163
163
|
type SubaccountStatus = v.InferOutput<typeof ProtoSubaccountStatusSchema>;
|
|
164
164
|
declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
165
165
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
166
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
166
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
167
167
|
readonly label: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
168
168
|
readonly icon: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
169
169
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -189,7 +189,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
189
189
|
readonly removed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
190
190
|
}, undefined>, v.TransformAction<{
|
|
191
191
|
id: string;
|
|
192
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
192
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
193
193
|
label: string;
|
|
194
194
|
icon: string;
|
|
195
195
|
color: string;
|
|
@@ -211,7 +211,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
211
211
|
updatedAt: number | undefined;
|
|
212
212
|
updatedAtNs: string | undefined;
|
|
213
213
|
id: string;
|
|
214
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
214
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
215
215
|
label: string;
|
|
216
216
|
icon: string;
|
|
217
217
|
color: string;
|
|
@@ -229,7 +229,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
229
229
|
type Subaccount = v.InferOutput<typeof SubaccountSchema>;
|
|
230
230
|
declare const SubaccountMemberSchema: v.ObjectSchema<{
|
|
231
231
|
readonly accountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
232
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
232
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
233
233
|
readonly username: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
234
234
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
235
235
|
readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -241,8 +241,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
241
241
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
242
242
|
readonly granteeAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
243
243
|
readonly inviterAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
244
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
245
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
244
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
245
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "pending" | "accepted" | "canceled" | "declined">]>;
|
|
246
246
|
readonly createdAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
247
247
|
readonly seconds: v.BigintSchema<undefined>;
|
|
248
248
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -268,8 +268,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
268
268
|
subaccountId: string;
|
|
269
269
|
granteeAccountId: string;
|
|
270
270
|
inviterAccountId: string;
|
|
271
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
272
|
-
status: "unspecified" | "
|
|
271
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
272
|
+
status: "unspecified" | "pending" | "accepted" | "canceled" | "declined";
|
|
273
273
|
createdAt?: number | undefined;
|
|
274
274
|
respondedAt?: number | undefined;
|
|
275
275
|
granteeUsername: string;
|
|
@@ -286,8 +286,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
286
286
|
id: string;
|
|
287
287
|
granteeAccountId: string;
|
|
288
288
|
inviterAccountId: string;
|
|
289
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
290
|
-
status: "unspecified" | "
|
|
289
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
290
|
+
status: "unspecified" | "pending" | "accepted" | "canceled" | "declined";
|
|
291
291
|
createdAt?: number | undefined;
|
|
292
292
|
respondedAt?: number | undefined;
|
|
293
293
|
granteeUsername: string;
|
|
@@ -310,7 +310,7 @@ declare const SubaccountActivityEventSchema: v.ObjectSchema<{
|
|
|
310
310
|
nanos: number;
|
|
311
311
|
} | undefined, number | undefined>]>;
|
|
312
312
|
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "destination" | "session" | "member" | "policy" | "invite" | "security">]>;
|
|
313
|
-
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "
|
|
313
|
+
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "revoked" | "removed" | "enabled" | "failed" | "created" | "updated" | "deleted" | "role_set" | "received" | "replied" | "blocked" | "hold_placed" | "hold_released">]>;
|
|
314
314
|
readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "api" | "web" | "mobile">]>;
|
|
315
315
|
readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
316
316
|
readonly userAgent: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -169,7 +169,7 @@ declare const GetUserTradesInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema
|
|
|
169
169
|
readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
170
170
|
readonly lineageId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than zero`>]>;
|
|
171
171
|
readonly throughGeneration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
|
|
172
|
-
}, undefined>], undefined>], ({ input }: v.UnionIssue<v.
|
|
172
|
+
}, undefined>], undefined>], ({ input }: v.UnionIssue<v.StringIssue | v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000> | v.UnionIssue<v.StringIssue | v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000>>>) => "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId" | "symbolId is required when afterMatchId is set" | "Invalid trade filters">, v.TransformAction<{
|
|
173
173
|
symbolId?: number | undefined;
|
|
174
174
|
afterMatchId?: undefined;
|
|
175
175
|
side?: Side.BUY | Side.SELL | undefined;
|
|
@@ -84,7 +84,7 @@ declare const LedgerTransferSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
84
84
|
assetId: number;
|
|
85
85
|
amount: string;
|
|
86
86
|
balanceAfter: string | undefined;
|
|
87
|
-
type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee";
|
|
87
|
+
type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment";
|
|
88
88
|
accountCode: "unspecified" | "trading" | "funding";
|
|
89
89
|
timestamp: number;
|
|
90
90
|
isDebit: boolean;
|
|
@@ -98,7 +98,7 @@ declare const ListTransfersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
98
98
|
readonly reversed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
99
99
|
readonly timestampMin: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
100
100
|
readonly timestampMax: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
101
|
-
readonly transferCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["deposit", "withdraw", "maker_fee", "taker_fee", "internal_transfer", "trade_base", "trade_quote", "rebate", "funding_to_trading", "trading_to_funding", "trading_withdraw_reserve", "funding_user_transfer", "trading_withdraw_request_fee"], undefined>, v.TransformAction<"internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee", TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE>]>, undefined>;
|
|
101
|
+
readonly transferCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["deposit", "withdraw", "maker_fee", "taker_fee", "internal_transfer", "trade_base", "trade_quote", "rebate", "funding_to_trading", "trading_to_funding", "trading_withdraw_reserve", "funding_user_transfer", "trading_withdraw_request_fee", "trading_withdraw_fee_leg", "quickswap_polyester_fee", "quickswap_broker_fee", "quickswap_affiliate_fee", "fee_sweep", "fee_refill", "system_adjustment"], undefined>, v.TransformAction<"internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment", TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE | TransferCode.TRADING_WITHDRAW_FEE_LEG | TransferCode.QUICKSWAP_POLYESTER_FEE | TransferCode.QUICKSWAP_BROKER_FEE | TransferCode.QUICKSWAP_AFFILIATE_FEE | TransferCode.FEE_SWEEP | TransferCode.FEE_REFILL | TransferCode.SYSTEM_ADJUSTMENT>]>, undefined>;
|
|
102
102
|
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
103
103
|
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
104
104
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -109,7 +109,7 @@ declare const ListTransfersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
109
109
|
reversed: boolean;
|
|
110
110
|
timestampMin?: bigint | undefined;
|
|
111
111
|
timestampMax?: bigint | undefined;
|
|
112
|
-
transferCode?: TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE | undefined;
|
|
112
|
+
transferCode?: TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE | TransferCode.TRADING_WITHDRAW_FEE_LEG | TransferCode.QUICKSWAP_POLYESTER_FEE | TransferCode.QUICKSWAP_BROKER_FEE | TransferCode.QUICKSWAP_AFFILIATE_FEE | TransferCode.FEE_SWEEP | TransferCode.FEE_REFILL | TransferCode.SYSTEM_ADJUSTMENT | undefined;
|
|
113
113
|
pageToken: string;
|
|
114
114
|
account?: "active" | "main" | {
|
|
115
115
|
subaccountId: string;
|
|
@@ -121,7 +121,7 @@ declare const ListTransfersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
121
121
|
ledger: number;
|
|
122
122
|
limit?: number | undefined;
|
|
123
123
|
reversed: boolean;
|
|
124
|
-
transferCode?: TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE | undefined;
|
|
124
|
+
transferCode?: TransferCode.DEPOSIT | TransferCode.WITHDRAW | TransferCode.MAKER_FEE | TransferCode.TAKER_FEE | TransferCode.INTERNAL_TRANSFER | TransferCode.TRADE_BASE | TransferCode.TRADE_QUOTE | TransferCode.REBATE | TransferCode.FUNDING_TO_TRADING | TransferCode.TRADING_TO_FUNDING | TransferCode.TRADING_WITHDRAW_RESERVE | TransferCode.FUNDING_USER_TRANSFER | TransferCode.TRADING_WITHDRAW_REQUEST_FEE | TransferCode.TRADING_WITHDRAW_FEE_LEG | TransferCode.QUICKSWAP_POLYESTER_FEE | TransferCode.QUICKSWAP_BROKER_FEE | TransferCode.QUICKSWAP_AFFILIATE_FEE | TransferCode.FEE_SWEEP | TransferCode.FEE_REFILL | TransferCode.SYSTEM_ADJUSTMENT | undefined;
|
|
125
125
|
pageToken: string;
|
|
126
126
|
}>]>;
|
|
127
127
|
type ListTransfersInput = v.InferInput<typeof ListTransfersInputSchema>;
|
|
@@ -1113,7 +1113,7 @@ type CreateTriggerInput = v.InferInput<ReturnType<typeof createCreateTriggerInpu
|
|
|
1113
1113
|
declare const ListTriggersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1114
1114
|
readonly parentOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, bigint | undefined>]>;
|
|
1115
1115
|
readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
|
|
1116
|
-
readonly status: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["created", "armed", "running", "completed", "canceled", "failed", "paused"], undefined>, undefined>, undefined>, v.TransformAction<("
|
|
1116
|
+
readonly status: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["created", "armed", "running", "completed", "canceled", "failed", "paused"], undefined>, undefined>, undefined>, v.TransformAction<("completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused")[] | undefined, (TriggerStatus.STATUS_CREATED | TriggerStatus.STATUS_ARMED | TriggerStatus.STATUS_RUNNING | TriggerStatus.STATUS_COMPLETED | TriggerStatus.STATUS_CANCELED | TriggerStatus.STATUS_FAILED | TriggerStatus.STATUS_PAUSED)[]>]>;
|
|
1117
1117
|
readonly triggerType: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["stop_loss", "take_profit", "trailing_stop", "twap", "ladder"], undefined>, undefined>, v.TransformAction<"twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop" | undefined, TriggerType>]>;
|
|
1118
1118
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 50>;
|
|
1119
1119
|
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
@@ -29,62 +29,62 @@ declare const CreateTriggerResultSchema: v.SchemaWithPipe<readonly [v.ObjectSche
|
|
|
29
29
|
type CreateTriggerResult = v.InferOutput<typeof CreateTriggerResultSchema>;
|
|
30
30
|
declare const CancelTriggerResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
31
31
|
readonly triggerId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
32
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
32
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused">]>;
|
|
33
33
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
34
34
|
}, undefined>, v.TransformAction<{
|
|
35
35
|
triggerId: string;
|
|
36
|
-
status: "unspecified" | "
|
|
36
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
37
37
|
tsNs: bigint;
|
|
38
38
|
}, {
|
|
39
39
|
ts: number;
|
|
40
40
|
tsNs: string;
|
|
41
41
|
triggerId: string;
|
|
42
|
-
status: "unspecified" | "
|
|
42
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
43
43
|
}>]>;
|
|
44
44
|
type CancelTriggerResult = v.InferOutput<typeof CancelTriggerResultSchema>;
|
|
45
45
|
declare const ModifyTriggerResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
46
46
|
readonly triggerId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
47
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
47
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused">]>;
|
|
48
48
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
49
49
|
}, undefined>, v.TransformAction<{
|
|
50
50
|
triggerId: string;
|
|
51
|
-
status: "unspecified" | "
|
|
51
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
52
52
|
tsNs: bigint;
|
|
53
53
|
}, {
|
|
54
54
|
ts: number;
|
|
55
55
|
tsNs: string;
|
|
56
56
|
triggerId: string;
|
|
57
|
-
status: "unspecified" | "
|
|
57
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
58
58
|
}>]>;
|
|
59
59
|
type ModifyTriggerResult = v.InferOutput<typeof ModifyTriggerResultSchema>;
|
|
60
60
|
declare const PauseTriggerResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
61
61
|
readonly triggerId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
62
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
62
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused">]>;
|
|
63
63
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
64
64
|
}, undefined>, v.TransformAction<{
|
|
65
65
|
triggerId: string;
|
|
66
|
-
status: "unspecified" | "
|
|
66
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
67
67
|
tsNs: bigint;
|
|
68
68
|
}, {
|
|
69
69
|
ts: number;
|
|
70
70
|
tsNs: string;
|
|
71
71
|
triggerId: string;
|
|
72
|
-
status: "unspecified" | "
|
|
72
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
73
73
|
}>]>;
|
|
74
74
|
type PauseTriggerResult = v.InferOutput<typeof PauseTriggerResultSchema>;
|
|
75
75
|
declare const ResumeTriggerResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
76
76
|
readonly triggerId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
77
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
77
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused">]>;
|
|
78
78
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
79
79
|
}, undefined>, v.TransformAction<{
|
|
80
80
|
triggerId: string;
|
|
81
|
-
status: "unspecified" | "
|
|
81
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
82
82
|
tsNs: bigint;
|
|
83
83
|
}, {
|
|
84
84
|
ts: number;
|
|
85
85
|
tsNs: string;
|
|
86
86
|
triggerId: string;
|
|
87
|
-
status: "unspecified" | "
|
|
87
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
88
88
|
}>]>;
|
|
89
89
|
type ResumeTriggerResult = v.InferOutput<typeof ResumeTriggerResultSchema>;
|
|
90
90
|
type StopDetailsOutput = {
|
|
@@ -619,7 +619,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
|
|
|
619
619
|
triggerId: string;
|
|
620
620
|
subaccountId: string;
|
|
621
621
|
symbolId: number;
|
|
622
|
-
status: "unspecified" | "
|
|
622
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
623
623
|
parentOrderId: string | undefined;
|
|
624
624
|
qty: string;
|
|
625
625
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -803,7 +803,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
|
|
|
803
803
|
triggerId: string;
|
|
804
804
|
subaccountId: string;
|
|
805
805
|
symbolId: number;
|
|
806
|
-
status: "unspecified" | "
|
|
806
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
807
807
|
parentOrderId: string | undefined;
|
|
808
808
|
qty: string;
|
|
809
809
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -987,7 +987,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
|
|
|
987
987
|
triggerId: string;
|
|
988
988
|
subaccountId: string;
|
|
989
989
|
symbolId: number;
|
|
990
|
-
status: "unspecified" | "
|
|
990
|
+
status: "unspecified" | "completed" | "failed" | "canceled" | "created" | "armed" | "running" | "paused";
|
|
991
991
|
parentOrderId: string | undefined;
|
|
992
992
|
qty: string;
|
|
993
993
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DepositWithdrawConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig } from "../../shared/catalog-config.js";
|
|
1
|
+
import { DepositWithdrawConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig, ZipperMemoRequirement } from "../../shared/catalog-config.js";
|
|
2
2
|
import "../../shared/decimal-surface.js";
|
|
3
3
|
import "valibot";
|
|
4
4
|
//#region src/services/zipper/zipper.schemas.d.ts
|
|
@@ -10,5 +10,5 @@ type ZippedAssetSupplyBatch = {
|
|
|
10
10
|
updates: ZippedAssetSupplyUpdate[];
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
|
-
export { type DepositWithdrawConfig, ZippedAssetSupplyBatch, ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig };
|
|
13
|
+
export { type DepositWithdrawConfig, ZippedAssetSupplyBatch, ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperMemoRequirement };
|
|
14
14
|
//# sourceMappingURL=zipper.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zipper.schemas.d.ts","names":[],"sources":["../../../src/services/zipper/zipper.schemas.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"zipper.schemas.d.ts","names":[],"sources":["../../../src/services/zipper/zipper.schemas.ts"],"mappings":";;;;KAuIY;EACR;EACA;;KAGQ;EACR,SAAS"}
|