@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111140253
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 +43 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +7 -3
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +247 -3
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +55 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +55 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +186 -14
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +163 -6
- 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 +170 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +25 -9
- 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/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +172 -4
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- 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 +20 -3
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +12 -3
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +9 -5
- package/dist/gen/index.js +5 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +52 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +52 -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/marketdata/v1/marketdata_pb.d.ts +8 -0
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +29 -8
- 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/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_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 +1268 -67
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +306 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +298 -54
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +183 -37
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_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 +9 -9
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +3 -1
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +375 -7
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- 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 +4 -4
- 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 +59 -4
- 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.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -90
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +19 -19
- 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 +85 -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/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
- 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 +18 -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 +8 -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/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.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 +7 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +27 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +2 -2
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Message } from "@bufbuild/protobuf";
|
|
|
3
3
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
4
4
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
5
|
declare namespace social_verification_pb_d_exports {
|
|
6
|
-
export { GetSocialVerificationRequest, GetSocialVerificationRequestSchema, GetSocialVerificationResponse, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerification, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequest, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponse, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequest, StartSocialVerificationRequestSchema, StartSocialVerificationResponse, StartSocialVerificationResponseSchema, file_auth_v1_social_verification };
|
|
6
|
+
export { ConfirmSocialVerificationRequest, ConfirmSocialVerificationRequestSchema, ConfirmSocialVerificationResponse, ConfirmSocialVerificationResponseSchema, GetSocialVerificationRequest, GetSocialVerificationRequestSchema, GetSocialVerificationResponse, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerification, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequest, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponse, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequest, StartSocialVerificationRequestSchema, StartSocialVerificationResponse, StartSocialVerificationResponseSchema, UnlinkSocialAccountRequest, UnlinkSocialAccountRequestSchema, UnlinkSocialAccountResponse, UnlinkSocialAccountResponseSchema, file_auth_v1_social_verification };
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file auth/v1/social_verification.proto.
|
|
@@ -37,21 +37,33 @@ type SocialVerification = Message<"auth.v1.SocialVerification"> & {
|
|
|
37
37
|
method: SocialVerificationMethod;
|
|
38
38
|
/**
|
|
39
39
|
* Provider handle being verified. Handles are returned lowercase and without
|
|
40
|
-
* a leading "@".
|
|
40
|
+
* a leading "@". For Telegram, the username of the account that submitted the
|
|
41
|
+
* code; empty when that account has no username.
|
|
41
42
|
*
|
|
42
43
|
* @generated from field: string handle = 2;
|
|
43
44
|
*/
|
|
44
45
|
handle: string;
|
|
45
46
|
/**
|
|
46
|
-
* Stable provider-side user identifier. Empty until verification succeeds
|
|
47
|
+
* Stable provider-side user identifier. Empty until verification succeeds,
|
|
48
|
+
* except for Telegram: while the status is STATUS_AWAITING_CONFIRMATION, it is
|
|
49
|
+
* the numeric user ID of the Telegram account that submitted the code, the
|
|
50
|
+
* value ConfirmSocialVerification takes.
|
|
47
51
|
*
|
|
48
52
|
* @generated from field: string provider_user_id = 3;
|
|
49
53
|
*/
|
|
50
54
|
providerUserId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Provider display name of the account being verified, for showing it to the
|
|
57
|
+
* user. Telegram only: the account's name, set once the code is submitted.
|
|
58
|
+
* Empty for other providers.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string display_name = 17;
|
|
61
|
+
*/
|
|
62
|
+
displayName: string;
|
|
51
63
|
/**
|
|
52
64
|
* Challenge code the user must submit according to the verification method.
|
|
53
|
-
* Discord codes are returned only when a challenge is issued.
|
|
54
|
-
* after 15 minutes.
|
|
65
|
+
* Discord and Telegram codes are returned only when a challenge is issued.
|
|
66
|
+
* Codes expire after 15 minutes.
|
|
55
67
|
*
|
|
56
68
|
* @generated from field: string challenge_code = 13;
|
|
57
69
|
*/
|
|
@@ -127,14 +139,15 @@ type StartSocialVerificationRequest = Message<"auth.v1.StartSocialVerificationRe
|
|
|
127
139
|
provider: SocialProvider;
|
|
128
140
|
/**
|
|
129
141
|
* Verification method. If unspecified, profile verification is used for
|
|
130
|
-
* X/Twitter
|
|
142
|
+
* X/Twitter, channel verification for Discord and direct message
|
|
143
|
+
* verification for Telegram.
|
|
131
144
|
*
|
|
132
145
|
* @generated from field: auth.v1.SocialVerificationMethod method = 3;
|
|
133
146
|
*/
|
|
134
147
|
method: SocialVerificationMethod;
|
|
135
148
|
/**
|
|
136
149
|
* Provider handle the user claims. Required for X/Twitter and omitted for
|
|
137
|
-
* Discord, where the
|
|
150
|
+
* Discord and Telegram, where the provider bot supplies the provider identity.
|
|
138
151
|
* A leading "@" is accepted and removed from X/Twitter handles.
|
|
139
152
|
*
|
|
140
153
|
* @generated from field: string handle = 2;
|
|
@@ -172,6 +185,14 @@ type StartSocialVerificationResponse = Message<"auth.v1.StartSocialVerificationR
|
|
|
172
185
|
* @generated from field: auth.v1.SocialVerification verification = 3;
|
|
173
186
|
*/
|
|
174
187
|
verification?: SocialVerification | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Link that completes the user action, when the provider has one. Telegram:
|
|
190
|
+
* opening it starts a chat with the Polyester bot that submits the code.
|
|
191
|
+
* Empty for other providers.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: string action_url = 4;
|
|
194
|
+
*/
|
|
195
|
+
actionUrl: string;
|
|
175
196
|
};
|
|
176
197
|
/**
|
|
177
198
|
* Describes the message auth.v1.StartSocialVerificationResponse.
|
|
@@ -256,6 +277,91 @@ type GetSocialVerificationResponse = Message<"auth.v1.GetSocialVerificationRespo
|
|
|
256
277
|
* Use `create(GetSocialVerificationResponseSchema)` to create a new message.
|
|
257
278
|
*/
|
|
258
279
|
declare const GetSocialVerificationResponseSchema: GenMessage<GetSocialVerificationResponse>;
|
|
280
|
+
/**
|
|
281
|
+
* ConfirmSocialVerificationRequest links the provider account that submitted
|
|
282
|
+
* the caller's challenge code.
|
|
283
|
+
*
|
|
284
|
+
* @generated from message auth.v1.ConfirmSocialVerificationRequest
|
|
285
|
+
*/
|
|
286
|
+
type ConfirmSocialVerificationRequest = Message<"auth.v1.ConfirmSocialVerificationRequest"> & {
|
|
287
|
+
/**
|
|
288
|
+
* Provider account to confirm. Only TELEGRAM is accepted.
|
|
289
|
+
*
|
|
290
|
+
* @generated from field: auth.v1.SocialProvider provider = 1;
|
|
291
|
+
*/
|
|
292
|
+
provider: SocialProvider;
|
|
293
|
+
/**
|
|
294
|
+
* Provider user ID the user confirms, as provider_user_id of the verification
|
|
295
|
+
* in STATUS_AWAITING_CONFIRMATION. The request fails when it is not the
|
|
296
|
+
* account that submitted the code, so the user links exactly the account
|
|
297
|
+
* they were shown.
|
|
298
|
+
*
|
|
299
|
+
* @generated from field: string provider_user_id = 2;
|
|
300
|
+
*/
|
|
301
|
+
providerUserId: string;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Describes the message auth.v1.ConfirmSocialVerificationRequest.
|
|
305
|
+
* Use `create(ConfirmSocialVerificationRequestSchema)` to create a new message.
|
|
306
|
+
*/
|
|
307
|
+
declare const ConfirmSocialVerificationRequestSchema: GenMessage<ConfirmSocialVerificationRequest>;
|
|
308
|
+
/**
|
|
309
|
+
* ConfirmSocialVerificationResponse returns the verification after the
|
|
310
|
+
* provider account was linked.
|
|
311
|
+
*
|
|
312
|
+
* @generated from message auth.v1.ConfirmSocialVerificationResponse
|
|
313
|
+
*/
|
|
314
|
+
type ConfirmSocialVerificationResponse = Message<"auth.v1.ConfirmSocialVerificationResponse"> & {
|
|
315
|
+
/**
|
|
316
|
+
* Current verification state, STATUS_VERIFIED.
|
|
317
|
+
*
|
|
318
|
+
* @generated from field: auth.v1.SocialVerification verification = 1;
|
|
319
|
+
*/
|
|
320
|
+
verification?: SocialVerification | undefined;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Describes the message auth.v1.ConfirmSocialVerificationResponse.
|
|
324
|
+
* Use `create(ConfirmSocialVerificationResponseSchema)` to create a new message.
|
|
325
|
+
*/
|
|
326
|
+
declare const ConfirmSocialVerificationResponseSchema: GenMessage<ConfirmSocialVerificationResponse>;
|
|
327
|
+
/**
|
|
328
|
+
* UnlinkSocialAccountRequest removes the caller's linked provider account, or
|
|
329
|
+
* cancels a link in progress.
|
|
330
|
+
*
|
|
331
|
+
* @generated from message auth.v1.UnlinkSocialAccountRequest
|
|
332
|
+
*/
|
|
333
|
+
type UnlinkSocialAccountRequest = Message<"auth.v1.UnlinkSocialAccountRequest"> & {
|
|
334
|
+
/**
|
|
335
|
+
* Provider account to unlink. Only TELEGRAM is accepted.
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: auth.v1.SocialProvider provider = 1;
|
|
338
|
+
*/
|
|
339
|
+
provider: SocialProvider;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Describes the message auth.v1.UnlinkSocialAccountRequest.
|
|
343
|
+
* Use `create(UnlinkSocialAccountRequestSchema)` to create a new message.
|
|
344
|
+
*/
|
|
345
|
+
declare const UnlinkSocialAccountRequestSchema: GenMessage<UnlinkSocialAccountRequest>;
|
|
346
|
+
/**
|
|
347
|
+
* UnlinkSocialAccountResponse returns the verification after unlinking.
|
|
348
|
+
*
|
|
349
|
+
* @generated from message auth.v1.UnlinkSocialAccountResponse
|
|
350
|
+
*/
|
|
351
|
+
type UnlinkSocialAccountResponse = Message<"auth.v1.UnlinkSocialAccountResponse"> & {
|
|
352
|
+
/**
|
|
353
|
+
* Current verification state, STATUS_CANCELLED. Absent when no verification
|
|
354
|
+
* was ever started for the provider.
|
|
355
|
+
*
|
|
356
|
+
* @generated from field: auth.v1.SocialVerification verification = 1;
|
|
357
|
+
*/
|
|
358
|
+
verification?: SocialVerification | undefined;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Describes the message auth.v1.UnlinkSocialAccountResponse.
|
|
362
|
+
* Use `create(UnlinkSocialAccountResponseSchema)` to create a new message.
|
|
363
|
+
*/
|
|
364
|
+
declare const UnlinkSocialAccountResponseSchema: GenMessage<UnlinkSocialAccountResponse>;
|
|
259
365
|
/**
|
|
260
366
|
* Social account provider used for account ownership verification.
|
|
261
367
|
*
|
|
@@ -279,7 +385,14 @@ declare enum SocialProvider {
|
|
|
279
385
|
*
|
|
280
386
|
* @generated from enum value: DISCORD = 2;
|
|
281
387
|
*/
|
|
282
|
-
DISCORD = 2
|
|
388
|
+
DISCORD = 2,
|
|
389
|
+
/**
|
|
390
|
+
* Telegram account linking. The user sends the challenge code to the Polyester
|
|
391
|
+
* Telegram bot, then confirms the Telegram account that sent it.
|
|
392
|
+
*
|
|
393
|
+
* @generated from enum value: TELEGRAM = 3;
|
|
394
|
+
*/
|
|
395
|
+
TELEGRAM = 3
|
|
283
396
|
}
|
|
284
397
|
/**
|
|
285
398
|
* Describes the enum auth.v1.SocialProvider.
|
|
@@ -334,11 +447,18 @@ declare enum SocialVerificationStatus {
|
|
|
334
447
|
*/
|
|
335
448
|
STATUS_EXPIRED = 6,
|
|
336
449
|
/**
|
|
337
|
-
* Verification was cancelled.
|
|
450
|
+
* Verification was cancelled, or the linked account was unlinked.
|
|
338
451
|
*
|
|
339
452
|
* @generated from enum value: STATUS_CANCELLED = 7;
|
|
340
453
|
*/
|
|
341
|
-
STATUS_CANCELLED = 7
|
|
454
|
+
STATUS_CANCELLED = 7,
|
|
455
|
+
/**
|
|
456
|
+
* A provider account submitted the challenge code. The user must confirm that
|
|
457
|
+
* account with ConfirmSocialVerification before it is linked. Telegram only.
|
|
458
|
+
*
|
|
459
|
+
* @generated from enum value: STATUS_AWAITING_CONFIRMATION = 8;
|
|
460
|
+
*/
|
|
461
|
+
STATUS_AWAITING_CONFIRMATION = 8
|
|
342
462
|
}
|
|
343
463
|
/**
|
|
344
464
|
* Describes the enum auth.v1.SocialVerificationStatus.
|
|
@@ -387,6 +507,9 @@ declare const SocialVerificationMethodSchema: GenEnum<SocialVerificationMethod>;
|
|
|
387
507
|
declare const SocialVerificationService: GenService<{
|
|
388
508
|
/**
|
|
389
509
|
* Start or restart social verification by issuing a new challenge code.
|
|
510
|
+
* For Telegram, open action_url to send the code to the Polyester bot, then
|
|
511
|
+
* confirm the account with ConfirmSocialVerification.
|
|
512
|
+
* AUTH_SOCIAL_VERIFICATION_INVALID_STATE for Telegram means a Telegram account is already linked; unlink it first.
|
|
390
513
|
*
|
|
391
514
|
* @generated from rpc auth.v1.SocialVerificationService.StartSocialVerification
|
|
392
515
|
*/
|
|
@@ -400,6 +523,7 @@ declare const SocialVerificationService: GenService<{
|
|
|
400
523
|
* AUTH_RESOURCE_NOT_FOUND means no verification exists; start one first.
|
|
401
524
|
* AUTH_SOCIAL_VERIFICATION_EXPIRED means the challenge window passed; start a new verification, then mark it ready again.
|
|
402
525
|
* AUTH_SOCIAL_VERIFICATION_INVALID_STATE means Ready is not valid in the current state; call GetSocialVerification for the current status.
|
|
526
|
+
* Telegram linking does not use Ready and always answers AUTH_SOCIAL_VERIFICATION_INVALID_STATE.
|
|
403
527
|
*
|
|
404
528
|
* @generated from rpc auth.v1.SocialVerificationService.SocialVerificationReady
|
|
405
529
|
*/
|
|
@@ -408,9 +532,44 @@ declare const SocialVerificationService: GenService<{
|
|
|
408
532
|
input: typeof SocialVerificationReadyRequestSchema;
|
|
409
533
|
output: typeof SocialVerificationReadyResponseSchema;
|
|
410
534
|
};
|
|
535
|
+
/**
|
|
536
|
+
* Link the Telegram account that submitted the caller's challenge code. A
|
|
537
|
+
* linked Telegram account becomes a channel to the account, so the caller
|
|
538
|
+
* needs enrolled MFA and a fresh, single-use step-up proof in the
|
|
539
|
+
* X-Auth-Step-Up header, obtained by completing an MFA challenge for fresh
|
|
540
|
+
* step-up. The link consumes the proof; a retried confirmation of an existing
|
|
541
|
+
* link needs no new proof.
|
|
542
|
+
* AUTH_RESOURCE_NOT_FOUND means no verification exists; start one first.
|
|
543
|
+
* AUTH_SOCIAL_VERIFICATION_EXPIRED means the challenge window passed; start a new verification.
|
|
544
|
+
* AUTH_SOCIAL_VERIFICATION_INVALID_STATE means no submitted account awaits confirmation, or provider_user_id is not the account that submitted the code.
|
|
545
|
+
* AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED means that Telegram account is linked to another Polyester account; the verification fails.
|
|
546
|
+
* AUTH_MFA_NOT_ENROLLED means enroll MFA first; AUTH_STEP_UP_REQUIRED and AUTH_STEP_UP_PROOF_UNAVAILABLE mean complete a new fresh step-up and retry.
|
|
547
|
+
*
|
|
548
|
+
* @generated from rpc auth.v1.SocialVerificationService.ConfirmSocialVerification
|
|
549
|
+
*/
|
|
550
|
+
confirmSocialVerification: {
|
|
551
|
+
methodKind: "unary";
|
|
552
|
+
input: typeof ConfirmSocialVerificationRequestSchema;
|
|
553
|
+
output: typeof ConfirmSocialVerificationResponseSchema;
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* Unlink the caller's Telegram account, or cancel a Telegram link in progress.
|
|
557
|
+
* Unlinking again succeeds and changes nothing. To link again, start a new
|
|
558
|
+
* verification.
|
|
559
|
+
*
|
|
560
|
+
* @generated from rpc auth.v1.SocialVerificationService.UnlinkSocialAccount
|
|
561
|
+
*/
|
|
562
|
+
unlinkSocialAccount: {
|
|
563
|
+
methodKind: "unary";
|
|
564
|
+
input: typeof UnlinkSocialAccountRequestSchema;
|
|
565
|
+
output: typeof UnlinkSocialAccountResponseSchema;
|
|
566
|
+
};
|
|
411
567
|
/**
|
|
412
568
|
* Get current verification status for the caller.
|
|
413
569
|
* A failed verification uses error_code for its machine-readable outcome.
|
|
570
|
+
* An API key needs READ_SOCIAL_VERIFICATION and must be scoped to the main
|
|
571
|
+
* account. It reads the status only: provider, method, handle, status, and
|
|
572
|
+
* verification time, with every other field left empty.
|
|
414
573
|
*
|
|
415
574
|
* @generated from rpc auth.v1.SocialVerificationService.GetSocialVerification
|
|
416
575
|
*/
|
|
@@ -421,5 +580,5 @@ declare const SocialVerificationService: GenService<{
|
|
|
421
580
|
};
|
|
422
581
|
}>;
|
|
423
582
|
//#endregion
|
|
424
|
-
export { GetSocialVerificationRequest, GetSocialVerificationRequestSchema, GetSocialVerificationResponse, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerification, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequest, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponse, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequest, StartSocialVerificationRequestSchema, StartSocialVerificationResponse, StartSocialVerificationResponseSchema, file_auth_v1_social_verification, social_verification_pb_d_exports };
|
|
583
|
+
export { ConfirmSocialVerificationRequest, ConfirmSocialVerificationRequestSchema, ConfirmSocialVerificationResponse, ConfirmSocialVerificationResponseSchema, GetSocialVerificationRequest, GetSocialVerificationRequestSchema, GetSocialVerificationResponse, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerification, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequest, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponse, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequest, StartSocialVerificationRequestSchema, StartSocialVerificationResponse, StartSocialVerificationResponseSchema, UnlinkSocialAccountRequest, UnlinkSocialAccountRequestSchema, UnlinkSocialAccountResponse, UnlinkSocialAccountResponseSchema, file_auth_v1_social_verification, social_verification_pb_d_exports };
|
|
425
584
|
//# sourceMappingURL=social_verification_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social_verification_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/social_verification_pb.ts"],"mappings":";;;;;;;;;;cAgBa,kCAAkC;;;;;;;KASnC,qBAAqB;;;;;;EAM/B;;;;;;EAOA,UAAU;;;;;;;EAQV,QAAQ
|
|
1
|
+
{"version":3,"file":"social_verification_pb.d.ts","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,QAAQ;;;;;;aAQ/B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;cAMW,gCAAgC,QAAQ;;;;;;aAQzC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,gCAAgC,QAAQ;;;;;;cAQxC,2BAA2B;;;;;;;;;EAStC;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;EAWjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;;;;EAiBjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;EAWjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -5,6 +5,8 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf
|
|
|
5
5
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
6
|
//#region src/gen/auth/v1/social_verification_pb.ts
|
|
7
7
|
var social_verification_pb_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
ConfirmSocialVerificationRequestSchema: () => ConfirmSocialVerificationRequestSchema,
|
|
9
|
+
ConfirmSocialVerificationResponseSchema: () => ConfirmSocialVerificationResponseSchema,
|
|
8
10
|
GetSocialVerificationRequestSchema: () => GetSocialVerificationRequestSchema,
|
|
9
11
|
GetSocialVerificationResponseSchema: () => GetSocialVerificationResponseSchema,
|
|
10
12
|
SocialProvider: () => SocialProvider,
|
|
@@ -19,12 +21,14 @@ var social_verification_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
21
|
SocialVerificationStatusSchema: () => SocialVerificationStatusSchema,
|
|
20
22
|
StartSocialVerificationRequestSchema: () => StartSocialVerificationRequestSchema,
|
|
21
23
|
StartSocialVerificationResponseSchema: () => StartSocialVerificationResponseSchema,
|
|
24
|
+
UnlinkSocialAccountRequestSchema: () => UnlinkSocialAccountRequestSchema,
|
|
25
|
+
UnlinkSocialAccountResponseSchema: () => UnlinkSocialAccountResponseSchema,
|
|
22
26
|
file_auth_v1_social_verification: () => file_auth_v1_social_verification
|
|
23
27
|
});
|
|
24
28
|
/**
|
|
25
29
|
* Describes the file auth/v1/social_verification.proto.
|
|
26
30
|
*/
|
|
27
|
-
const file_auth_v1_social_verification = /*@__PURE__*/ fileDesc("
|
|
31
|
+
const file_auth_v1_social_verification = /*@__PURE__*/ fileDesc("CiFhdXRoL3YxL3NvY2lhbF92ZXJpZmljYXRpb24ucHJvdG8SB2F1dGgudjEingQKElNvY2lhbFZlcmlmaWNhdGlvbhIKCgJpZBgMIAEoAxIpCghwcm92aWRlchgBIAEoDjIXLmF1dGgudjEuU29jaWFsUHJvdmlkZXISMQoGbWV0aG9kGAsgASgOMiEuYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25NZXRob2QSDgoGaGFuZGxlGAIgASgJEhgKEHByb3ZpZGVyX3VzZXJfaWQYAyABKAkSFAoMZGlzcGxheV9uYW1lGBEgASgJEhYKDmNoYWxsZW5nZV9jb2RlGA0gASgJEjEKBnN0YXR1cxgEIAEoDjIhLmF1dGgudjEuU29jaWFsVmVyaWZpY2F0aW9uU3RhdHVzEjAKDHJlcXVlc3RlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKZXhwaXJlc19hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdmVyaWZpZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhAKCGF0dGVtcHRzGAkgASgFEhIKCmxhc3RfZXJyb3IYCiABKAkSKgoKZXJyb3JfY29kZRgQIAEoDjIWLmF1dGgudjEuQXV0aEVycm9yQ29kZRIuCgp1cGRhdGVkX2F0GA8gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKWAQoeU3Rhcn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mF1dGgudjEuU29jaWFsVmVyaWZpY2F0aW9uUmVhZHlSZXF1ZXN0GiguYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25SZWFkeVJlc3BvbnNlIgASdAoZQ29uZmlybVNvY2lhbFZlcmlmaWNhdGlvbhIpLmF1dGgudjEuQ29uZmlybVNvY2lhbFZlcmlmaWNhdGlvblJlcXVlc3QaKi5hdXRoLnYxLkNvbmZpcm1Tb2NpYWxWZXJpZmljYXRpb25SZXNwb25zZSIAEmIKE1VubGlua1NvY2lhbEFjY291bnQSIy5hdXRoLnYxLlVubGlua1NvY2lhbEFjY291bnRSZXF1ZXN0GiQuYXV0aC52MS5VbmxpbmtTb2NpYWxBY2NvdW50UmVzcG9uc2UiABJoChVHZXRTb2NpYWxWZXJpZmljYXRpb24SJS5hdXRoLnYxLkdldFNvY2lhbFZlcmlmaWNhdGlvblJlcXVlc3QaJi5hdXRoLnYxLkdldFNvY2lhbFZlcmlmaWNhdGlvblJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=", [
|
|
28
32
|
file_auth_v1_auth,
|
|
29
33
|
file_google_protobuf_timestamp,
|
|
30
34
|
file_polyester_api_options
|
|
@@ -65,6 +69,26 @@ const GetSocialVerificationRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v
|
|
|
65
69
|
*/
|
|
66
70
|
const GetSocialVerificationResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_social_verification, 6);
|
|
67
71
|
/**
|
|
72
|
+
* Describes the message auth.v1.ConfirmSocialVerificationRequest.
|
|
73
|
+
* Use `create(ConfirmSocialVerificationRequestSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
const ConfirmSocialVerificationRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_social_verification, 7);
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message auth.v1.ConfirmSocialVerificationResponse.
|
|
78
|
+
* Use `create(ConfirmSocialVerificationResponseSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
const ConfirmSocialVerificationResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_social_verification, 8);
|
|
81
|
+
/**
|
|
82
|
+
* Describes the message auth.v1.UnlinkSocialAccountRequest.
|
|
83
|
+
* Use `create(UnlinkSocialAccountRequestSchema)` to create a new message.
|
|
84
|
+
*/
|
|
85
|
+
const UnlinkSocialAccountRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_social_verification, 9);
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message auth.v1.UnlinkSocialAccountResponse.
|
|
88
|
+
* Use `create(UnlinkSocialAccountResponseSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
const UnlinkSocialAccountResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_social_verification, 10);
|
|
91
|
+
/**
|
|
68
92
|
* Social account provider used for account ownership verification.
|
|
69
93
|
*
|
|
70
94
|
* @generated from enum auth.v1.SocialProvider
|
|
@@ -88,6 +112,13 @@ let SocialProvider = /* @__PURE__ */ function(SocialProvider) {
|
|
|
88
112
|
* @generated from enum value: DISCORD = 2;
|
|
89
113
|
*/
|
|
90
114
|
SocialProvider[SocialProvider["DISCORD"] = 2] = "DISCORD";
|
|
115
|
+
/**
|
|
116
|
+
* Telegram account linking. The user sends the challenge code to the Polyester
|
|
117
|
+
* Telegram bot, then confirms the Telegram account that sent it.
|
|
118
|
+
*
|
|
119
|
+
* @generated from enum value: TELEGRAM = 3;
|
|
120
|
+
*/
|
|
121
|
+
SocialProvider[SocialProvider["TELEGRAM"] = 3] = "TELEGRAM";
|
|
91
122
|
return SocialProvider;
|
|
92
123
|
}({});
|
|
93
124
|
/**
|
|
@@ -143,11 +174,18 @@ let SocialVerificationStatus = /* @__PURE__ */ function(SocialVerificationStatus
|
|
|
143
174
|
*/
|
|
144
175
|
SocialVerificationStatus[SocialVerificationStatus["STATUS_EXPIRED"] = 6] = "STATUS_EXPIRED";
|
|
145
176
|
/**
|
|
146
|
-
* Verification was cancelled.
|
|
177
|
+
* Verification was cancelled, or the linked account was unlinked.
|
|
147
178
|
*
|
|
148
179
|
* @generated from enum value: STATUS_CANCELLED = 7;
|
|
149
180
|
*/
|
|
150
181
|
SocialVerificationStatus[SocialVerificationStatus["STATUS_CANCELLED"] = 7] = "STATUS_CANCELLED";
|
|
182
|
+
/**
|
|
183
|
+
* A provider account submitted the challenge code. The user must confirm that
|
|
184
|
+
* account with ConfirmSocialVerification before it is linked. Telegram only.
|
|
185
|
+
*
|
|
186
|
+
* @generated from enum value: STATUS_AWAITING_CONFIRMATION = 8;
|
|
187
|
+
*/
|
|
188
|
+
SocialVerificationStatus[SocialVerificationStatus["STATUS_AWAITING_CONFIRMATION"] = 8] = "STATUS_AWAITING_CONFIRMATION";
|
|
151
189
|
return SocialVerificationStatus;
|
|
152
190
|
}({});
|
|
153
191
|
/**
|
|
@@ -197,6 +235,6 @@ const SocialVerificationMethodSchema = /*@__PURE__*/ enumDesc(file_auth_v1_socia
|
|
|
197
235
|
*/
|
|
198
236
|
const SocialVerificationService = /*@__PURE__*/ serviceDesc(file_auth_v1_social_verification, 0);
|
|
199
237
|
//#endregion
|
|
200
|
-
export { GetSocialVerificationRequestSchema, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequestSchema, StartSocialVerificationResponseSchema, file_auth_v1_social_verification, social_verification_pb_exports };
|
|
238
|
+
export { ConfirmSocialVerificationRequestSchema, ConfirmSocialVerificationResponseSchema, GetSocialVerificationRequestSchema, GetSocialVerificationResponseSchema, SocialProvider, SocialProviderSchema, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationReadyRequestSchema, SocialVerificationReadyResponseSchema, SocialVerificationSchema, SocialVerificationService, SocialVerificationStatus, SocialVerificationStatusSchema, StartSocialVerificationRequestSchema, StartSocialVerificationResponseSchema, UnlinkSocialAccountRequestSchema, UnlinkSocialAccountResponseSchema, file_auth_v1_social_verification, social_verification_pb_exports };
|
|
201
239
|
|
|
202
240
|
//# sourceMappingURL=social_verification_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
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 { AuthErrorCode } from \"./auth_pb.js\";\nimport { file_auth_v1_auth } from \"./auth_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/social_verification.proto.\n */\nexport const file_auth_v1_social_verification: GenFile = /*@__PURE__*/\n fileDesc(\"CiFhdXRoL3YxL3NvY2lhbF92ZXJpZmljYXRpb24ucHJvdG8SB2F1dGgudjEiiAQKElNvY2lhbFZlcmlmaWNhdGlvbhIKCgJpZBgMIAEoAxIpCghwcm92aWRlchgBIAEoDjIXLmF1dGgudjEuU29jaWFsUHJvdmlkZXISMQoGbWV0aG9kGAsgASgOMiEuYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25NZXRob2QSDgoGaGFuZGxlGAIgASgJEhgKEHByb3ZpZGVyX3VzZXJfaWQYAyABKAkSFgoOY2hhbGxlbmdlX2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zcG9uc2UiABJoChVHZXRTb2NpYWxWZXJpZmljYXRpb24SJS5hdXRoLnYxLkdldFNvY2lhbFZlcmlmaWNhdGlvblJlcXVlc3QaJi5hdXRoLnYxLkdldFNvY2lhbFZlcmlmaWNhdGlvblJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_auth_v1_auth, file_google_protobuf_timestamp, file_polyester_api_options]);\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, the\n * provider default 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 submit according to the verification method.\n * Discord codes are returned only when a challenge is issued. Codes expire\n * 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 * Stable machine-readable error code for the current failed verification.\n * AUTH_UNSPECIFIED when no typed error applies.\n *\n * @generated from field: auth.v1.AuthErrorCode error_code = 16;\n */\n errorCode: AuthErrorCode;\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 for\n * X/Twitter and channel verification is used for Discord.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 3;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle the user claims. Required for X/Twitter and omitted for\n * Discord, where the authenticated bot supplies the provider identity.\n * A leading \"@\" is accepted and removed from X/Twitter handles.\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 * Newly issued challenge code the user must submit according to the\n * 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 * AUTH_RESOURCE_NOT_FOUND means no verification exists; start one first.\n * AUTH_SOCIAL_VERIFICATION_EXPIRED means the challenge window passed; start a new verification, then mark it ready again.\n * AUTH_SOCIAL_VERIFICATION_INVALID_STATE means Ready is not valid in the current state; call GetSocialVerification for the current status.\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 * A failed verification uses error_code for its machine-readable outcome.\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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAa,mCACX,uBAAS,gpFAAgpF;CAAC;CAAmB;CAAgC;AAA0B,CAAC;;;;;AAsH1uF,MAAa,2BACX,0BAAY,kCAAkC,CAAC;;;;;AAsCjD,MAAa,uCACX,0BAAY,kCAAkC,CAAC;;;;;AAoCjD,MAAa,wCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,uCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,wCACX,0BAAY,kCAAkC,CAAC;;;;;AAqBjD,MAAa,qCACX,0BAAY,kCAAkC,CAAC;;;;;AAuBjD,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,4BAoCX,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 { AuthErrorCode } from \"./auth_pb.js\";\nimport { file_auth_v1_auth } from \"./auth_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/social_verification.proto.\n */\nexport const file_auth_v1_social_verification: GenFile = /*@__PURE__*/\n fileDesc(\"CiFhdXRoL3YxL3NvY2lhbF92ZXJpZmljYXRpb24ucHJvdG8SB2F1dGgudjEingQKElNvY2lhbFZlcmlmaWNhdGlvbhIKCgJpZBgMIAEoAxIpCghwcm92aWRlchgBIAEoDjIXLmF1dGgudjEuU29jaWFsUHJvdmlkZXISMQoGbWV0aG9kGAsgASgOMiEuYXV0aC52MS5Tb2NpYWxWZXJpZmljYXRpb25NZXRob2QSDgoGaGFuZGxlGAIgASgJEhgKEHByb3ZpZGVyX3VzZX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naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_auth_v1_auth, file_google_protobuf_timestamp, file_polyester_api_options]);\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, the\n * provider default 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 \"@\". For Telegram, the username of the account that submitted the\n * code; empty when that account has no username.\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 * except for Telegram: while the status is STATUS_AWAITING_CONFIRMATION, it is\n * the numeric user ID of the Telegram account that submitted the code, the\n * value ConfirmSocialVerification takes.\n *\n * @generated from field: string provider_user_id = 3;\n */\n providerUserId: string;\n\n /**\n * Provider display name of the account being verified, for showing it to the\n * user. Telegram only: the account's name, set once the code is submitted.\n * Empty for other providers.\n *\n * @generated from field: string display_name = 17;\n */\n displayName: string;\n\n /**\n * Challenge code the user must submit according to the verification method.\n * Discord and Telegram codes are returned only when a challenge is issued.\n * Codes 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 * Stable machine-readable error code for the current failed verification.\n * AUTH_UNSPECIFIED when no typed error applies.\n *\n * @generated from field: auth.v1.AuthErrorCode error_code = 16;\n */\n errorCode: AuthErrorCode;\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 for\n * X/Twitter, channel verification for Discord and direct message\n * verification for Telegram.\n *\n * @generated from field: auth.v1.SocialVerificationMethod method = 3;\n */\n method: SocialVerificationMethod;\n\n /**\n * Provider handle the user claims. Required for X/Twitter and omitted for\n * Discord and Telegram, where the provider bot supplies the provider identity.\n * A leading \"@\" is accepted and removed from X/Twitter handles.\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 * Newly issued challenge code the user must submit according to the\n * 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 * Link that completes the user action, when the provider has one. Telegram:\n * opening it starts a chat with the Polyester bot that submits the code.\n * Empty for other providers.\n *\n * @generated from field: string action_url = 4;\n */\n actionUrl: string;\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 * ConfirmSocialVerificationRequest links the provider account that submitted\n * the caller's challenge code.\n *\n * @generated from message auth.v1.ConfirmSocialVerificationRequest\n */\nexport type ConfirmSocialVerificationRequest = Message<\"auth.v1.ConfirmSocialVerificationRequest\"> & {\n /**\n * Provider account to confirm. Only TELEGRAM is accepted.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n\n /**\n * Provider user ID the user confirms, as provider_user_id of the verification\n * in STATUS_AWAITING_CONFIRMATION. The request fails when it is not the\n * account that submitted the code, so the user links exactly the account\n * they were shown.\n *\n * @generated from field: string provider_user_id = 2;\n */\n providerUserId: string;\n};\n\n/**\n * Describes the message auth.v1.ConfirmSocialVerificationRequest.\n * Use `create(ConfirmSocialVerificationRequestSchema)` to create a new message.\n */\nexport const ConfirmSocialVerificationRequestSchema: GenMessage<ConfirmSocialVerificationRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 7);\n\n/**\n * ConfirmSocialVerificationResponse returns the verification after the\n * provider account was linked.\n *\n * @generated from message auth.v1.ConfirmSocialVerificationResponse\n */\nexport type ConfirmSocialVerificationResponse = Message<\"auth.v1.ConfirmSocialVerificationResponse\"> & {\n /**\n * Current verification state, STATUS_VERIFIED.\n *\n * @generated from field: auth.v1.SocialVerification verification = 1;\n */\n verification?: SocialVerification | undefined;\n};\n\n/**\n * Describes the message auth.v1.ConfirmSocialVerificationResponse.\n * Use `create(ConfirmSocialVerificationResponseSchema)` to create a new message.\n */\nexport const ConfirmSocialVerificationResponseSchema: GenMessage<ConfirmSocialVerificationResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 8);\n\n/**\n * UnlinkSocialAccountRequest removes the caller's linked provider account, or\n * cancels a link in progress.\n *\n * @generated from message auth.v1.UnlinkSocialAccountRequest\n */\nexport type UnlinkSocialAccountRequest = Message<\"auth.v1.UnlinkSocialAccountRequest\"> & {\n /**\n * Provider account to unlink. Only TELEGRAM is accepted.\n *\n * @generated from field: auth.v1.SocialProvider provider = 1;\n */\n provider: SocialProvider;\n};\n\n/**\n * Describes the message auth.v1.UnlinkSocialAccountRequest.\n * Use `create(UnlinkSocialAccountRequestSchema)` to create a new message.\n */\nexport const UnlinkSocialAccountRequestSchema: GenMessage<UnlinkSocialAccountRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 9);\n\n/**\n * UnlinkSocialAccountResponse returns the verification after unlinking.\n *\n * @generated from message auth.v1.UnlinkSocialAccountResponse\n */\nexport type UnlinkSocialAccountResponse = Message<\"auth.v1.UnlinkSocialAccountResponse\"> & {\n /**\n * Current verification state, STATUS_CANCELLED. Absent when no verification\n * was ever started for the 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.UnlinkSocialAccountResponse.\n * Use `create(UnlinkSocialAccountResponseSchema)` to create a new message.\n */\nexport const UnlinkSocialAccountResponseSchema: GenMessage<UnlinkSocialAccountResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_social_verification, 10);\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 * Telegram account linking. The user sends the challenge code to the Polyester\n * Telegram bot, then confirms the Telegram account that sent it.\n *\n * @generated from enum value: TELEGRAM = 3;\n */\n TELEGRAM = 3,\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, or the linked account was unlinked.\n *\n * @generated from enum value: STATUS_CANCELLED = 7;\n */\n STATUS_CANCELLED = 7,\n\n /**\n * A provider account submitted the challenge code. The user must confirm that\n * account with ConfirmSocialVerification before it is linked. Telegram only.\n *\n * @generated from enum value: STATUS_AWAITING_CONFIRMATION = 8;\n */\n STATUS_AWAITING_CONFIRMATION = 8,\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 * For Telegram, open action_url to send the code to the Polyester bot, then\n * confirm the account with ConfirmSocialVerification.\n * AUTH_SOCIAL_VERIFICATION_INVALID_STATE for Telegram means a Telegram account is already linked; unlink it first.\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 * AUTH_RESOURCE_NOT_FOUND means no verification exists; start one first.\n * AUTH_SOCIAL_VERIFICATION_EXPIRED means the challenge window passed; start a new verification, then mark it ready again.\n * AUTH_SOCIAL_VERIFICATION_INVALID_STATE means Ready is not valid in the current state; call GetSocialVerification for the current status.\n * Telegram linking does not use Ready and always answers AUTH_SOCIAL_VERIFICATION_INVALID_STATE.\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 * Link the Telegram account that submitted the caller's challenge code. A\n * linked Telegram account becomes a channel to the account, so the caller\n * needs enrolled MFA and a fresh, single-use step-up proof in the\n * X-Auth-Step-Up header, obtained by completing an MFA challenge for fresh\n * step-up. The link consumes the proof; a retried confirmation of an existing\n * link needs no new proof.\n * AUTH_RESOURCE_NOT_FOUND means no verification exists; start one first.\n * AUTH_SOCIAL_VERIFICATION_EXPIRED means the challenge window passed; start a new verification.\n * AUTH_SOCIAL_VERIFICATION_INVALID_STATE means no submitted account awaits confirmation, or provider_user_id is not the account that submitted the code.\n * AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED means that Telegram account is linked to another Polyester account; the verification fails.\n * AUTH_MFA_NOT_ENROLLED means enroll MFA first; AUTH_STEP_UP_REQUIRED and AUTH_STEP_UP_PROOF_UNAVAILABLE mean complete a new fresh step-up and retry.\n *\n * @generated from rpc auth.v1.SocialVerificationService.ConfirmSocialVerification\n */\n confirmSocialVerification: {\n methodKind: \"unary\";\n input: typeof ConfirmSocialVerificationRequestSchema;\n output: typeof ConfirmSocialVerificationResponseSchema;\n },\n /**\n * Unlink the caller's Telegram account, or cancel a Telegram link in progress.\n * Unlinking again succeeds and changes nothing. To link again, start a new\n * verification.\n *\n * @generated from rpc auth.v1.SocialVerificationService.UnlinkSocialAccount\n */\n unlinkSocialAccount: {\n methodKind: \"unary\";\n input: typeof UnlinkSocialAccountRequestSchema;\n output: typeof UnlinkSocialAccountResponseSchema;\n },\n /**\n * Get current verification status for the caller.\n * A failed verification uses error_code for its machine-readable outcome.\n * An API key needs READ_SOCIAL_VERIFICATION and must be scoped to the main\n * account. It reads the status only: provider, method, handle, status, and\n * verification time, with every other field left empty.\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":";;;;;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;;;;CAQA,yBAAA,yBAAA,kCAAA,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,4BA2EX,0BAAY,kCAAkC,CAAC"}
|
|
@@ -150,14 +150,17 @@ declare const GetEffectiveSubaccountPermissionsRequestSchema: GenMessage<GetEffe
|
|
|
150
150
|
*/
|
|
151
151
|
type GetEffectiveSubaccountPermissionsResponse = Message<"auth.v1.GetEffectiveSubaccountPermissionsResponse"> & {
|
|
152
152
|
/**
|
|
153
|
-
* Current role of the caller on the sub-account.
|
|
153
|
+
* Current role of the caller on the sub-account. For an API key this is
|
|
154
|
+
* OWNER: keys belong to the main account that owns the sub-account.
|
|
154
155
|
*
|
|
155
156
|
* @generated from field: auth.v1.SubaccountRole role = 1;
|
|
156
157
|
*/
|
|
157
158
|
role: SubaccountRole;
|
|
158
159
|
/**
|
|
159
|
-
* Permissions allowed by the role and current sub-account policy.
|
|
160
|
-
*
|
|
160
|
+
* Permissions allowed by the role and current sub-account policy. For an API
|
|
161
|
+
* key, only those its API-key policy also grants and that API keys can use.
|
|
162
|
+
* Resource state, MFA, limits, and other request context may still deny an
|
|
163
|
+
* operation.
|
|
161
164
|
*
|
|
162
165
|
* @generated from field: repeated auth.v1.SubaccountPermission permissions = 2;
|
|
163
166
|
*/
|
|
@@ -1851,7 +1854,10 @@ declare const ActivityEventSourceSchema: GenEnum<ActivityEventSource>;
|
|
|
1851
1854
|
*/
|
|
1852
1855
|
declare const SubaccountViewService: GenService<{
|
|
1853
1856
|
/**
|
|
1854
|
-
* Aggregate commonly-needed read data for a sub-account dashboard page.
|
|
1857
|
+
* Aggregate commonly-needed read data for a sub-account dashboard page. An
|
|
1858
|
+
* API key needs READ_SUBACCOUNTS within its scope; it gets the members and
|
|
1859
|
+
* invites expansions only with READ_SUBACCOUNT_MEMBERS and
|
|
1860
|
+
* READ_SUBACCOUNT_INVITES, and never the API-key or policy expansions.
|
|
1855
1861
|
*
|
|
1856
1862
|
* @generated from rpc auth.v1.SubaccountViewService.GetSubaccount
|
|
1857
1863
|
*/
|
|
@@ -1861,7 +1867,8 @@ declare const SubaccountViewService: GenService<{
|
|
|
1861
1867
|
output: typeof GetSubaccountResponseSchema;
|
|
1862
1868
|
};
|
|
1863
1869
|
/**
|
|
1864
|
-
* List audit and activity events for a sub-account.
|
|
1870
|
+
* List audit and activity events for a sub-account. An API key needs
|
|
1871
|
+
* READ_SUBACCOUNT_ACTIVITY within its scope.
|
|
1865
1872
|
*
|
|
1866
1873
|
* @generated from rpc auth.v1.SubaccountViewService.ListSubaccountActivity
|
|
1867
1874
|
*/
|
|
@@ -1878,7 +1885,8 @@ declare const SubaccountViewService: GenService<{
|
|
|
1878
1885
|
*/
|
|
1879
1886
|
declare const SubaccountService: GenService<{
|
|
1880
1887
|
/**
|
|
1881
|
-
* List sub-accounts owned by or shared with the caller.
|
|
1888
|
+
* List sub-accounts owned by or shared with the caller. An API key needs
|
|
1889
|
+
* READ_SUBACCOUNTS and lists only the sub-accounts within its scope.
|
|
1882
1890
|
*
|
|
1883
1891
|
* @generated from rpc auth.v1.SubaccountService.ListSubaccounts
|
|
1884
1892
|
*/
|
|
@@ -1931,7 +1939,8 @@ declare const SubaccountService: GenService<{
|
|
|
1931
1939
|
output: typeof SetSubaccountMemberMFARequirementResponseSchema;
|
|
1932
1940
|
};
|
|
1933
1941
|
/**
|
|
1934
|
-
* List current members for a sub-account visible to any current member.
|
|
1942
|
+
* List current members for a sub-account visible to any current member. An
|
|
1943
|
+
* API key needs READ_SUBACCOUNT_MEMBERS within its scope.
|
|
1935
1944
|
*
|
|
1936
1945
|
* @generated from rpc auth.v1.SubaccountService.ListSubaccountMembers
|
|
1937
1946
|
*/
|
|
@@ -1941,7 +1950,8 @@ declare const SubaccountService: GenService<{
|
|
|
1941
1950
|
output: typeof ListSubaccountMembersResponseSchema;
|
|
1942
1951
|
};
|
|
1943
1952
|
/**
|
|
1944
|
-
* Remove a member from a sub-account (owner/admin only).
|
|
1953
|
+
* Remove a member from a sub-account (owner/admin only). The member's
|
|
1954
|
+
* assistant API keys on the sub-account are revoked with the removal.
|
|
1945
1955
|
*
|
|
1946
1956
|
* @generated from rpc auth.v1.SubaccountService.RemoveSubaccountMember
|
|
1947
1957
|
*/
|
|
@@ -1951,7 +1961,9 @@ declare const SubaccountService: GenService<{
|
|
|
1951
1961
|
output: typeof RemoveSubaccountMemberResponseSchema;
|
|
1952
1962
|
};
|
|
1953
1963
|
/**
|
|
1954
|
-
* Update an existing sub-account member's role (owner/admin only).
|
|
1964
|
+
* Update an existing sub-account member's role (owner/admin only). A role
|
|
1965
|
+
* that cannot manage API keys revokes the member's assistant API keys on the
|
|
1966
|
+
* sub-account with the change.
|
|
1955
1967
|
*
|
|
1956
1968
|
* @generated from rpc auth.v1.SubaccountService.UpdateSubaccountMemberRole
|
|
1957
1969
|
*/
|
|
@@ -1972,6 +1984,8 @@ declare const SubaccountService: GenService<{
|
|
|
1972
1984
|
};
|
|
1973
1985
|
/**
|
|
1974
1986
|
* List incoming invitations and invitations for administered sub-accounts.
|
|
1987
|
+
* An API key needs READ_SUBACCOUNT_INVITES and lists only the outgoing
|
|
1988
|
+
* invitations of the sub-accounts within its scope.
|
|
1975
1989
|
*
|
|
1976
1990
|
* @generated from rpc auth.v1.SubaccountService.ListSubaccountInvites
|
|
1977
1991
|
*/
|
|
@@ -2010,6 +2024,8 @@ declare const SubaccountRoleService: GenService<{
|
|
|
2010
2024
|
};
|
|
2011
2025
|
/**
|
|
2012
2026
|
* Return the authenticated caller's effective permissions for one sub-account.
|
|
2027
|
+
* An API key needs READ_SUBACCOUNT_PERMISSIONS and gets what the key itself
|
|
2028
|
+
* may do on a sub-account within its scope.
|
|
2013
2029
|
*
|
|
2014
2030
|
* @generated from rpc auth.v1.SubaccountRoleService.GetEffectiveSubaccountPermissions
|
|
2015
2031
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subaccounts_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/subaccounts_pb.ts"],"mappings":";;;;;;;;;;;;cAoBa,0BAA0B;;;;;;KAQ3B,iCAAiC;;;;;;EAM3C,YAAY;;;;;;EAOZ;;;;;;EAOA;;;;;;;EAQA,cAAc;;;;;;cAOH,sCAAsC,WAAW;;;;;;KAQlD,2BAA2B;;;;;;EAMrC,MAAM;;;;;;EAON;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,aAAa;;;;;;cAOF,gCAAgC,WAAW;;;;;;KAQ5C,6BAA6B;;;;;cAO5B,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8B;;;;;;EAMxC,aAAa;;;;;;EAOb,OAAO;;;;;;cAOI,mCAAmC,WAAW;;;;;;KAQ/C,2CAA2C;;;;;;EAMrD;;;;;;cAOW,gDAAgD,WAAW;;;;;;KAQ5D,4CAA4C
|
|
1
|
+
{"version":3,"file":"subaccounts_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/subaccounts_pb.ts"],"mappings":";;;;;;;;;;;;cAoBa,0BAA0B;;;;;;KAQ3B,iCAAiC;;;;;;EAM3C,YAAY;;;;;;EAOZ;;;;;;EAOA;;;;;;;EAQA,cAAc;;;;;;cAOH,sCAAsC,WAAW;;;;;;KAQlD,2BAA2B;;;;;;EAMrC,MAAM;;;;;;EAON;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,aAAa;;;;;;cAOF,gCAAgC,WAAW;;;;;;KAQ5C,6BAA6B;;;;;cAO5B,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8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