@polyester/sdk 0.19.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/gen/auth/v1/social_verification_pb.d.ts +4 -2
- 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 +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +290 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +288 -9
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/index.d.ts +10 -10
- package/dist/gen/index.js +7 -7
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +5 -3
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +14 -6
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +7 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +2 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +200 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +193 -4
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +47 -2
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -2
- package/dist/services/auth/profile/profile.js +1 -1
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.js +1 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
- package/dist/services/market-overview/market-overview.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/index.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +20 -20
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-input.schemas.js +2 -2
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/orders/orders.d.ts +1 -1
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +5 -3
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/orders/orders.schemas.d.ts +1 -1
- package/dist/services/orders/orders.types.d.ts +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +4 -4
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/transfers/transfers.js +1 -1
- package/dist/services/transfers/transfers.schemas.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +25 -4
- package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +39 -3
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +3 -26
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +92 -17
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +36 -25
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +50 -50
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +37 -0
- package/dist/shared/error-detail.d.ts.map +1 -0
- package/dist/shared/error-detail.js +106 -0
- package/dist/shared/error-detail.js.map +1 -0
- package/dist/shared/errors.d.ts +11 -6
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +3 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +1 -15
- package/dist/utils/errors.js.map +1 -1
- package/dist/wired-services.js +5 -5
- package/package.json +1 -1
- package/dist/utils/connect-order-errors.d.ts +0 -15
- package/dist/utils/connect-order-errors.d.ts.map +0 -1
- package/dist/utils/connect-order-errors.js +0 -41
- package/dist/utils/connect-order-errors.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat(orders): replace `symbolId` with `symbolIds` in `orders.cancelAll()` to cancel orders across up to 100 symbols. Use `symbolIds: [id]` for one symbol; empty or omitted filters match all symbols. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
8
|
+
|
|
9
|
+
- refactor(errors)!: remove `isStaleQuoteError()`. Use `error instanceof StaleQuoteError` for SDK failures, or inspect `error.detail` for the structured orders rejection code. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
10
|
+
|
|
11
|
+
- feat(errors): expose recognized backend rejections as typed `PolyesterError.detail` values, discriminated by service. `getOrderErrorDetail()` is removed; read `error.detail` instead. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- feat(orders): expose the `CANCEL_REQUEST_EXPIRED` rejection code when a cancellation exceeds its replay window. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
16
|
+
|
|
17
|
+
- feat(triggers): expose `executedQty` and `executedLevels` on ladder runtime details. Quantity is a decimal base-asset amount, and levels count distinct levels with any fill, including partial fills. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
18
|
+
|
|
19
|
+
- fix(transfers): map structured withdrawal and internal-transfer rate-limit errors to `RateLimitError` and temporary dependency failures to `ServiceUnavailableError`, preserving retryability when the transport status alone does not identify the failure. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
20
|
+
|
|
21
|
+
- feat(triggers): add `execution.maxSlippage` to market IOC TWAPs, accepting a decimal price delta or 1 to 10,000 basis points. The protection applies to each slice; omitting it uses the pair default. ([#118](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/118))
|
|
22
|
+
|
|
3
23
|
## 0.19.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -226,13 +226,15 @@ type GetSocialVerificationRequest = Message<"auth.v1.GetSocialVerificationReques
|
|
|
226
226
|
declare const GetSocialVerificationRequestSchema: GenMessage<GetSocialVerificationRequest>;
|
|
227
227
|
/**
|
|
228
228
|
* GetSocialVerificationResponse contains the caller's current social
|
|
229
|
-
* verification state for one provider.
|
|
229
|
+
* verification state for one provider. A successful response with verification
|
|
230
|
+
* absent means the caller has not started verification for that provider.
|
|
230
231
|
*
|
|
231
232
|
* @generated from message auth.v1.GetSocialVerificationResponse
|
|
232
233
|
*/
|
|
233
234
|
type GetSocialVerificationResponse = Message<"auth.v1.GetSocialVerificationResponse"> & {
|
|
234
235
|
/**
|
|
235
|
-
* Current verification state for the requested provider.
|
|
236
|
+
* Current verification state for the requested provider. Absent when no
|
|
237
|
+
* verification has been started.
|
|
236
238
|
*
|
|
237
239
|
* @generated from field: auth.v1.SocialVerification verification = 1;
|
|
238
240
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social_verification_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/social_verification_pb.ts"],"mappings":";;;;;;;;;cAaa,kCAAkC;;;;;;;KASnC,qBAAqB;;;;;;EAM/B;;;;;;EAOA,UAAU;;;;;;;EAQV,QAAQ;;;;;;;EAQR;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA,QAAQ;;;;;;EAOR,cAAc;;;;;;EAOd,YAAY;;;;;;EAOZ,aAAa;;;;;;EAOb;;;;;;;EAQA;;;;;;EAOA,YAAY;;;;;;cAOD,0BAA0B,WAAW;;;;;;;KAStC,iCAAiC;;;;;;EAM3C,UAAU;;;;;;EAOV,QAAQ;;;;;;;;EASR;;;;;;cAOW,sCAAsC,WAAW;;;;;;KAQlD,kCAAkC;;;;;;EAM5C;;;;;;;EAQA,YAAY;;;;;;EAOZ,eAAe;;;;;;cAOJ,uCAAuC,WAAW;;;;;;;KASnD,iCAAiC;;;;;;EAM3C,UAAU;;;;;;cAOC,sCAAsC,WAAW;;;;;;;KASlD,kCAAkC;;;;;;EAM5C,eAAe;;;;;;cAOJ,uCAAuC,WAAW;;;;;;;KASnD,+BAA+B;;;;;;EAMzC,UAAU;;;;;;cAOC,oCAAoC,WAAW
|
|
1
|
+
{"version":3,"file":"social_verification_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/social_verification_pb.ts"],"mappings":";;;;;;;;;cAaa,kCAA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ification_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/social_verification_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/social_verification.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/social_verification.proto.\n */\nexport const file_auth_v1_social_verification: GenFile = /*@__PURE__*/\n fileDesc(\"CiFhdXRoL3YxL3NvY2lhbF92ZXJpZmljYXRpb24ucHJvdG8SB2F1dGgudjEi3AMKElNvY2lhbFZlcmlmaWNhdGlvbhIKCgJpZBgMIAEoAxIpCghwcm92aWRlchgBIAEoDjIXLmF1dGgudjEuU29jaWFsUHJvdmlkZXISMQoGbWV0aG9kGAsgASgOMiEuYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25NZXRob2QSDgoGaGFuZGxlGAIgASgJEhgKEHByb3ZpZGVyX3VzZXJfaWQYAyABKAkSFgoOY2hhbGxlbmdlX2NvZGUYDSABKAkSMQoGc3RhdHVzGAQgASgOMiEuYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25TdGF0dXMSMAoMcmVxdWVzdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpleHBpcmVzX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgt2ZXJpZmllZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEAoIYXR0ZW1wdHMYCSABKAUSEgoKbGFzdF9lcnJvchgKIAEoCRIuCgp1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AAEh4KGlNUQVRVU19QRU5ESU5HX1VTRVJfQUNUSU9OEAESEQoNU1RBVFVTX1FVRVVFRBACEhYKElNUQVRVU19JTl9QUk9HUkVTUxADEhMKD1NUQVRVU19WRVJJRklFRBAEEhEKDVNUQVRVU19GQUlMRUQQBRISCg5TVEFUVVNfRVhQSVJFRBAGEhQKEFNUQVRVU19DQU5DRUxMRUQQByppChhTb2NpYWxWZXJpZmljYXRpb25NZXRob2QSFgoSTUVUSE9EX1VOU1BFQ0lGSUVEEAASEgoOTUVUSE9EX1BST0ZJTEUQARISCg5NRVRIT0RfQ0hBTk5FTBACEg0KCU1FVEhPRF9ETRADMuUCChlTb2NpYWxWZXJpZmljYXRpb25TZXJ2aWNlEm4KF1N0YXJ0U29jaWFsVmVyaWZpY2F0aW9uEicuYXV0aC52MS5TdGFydFNvY2lhbFZlcmlmaWNhdGlvblJlcXVlc3QaKC5hdXRoLnYxLlN0YXJ0U29jaWFsVmVyaWZpY2F0aW9uUmVzcG9uc2UiABJuChdTb2NpYWxWZXJpZmljYXRpb25SZWFkeRInLmF1dGgudjEuU29jaWFsVmVyaWZpY2F0aW9uUmVhZHlSZXF1ZXN0GiguYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25SZWFkeVJlc3BvbnNlIgASaAoVR2V0U29jaWFsVmVyaWZpY2F0aW9uEiUuYXV0aC52MS5HZXRTb2NpYWxWZXJpZmljYXRpb25SZXF1ZXN0GiYuYXV0aC52MS5HZXRTb2NpYWxWZXJpZmljYXRpb25SZXNwb25zZSIAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_google_protobuf_timestamp]);\n\n/**\n * SocialVerification describes the caller's current verification state for one\n * social provider.\n *\n * @generated from message auth.v1.SocialVerification\n */\nexport type SocialVerification = Message<\"auth.v1.SocialVerification\"> & {\n /**\n * Verification identifier.\n *\n * @generated from field: int64 id = 12;\n */\n id: bigint;\n\n /**\n * Provider account being verified.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n\n /**\n * Method used for this verification. If unspecified at start time, profile\n * verification is used.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 11;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle being verified. Handles are returned lowercase and without\n * a leading \"@\".\n *\n * @generated from field: string handle = 2;\n */\n handle: string;\n\n /**\n * Stable provider-side user identifier. Empty until verification succeeds.\n *\n * @generated from field: string provider_user_id = 3;\n */\n providerUserId: string;\n\n /**\n * Challenge code the user must place according to the verification method.\n * Codes start with \"poly_\" and expire after 15 minutes.\n *\n * @generated from field: string challenge_code = 13;\n */\n challengeCode: string;\n\n /**\n * Current verification status.\n *\n * @generated from field: auth.v1.SocialVerificationStatus status = 4;\n */\n status: SocialVerificationStatus;\n\n /**\n * Time in UTC when the current challenge code was issued.\n *\n * @generated from field: google.protobuf.Timestamp requested_at = 5;\n */\n requestedAt?: Timestamp | undefined;\n\n /**\n * Time in UTC when the current challenge code expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Time in UTC when verification succeeded. Empty until status is STATUS_VERIFIED.\n *\n * @generated from field: google.protobuf.Timestamp verified_at = 7;\n */\n verifiedAt?: Timestamp | undefined;\n\n /**\n * Number of recorded provider-check attempts for this challenge.\n *\n * @generated from field: int32 attempts = 9;\n */\n attempts: number;\n\n /**\n * Last verification error, if the most recent check failed. Empty when there\n * is no recorded error.\n *\n * @generated from field: string last_error = 10;\n */\n lastError: string;\n\n /**\n * Time in UTC when this verification state last changed.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 15;\n */\n updatedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.SocialVerification.\n * Use `create(SocialVerificationSchema)` to create a new message.\n */\nexport const SocialVerificationSchema: GenMessage<SocialVerification> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 0);\n\n/**\n * StartSocialVerificationRequest starts or restarts social account verification.\n * Starting again for the same provider replaces the previous challenge.\n *\n * @generated from message auth.v1.StartSocialVerificationRequest\n */\nexport type StartSocialVerificationRequest = Message<\"auth.v1.StartSocialVerificationRequest\"> & {\n /**\n * Provider account to verify.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n\n /**\n * Verification method. If unspecified, profile verification is used.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 3;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle the user claims. A leading \"@\" is accepted and removed.\n * X/Twitter handles must be 1 to 15 letters, digits, or underscores.\n * Other provider handles can be up to 64 characters.\n *\n * @generated from field: string handle = 2;\n */\n handle: string;\n};\n\n/**\n * Describes the message auth.v1.StartSocialVerificationRequest.\n * Use `create(StartSocialVerificationRequestSchema)` to create a new message.\n */\nexport const StartSocialVerificationRequestSchema: GenMessage<StartSocialVerificationRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 1);\n\n/**\n * Response returned after starting social account verification.\n *\n * @generated from message auth.v1.StartSocialVerificationResponse\n */\nexport type StartSocialVerificationResponse = Message<\"auth.v1.StartSocialVerificationResponse\"> & {\n /**\n * Challenge code the user must place according to the verification method.\n *\n * @generated from field: string challenge_code = 1;\n */\n challengeCode: string;\n\n /**\n * Time in UTC when the challenge code expires. Social verification challenges\n * expire after 15 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Current verification state after issuing the challenge.\n *\n * @generated from field: auth.v1.SocialVerification verification = 3;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.StartSocialVerificationResponse.\n * Use `create(StartSocialVerificationResponseSchema)` to create a new message.\n */\nexport const StartSocialVerificationResponseSchema: GenMessage<StartSocialVerificationResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 2);\n\n/**\n * SocialVerificationReadyRequest tells the API that the challenge code has been\n * placed and the provider account is ready to check.\n *\n * @generated from message auth.v1.SocialVerificationReadyRequest\n */\nexport type SocialVerificationReadyRequest = Message<\"auth.v1.SocialVerificationReadyRequest\"> & {\n /**\n * Provider account to check.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n};\n\n/**\n * Describes the message auth.v1.SocialVerificationReadyRequest.\n * Use `create(SocialVerificationReadyRequestSchema)` to create a new message.\n */\nexport const SocialVerificationReadyRequestSchema: GenMessage<SocialVerificationReadyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 3);\n\n/**\n * SocialVerificationReadyResponse returns the verification after it has been\n * queued for a provider check.\n *\n * @generated from message auth.v1.SocialVerificationReadyResponse\n */\nexport type SocialVerificationReadyResponse = Message<\"auth.v1.SocialVerificationReadyResponse\"> & {\n /**\n * Current verification state after the provider check was requested.\n *\n * @generated from field: auth.v1.SocialVerification verification = 1;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.SocialVerificationReadyResponse.\n * Use `create(SocialVerificationReadyResponseSchema)` to create a new message.\n */\nexport const SocialVerificationReadyResponseSchema: GenMessage<SocialVerificationReadyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 4);\n\n/**\n * GetSocialVerificationRequest fetches the caller's current social verification\n * state for one provider.\n *\n * @generated from message auth.v1.GetSocialVerificationRequest\n */\nexport type GetSocialVerificationRequest = Message<\"auth.v1.GetSocialVerificationRequest\"> & {\n /**\n * Provider account to inspect.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n};\n\n/**\n * Describes the message auth.v1.GetSocialVerificationRequest.\n * Use `create(GetSocialVerificationRequestSchema)` to create a new message.\n */\nexport const GetSocialVerificationRequestSchema: GenMessage<GetSocialVerificationRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 5);\n\n/**\n * GetSocialVerificationResponse contains the caller's current social\n * verification state for one provider.\n *\n * @generated from message auth.v1.GetSocialVerificationResponse\n */\nexport type GetSocialVerificationResponse = Message<\"auth.v1.GetSocialVerificationResponse\"> & {\n /**\n * Current verification state for the requested provider.\n *\n * @generated from field: auth.v1.SocialVerification verification = 1;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetSocialVerificationResponse.\n * Use `create(GetSocialVerificationResponseSchema)` to create a new message.\n */\nexport const GetSocialVerificationResponseSchema: GenMessage<GetSocialVerificationResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 6);\n\n/**\n * Social account provider used for account ownership verification.\n *\n * @generated from enum auth.v1.SocialProvider\n */\nexport enum SocialProvider {\n /**\n * No social provider was specified.\n *\n * @generated from enum value: PROVIDER_UNSPECIFIED = 0;\n */\n PROVIDER_UNSPECIFIED = 0,\n\n /**\n * X/Twitter account verification.\n *\n * @generated from enum value: TWITTER = 1;\n */\n TWITTER = 1,\n\n /**\n * Discord account verification.\n *\n * @generated from enum value: DISCORD = 2;\n */\n DISCORD = 2,\n}\n\n/**\n * Describes the enum auth.v1.SocialProvider.\n */\nexport const SocialProviderSchema: GenEnum<SocialProvider> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 0);\n\n/**\n * Current state of a social account verification attempt.\n *\n * @generated from enum auth.v1.SocialVerificationStatus\n */\nexport enum SocialVerificationStatus {\n /**\n * No verification status was specified.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * Code issued; waiting for the user to complete the provider-specific action.\n *\n * @generated from enum value: STATUS_PENDING_USER_ACTION = 1;\n */\n STATUS_PENDING_USER_ACTION = 1,\n\n /**\n * User marked the code as placed and the verification check is waiting to run.\n *\n * @generated from enum value: STATUS_QUEUED = 2;\n */\n STATUS_QUEUED = 2,\n\n /**\n * Verification check is currently running.\n *\n * @generated from enum value: STATUS_IN_PROGRESS = 3;\n */\n STATUS_IN_PROGRESS = 3,\n\n /**\n * Provider account ownership was verified successfully.\n *\n * @generated from enum value: STATUS_VERIFIED = 4;\n */\n STATUS_VERIFIED = 4,\n\n /**\n * Verification failed. Start a new verification to receive a new challenge code.\n *\n * @generated from enum value: STATUS_FAILED = 5;\n */\n STATUS_FAILED = 5,\n\n /**\n * Challenge code expired before verification completed.\n *\n * @generated from enum value: STATUS_EXPIRED = 6;\n */\n STATUS_EXPIRED = 6,\n\n /**\n * Verification was cancelled.\n *\n * @generated from enum value: STATUS_CANCELLED = 7;\n */\n STATUS_CANCELLED = 7,\n}\n\n/**\n * Describes the enum auth.v1.SocialVerificationStatus.\n */\nexport const SocialVerificationStatusSchema: GenEnum<SocialVerificationStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 1);\n\n/**\n * How the user proves control of the provider account.\n *\n * @generated from enum auth.v1.SocialVerificationMethod\n */\nexport enum SocialVerificationMethod {\n /**\n * No method was specified. The provider default is used.\n *\n * @generated from enum value: METHOD_UNSPECIFIED = 0;\n */\n METHOD_UNSPECIFIED = 0,\n\n /**\n * User places the challenge code in their public provider profile.\n *\n * @generated from enum value: METHOD_PROFILE = 1;\n */\n METHOD_PROFILE = 1,\n\n /**\n * User posts the challenge code in a provider channel.\n *\n * @generated from enum value: METHOD_CHANNEL = 2;\n */\n METHOD_CHANNEL = 2,\n\n /**\n * User sends the challenge code in a direct message.\n *\n * @generated from enum value: METHOD_DM = 3;\n */\n METHOD_DM = 3,\n}\n\n/**\n * Describes the enum auth.v1.SocialVerificationMethod.\n */\nexport const SocialVerificationMethodSchema: GenEnum<SocialVerificationMethod> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 2);\n\n/**\n * SocialVerificationService verifies ownership of external social accounts.\n *\n * @generated from service auth.v1.SocialVerificationService\n */\nexport const SocialVerificationService: GenService<{\n /**\n * Start or restart social verification by issuing a new challenge code.\n *\n * @generated from rpc auth.v1.SocialVerificationService.StartSocialVerification\n */\n startSocialVerification: {\n methodKind: \"unary\";\n input: typeof StartSocialVerificationRequestSchema;\n output: typeof StartSocialVerificationResponseSchema;\n },\n /**\n * Mark a verification as ready after the challenge code has been placed.\n *\n * @generated from rpc auth.v1.SocialVerificationService.SocialVerificationReady\n */\n socialVerificationReady: {\n methodKind: \"unary\";\n input: typeof SocialVerificationReadyRequestSchema;\n output: typeof SocialVerificationReadyResponseSchema;\n },\n /**\n * Get current verification status for the caller.\n *\n * @generated from rpc auth.v1.SocialVerificationService.GetSocialVerification\n */\n getSocialVerification: {\n methodKind: \"unary\";\n input: typeof GetSocialVerificationRequestSchema;\n output: typeof GetSocialVerificationResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_social_verification, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,mCACX,uBAAS,olFAAolF,CAAC,8BAA8B,CAAC;;;;;AA6G/nF,MAAa,2BACX,0BAAY,kCAAkC,CAAC;;;;;AAqCjD,MAAa,uCACX,0BAAY,kCAAkC,CAAC;;;;;AAmCjD,MAAa,wCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,uCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,wCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,qCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,sCACX,0BAAY,kCAAkC,CAAC;;;;;;AAOjD,IAAY,iBAAL,yBAAA,gBAAA;;;;;;CAML,eAAA,eAAA,0BAAA,KAAA;;;;;;CAOA,eAAA,eAAA,aAAA,KAAA;;;;;;CAOA,eAAA,eAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,uBACX,uBAAS,kCAAkC,CAAC;;;;;;AAO9C,IAAY,2BAAL,yBAAA,0BAAA;;;;;;CAML,yBAAA,yBAAA,wBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,gCAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,mBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,wBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,qBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,mBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,oBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,sBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,iCACX,uBAAS,kCAAkC,CAAC;;;;;;AAO9C,IAAY,2BAAL,yBAAA,0BAAA;;;;;;CAML,yBAAA,yBAAA,wBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,oBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,oBAAA,KAAA;;;;;;CAOA,yBAAA,yBAAA,eAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,iCACX,uBAAS,kCAAkC,CAAC;;;;;;AAO9C,MAAa,4BAgCX,0BAAY,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"social_verification_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/social_verification_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/social_verification.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/social_verification.proto.\n */\nexport const file_auth_v1_social_verification: GenFile = /*@__PURE__*/\n fileDesc(\"CiFhdXRoL3YxL3NvY2lhbF92ZXJpZmljYXRpb24ucHJvdG8SB2F1dGgudjEi3AMKElNvY2lhbFZlcmlmaWNhdGlvbhIKCgJpZBgMIAE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9uc2UiABJuChdTb2NpYWxWZXJpZmljYXRpb25SZWFkeRInLmF1dGgudjEuU29jaWFsVmVyaWZpY2F0aW9uUmVhZHlSZXF1ZXN0GiguYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25SZWFkeVJlc3BvbnNlIgASaAoVR2V0U29jaWFsVmVyaWZpY2F0aW9uEiUuYXV0aC52MS5HZXRTb2NpYWxWZXJpZmljYXRpb25SZXF1ZXN0GiYuYXV0aC52MS5HZXRTb2NpYWxWZXJpZmljYXRpb25SZXNwb25zZSIAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_google_protobuf_timestamp]);\n\n/**\n * SocialVerification describes the caller's current verification state for one\n * social provider.\n *\n * @generated from message auth.v1.SocialVerification\n */\nexport type SocialVerification = Message<\"auth.v1.SocialVerification\"> & {\n /**\n * Verification identifier.\n *\n * @generated from field: int64 id = 12;\n */\n id: bigint;\n\n /**\n * Provider account being verified.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n\n /**\n * Method used for this verification. If unspecified at start time, profile\n * verification is used.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 11;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle being verified. Handles are returned lowercase and without\n * a leading \"@\".\n *\n * @generated from field: string handle = 2;\n */\n handle: string;\n\n /**\n * Stable provider-side user identifier. Empty until verification succeeds.\n *\n * @generated from field: string provider_user_id = 3;\n */\n providerUserId: string;\n\n /**\n * Challenge code the user must place according to the verification method.\n * Codes start with \"poly_\" and expire after 15 minutes.\n *\n * @generated from field: string challenge_code = 13;\n */\n challengeCode: string;\n\n /**\n * Current verification status.\n *\n * @generated from field: auth.v1.SocialVerificationStatus status = 4;\n */\n status: SocialVerificationStatus;\n\n /**\n * Time in UTC when the current challenge code was issued.\n *\n * @generated from field: google.protobuf.Timestamp requested_at = 5;\n */\n requestedAt?: Timestamp | undefined;\n\n /**\n * Time in UTC when the current challenge code expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Time in UTC when verification succeeded. Empty until status is STATUS_VERIFIED.\n *\n * @generated from field: google.protobuf.Timestamp verified_at = 7;\n */\n verifiedAt?: Timestamp | undefined;\n\n /**\n * Number of recorded provider-check attempts for this challenge.\n *\n * @generated from field: int32 attempts = 9;\n */\n attempts: number;\n\n /**\n * Last verification error, if the most recent check failed. Empty when there\n * is no recorded error.\n *\n * @generated from field: string last_error = 10;\n */\n lastError: string;\n\n /**\n * Time in UTC when this verification state last changed.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 15;\n */\n updatedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.SocialVerification.\n * Use `create(SocialVerificationSchema)` to create a new message.\n */\nexport const SocialVerificationSchema: GenMessage<SocialVerification> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 0);\n\n/**\n * StartSocialVerificationRequest starts or restarts social account verification.\n * Starting again for the same provider replaces the previous challenge.\n *\n * @generated from message auth.v1.StartSocialVerificationRequest\n */\nexport type StartSocialVerificationRequest = Message<\"auth.v1.StartSocialVerificationRequest\"> & {\n /**\n * Provider account to verify.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n\n /**\n * Verification method. If unspecified, profile verification is used.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 3;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle the user claims. A leading \"@\" is accepted and removed.\n * X/Twitter handles must be 1 to 15 letters, digits, or underscores.\n * Other provider handles can be up to 64 characters.\n *\n * @generated from field: string handle = 2;\n */\n handle: string;\n};\n\n/**\n * Describes the message auth.v1.StartSocialVerificationRequest.\n * Use `create(StartSocialVerificationRequestSchema)` to create a new message.\n */\nexport const StartSocialVerificationRequestSchema: GenMessage<StartSocialVerificationRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 1);\n\n/**\n * Response returned after starting social account verification.\n *\n * @generated from message auth.v1.StartSocialVerificationResponse\n */\nexport type StartSocialVerificationResponse = Message<\"auth.v1.StartSocialVerificationResponse\"> & {\n /**\n * Challenge code the user must place according to the verification method.\n *\n * @generated from field: string challenge_code = 1;\n */\n challengeCode: string;\n\n /**\n * Time in UTC when the challenge code expires. Social verification challenges\n * expire after 15 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Current verification state after issuing the challenge.\n *\n * @generated from field: auth.v1.SocialVerification verification = 3;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.StartSocialVerificationResponse.\n * Use `create(StartSocialVerificationResponseSchema)` to create a new message.\n */\nexport const StartSocialVerificationResponseSchema: GenMessage<StartSocialVerificationResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 2);\n\n/**\n * SocialVerificationReadyRequest tells the API that the challenge code has been\n * placed and the provider account is ready to check.\n *\n * @generated from message auth.v1.SocialVerificationReadyRequest\n */\nexport type SocialVerificationReadyRequest = Message<\"auth.v1.SocialVerificationReadyRequest\"> & {\n /**\n * Provider account to check.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n};\n\n/**\n * Describes the message auth.v1.SocialVerificationReadyRequest.\n * Use `create(SocialVerificationReadyRequestSchema)` to create a new message.\n */\nexport const SocialVerificationReadyRequestSchema: GenMessage<SocialVerificationReadyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 3);\n\n/**\n * SocialVerificationReadyResponse returns the verification after it has been\n * queued for a provider check.\n *\n * @generated from message auth.v1.SocialVerificationReadyResponse\n */\nexport type SocialVerificationReadyResponse = Message<\"auth.v1.SocialVerificationReadyResponse\"> & {\n /**\n * Current verification state after the provider check was requested.\n *\n * @generated from field: auth.v1.SocialVerification verification = 1;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.SocialVerificationReadyResponse.\n * Use `create(SocialVerificationReadyResponseSchema)` to create a new message.\n */\nexport const SocialVerificationReadyResponseSchema: GenMessage<SocialVerificationReadyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 4);\n\n/**\n * GetSocialVerificationRequest fetches the caller's current social verification\n * state for one provider.\n *\n * @generated from message auth.v1.GetSocialVerificationRequest\n */\nexport type GetSocialVerificationRequest = Message<\"auth.v1.GetSocialVerificationRequest\"> & {\n /**\n * Provider account to inspect.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n};\n\n/**\n * Describes the message auth.v1.GetSocialVerificationRequest.\n * Use `create(GetSocialVerificationRequestSchema)` to create a new message.\n */\nexport const GetSocialVerificationRequestSchema: GenMessage<GetSocialVerificationRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 5);\n\n/**\n * GetSocialVerificationResponse contains the caller's current social\n * verification state for one provider. A successful response with verification\n * absent means the caller has not started verification for that provider.\n *\n * @generated from message auth.v1.GetSocialVerificationResponse\n */\nexport type GetSocialVerificationResponse = Message<\"auth.v1.GetSocialVerificationResponse\"> & {\n /**\n * Current verification state for the requested provider. Absent when no\n * verification has been started.\n *\n * @generated from field: auth.v1.SocialVerification verification = 1;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetSocialVerificationResponse.\n * Use `create(GetSocialVerificationResponseSchema)` to create a new message.\n */\nexport const GetSocialVerificationResponseSchema: GenMessage<GetSocialVerificationResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 6);\n\n/**\n * Social account provider used for account ownership verification.\n *\n * @generated from enum auth.v1.SocialProvider\n */\nexport enum SocialProvider {\n /**\n * No social provider was specified.\n *\n * @generated from enum value: PROVIDER_UNSPECIFIED = 0;\n */\n PROVIDER_UNSPECIFIED = 0,\n\n /**\n * X/Twitter account verification.\n *\n * @generated from enum value: TWITTER = 1;\n */\n TWITTER = 1,\n\n /**\n * Discord account verification.\n *\n * @generated from enum value: DISCORD = 2;\n */\n DISCORD = 2,\n}\n\n/**\n * Describes the enum auth.v1.SocialProvider.\n */\nexport const SocialProviderSchema: GenEnum<SocialProvider> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 0);\n\n/**\n * Current state of a social account verification attempt.\n *\n * @generated from enum auth.v1.SocialVerificationStatus\n */\nexport enum SocialVerificationStatus {\n /**\n * No verification status was specified.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * Code issued; waiting for the user to complete the provider-specific action.\n *\n * @generated from enum value: STATUS_PENDING_USER_ACTION = 1;\n */\n STATUS_PENDING_USER_ACTION = 1,\n\n /**\n * User marked the code as placed and the verification check is waiting to run.\n *\n * @generated from enum value: STATUS_QUEUED = 2;\n */\n STATUS_QUEUED = 2,\n\n /**\n * Verification check is currently running.\n *\n * @generated from enum value: STATUS_IN_PROGRESS = 3;\n */\n STATUS_IN_PROGRESS = 3,\n\n /**\n * Provider account ownership was verified successfully.\n *\n * @generated from enum value: STATUS_VERIFIED = 4;\n */\n STATUS_VERIFIED = 4,\n\n /**\n * Verification failed. Start a new verification to receive a new challenge code.\n *\n * @generated from enum value: STATUS_FAILED = 5;\n */\n STATUS_FAILED = 5,\n\n /**\n * Challenge code expired before verification completed.\n *\n * @generated from enum value: STATUS_EXPIRED = 6;\n */\n STATUS_EXPIRED = 6,\n\n /**\n * Verification was cancelled.\n *\n * @generated from enum value: STATUS_CANCELLED = 7;\n */\n STATUS_CANCELLED = 7,\n}\n\n/**\n * Describes the enum auth.v1.SocialVerificationStatus.\n */\nexport const SocialVerificationStatusSchema: GenEnum<SocialVerificationStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 1);\n\n/**\n * How the user proves control of the provider account.\n *\n * @generated from enum auth.v1.SocialVerificationMethod\n */\nexport enum SocialVerificationMethod {\n /**\n * No method was specified. The provider default is used.\n *\n * @generated from enum value: METHOD_UNSPECIFIED = 0;\n */\n METHOD_UNSPECIFIED = 0,\n\n /**\n * User places the challenge code in their public provider profile.\n *\n * @generated from enum value: METHOD_PROFILE = 1;\n */\n METHOD_PROFILE = 1,\n\n /**\n * User posts the challenge code in a provider channel.\n *\n * @generated from enum value: METHOD_CHANNEL = 2;\n */\n METHOD_CHANNEL = 2,\n\n /**\n * User sends the challenge code in a direct message.\n *\n * @generated from enum value: METHOD_DM = 3;\n */\n METHOD_DM = 3,\n}\n\n/**\n * Describes the enum auth.v1.SocialVerificationMethod.\n */\nexport const SocialVerificationMethodSchema: GenEnum<SocialVerificationMethod> = /*@__PURE__*/\n enumDesc(file_auth_v1_social_verification, 2);\n\n/**\n * SocialVerificationService verifies ownership of external social accounts.\n *\n * @generated from service auth.v1.SocialVerificationService\n */\nexport const SocialVerificationService: GenService<{\n /**\n * Start or restart social verification by issuing a new challenge code.\n *\n * @generated from rpc auth.v1.SocialVerificationService.StartSocialVerification\n */\n startSocialVerification: {\n methodKind: \"unary\";\n input: typeof StartSocialVerificationRequestSchema;\n output: typeof StartSocialVerificationResponseSchema;\n },\n /**\n * Mark a verification as ready after the challenge code has been placed.\n *\n * @generated from rpc auth.v1.SocialVerificationService.SocialVerificationReady\n */\n socialVerificationReady: {\n methodKind: \"unary\";\n input: typeof SocialVerificationReadyRequestSchema;\n output: typeof SocialVerificationReadyResponseSchema;\n },\n /**\n * Get current verification status for the caller.\n *\n * @generated from rpc auth.v1.SocialVerificationService.GetSocialVerification\n */\n getSocialVerification: {\n methodKind: \"unary\";\n input: typeof GetSocialVerificationRequestSchema;\n output: typeof GetSocialVerificationResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_social_verification, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,mCACX,uBAAS,olFAAolF,CAAC,8BAA8B,CAAC;;;;;AA6G/nF,MAAa,2BACX,0BA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,0BAAY,kCAAkC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { GetBalancesResponse } from "../../ledger/read/v1/ledger_read_pb.js";
|
|
1
2
|
import { ApiKey } from "./api_keys_pb.js";
|
|
2
3
|
import { PolicyAction, SubaccountPolicyView } from "./policies_pb.js";
|
|
3
|
-
import { GetBalancesResponse } from "../../ledger/read/v1/ledger_read_pb.js";
|
|
4
4
|
import { Message } from "@bufbuild/protobuf";
|
|
5
5
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
+
import { file_ledger_read_v1_ledger_read } from "../../ledger/read/v1/ledger_read_pb.js";
|
|
3
4
|
import { file_auth_v1_api_keys } from "./api_keys_pb.js";
|
|
4
5
|
import { file_auth_v1_policies } from "./policies_pb.js";
|
|
5
|
-
import { file_ledger_read_v1_ledger_read } from "../../ledger/read/v1/ledger_read_pb.js";
|
|
6
6
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
7
|
import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
8
|
//#region src/gen/auth/v1/subaccounts_pb.ts
|
|
@@ -2,7 +2,7 @@ import { U128 } from "../../../polyester/type/v1/u128_pb.js";
|
|
|
2
2
|
import { Message } from "@bufbuild/protobuf";
|
|
3
3
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
4
4
|
declare namespace withdraw_pb_d_exports {
|
|
5
|
-
export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
|
|
5
|
+
export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file chain/withdraw/v1/withdraw.proto.
|
|
@@ -48,6 +48,24 @@ type CreateWalletTradingWithdrawResponse = Message<"chain.withdraw.v1.CreateWall
|
|
|
48
48
|
* Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.
|
|
49
49
|
*/
|
|
50
50
|
declare const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* ErrorDetail is attached to ConnectRPC errors for structured error handling.
|
|
53
|
+
*
|
|
54
|
+
* @generated from message chain.withdraw.v1.ErrorDetail
|
|
55
|
+
*/
|
|
56
|
+
type ErrorDetail = Message<"chain.withdraw.v1.ErrorDetail"> & {
|
|
57
|
+
/**
|
|
58
|
+
* Stable error code matching the REST problem+json code field.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: chain.withdraw.v1.ErrorCode code = 1;
|
|
61
|
+
*/
|
|
62
|
+
code: ErrorCode;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message chain.withdraw.v1.ErrorDetail.
|
|
66
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
|
|
51
69
|
/**
|
|
52
70
|
* TradingWithdrawIntentPayload is the client-signed typed withdraw request.
|
|
53
71
|
* Account scope and backend intent ids are derived server-side.
|
|
@@ -243,6 +261,276 @@ type ValidateWithdrawDestinationResponse = Message<"chain.withdraw.v1.ValidateWi
|
|
|
243
261
|
* Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
|
|
244
262
|
*/
|
|
245
263
|
declare const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* ErrorCode identifies stable, machine-readable Withdraw API errors.
|
|
266
|
+
* Values mirror the REST problem+json code field.
|
|
267
|
+
*
|
|
268
|
+
* @generated from enum chain.withdraw.v1.ErrorCode
|
|
269
|
+
*/
|
|
270
|
+
declare enum ErrorCode {
|
|
271
|
+
/**
|
|
272
|
+
* No domain error code was provided.
|
|
273
|
+
*
|
|
274
|
+
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
275
|
+
*/
|
|
276
|
+
UNSPECIFIED = 0,
|
|
277
|
+
/**
|
|
278
|
+
* The source account does not have enough available Trading balance.
|
|
279
|
+
*
|
|
280
|
+
* @generated from enum value: ERROR_CODE_INSUFFICIENT_FUNDS = 1;
|
|
281
|
+
*/
|
|
282
|
+
INSUFFICIENT_FUNDS = 1,
|
|
283
|
+
/**
|
|
284
|
+
* Request payload or one of its fields is invalid.
|
|
285
|
+
*
|
|
286
|
+
* @generated from enum value: ERROR_CODE_INVALID_REQUEST = 2;
|
|
287
|
+
*/
|
|
288
|
+
INVALID_REQUEST = 2,
|
|
289
|
+
/**
|
|
290
|
+
* Caller is not authenticated.
|
|
291
|
+
*
|
|
292
|
+
* @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 3;
|
|
293
|
+
*/
|
|
294
|
+
UNAUTHENTICATED = 3,
|
|
295
|
+
/**
|
|
296
|
+
* Caller is not permitted to perform the withdraw operation.
|
|
297
|
+
*
|
|
298
|
+
* @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 4;
|
|
299
|
+
*/
|
|
300
|
+
PERMISSION_DENIED = 4,
|
|
301
|
+
/**
|
|
302
|
+
* Request exceeded the applicable admission rate limit.
|
|
303
|
+
*
|
|
304
|
+
* @generated from enum value: ERROR_CODE_RATE_LIMIT_EXCEEDED = 5;
|
|
305
|
+
*/
|
|
306
|
+
RATE_LIMIT_EXCEEDED = 5,
|
|
307
|
+
/**
|
|
308
|
+
* A required dependency is temporarily unavailable.
|
|
309
|
+
*
|
|
310
|
+
* @generated from enum value: ERROR_CODE_SERVICE_UNAVAILABLE = 6;
|
|
311
|
+
*/
|
|
312
|
+
SERVICE_UNAVAILABLE = 6,
|
|
313
|
+
/**
|
|
314
|
+
* The request failed because of an unexpected server error.
|
|
315
|
+
*
|
|
316
|
+
* @generated from enum value: ERROR_CODE_INTERNAL_ERROR = 7;
|
|
317
|
+
*/
|
|
318
|
+
INTERNAL_ERROR = 7,
|
|
319
|
+
/**
|
|
320
|
+
* The selected subaccount identifier is invalid.
|
|
321
|
+
*
|
|
322
|
+
* @generated from enum value: ERROR_CODE_INVALID_SUBACCOUNT_ID = 8;
|
|
323
|
+
*/
|
|
324
|
+
INVALID_SUBACCOUNT_ID = 8,
|
|
325
|
+
/**
|
|
326
|
+
* The selected subaccount does not exist.
|
|
327
|
+
*
|
|
328
|
+
* @generated from enum value: ERROR_CODE_SUBACCOUNT_NOT_FOUND = 9;
|
|
329
|
+
*/
|
|
330
|
+
SUBACCOUNT_NOT_FOUND = 9,
|
|
331
|
+
/**
|
|
332
|
+
* The requested withdraw action is invalid for this endpoint.
|
|
333
|
+
*
|
|
334
|
+
* @generated from enum value: ERROR_CODE_INVALID_ACTION = 10;
|
|
335
|
+
*/
|
|
336
|
+
INVALID_ACTION = 10,
|
|
337
|
+
/**
|
|
338
|
+
* The requested ledger is not supported for withdrawals.
|
|
339
|
+
*
|
|
340
|
+
* @generated from enum value: ERROR_CODE_UNSUPPORTED_LEDGER = 11;
|
|
341
|
+
*/
|
|
342
|
+
UNSUPPORTED_LEDGER = 11,
|
|
343
|
+
/**
|
|
344
|
+
* The requested asset or withdraw route is not supported.
|
|
345
|
+
*
|
|
346
|
+
* @generated from enum value: ERROR_CODE_UNSUPPORTED_ASSET = 12;
|
|
347
|
+
*/
|
|
348
|
+
UNSUPPORTED_ASSET = 12,
|
|
349
|
+
/**
|
|
350
|
+
* The withdraw amount is invalid.
|
|
351
|
+
*
|
|
352
|
+
* @generated from enum value: ERROR_CODE_INVALID_AMOUNT = 13;
|
|
353
|
+
*/
|
|
354
|
+
INVALID_AMOUNT = 13,
|
|
355
|
+
/**
|
|
356
|
+
* The destination chain is invalid.
|
|
357
|
+
*
|
|
358
|
+
* @generated from enum value: ERROR_CODE_INVALID_DESTINATION_CHAIN = 14;
|
|
359
|
+
*/
|
|
360
|
+
INVALID_DESTINATION_CHAIN = 14,
|
|
361
|
+
/**
|
|
362
|
+
* The destination address is invalid.
|
|
363
|
+
*
|
|
364
|
+
* @generated from enum value: ERROR_CODE_INVALID_DESTINATION_ADDRESS = 15;
|
|
365
|
+
*/
|
|
366
|
+
INVALID_DESTINATION_ADDRESS = 15,
|
|
367
|
+
/**
|
|
368
|
+
* The external destination is not whitelisted.
|
|
369
|
+
*
|
|
370
|
+
* @generated from enum value: ERROR_CODE_EXTERNAL_DESTINATION_NOT_WHITELISTED = 16;
|
|
371
|
+
*/
|
|
372
|
+
EXTERNAL_DESTINATION_NOT_WHITELISTED = 16,
|
|
373
|
+
/**
|
|
374
|
+
* The internal funding recipient is not whitelisted.
|
|
375
|
+
*
|
|
376
|
+
* @generated from enum value: ERROR_CODE_INTERNAL_RECIPIENT_NOT_WHITELISTED = 17;
|
|
377
|
+
*/
|
|
378
|
+
INTERNAL_RECIPIENT_NOT_WHITELISTED = 17,
|
|
379
|
+
/**
|
|
380
|
+
* The withdraw amount is below the configured minimum including fees.
|
|
381
|
+
*
|
|
382
|
+
* @generated from enum value: ERROR_CODE_AMOUNT_BELOW_MINIMUM = 18;
|
|
383
|
+
*/
|
|
384
|
+
AMOUNT_BELOW_MINIMUM = 18,
|
|
385
|
+
/**
|
|
386
|
+
* The withdraw amount exceeds the available zipped-asset supply.
|
|
387
|
+
*
|
|
388
|
+
* @generated from enum value: ERROR_CODE_AMOUNT_EXCEEDS_SUPPLY = 19;
|
|
389
|
+
*/
|
|
390
|
+
AMOUNT_EXCEEDS_SUPPLY = 19,
|
|
391
|
+
/**
|
|
392
|
+
* The source smart-account address is unavailable.
|
|
393
|
+
*
|
|
394
|
+
* @generated from enum value: ERROR_CODE_SOURCE_SMART_ACCOUNT_UNAVAILABLE = 20;
|
|
395
|
+
*/
|
|
396
|
+
SOURCE_SMART_ACCOUNT_UNAVAILABLE = 20,
|
|
397
|
+
/**
|
|
398
|
+
* The required payload signature is missing.
|
|
399
|
+
*
|
|
400
|
+
* @generated from enum value: ERROR_CODE_SIGNATURE_REQUIRED = 21;
|
|
401
|
+
*/
|
|
402
|
+
SIGNATURE_REQUIRED = 21,
|
|
403
|
+
/**
|
|
404
|
+
* The requested signature scheme is unsupported.
|
|
405
|
+
*
|
|
406
|
+
* @generated from enum value: ERROR_CODE_SIGNATURE_SCHEME_UNSUPPORTED = 22;
|
|
407
|
+
*/
|
|
408
|
+
SIGNATURE_SCHEME_UNSUPPORTED = 22,
|
|
409
|
+
/**
|
|
410
|
+
* The wallet supplied as signer is invalid.
|
|
411
|
+
*
|
|
412
|
+
* @generated from enum value: ERROR_CODE_SIGNER_WALLET_INVALID = 23;
|
|
413
|
+
*/
|
|
414
|
+
SIGNER_WALLET_INVALID = 23,
|
|
415
|
+
/**
|
|
416
|
+
* Wallet authorization binding verification failed.
|
|
417
|
+
*
|
|
418
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_INVALID = 24;
|
|
419
|
+
*/
|
|
420
|
+
WALLET_BINDING_INVALID = 24,
|
|
421
|
+
/**
|
|
422
|
+
* Wallet authorization binding does not cover the requested scope.
|
|
423
|
+
*
|
|
424
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_SCOPE_MISMATCH = 25;
|
|
425
|
+
*/
|
|
426
|
+
WALLET_BINDING_SCOPE_MISMATCH = 25,
|
|
427
|
+
/**
|
|
428
|
+
* Wallet authorization binding does not match the signer.
|
|
429
|
+
*
|
|
430
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_SIGNER_MISMATCH = 26;
|
|
431
|
+
*/
|
|
432
|
+
WALLET_BINDING_SIGNER_MISMATCH = 26,
|
|
433
|
+
/**
|
|
434
|
+
* The API key could not be resolved.
|
|
435
|
+
*
|
|
436
|
+
* @generated from enum value: ERROR_CODE_API_KEY_NOT_FOUND = 27;
|
|
437
|
+
*/
|
|
438
|
+
API_KEY_NOT_FOUND = 27,
|
|
439
|
+
/**
|
|
440
|
+
* API-key authorization binding verification failed.
|
|
441
|
+
*
|
|
442
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_INVALID = 28;
|
|
443
|
+
*/
|
|
444
|
+
API_KEY_BINDING_INVALID = 28,
|
|
445
|
+
/**
|
|
446
|
+
* API-key authorization binding does not cover the requested scope.
|
|
447
|
+
*
|
|
448
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_SCOPE_MISMATCH = 29;
|
|
449
|
+
*/
|
|
450
|
+
API_KEY_BINDING_SCOPE_MISMATCH = 29,
|
|
451
|
+
/**
|
|
452
|
+
* API-key authorization binding does not match the configured public key.
|
|
453
|
+
*
|
|
454
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_PUBLIC_KEY_MISMATCH = 30;
|
|
455
|
+
*/
|
|
456
|
+
API_KEY_BINDING_PUBLIC_KEY_MISMATCH = 30,
|
|
457
|
+
/**
|
|
458
|
+
* The idempotency key was reused with different request data.
|
|
459
|
+
*
|
|
460
|
+
* @generated from enum value: ERROR_CODE_IDEMPOTENCY_CONFLICT = 31;
|
|
461
|
+
*/
|
|
462
|
+
IDEMPOTENCY_CONFLICT = 31,
|
|
463
|
+
/**
|
|
464
|
+
* The funds lock conflicts with an existing or finalized reservation.
|
|
465
|
+
*
|
|
466
|
+
* @generated from enum value: ERROR_CODE_FUNDS_LOCK_CONFLICT = 32;
|
|
467
|
+
*/
|
|
468
|
+
FUNDS_LOCK_CONFLICT = 32,
|
|
469
|
+
/**
|
|
470
|
+
* The authoritative capital view is not ready or is stale.
|
|
471
|
+
*
|
|
472
|
+
* @generated from enum value: ERROR_CODE_CAPITAL_VIEW_UNAVAILABLE = 33;
|
|
473
|
+
*/
|
|
474
|
+
CAPITAL_VIEW_UNAVAILABLE = 33,
|
|
475
|
+
/**
|
|
476
|
+
* Required chain or contract metadata is unavailable.
|
|
477
|
+
*
|
|
478
|
+
* @generated from enum value: ERROR_CODE_CHAIN_METADATA_UNAVAILABLE = 34;
|
|
479
|
+
*/
|
|
480
|
+
CHAIN_METADATA_UNAVAILABLE = 34,
|
|
481
|
+
/**
|
|
482
|
+
* Required network fee data is unavailable.
|
|
483
|
+
*
|
|
484
|
+
* @generated from enum value: ERROR_CODE_FEE_UNAVAILABLE = 35;
|
|
485
|
+
*/
|
|
486
|
+
FEE_UNAVAILABLE = 35,
|
|
487
|
+
/**
|
|
488
|
+
* Required zipped-asset supply data is unavailable.
|
|
489
|
+
*
|
|
490
|
+
* @generated from enum value: ERROR_CODE_SUPPLY_UNAVAILABLE = 36;
|
|
491
|
+
*/
|
|
492
|
+
SUPPLY_UNAVAILABLE = 36,
|
|
493
|
+
/**
|
|
494
|
+
* Fresh step-up verification is temporarily unavailable.
|
|
495
|
+
*
|
|
496
|
+
* @generated from enum value: ERROR_CODE_STEP_UP_UNAVAILABLE = 37;
|
|
497
|
+
*/
|
|
498
|
+
STEP_UP_UNAVAILABLE = 37,
|
|
499
|
+
/**
|
|
500
|
+
* Destination validation is temporarily unavailable.
|
|
501
|
+
*
|
|
502
|
+
* @generated from enum value: ERROR_CODE_DESTINATION_VALIDATION_UNAVAILABLE = 38;
|
|
503
|
+
*/
|
|
504
|
+
DESTINATION_VALIDATION_UNAVAILABLE = 38,
|
|
505
|
+
/**
|
|
506
|
+
* The account shard cannot currently accept fund movement.
|
|
507
|
+
*
|
|
508
|
+
* @generated from enum value: ERROR_CODE_ACCOUNT_SHARD_UNAVAILABLE = 39;
|
|
509
|
+
*/
|
|
510
|
+
ACCOUNT_SHARD_UNAVAILABLE = 39,
|
|
511
|
+
/**
|
|
512
|
+
* A required precondition was not satisfied.
|
|
513
|
+
*
|
|
514
|
+
* @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 40;
|
|
515
|
+
*/
|
|
516
|
+
FAILED_PRECONDITION = 40,
|
|
517
|
+
/**
|
|
518
|
+
* The requested resource was not found.
|
|
519
|
+
*
|
|
520
|
+
* @generated from enum value: ERROR_CODE_NOT_FOUND = 41;
|
|
521
|
+
*/
|
|
522
|
+
NOT_FOUND = 41,
|
|
523
|
+
/**
|
|
524
|
+
* The request conflicts with existing state.
|
|
525
|
+
*
|
|
526
|
+
* @generated from enum value: ERROR_CODE_CONFLICT = 42;
|
|
527
|
+
*/
|
|
528
|
+
CONFLICT = 42
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Describes the enum chain.withdraw.v1.ErrorCode.
|
|
532
|
+
*/
|
|
533
|
+
declare const ErrorCodeSchema: GenEnum<ErrorCode>;
|
|
246
534
|
/**
|
|
247
535
|
* TradingWithdrawAction identifies where funds should move from Trading.
|
|
248
536
|
*
|
|
@@ -363,5 +651,5 @@ declare const WithdrawService: GenService<{
|
|
|
363
651
|
};
|
|
364
652
|
}>;
|
|
365
653
|
//#endregion
|
|
366
|
-
export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
|
|
654
|
+
export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
|
|
367
655
|
//# sourceMappingURL=withdraw_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"mappings":";;;;;;;;;cAca,iCAAiC;;;;;;;KASlC,gCAAgC;;;;;;;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