@polyester/sdk 0.16.0 → 0.18.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 +22 -0
- package/dist/gen/auth/v1/auth_pb.d.ts +5 -3
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +1 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +90 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js +20 -2
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +35 -6
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js +34 -2
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +72 -16
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +73 -9
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +139 -15
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +139 -3
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/services/accounts/accounts.codecs.js +6 -1
- package/dist/services/accounts/accounts.codecs.js.map +1 -1
- package/dist/services/accounts/accounts.schemas.d.ts +2 -2
- package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
- package/dist/services/accounts/accounts.schemas.js +4 -3
- package/dist/services/accounts/accounts.schemas.js.map +1 -1
- package/dist/services/auth/auth.d.ts +1 -1
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +2 -2
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.d.ts +9 -1
- package/dist/services/auth/profile/profile.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.js +16 -1
- package/dist/services/auth/profile/profile.js.map +1 -1
- package/dist/services/auth/profile/profile.schemas.d.ts +18 -1
- package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.schemas.js +12 -2
- package/dist/services/auth/profile/profile.schemas.js.map +1 -1
- package/dist/services/auth/profile/profile.types.d.ts +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +9 -9
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +4 -4
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +8 -8
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +5 -4
- 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.codecs.js +20 -1
- package/dist/services/orders/orders.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.codecs.js +16 -9
- package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +1 -1
- package/dist/services/subaccounts/subaccounts.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -12
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +4 -8
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +18 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat(orders): expose typed cancellation submission statuses across order cancellation methods. ([#108](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/108))
|
|
8
|
+
|
|
9
|
+
- feat(accounts): expose typed resolved-account kinds from account resolution results. ([#108](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/108))
|
|
10
|
+
|
|
11
|
+
- feat(subaccounts): encode typed invitation direction filters for invitation reads. ([#108](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/108))
|
|
12
|
+
|
|
13
|
+
## 0.17.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- feat(auth)!: expose public API key identifiers as `ak_` handles in caller introspection. ([#105](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/105))
|
|
18
|
+
|
|
19
|
+
- feat(subaccounts): expose typed lifecycle statuses for subaccount reads and updates. ([#104](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/104))
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- feat(profile): add generated username offer and claim methods for onboarding. ([#105](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/105))
|
|
24
|
+
|
|
3
25
|
## 0.16.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -182,11 +182,13 @@ type MeResponse = Message<"auth.v1.MeResponse"> & {
|
|
|
182
182
|
*/
|
|
183
183
|
accountId: bigint;
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Stable public identifier of the API key that authenticated this request,
|
|
186
|
+
* formatted as "ak_" followed by 32 lowercase hexadecimal characters.
|
|
187
|
+
* Absent when the request was not authenticated with an API key.
|
|
186
188
|
*
|
|
187
|
-
* @generated from field: optional
|
|
189
|
+
* @generated from field: optional string api_key_id = 10;
|
|
188
190
|
*/
|
|
189
|
-
apiKeyId?:
|
|
191
|
+
apiKeyId?: string | undefined;
|
|
190
192
|
/**
|
|
191
193
|
* Optional current username for the root account (empty if not set).
|
|
192
194
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"mappings":";;;;;;;;;;cAea,mBAAmB;;;;;;;KASpB,kBAAkB;;;;;;EAM5B;;;;;;cAOW,uBAAuB,WAAW;;;;;;KAQnC,mBAAmB;;;;;;;EAO7B;;;;;;EAOA,YAAY;;;;;;cAOD,wBAAwB,WAAW;;;;;;;KASpC,yBAAyB;;;;;;;EAOnC;;;;;;EAOA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;EASA;;;;;;EAOA;;;;;;cAOW,8BAA8B,WAAW;;;;;;;KAS1C,0BAA0B;;;;;;EAMpC;;;;;;EAOA,YAAY;;;;;;EAOZ;;;;;;EAOA;;;;;;EAOA,UAAU;;;;;;cAOC,+BAA+B,WAAW;;;;;;;KAS3C,YAAY;;;;;cAOX,iBAAiB,WAAW;;;;;;KAQ7B,aAAa;;;;;;EAMvB;;;;;;EAOA
|
|
1
|
+
{"version":3,"file":"auth_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"mappings":";;;;;;;;;;cAea,mBAAmB;;;;;;;KASpB,kBAAkB;;;;;;EAM5B;;;;;;cAOW,uBAAuB,WAAW;;;;;;KAQnC,mBAAmB;;;;;;;EAO7B;;;;;;EAOA,YAAY;;;;;;cAOD,wBAAwB,WAAW;;;;;;;KASpC,yBAAyB;;;;;;;EAOnC;;;;;;EAOA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;EASA;;;;;;EAOA;;;;;;cAOW,8BAA8B,WAAW;;;;;;;KAS1C,0BAA0B;;;;;;EAMpC;;;;;;EAOA,YAAY;;;;;;EAOZ;;;;;;EAOA;;;;;;EAOA,UAAU;;;;;;cAOC,+BAA+B,WAAW;;;;;;;KAS3C,YAAY;;;;;cAOX,iBAAiB,WAAW;;;;;;KAQ7B,aAAa;;;;;;EAMvB;;;;;;;;EASA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA,UAAU;;;;;;cAOC,kBAAkB,WAAW;;;;;;KAQ9B,kBAAkB;;;;;;EAM5B,MAAM;;;;;;EAON;;;;;;cAOW,uBAAuB,WAAW;;;;;;aAQnC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,qBAAqB,QAAQ;;;;;;cAQ7B,aAAa;;;;;;EAMxB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -19,7 +19,7 @@ var auth_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
19
|
/**
|
|
20
20
|
* Describes the file auth/v1/auth.proto.
|
|
21
21
|
*/
|
|
22
|
-
const file_auth_v1_auth = /*@__PURE__*/ fileDesc("
|
|
22
|
+
const file_auth_v1_auth = /*@__PURE__*/ fileDesc("ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEiMgoPR2V0Tm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SF9NRkFfUEFTU0tFWV9DUkVERU5USUFMX0lOVkFMSUQQHBIiCh5BVVRIX01GQV9QQVNTS0VZX1ZFUklGWV9GQUlMRUQQHRInCiNBVVRIX01GQV9FTlJPTExNRU5UX0JJTkRJTkdfSU5WQUxJRBAeEhkKFUFVVEhfU1RFUF9VUF9SRVFVSVJFRBAfEiIKHkFVVEhfU1RFUF9VUF9QUk9PRl9VTkFWQUlMQUJMRRAgEiAKHEFVVEhfU1RFUF9VUF9BTFJFQURZX0NMQUlNRUQQIRIWChJBVVRIX1BPTElDWV9JTl9VU0UQIhIWChJBVVRIX1BPTElDWV9MT0NLRUQQIxIeChpBVVRIX1BPTElDWV9TQ09QRV9NSVNNQVRDSBAkEhoKFkFVVEhfUkVWSVNJT05fQ09ORkxJQ1QQJRIfChtBVVRIX01GQV9FTEVWQVRJT05fUkVRVUlSRUQQJhIhCh1BVVRIX01GQV9MQVNUX0ZBQ1RPUl9SRVFVSVJFRBAnEhcKE0FVVEhfSU5URVJOQUxfRVJST1IQKDLZAQoLQXV0aFNlcnZpY2USQQoIR2V0Tm9uY2USGC5hdXRoLnYxLkdldE5vbmNlUmVxdWVzdBoZLmF1dGgudjEuR2V0Tm9uY2VSZXNwb25zZSIAElYKD0xvZ2luV2l0aFdhbGxldBIfLmF1dGgudjEuTG9naW5XaXRoV2FsbGV0UmVxdWVzdBogLmF1dGgudjEuTG9naW5XaXRoV2FsbGV0UmVzcG9uc2UiABIvCgJNZRISLmF1dGgudjEuTWVSZXF1ZXN0GhMuYXV0aC52MS5NZVJlc3BvbnNlIgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z", [file_auth_v1_mfa, file_google_protobuf_timestamp]);
|
|
23
23
|
/**
|
|
24
24
|
* Describes the message auth.v1.GetNonceRequest.
|
|
25
25
|
* Use `create(GetNonceRequestSchema)` to create a new message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.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 { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\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/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEiMgoPR2V0Tm9uY2VSZXF1ZXN0Eh8KFXNtYXJ0X2FjY291bnRfYWRkcmVzcxgBIAEoCUIAIlEKEEdldE5vbmNlUmVzcG9uc2USDQoFbm9uY2UYASABKAkSLgoKZXhwaXJlc19hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiwAEKFkxvZ2luV2l0aFdhbGxldFJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASDwoFbm9uY2UYAiABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c2VyX2FnZW50GAQgASgJQgASDAoCaXAYBSABKAlCABIgChZwcmltYXJ5X3dhbGxldF9hZGRyZXNzGAYgASgJQgASGQoPd2FsbGV0X3Byb3ZpZGVyGAcgASgJQgAirAEKF0xvZ2luV2l0aFdhbGxldFJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRIuCgpleHBpcmVzX2F0G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UQQJxIXChNBVVRIX0lOVEVSTkFMX0VSUk9SECgy2QEKC0F1dGhTZXJ2aWNlEkEKCEdldE5vbmNlEhguYXV0aC52MS5HZXROb25jZVJlcXVlc3QaGS5hdXRoLnYxLkdldE5vbmNlUmVzcG9uc2UiABJWCg9Mb2dpbldpdGhXYWxsZXQSHy5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlcXVlc3QaIC5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlc3BvbnNlIgASLwoCTWUSEi5hdXRoLnYxLk1lUmVxdWVzdBoTLmF1dGgudjEuTWVSZXNwb25zZSIAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_auth_v1_mfa, file_google_protobuf_timestamp]);\n\n/**\n * GetNonceRequest requests a short-lived login nonce for a smart-account\n * address. The wallet must sign a message containing this nonce before login.\n *\n * @generated from message auth.v1.GetNonceRequest\n */\nexport type GetNonceRequest = Message<\"auth.v1.GetNonceRequest\"> & {\n /**\n * Smart-account EVM address, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n};\n\n/**\n * Describes the message auth.v1.GetNonceRequest.\n * Use `create(GetNonceRequestSchema)` to create a new message.\n */\nexport const GetNonceRequestSchema: GenMessage<GetNonceRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * GetNonceResponse contains the nonce that must be signed for wallet login.\n *\n * @generated from message auth.v1.GetNonceResponse\n */\nexport type GetNonceResponse = Message<\"auth.v1.GetNonceResponse\"> & {\n /**\n * Random login nonce. The nonce is single-purpose and is replaced by each new\n * nonce request for the same smart-account address.\n *\n * @generated from field: string nonce = 1;\n */\n nonce: string;\n\n /**\n * Time in UTC when the nonce expires. Login nonces expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetNonceResponse.\n * Use `create(GetNonceResponseSchema)` to create a new message.\n */\nexport const GetNonceResponseSchema: GenMessage<GetNonceResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using a signed\n * nonce.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address that produced the signature, formatted as 0x plus\n * 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Nonce returned by GetNonce. The nonce must be unused and not expired.\n *\n * @generated from field: string nonce = 2;\n */\n nonce: string;\n\n /**\n * Signature over the canonical login message containing the nonce. Maximum\n * length is 8192 characters to support universal wallet signatures.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional primary wallet address that controls this smart account, formatted\n * as 0x plus 40 hex characters. This value is metadata and is not used for\n * signature verification.\n *\n * @generated from field: string primary_wallet_address = 6;\n */\n primaryWalletAddress: string;\n\n /**\n * Optional provider hint for the primary wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * When present, indicates the request is authenticated via an API key.\n *\n * @generated from field: optional fixed64 api_key_id = 10;\n */\n apiKeyId?: bigint | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected internal failure prevented the auth mutation from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * AuthService manages wallet login and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Get a short-lived login nonce.\n *\n * @generated from rpc auth.v1.AuthService.GetNonce\n */\n getNonce: {\n methodKind: \"unary\";\n input: typeof GetNonceRequestSchema;\n output: typeof GetNonceResponseSchema;\n },\n /**\n * Verify a signed nonce and issue an access token.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA,MAAa,oBACX,uBAAS,ojGAAojG,CAAC,kBAAkB,8BAA8B,CAAC;;;;;AAqBjnG,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AA4BlC,MAAa,yBACX,0BAAY,mBAAmB,CAAC;;;;;AAqElC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAiDlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;AAelC,MAAa,kBACX,0BAAY,mBAAmB,CAAC;;;;;AAiDlC,MAAa,mBACX,0BAAY,mBAAmB,CAA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BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,iCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,MAAa,cAgCX,0BAAY,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.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 { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\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/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEiMgoPR2V0Tm9uY2VSZXF1ZXN0Eh8KFXNtYXJ0X2FjY291bnRfYWRkcmVzcxgBIAEoCUIAIlEKEEdldE5vbmNlUmVzcG9uc2USDQoFbm9uY2UYASABKAkSLgo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FTlJPTExNRU5UX0JJTkRJTkdfSU5WQUxJRBAeEhkKFUFVVEhfU1RFUF9VUF9SRVFVSVJFRBAfEiIKHkFVVEhfU1RFUF9VUF9QUk9PRl9VTkFWQUlMQUJMRRAgEiAKHEFVVEhfU1RFUF9VUF9BTFJFQURZX0NMQUlNRUQQIRIWChJBVVRIX1BPTElDWV9JTl9VU0UQIhIWChJBVVRIX1BPTElDWV9MT0NLRUQQIxIeChpBVVRIX1BPTElDWV9TQ09QRV9NSVNNQVRDSBAkEhoKFkFVVEhfUkVWSVNJT05fQ09ORkxJQ1QQJRIfChtBVVRIX01GQV9FTEVWQVRJT05fUkVRVUlSRUQQJhIhCh1BVVRIX01GQV9MQVNUX0ZBQ1RPUl9SRVFVSVJFRBAnEhcKE0FVVEhfSU5URVJOQUxfRVJST1IQKDLZAQoLQXV0aFNlcnZpY2USQQoIR2V0Tm9uY2USGC5hdXRoLnYxLkdldE5vbmNlUmVxdWVzdBoZLmF1dGgudjEuR2V0Tm9uY2VSZXNwb25zZSIAElYKD0xvZ2luV2l0aFdhbGxldBIfLmF1dGgudjEuTG9naW5XaXRoV2FsbGV0UmVxdWVzdBogLmF1dGgudjEuTG9naW5XaXRoV2FsbGV0UmVzcG9uc2UiABIvCgJNZRISLmF1dGgudjEuTWVSZXF1ZXN0GhMuYXV0aC52MS5NZVJlc3BvbnNlIgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [file_auth_v1_mfa, file_google_protobuf_timestamp]);\n\n/**\n * GetNonceRequest requests a short-lived login nonce for a smart-account\n * address. The wallet must sign a message containing this nonce before login.\n *\n * @generated from message auth.v1.GetNonceRequest\n */\nexport type GetNonceRequest = Message<\"auth.v1.GetNonceRequest\"> & {\n /**\n * Smart-account EVM address, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n};\n\n/**\n * Describes the message auth.v1.GetNonceRequest.\n * Use `create(GetNonceRequestSchema)` to create a new message.\n */\nexport const GetNonceRequestSchema: GenMessage<GetNonceRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * GetNonceResponse contains the nonce that must be signed for wallet login.\n *\n * @generated from message auth.v1.GetNonceResponse\n */\nexport type GetNonceResponse = Message<\"auth.v1.GetNonceResponse\"> & {\n /**\n * Random login nonce. The nonce is single-purpose and is replaced by each new\n * nonce request for the same smart-account address.\n *\n * @generated from field: string nonce = 1;\n */\n nonce: string;\n\n /**\n * Time in UTC when the nonce expires. Login nonces expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetNonceResponse.\n * Use `create(GetNonceResponseSchema)` to create a new message.\n */\nexport const GetNonceResponseSchema: GenMessage<GetNonceResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using a signed\n * nonce.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address that produced the signature, formatted as 0x plus\n * 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Nonce returned by GetNonce. The nonce must be unused and not expired.\n *\n * @generated from field: string nonce = 2;\n */\n nonce: string;\n\n /**\n * Signature over the canonical login message containing the nonce. Maximum\n * length is 8192 characters to support universal wallet signatures.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional primary wallet address that controls this smart account, formatted\n * as 0x plus 40 hex characters. This value is metadata and is not used for\n * signature verification.\n *\n * @generated from field: string primary_wallet_address = 6;\n */\n primaryWalletAddress: string;\n\n /**\n * Optional provider hint for the primary wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Stable public identifier of the API key that authenticated this request,\n * formatted as \"ak_\" followed by 32 lowercase hexadecimal characters.\n * Absent when the request was not authenticated with an API key.\n *\n * @generated from field: optional string api_key_id = 10;\n */\n apiKeyId?: string | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected internal failure prevented the auth mutation from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * AuthService manages wallet login and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Get a short-lived login nonce.\n *\n * @generated from rpc auth.v1.AuthService.GetNonce\n */\n getNonce: {\n methodKind: \"unary\";\n input: typeof GetNonceRequestSchema;\n output: typeof GetNonceResponseSchema;\n },\n /**\n * Verify a signed nonce and issue an access token.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA,MAAa,oBACX,uBAAS,ojGAAojG,CAAC,kBAAkB,8BAA8B,CAAC;;;;;AAqBjnG,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AA4BlC,MAAa,yBACX,0BAAY,mBAAmB,CAAC;;;;;AAqElC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAiDlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;AAelC,MAAa,kBACX,0BAAY,mBAAmB,CAAC;;;;;AAmDlC,MAAa,mBACX,0BAAY,mBAAmB,CAAC;;;;;AA2BlC,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;;AAOlC,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,sBAAA,KAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,KAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,0BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,8BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,6BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,4CAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,uCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,uBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,8BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,0BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,+BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,oCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,gCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,4BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,iCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,MAAa,cAgCX,0BAAY,mBAAmB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Message } from "@bufbuild/protobuf";
|
|
|
2
2
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
4
|
declare namespace profile_pb_d_exports {
|
|
5
|
-
export { AccountIdentity, AccountIdentitySchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile };
|
|
5
|
+
export { AccountIdentity, AccountIdentitySchema, ClaimGeneratedUsernameRequest, ClaimGeneratedUsernameRequestSchema, GenerateUsernameOptionsRequest, GenerateUsernameOptionsRequestSchema, GenerateUsernameOptionsResponse, GenerateUsernameOptionsResponseSchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile };
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file auth/v1/profile.proto.
|
|
@@ -285,6 +285,72 @@ type GetUsernameHistoryResponse = Message<"auth.v1.GetUsernameHistoryResponse">
|
|
|
285
285
|
* Use `create(GetUsernameHistoryResponseSchema)` to create a new message.
|
|
286
286
|
*/
|
|
287
287
|
declare const GetUsernameHistoryResponseSchema: GenMessage<GetUsernameHistoryResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* GenerateUsernameOptionsRequest requests a fresh set of generated usernames.
|
|
290
|
+
*
|
|
291
|
+
* @generated from message auth.v1.GenerateUsernameOptionsRequest
|
|
292
|
+
*/
|
|
293
|
+
type GenerateUsernameOptionsRequest = Message<"auth.v1.GenerateUsernameOptionsRequest"> & {};
|
|
294
|
+
/**
|
|
295
|
+
* Describes the message auth.v1.GenerateUsernameOptionsRequest.
|
|
296
|
+
* Use `create(GenerateUsernameOptionsRequestSchema)` to create a new message.
|
|
297
|
+
*/
|
|
298
|
+
declare const GenerateUsernameOptionsRequestSchema: GenMessage<GenerateUsernameOptionsRequest>;
|
|
299
|
+
/**
|
|
300
|
+
* GenerateUsernameOptionsResponse contains five generated usernames that the
|
|
301
|
+
* caller may claim before the offer expires.
|
|
302
|
+
*
|
|
303
|
+
* @generated from message auth.v1.GenerateUsernameOptionsResponse
|
|
304
|
+
*/
|
|
305
|
+
type GenerateUsernameOptionsResponse = Message<"auth.v1.GenerateUsernameOptionsResponse"> & {
|
|
306
|
+
/**
|
|
307
|
+
* Five distinct generated usernames available when this offer was created.
|
|
308
|
+
*
|
|
309
|
+
* @generated from field: repeated string usernames = 1;
|
|
310
|
+
*/
|
|
311
|
+
usernames: string[];
|
|
312
|
+
/**
|
|
313
|
+
* Opaque proof required to claim one of the returned usernames.
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: string offer_token = 2;
|
|
316
|
+
*/
|
|
317
|
+
offerToken: string;
|
|
318
|
+
/**
|
|
319
|
+
* Time in UTC after which this offer can no longer be claimed.
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 3;
|
|
322
|
+
*/
|
|
323
|
+
expiresAt?: Timestamp | undefined;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Describes the message auth.v1.GenerateUsernameOptionsResponse.
|
|
327
|
+
* Use `create(GenerateUsernameOptionsResponseSchema)` to create a new message.
|
|
328
|
+
*/
|
|
329
|
+
declare const GenerateUsernameOptionsResponseSchema: GenMessage<GenerateUsernameOptionsResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* ClaimGeneratedUsernameRequest selects one username from a generated offer.
|
|
332
|
+
*
|
|
333
|
+
* @generated from message auth.v1.ClaimGeneratedUsernameRequest
|
|
334
|
+
*/
|
|
335
|
+
type ClaimGeneratedUsernameRequest = Message<"auth.v1.ClaimGeneratedUsernameRequest"> & {
|
|
336
|
+
/**
|
|
337
|
+
* Opaque proof returned with the generated username options.
|
|
338
|
+
*
|
|
339
|
+
* @generated from field: string offer_token = 1;
|
|
340
|
+
*/
|
|
341
|
+
offerToken: string;
|
|
342
|
+
/**
|
|
343
|
+
* Zero-based position in the five returned username options.
|
|
344
|
+
*
|
|
345
|
+
* @generated from field: uint32 option_index = 2;
|
|
346
|
+
*/
|
|
347
|
+
optionIndex: number;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Describes the message auth.v1.ClaimGeneratedUsernameRequest.
|
|
351
|
+
* Use `create(ClaimGeneratedUsernameRequestSchema)` to create a new message.
|
|
352
|
+
*/
|
|
353
|
+
declare const ClaimGeneratedUsernameRequestSchema: GenMessage<ClaimGeneratedUsernameRequest>;
|
|
288
354
|
/**
|
|
289
355
|
* High-level error codes for profile domain errors (ProfileService).
|
|
290
356
|
*
|
|
@@ -364,7 +430,29 @@ declare const ProfileService: GenService<{
|
|
|
364
430
|
input: typeof GetUsernameHistoryRequestSchema;
|
|
365
431
|
output: typeof GetUsernameHistoryResponseSchema;
|
|
366
432
|
};
|
|
433
|
+
/**
|
|
434
|
+
* Generate five random username options for an account that has never
|
|
435
|
+
* claimed a username. Calling this method again returns a fresh set.
|
|
436
|
+
*
|
|
437
|
+
* @generated from rpc auth.v1.ProfileService.GenerateUsernameOptions
|
|
438
|
+
*/
|
|
439
|
+
generateUsernameOptions: {
|
|
440
|
+
methodKind: "unary";
|
|
441
|
+
input: typeof GenerateUsernameOptionsRequestSchema;
|
|
442
|
+
output: typeof GenerateUsernameOptionsResponseSchema;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Claim one username by its position in a valid generated offer. The
|
|
446
|
+
* selected value comes from the offer and cannot be supplied directly.
|
|
447
|
+
*
|
|
448
|
+
* @generated from rpc auth.v1.ProfileService.ClaimGeneratedUsername
|
|
449
|
+
*/
|
|
450
|
+
claimGeneratedUsername: {
|
|
451
|
+
methodKind: "unary";
|
|
452
|
+
input: typeof ClaimGeneratedUsernameRequestSchema;
|
|
453
|
+
output: typeof UserProfileSchema;
|
|
454
|
+
};
|
|
367
455
|
}>;
|
|
368
456
|
//#endregion
|
|
369
|
-
export { AccountIdentity, AccountIdentitySchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile, profile_pb_d_exports };
|
|
457
|
+
export { AccountIdentity, AccountIdentitySchema, ClaimGeneratedUsernameRequest, ClaimGeneratedUsernameRequestSchema, GenerateUsernameOptionsRequest, GenerateUsernameOptionsRequestSchema, GenerateUsernameOptionsResponse, GenerateUsernameOptionsResponseSchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile, profile_pb_d_exports };
|
|
370
458
|
//# sourceMappingURL=profile_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/profile_pb.ts"],"mappings":";;;;;;;;;cAaa,sBAAsB;;;;;;KAQvB,kBAAkB;;;;;;EAM5B;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,uBAAuB,WAAW;;;;;;KAQnC,cAAc;;;;;;;;EAQxB;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;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AOW,0BAA0B,WAAW;;;;;;KAQtC,uBAAuB;;;;;;EAMjC;;;;;;EAOA,QAAQ;;;;;;cAOG,4BAA4B,WAAW;;;;;;;KASxC,4BAA4B;;;;;cAO3B,iCAAiC,WAAW;;;;;;;KAS7C,6BAA6B;;;;;;EAMvC,SAAS;;;;;;cAOE,kCAAkC,WAAW;;;;;;KAQ9C,iCAAiC;;;;;cAOhC,sCAAsC,WAAW;;;;;;;KASlD,kCAAkC;;;;;;EAM5C;;;;;;EAOA;;;;;;EAOA,YAAY;;;;;;cAOD,uCAAuC,WAAW;;;;;;KAQnD,gCAAgC;;;;;;EAM1C;;;;;;EAOA;;;;;;cAOW,qCAAqC,WAAW;;;;;;aAQjD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,wBAAwB,QAAQ;;;;;;cAQhC,gBAAgB;;;;;;EAM3B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -4,6 +4,9 @@ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
|
4
4
|
//#region src/gen/auth/v1/profile_pb.ts
|
|
5
5
|
var profile_pb_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
AccountIdentitySchema: () => AccountIdentitySchema,
|
|
7
|
+
ClaimGeneratedUsernameRequestSchema: () => ClaimGeneratedUsernameRequestSchema,
|
|
8
|
+
GenerateUsernameOptionsRequestSchema: () => GenerateUsernameOptionsRequestSchema,
|
|
9
|
+
GenerateUsernameOptionsResponseSchema: () => GenerateUsernameOptionsResponseSchema,
|
|
7
10
|
GetProfileRequestSchema: () => GetProfileRequestSchema,
|
|
8
11
|
GetUsernameHistoryRequestSchema: () => GetUsernameHistoryRequestSchema,
|
|
9
12
|
GetUsernameHistoryResponseSchema: () => GetUsernameHistoryResponseSchema,
|
|
@@ -19,7 +22,7 @@ var profile_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
22
|
/**
|
|
20
23
|
* Describes the file auth/v1/profile.proto.
|
|
21
24
|
*/
|
|
22
|
-
const file_auth_v1_profile = /*@__PURE__*/ fileDesc("
|
|
25
|
+
const file_auth_v1_profile = /*@__PURE__*/ fileDesc("ChVhdXRoL3YxL3Byb2ZpbGUucHJvdG8SB2F1dGgudjEidQoPQWNjb3VudElkZW50aXR5EhIKCmFjY291bnRfaWQYASABKAYSEgoIdXNlcm5hbWUYAiABKAlCABIUCgphdmF0YXJfdXJsGAMgASgJQgASJAoacm9vdF9zbWFydF9hY2NvdW50X2FkZHJlc3MYBCABKAlCACLNAgoLVXNlclByb2ZpbGUSEgoIdXNlcm5hbWUYASABKAlCABINCgNiaW8YAiABKAlCABIRCgd3ZWJzaXRlGAMgASgJQgASEQoHdHdpdHRlchgEIAEoCUIAEhgKEHR3aXR0ZXJfdmVyaWZpZWQYCCABKAgSEQoHZGlzY29yZBgJIAEoCUIAEhgKEGRpc2NvcmRfdmVyaWZpZWQYCiABKAgSFAoKYXZhdGFyX3VybBgFIAEoCUIAEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjsKF25leHRfdXNlcm5hbWVfY2hhbmdlX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCgh2aXBfdGllchgHIAEoBRIZChF1c2VybmFtZV91bmxvY2tlZBgLIAEoCCLGAQoQVXNlclByb2ZpbGVQYXRjaBIXCgh1c2VybmFtZRgBIAEoCUIASACIAQESEgoDYmlvGAIgASgJQgBIAYgBARIWCgd3ZWJzaXRlGAMgASgJQgBIAogBARIWCgd0d2l0dGVyGAQgASgJQgBIA4gBARIZCgphdmF0YXJfdXJsGAUgASgJQgBIBIgBAU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52MS5HZXRQcm9maWxlUmVxdWVzdBoULmF1dGgudjEuVXNlclByb2ZpbGUiABJCCg1VcGRhdGVQcm9maWxlEhkuYXV0aC52MS5Vc2VyUHJvZmlsZVBhdGNoGhQuYXV0aC52MS5Vc2VyUHJvZmlsZSIAEl8KEkdldFVzZXJuYW1lSGlzdG9yeRIiLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVxdWVzdBojLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVzcG9uc2UiABJuChdHZW5lcmF0ZVVzZXJuYW1lT3B0aW9ucxInLmF1dGgudjEuR2VuZXJhdGVVc2VybmFtZU9wdGlvbnNSZXF1ZXN0GiguYXV0aC52MS5HZW5lcmF0ZVVzZXJuYW1lT3B0aW9uc1Jlc3BvbnNlIgASWAoWQ2xhaW1HZW5lcmF0ZWRVc2VybmFtZRImLmF1dGgudjEuQ2xhaW1HZW5lcmF0ZWRVc2VybmFtZVJlcXVlc3QaFC5hdXRoLnYxLlVzZXJQcm9maWxlIgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z", [file_google_protobuf_timestamp]);
|
|
23
26
|
/**
|
|
24
27
|
* Describes the message auth.v1.AccountIdentity.
|
|
25
28
|
* Use `create(AccountIdentitySchema)` to create a new message.
|
|
@@ -61,6 +64,21 @@ const GetUsernameHistoryRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_p
|
|
|
61
64
|
*/
|
|
62
65
|
const GetUsernameHistoryResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_profile, 7);
|
|
63
66
|
/**
|
|
67
|
+
* Describes the message auth.v1.GenerateUsernameOptionsRequest.
|
|
68
|
+
* Use `create(GenerateUsernameOptionsRequestSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
const GenerateUsernameOptionsRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_profile, 8);
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message auth.v1.GenerateUsernameOptionsResponse.
|
|
73
|
+
* Use `create(GenerateUsernameOptionsResponseSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
const GenerateUsernameOptionsResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_profile, 9);
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message auth.v1.ClaimGeneratedUsernameRequest.
|
|
78
|
+
* Use `create(ClaimGeneratedUsernameRequestSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
const ClaimGeneratedUsernameRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_profile, 10);
|
|
81
|
+
/**
|
|
64
82
|
* High-level error codes for profile domain errors (ProfileService).
|
|
65
83
|
*
|
|
66
84
|
* @generated from enum auth.v1.ProfileErrorCode
|
|
@@ -109,6 +127,6 @@ const ProfileErrorCodeSchema = /*@__PURE__*/ enumDesc(file_auth_v1_profile, 0);
|
|
|
109
127
|
*/
|
|
110
128
|
const ProfileService = /*@__PURE__*/ serviceDesc(file_auth_v1_profile, 0);
|
|
111
129
|
//#endregion
|
|
112
|
-
export { AccountIdentitySchema, GetProfileRequestSchema, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetailSchema, ProfileService, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntrySchema, file_auth_v1_profile, profile_pb_exports };
|
|
130
|
+
export { AccountIdentitySchema, ClaimGeneratedUsernameRequestSchema, GenerateUsernameOptionsRequestSchema, GenerateUsernameOptionsResponseSchema, GetProfileRequestSchema, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetailSchema, ProfileService, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntrySchema, file_auth_v1_profile, profile_pb_exports };
|
|
113
131
|
|
|
114
132
|
//# sourceMappingURL=profile_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/profile_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/profile.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/profile.proto.\n */\nexport const file_auth_v1_profile: GenFile = /*@__PURE__*/\n fileDesc(\"ChVhdXRoL3YxL3Byb2ZpbGUucHJvdG8SB2F1dGgudjEidQoPQWNjb3VudElkZW50aXR5EhIKCmFjY291bnRfaWQYASABKAYSEgoIdXNlcm5hbWUYAiABKAlCABIUCgphdmF0YXJfdXJsGAMgASgJQgASJAoacm9vdF9zbWFydF9hY2NvdW50X2FkZHJlc3MYBCABKAlCACLNAgoLVXNlclByb2ZpbGUSEgoIdXNlcm5hbWUYASABKAlCABINCgNiaW8YAiABKAlCABIRCgd3ZWJzaXRlGAMgASgJQgASEQoHdHdpdHRlchgEIAEoCUIAEhgKEHR3aXR0ZXJfdmVyaWZpZWQYCCABKAgSEQoHZGlzY29yZBgJIAEoCUIAEhgKEGRpc2NvcmRfdmVyaWZpZWQYCiABKAgSFAoKYXZhdGFyX3VybBgFIAEoCUIAEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjsKF25leHRfdXNlcm5hbWVfY2hhbmdlX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCgh2aXBfdGllchgHIAEoBRIZChF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ZmlsZVBhdGNoGhQuYXV0aC52MS5Vc2VyUHJvZmlsZSIAEl8KEkdldFVzZXJuYW1lSGlzdG9yeRIiLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVxdWVzdBojLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVzcG9uc2UiAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_google_protobuf_timestamp]);\n\n/**\n * AccountIdentity is a lightweight identity view for a root account.\n *\n * @generated from message auth.v1.AccountIdentity\n */\nexport type AccountIdentity = Message<\"auth.v1.AccountIdentity\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Current username for the root account (unique, case-insensitive). Empty\n * means no username set.\n *\n * @generated from field: string username = 2;\n */\n username: string;\n\n /**\n * Avatar URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string avatar_url = 3;\n */\n avatarUrl: string;\n\n /**\n * Root smart-account EVM address. Useful as a stable identity fallback.\n *\n * @generated from field: string root_smart_account_address = 4;\n */\n rootSmartAccountAddress: string;\n};\n\n/**\n * Describes the message auth.v1.AccountIdentity.\n * Use `create(AccountIdentitySchema)` to create a new message.\n */\nexport const AccountIdentitySchema: GenMessage<AccountIdentity> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 0);\n\n/**\n * UserProfile is the caller's public profile and account metadata.\n *\n * @generated from message auth.v1.UserProfile\n */\nexport type UserProfile = Message<\"auth.v1.UserProfile\"> & {\n /**\n * Public username for the root account. Usernames are unique\n * case-insensitively and use 3 to 32 letters, digits, underscores, dots, or\n * hyphens. Empty means no username is set.\n *\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * Short public bio. Maximum length is 256 characters.\n *\n * @generated from field: string bio = 2;\n */\n bio: string;\n\n /**\n * Public website URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string website = 3;\n */\n website: string;\n\n /**\n * X/Twitter handle without \"@\". Maximum length is 15 characters.\n *\n * @generated from field: string twitter = 4;\n */\n twitter: string;\n\n /**\n * Whether the X/Twitter handle for this account has been verified.\n *\n * @generated from field: bool twitter_verified = 8;\n */\n twitterVerified: boolean;\n\n /**\n * Discord handle or username without \"@\". Maximum length is 64 characters.\n *\n * @generated from field: string discord = 9;\n */\n discord: string;\n\n /**\n * Whether the Discord handle for this account has been verified.\n *\n * @generated from field: bool discord_verified = 10;\n */\n discordVerified: boolean;\n\n /**\n * Avatar URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string avatar_url = 5;\n */\n avatarUrl: string;\n\n /**\n * Account creation time in UTC. This is the canonical \"member since\"\n * timestamp.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 12;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Next time in UTC when the username can be changed again. Omitted when no\n * cooldown applies.\n *\n * @generated from field: google.protobuf.Timestamp next_username_change_at = 6;\n */\n nextUsernameChangeAt?: Timestamp | undefined;\n\n /**\n * Current VIP tier for this root account. A value of 0 is the base tier.\n * Read-only.\n *\n * @generated from field: int32 vip_tier = 7;\n */\n vipTier: number;\n\n /**\n * Whether this account is currently allowed to claim/change a username.\n *\n * @generated from field: bool username_unlocked = 11;\n */\n usernameUnlocked: boolean;\n};\n\n/**\n * Describes the message auth.v1.UserProfile.\n * Use `create(UserProfileSchema)` to create a new message.\n */\nexport const UserProfileSchema: GenMessage<UserProfile> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 1);\n\n/**\n * UserProfilePatch is a partial profile update. Fields are\n * optional/presence-aware:\n * - if a field is omitted, it is not modified\n * - if a field is present with an empty string, it is cleared\n * Username changes are subject to account eligibility, reserved-name checks,\n * uniqueness, and cooldown rules. Case-only username changes update display\n * casing without consuming the cooldown.\n *\n * @generated from message auth.v1.UserProfilePatch\n */\nexport type UserProfilePatch = Message<\"auth.v1.UserProfilePatch\"> & {\n /**\n * Public username for the root account. Use an empty string to clear it.\n * Non-empty values must be 3 to 32 letters, digits, underscores, dots, or\n * hyphens.\n *\n * @generated from field: optional string username = 1;\n */\n username?: string | undefined;\n\n /**\n * Short public bio. Use an empty string to clear it. Non-empty values must be\n * at most 256 characters and cannot contain \"<\" or \">\".\n *\n * @generated from field: optional string bio = 2;\n */\n bio?: string | undefined;\n\n /**\n * Public website URL. Use an empty string to clear it. Non-empty values must\n * be valid http(s) URLs up to 256 characters.\n *\n * @generated from field: optional string website = 3;\n */\n website?: string | undefined;\n\n /**\n * X/Twitter handle without \"@\". Use an empty string to clear it. Non-empty\n * values must be 1 to 15 letters, digits, or underscores.\n *\n * @generated from field: optional string twitter = 4;\n */\n twitter?: string | undefined;\n\n /**\n * Avatar URL. Use an empty string to clear it. Non-empty values must be valid\n * http(s) URLs up to 256 characters.\n *\n * @generated from field: optional string avatar_url = 5;\n */\n avatarUrl?: string | undefined;\n};\n\n/**\n * Describes the message auth.v1.UserProfilePatch.\n * Use `create(UserProfilePatchSchema)` to create a new message.\n */\nexport const UserProfilePatchSchema: GenMessage<UserProfilePatch> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 2);\n\n/**\n * GetProfileRequest fetches the authenticated caller's profile.\n *\n * @generated from message auth.v1.GetProfileRequest\n */\nexport type GetProfileRequest = Message<\"auth.v1.GetProfileRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.GetProfileRequest.\n * Use `create(GetProfileRequestSchema)` to create a new message.\n */\nexport const GetProfileRequestSchema: GenMessage<GetProfileRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 3);\n\n/**\n * ProfileErrorDetail describes a profile validation failure returned by the API.\n *\n * @generated from message auth.v1.ProfileErrorDetail\n */\nexport type ProfileErrorDetail = Message<\"auth.v1.ProfileErrorDetail\"> & {\n /**\n * Stable machine-readable profile error code.\n *\n * @generated from field: auth.v1.ProfileErrorCode code = 1;\n */\n code: ProfileErrorCode;\n\n /**\n * Field name associated with the error, such as \"bio\", \"website\", \"twitter\",\n * or \"avatar_url\".\n *\n * @generated from field: string field = 2;\n */\n field: string;\n\n /**\n * Human-friendly message for UI/debugging.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.ProfileErrorDetail.\n * Use `create(ProfileErrorDetailSchema)` to create a new message.\n */\nexport const ProfileErrorDetailSchema: GenMessage<ProfileErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 4);\n\n/**\n * UsernameHistoryEntry records a previous username claim for the caller.\n *\n * @generated from message auth.v1.UsernameHistoryEntry\n */\nexport type UsernameHistoryEntry = Message<\"auth.v1.UsernameHistoryEntry\"> & {\n /**\n * Username value that was set.\n *\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * Time in UTC when this username was set.\n *\n * @generated from field: google.protobuf.Timestamp set_at = 2;\n */\n setAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.UsernameHistoryEntry.\n * Use `create(UsernameHistoryEntrySchema)` to create a new message.\n */\nexport const UsernameHistoryEntrySchema: GenMessage<UsernameHistoryEntry> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 5);\n\n/**\n * GetUsernameHistoryRequest fetches recent username changes for the\n * authenticated caller.\n *\n * @generated from message auth.v1.GetUsernameHistoryRequest\n */\nexport type GetUsernameHistoryRequest = Message<\"auth.v1.GetUsernameHistoryRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.GetUsernameHistoryRequest.\n * Use `create(GetUsernameHistoryRequestSchema)` to create a new message.\n */\nexport const GetUsernameHistoryRequestSchema: GenMessage<GetUsernameHistoryRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 6);\n\n/**\n * GetUsernameHistoryResponse contains the caller's recent username history,\n * newest first. At most 20 entries are returned.\n *\n * @generated from message auth.v1.GetUsernameHistoryResponse\n */\nexport type GetUsernameHistoryResponse = Message<\"auth.v1.GetUsernameHistoryResponse\"> & {\n /**\n * Recent username history entries, newest first.\n *\n * @generated from field: repeated auth.v1.UsernameHistoryEntry history = 1;\n */\n history: UsernameHistoryEntry[];\n};\n\n/**\n * Describes the message auth.v1.GetUsernameHistoryResponse.\n * Use `create(GetUsernameHistoryResponseSchema)` to create a new message.\n */\nexport const GetUsernameHistoryResponseSchema: GenMessage<GetUsernameHistoryResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 7);\n\n/**\n * High-level error codes for profile domain errors (ProfileService).\n *\n * @generated from enum auth.v1.ProfileErrorCode\n */\nexport enum ProfileErrorCode {\n /**\n * No profile error code specified.\n *\n * @generated from enum value: PROFILE_UNSPECIFIED = 0;\n */\n PROFILE_UNSPECIFIED = 0,\n\n /**\n * Generic invalid field (format/characters).\n *\n * @generated from enum value: PROFILE_INVALID_FIELD = 1;\n */\n PROFILE_INVALID_FIELD = 1,\n\n /**\n * Field exceeds configured max length.\n *\n * @generated from enum value: PROFILE_FIELD_TOO_LONG = 2;\n */\n PROFILE_FIELD_TOO_LONG = 2,\n\n /**\n * URL is syntactically invalid.\n *\n * @generated from enum value: PROFILE_URL_INVALID = 3;\n */\n PROFILE_URL_INVALID = 3,\n\n /**\n * URL scheme is not allowed (e.g., non-http(s)).\n *\n * @generated from enum value: PROFILE_URL_SCHEME_INVALID = 4;\n */\n PROFILE_URL_SCHEME_INVALID = 4,\n}\n\n/**\n * Describes the enum auth.v1.ProfileErrorCode.\n */\nexport const ProfileErrorCodeSchema: GenEnum<ProfileErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_profile, 0);\n\n/**\n * ProfileService manages the authenticated caller's public profile.\n *\n * @generated from service auth.v1.ProfileService\n */\nexport const ProfileService: GenService<{\n /**\n * Get the caller's profile.\n *\n * @generated from rpc auth.v1.ProfileService.GetProfile\n */\n getProfile: {\n methodKind: \"unary\";\n input: typeof GetProfileRequestSchema;\n output: typeof UserProfileSchema;\n },\n /**\n * Update the caller's mutable profile fields. Omitted fields are unchanged;\n * present empty strings clear optional text fields.\n *\n * @generated from rpc auth.v1.ProfileService.UpdateProfile\n */\n updateProfile: {\n methodKind: \"unary\";\n input: typeof UserProfilePatchSchema;\n output: typeof UserProfileSchema;\n },\n /**\n * Get recent username history for the caller, newest first. Returns at most\n * 20 entries.\n *\n * @generated from rpc auth.v1.ProfileService.GetUsernameHistory\n */\n getUsernameHistory: {\n methodKind: \"unary\";\n input: typeof GetUsernameHistoryRequestSchema;\n output: typeof GetUsernameHistoryResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_profile, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,uBACX,uBAAS,o7DAAo7D,CAAC,8BAA8B,CAAC;;;;;AA0C/9D,MAAa,wBACX,0BAAY,sBAAsB,CAAC;;;;;AAsGrC,MAAa,oBACX,0BAAY,sBAAsB,CAAC;;;;;AA4DrC,MAAa,yBACX,0BAAY,sBAAsB,CAAC;;;;;AAcrC,MAAa,0BACX,0BAAY,sBAAsB,CAAC;;;;;AAmCrC,MAAa,2BACX,0BAAY,sBAAsB,CAAC;;;;;AA2BrC,MAAa,6BACX,0BAAY,sBAAsB,CAAC;;;;;AAerC,MAAa,kCACX,0BAAY,sBAAsB,CAAC;;;;;AAqBrC,MAAa,mCACX,0BAAY,sBAAsB,CAAC;;;;;;AAOrC,IAAY,mBAAL,yBAAA,kBAAA;;;;;;CAML,iBAAA,iBAAA,yBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,2BAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,4BAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,yBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,gCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,sBAAsB,CAAC;;;;;;AAOlC,MAAa,iBAkCX,0BAAY,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"profile_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/profile_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/profile.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/profile.proto.\n */\nexport const file_auth_v1_profile: GenFile = /*@__PURE__*/\n fileDesc(\"ChVhdXRoL3YxL3Byb2ZpbGUucHJvdG8SB2F1dGgudjEidQoPQWNjb3VudElkZW50aXR5EhIKCmFjY291bnRfaWQYASABKAYSEgoIdXNlcm5hbWUYAiABKAlCABIUCgphdmF0YXJfdXJsGAMgASgJQgASJAoacm9vdF9zbWFydF9hY2NvdW50X2FkZHJlc3MYBCABKAlCACLNAgoLVXNlclByb2ZpbGUSEgoIdXNlcm5hbWUYASABKAlCABINCgNiaW8YAiABKAlCABIRCgd3ZWJzaXRlGAMgASgJQgASEQoHdHdpdHRlchgEIAEoCUIAEhgKEHR3aXR0ZXJfdmVyaWZpZWQYCCABKAgSEQoHZGlzY29yZBgJIAEoCUIAEhgKEGRpc2NvcmRfdmVyaWZpZWQYCiABKAgSFAoKYXZhdGFyX3VybBgFIAEoCUIAEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjsKF25leHRfdXNlcm5hbWVfY2hhbmdlX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCgh2aXBfdGllchgHIAEoBRIZChF1c2VybmFtZV91bmxvY2tlZBgLIAEoCCLGAQoQVXNlclByb2ZpbGVQYXRjaBIXCgh1c2VybmFtZRgBIAEoCUI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hcKE1BST0ZJTEVfVVJMX0lOVkFMSUQQAxIeChpQUk9GSUxFX1VSTF9TQ0hFTUVfSU5WQUxJRBAEMsEDCg5Qcm9maWxlU2VydmljZRJACgpHZXRQcm9maWxlEhouYXV0aC52MS5HZXRQcm9maWxlUmVxdWVzdBoULmF1dGgudjEuVXNlclByb2ZpbGUiABJCCg1VcGRhdGVQcm9maWxlEhkuYXV0aC52MS5Vc2VyUHJvZmlsZVBhdGNoGhQuYXV0aC52MS5Vc2VyUHJvZmlsZSIAEl8KEkdldFVzZXJuYW1lSGlzdG9yeRIiLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVxdWVzdBojLmF1dGgudjEuR2V0VXNlcm5hbWVIaXN0b3J5UmVzcG9uc2UiABJuChdHZW5lcmF0ZVVzZXJuYW1lT3B0aW9ucxInLmF1dGgudjEuR2VuZXJhdGVVc2VybmFtZU9wdGlvbnNSZXF1ZXN0GiguYXV0aC52MS5HZW5lcmF0ZVVzZXJuYW1lT3B0aW9uc1Jlc3BvbnNlIgASWAoWQ2xhaW1HZW5lcmF0ZWRVc2VybmFtZRImLmF1dGgudjEuQ2xhaW1HZW5lcmF0ZWRVc2VybmFtZVJlcXVlc3QaFC5hdXRoLnYxLlVzZXJQcm9maWxlIgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [file_google_protobuf_timestamp]);\n\n/**\n * AccountIdentity is a lightweight identity view for a root account.\n *\n * @generated from message auth.v1.AccountIdentity\n */\nexport type AccountIdentity = Message<\"auth.v1.AccountIdentity\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Current username for the root account (unique, case-insensitive). Empty\n * means no username set.\n *\n * @generated from field: string username = 2;\n */\n username: string;\n\n /**\n * Avatar URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string avatar_url = 3;\n */\n avatarUrl: string;\n\n /**\n * Root smart-account EVM address. Useful as a stable identity fallback.\n *\n * @generated from field: string root_smart_account_address = 4;\n */\n rootSmartAccountAddress: string;\n};\n\n/**\n * Describes the message auth.v1.AccountIdentity.\n * Use `create(AccountIdentitySchema)` to create a new message.\n */\nexport const AccountIdentitySchema: GenMessage<AccountIdentity> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 0);\n\n/**\n * UserProfile is the caller's public profile and account metadata.\n *\n * @generated from message auth.v1.UserProfile\n */\nexport type UserProfile = Message<\"auth.v1.UserProfile\"> & {\n /**\n * Public username for the root account. Usernames are unique\n * case-insensitively and use 3 to 32 letters, digits, underscores, dots, or\n * hyphens. Empty means no username is set.\n *\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * Short public bio. Maximum length is 256 characters.\n *\n * @generated from field: string bio = 2;\n */\n bio: string;\n\n /**\n * Public website URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string website = 3;\n */\n website: string;\n\n /**\n * X/Twitter handle without \"@\". Maximum length is 15 characters.\n *\n * @generated from field: string twitter = 4;\n */\n twitter: string;\n\n /**\n * Whether the X/Twitter handle for this account has been verified.\n *\n * @generated from field: bool twitter_verified = 8;\n */\n twitterVerified: boolean;\n\n /**\n * Discord handle or username without \"@\". Maximum length is 64 characters.\n *\n * @generated from field: string discord = 9;\n */\n discord: string;\n\n /**\n * Whether the Discord handle for this account has been verified.\n *\n * @generated from field: bool discord_verified = 10;\n */\n discordVerified: boolean;\n\n /**\n * Avatar URL, if set. Maximum length is 256 characters.\n *\n * @generated from field: string avatar_url = 5;\n */\n avatarUrl: string;\n\n /**\n * Account creation time in UTC. This is the canonical \"member since\"\n * timestamp.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 12;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Next time in UTC when the username can be changed again. Omitted when no\n * cooldown applies.\n *\n * @generated from field: google.protobuf.Timestamp next_username_change_at = 6;\n */\n nextUsernameChangeAt?: Timestamp | undefined;\n\n /**\n * Current VIP tier for this root account. A value of 0 is the base tier.\n * Read-only.\n *\n * @generated from field: int32 vip_tier = 7;\n */\n vipTier: number;\n\n /**\n * Whether this account is currently allowed to claim/change a username.\n *\n * @generated from field: bool username_unlocked = 11;\n */\n usernameUnlocked: boolean;\n};\n\n/**\n * Describes the message auth.v1.UserProfile.\n * Use `create(UserProfileSchema)` to create a new message.\n */\nexport const UserProfileSchema: GenMessage<UserProfile> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 1);\n\n/**\n * UserProfilePatch is a partial profile update. Fields are\n * optional/presence-aware:\n * - if a field is omitted, it is not modified\n * - if a field is present with an empty string, it is cleared\n * Username changes are subject to account eligibility, reserved-name checks,\n * uniqueness, and cooldown rules. Case-only username changes update display\n * casing without consuming the cooldown.\n *\n * @generated from message auth.v1.UserProfilePatch\n */\nexport type UserProfilePatch = Message<\"auth.v1.UserProfilePatch\"> & {\n /**\n * Public username for the root account. Use an empty string to clear it.\n * Non-empty values must be 3 to 32 letters, digits, underscores, dots, or\n * hyphens.\n *\n * @generated from field: optional string username = 1;\n */\n username?: string | undefined;\n\n /**\n * Short public bio. Use an empty string to clear it. Non-empty values must be\n * at most 256 characters and cannot contain \"<\" or \">\".\n *\n * @generated from field: optional string bio = 2;\n */\n bio?: string | undefined;\n\n /**\n * Public website URL. Use an empty string to clear it. Non-empty values must\n * be valid http(s) URLs up to 256 characters.\n *\n * @generated from field: optional string website = 3;\n */\n website?: string | undefined;\n\n /**\n * X/Twitter handle without \"@\". Use an empty string to clear it. Non-empty\n * values must be 1 to 15 letters, digits, or underscores.\n *\n * @generated from field: optional string twitter = 4;\n */\n twitter?: string | undefined;\n\n /**\n * Avatar URL. Use an empty string to clear it. Non-empty values must be valid\n * http(s) URLs up to 256 characters.\n *\n * @generated from field: optional string avatar_url = 5;\n */\n avatarUrl?: string | undefined;\n};\n\n/**\n * Describes the message auth.v1.UserProfilePatch.\n * Use `create(UserProfilePatchSchema)` to create a new message.\n */\nexport const UserProfilePatchSchema: GenMessage<UserProfilePatch> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 2);\n\n/**\n * GetProfileRequest fetches the authenticated caller's profile.\n *\n * @generated from message auth.v1.GetProfileRequest\n */\nexport type GetProfileRequest = Message<\"auth.v1.GetProfileRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.GetProfileRequest.\n * Use `create(GetProfileRequestSchema)` to create a new message.\n */\nexport const GetProfileRequestSchema: GenMessage<GetProfileRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 3);\n\n/**\n * ProfileErrorDetail describes a profile validation failure returned by the API.\n *\n * @generated from message auth.v1.ProfileErrorDetail\n */\nexport type ProfileErrorDetail = Message<\"auth.v1.ProfileErrorDetail\"> & {\n /**\n * Stable machine-readable profile error code.\n *\n * @generated from field: auth.v1.ProfileErrorCode code = 1;\n */\n code: ProfileErrorCode;\n\n /**\n * Field name associated with the error, such as \"bio\", \"website\", \"twitter\",\n * or \"avatar_url\".\n *\n * @generated from field: string field = 2;\n */\n field: string;\n\n /**\n * Human-friendly message for UI/debugging.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.ProfileErrorDetail.\n * Use `create(ProfileErrorDetailSchema)` to create a new message.\n */\nexport const ProfileErrorDetailSchema: GenMessage<ProfileErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 4);\n\n/**\n * UsernameHistoryEntry records a previous username claim for the caller.\n *\n * @generated from message auth.v1.UsernameHistoryEntry\n */\nexport type UsernameHistoryEntry = Message<\"auth.v1.UsernameHistoryEntry\"> & {\n /**\n * Username value that was set.\n *\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * Time in UTC when this username was set.\n *\n * @generated from field: google.protobuf.Timestamp set_at = 2;\n */\n setAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.UsernameHistoryEntry.\n * Use `create(UsernameHistoryEntrySchema)` to create a new message.\n */\nexport const UsernameHistoryEntrySchema: GenMessage<UsernameHistoryEntry> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 5);\n\n/**\n * GetUsernameHistoryRequest fetches recent username changes for the\n * authenticated caller.\n *\n * @generated from message auth.v1.GetUsernameHistoryRequest\n */\nexport type GetUsernameHistoryRequest = Message<\"auth.v1.GetUsernameHistoryRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.GetUsernameHistoryRequest.\n * Use `create(GetUsernameHistoryRequestSchema)` to create a new message.\n */\nexport const GetUsernameHistoryRequestSchema: GenMessage<GetUsernameHistoryRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 6);\n\n/**\n * GetUsernameHistoryResponse contains the caller's recent username history,\n * newest first. At most 20 entries are returned.\n *\n * @generated from message auth.v1.GetUsernameHistoryResponse\n */\nexport type GetUsernameHistoryResponse = Message<\"auth.v1.GetUsernameHistoryResponse\"> & {\n /**\n * Recent username history entries, newest first.\n *\n * @generated from field: repeated auth.v1.UsernameHistoryEntry history = 1;\n */\n history: UsernameHistoryEntry[];\n};\n\n/**\n * Describes the message auth.v1.GetUsernameHistoryResponse.\n * Use `create(GetUsernameHistoryResponseSchema)` to create a new message.\n */\nexport const GetUsernameHistoryResponseSchema: GenMessage<GetUsernameHistoryResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 7);\n\n/**\n * GenerateUsernameOptionsRequest requests a fresh set of generated usernames.\n *\n * @generated from message auth.v1.GenerateUsernameOptionsRequest\n */\nexport type GenerateUsernameOptionsRequest = Message<\"auth.v1.GenerateUsernameOptionsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.GenerateUsernameOptionsRequest.\n * Use `create(GenerateUsernameOptionsRequestSchema)` to create a new message.\n */\nexport const GenerateUsernameOptionsRequestSchema: GenMessage<GenerateUsernameOptionsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 8);\n\n/**\n * GenerateUsernameOptionsResponse contains five generated usernames that the\n * caller may claim before the offer expires.\n *\n * @generated from message auth.v1.GenerateUsernameOptionsResponse\n */\nexport type GenerateUsernameOptionsResponse = Message<\"auth.v1.GenerateUsernameOptionsResponse\"> & {\n /**\n * Five distinct generated usernames available when this offer was created.\n *\n * @generated from field: repeated string usernames = 1;\n */\n usernames: string[];\n\n /**\n * Opaque proof required to claim one of the returned usernames.\n *\n * @generated from field: string offer_token = 2;\n */\n offerToken: string;\n\n /**\n * Time in UTC after which this offer can no longer be claimed.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 3;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.GenerateUsernameOptionsResponse.\n * Use `create(GenerateUsernameOptionsResponseSchema)` to create a new message.\n */\nexport const GenerateUsernameOptionsResponseSchema: GenMessage<GenerateUsernameOptionsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 9);\n\n/**\n * ClaimGeneratedUsernameRequest selects one username from a generated offer.\n *\n * @generated from message auth.v1.ClaimGeneratedUsernameRequest\n */\nexport type ClaimGeneratedUsernameRequest = Message<\"auth.v1.ClaimGeneratedUsernameRequest\"> & {\n /**\n * Opaque proof returned with the generated username options.\n *\n * @generated from field: string offer_token = 1;\n */\n offerToken: string;\n\n /**\n * Zero-based position in the five returned username options.\n *\n * @generated from field: uint32 option_index = 2;\n */\n optionIndex: number;\n};\n\n/**\n * Describes the message auth.v1.ClaimGeneratedUsernameRequest.\n * Use `create(ClaimGeneratedUsernameRequestSchema)` to create a new message.\n */\nexport const ClaimGeneratedUsernameRequestSchema: GenMessage<ClaimGeneratedUsernameRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_profile, 10);\n\n/**\n * High-level error codes for profile domain errors (ProfileService).\n *\n * @generated from enum auth.v1.ProfileErrorCode\n */\nexport enum ProfileErrorCode {\n /**\n * No profile error code specified.\n *\n * @generated from enum value: PROFILE_UNSPECIFIED = 0;\n */\n PROFILE_UNSPECIFIED = 0,\n\n /**\n * Generic invalid field (format/characters).\n *\n * @generated from enum value: PROFILE_INVALID_FIELD = 1;\n */\n PROFILE_INVALID_FIELD = 1,\n\n /**\n * Field exceeds configured max length.\n *\n * @generated from enum value: PROFILE_FIELD_TOO_LONG = 2;\n */\n PROFILE_FIELD_TOO_LONG = 2,\n\n /**\n * URL is syntactically invalid.\n *\n * @generated from enum value: PROFILE_URL_INVALID = 3;\n */\n PROFILE_URL_INVALID = 3,\n\n /**\n * URL scheme is not allowed (e.g., non-http(s)).\n *\n * @generated from enum value: PROFILE_URL_SCHEME_INVALID = 4;\n */\n PROFILE_URL_SCHEME_INVALID = 4,\n}\n\n/**\n * Describes the enum auth.v1.ProfileErrorCode.\n */\nexport const ProfileErrorCodeSchema: GenEnum<ProfileErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_profile, 0);\n\n/**\n * ProfileService manages the authenticated caller's public profile.\n *\n * @generated from service auth.v1.ProfileService\n */\nexport const ProfileService: GenService<{\n /**\n * Get the caller's profile.\n *\n * @generated from rpc auth.v1.ProfileService.GetProfile\n */\n getProfile: {\n methodKind: \"unary\";\n input: typeof GetProfileRequestSchema;\n output: typeof UserProfileSchema;\n },\n /**\n * Update the caller's mutable profile fields. Omitted fields are unchanged;\n * present empty strings clear optional text fields.\n *\n * @generated from rpc auth.v1.ProfileService.UpdateProfile\n */\n updateProfile: {\n methodKind: \"unary\";\n input: typeof UserProfilePatchSchema;\n output: typeof UserProfileSchema;\n },\n /**\n * Get recent username history for the caller, newest first. Returns at most\n * 20 entries.\n *\n * @generated from rpc auth.v1.ProfileService.GetUsernameHistory\n */\n getUsernameHistory: {\n methodKind: \"unary\";\n input: typeof GetUsernameHistoryRequestSchema;\n output: typeof GetUsernameHistoryResponseSchema;\n },\n /**\n * Generate five random username options for an account that has never\n * claimed a username. Calling this method again returns a fresh set.\n *\n * @generated from rpc auth.v1.ProfileService.GenerateUsernameOptions\n */\n generateUsernameOptions: {\n methodKind: \"unary\";\n input: typeof GenerateUsernameOptionsRequestSchema;\n output: typeof GenerateUsernameOptionsResponseSchema;\n },\n /**\n * Claim one username by its position in a valid generated offer. The\n * selected value comes from the offer and cannot be supplied directly.\n *\n * @generated from rpc auth.v1.ProfileService.ClaimGeneratedUsername\n */\n claimGeneratedUsername: {\n methodKind: \"unary\";\n input: typeof ClaimGeneratedUsernameRequestSchema;\n output: typeof UserProfileSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_profile, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,uBACX,uBAAS,4/EAA4/E,CAAC,8BAA8B,CAAC;;;;;AA0CviF,MAAa,wBACX,0BAAY,sBAAsB,CAAC;;;;;AAsGrC,MAAa,oBACX,0BAAY,sBAAsB,CAAC;;;;;AA4DrC,MAAa,yBACX,0BAAY,sBAAsB,CAAC;;;;;AAcrC,MAAa,0BACX,0BAAY,sBAAsB,CAAC;;;;;AAmCrC,MAAa,2BACX,0BAAY,sBAAsB,CAAC;;;;;AA2BrC,MAAa,6BACX,0BAAY,sBAAsB,CAAC;;;;;AAerC,MAAa,kCACX,0BAAY,sBAAsB,CAAC;;;;;AAqBrC,MAAa,mCACX,0BAAY,sBAAsB,CAAC;;;;;AAcrC,MAAa,uCACX,0BAAY,sBAAsB,CAAC;;;;;AAmCrC,MAAa,wCACX,0BAAY,sBAAsB,CAAC;;;;;AA2BrC,MAAa,sCACX,0BAAY,sBAAsB,EAAE;;;;;;AAOtC,IAAY,mBAAL,yBAAA,kBAAA;;;;;;CAML,iBAAA,iBAAA,yBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,2BAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,4BAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,yBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,gCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,sBAAsB,CAAC;;;;;;AAOlC,MAAa,iBAwDX,0BAAY,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Message } from "@bufbuild/protobuf";
|
|
2
2
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
declare namespace resolve_pb_d_exports {
|
|
4
|
-
export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, file_auth_v1_resolve };
|
|
4
|
+
export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, ResolvedAccount_Kind, ResolvedAccount_KindSchema, file_auth_v1_resolve };
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Describes the file auth/v1/resolve.proto.
|
|
@@ -23,11 +23,11 @@ type ResolvedAccount = Message<"auth.v1.ResolvedAccount"> & {
|
|
|
23
23
|
*/
|
|
24
24
|
smartAccountAddress: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Category of account that owns this address.
|
|
27
27
|
*
|
|
28
|
-
* @generated from field:
|
|
28
|
+
* @generated from field: auth.v1.ResolvedAccount.Kind kind = 2;
|
|
29
29
|
*/
|
|
30
|
-
kind:
|
|
30
|
+
kind: ResolvedAccount_Kind;
|
|
31
31
|
/**
|
|
32
32
|
* Root account username for the result. For sub-account results, this is the
|
|
33
33
|
* parent root account username. Empty means the root account has no username.
|
|
@@ -36,7 +36,7 @@ type ResolvedAccount = Message<"auth.v1.ResolvedAccount"> & {
|
|
|
36
36
|
*/
|
|
37
37
|
rootUsername: string;
|
|
38
38
|
/**
|
|
39
|
-
* Optional sub-account label when kind
|
|
39
|
+
* Optional sub-account label when kind is SUB.
|
|
40
40
|
*
|
|
41
41
|
* @generated from field: string subaccount_label = 4;
|
|
42
42
|
*/
|
|
@@ -54,6 +54,35 @@ type ResolvedAccount = Message<"auth.v1.ResolvedAccount"> & {
|
|
|
54
54
|
* Use `create(ResolvedAccountSchema)` to create a new message.
|
|
55
55
|
*/
|
|
56
56
|
declare const ResolvedAccountSchema: GenMessage<ResolvedAccount>;
|
|
57
|
+
/**
|
|
58
|
+
* Category of account that owns the resolved smart-account address.
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum auth.v1.ResolvedAccount.Kind
|
|
61
|
+
*/
|
|
62
|
+
declare enum ResolvedAccount_Kind {
|
|
63
|
+
/**
|
|
64
|
+
* Account kind was not provided.
|
|
65
|
+
*
|
|
66
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
67
|
+
*/
|
|
68
|
+
KIND_UNSPECIFIED = 0,
|
|
69
|
+
/**
|
|
70
|
+
* Root account.
|
|
71
|
+
*
|
|
72
|
+
* @generated from enum value: ROOT = 1;
|
|
73
|
+
*/
|
|
74
|
+
ROOT = 1,
|
|
75
|
+
/**
|
|
76
|
+
* Sub-account.
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum value: SUB = 2;
|
|
79
|
+
*/
|
|
80
|
+
SUB = 2
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Describes the enum auth.v1.ResolvedAccount.Kind.
|
|
84
|
+
*/
|
|
85
|
+
declare const ResolvedAccount_KindSchema: GenEnum<ResolvedAccount_Kind>;
|
|
57
86
|
/**
|
|
58
87
|
* ResolveAccountRequest searches for a transfer or sharing destination by
|
|
59
88
|
* username, account ID, or smart-account address.
|
|
@@ -170,5 +199,5 @@ declare const ResolveService: GenService<{
|
|
|
170
199
|
};
|
|
171
200
|
}>;
|
|
172
201
|
//#endregion
|
|
173
|
-
export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, file_auth_v1_resolve, resolve_pb_d_exports };
|
|
202
|
+
export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, ResolvedAccount_Kind, ResolvedAccount_KindSchema, file_auth_v1_resolve, resolve_pb_d_exports };
|
|
174
203
|
//# sourceMappingURL=resolve_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/resolve_pb.ts"],"mappings":";;;;;;;;cAWa,sBAAsB;;;;;;;KASvB,kBAAkB;;;;;;;;EAQ5B;;;;;;EAOA;;;;;;;
|
|
1
|
+
{"version":3,"file":"resolve_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/resolve_pb.ts"],"mappings":";;;;;;;;cAWa,sBAAsB;;;;;;;KASvB,kBAAkB;;;;;;;;EAQ5B;;;;;;EAOA,MAAM;;;;;;;EAQN;;;;;;EAOA;;;;;;;EAQA;;;;;;cAOW,uBAAuB,WAAW;;;;;;aAQnC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,4BAA4B,QAAQ;;;;;;;KASrC,wBAAwB;;;;;;;;;;EAUlC;;;;;;;EAQA,MAAM;;;;;;;;;EAUN;;;;;;cAOW,6BAA6B,WAAW;;;;;;;;KAUzC,yBAAyB;;;;;;EAMnC,SAAS;;;;;;cAOE,8BAA8B,WAAW;;;;;;aAQ1C;;;;;;;;EAQV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,mBAAmB,QAAQ;;;;;;;cAS3B,gBAAgB;;;;;;;EAO3B;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -8,18 +8,50 @@ var resolve_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
8
|
ResolveHintSchema: () => ResolveHintSchema,
|
|
9
9
|
ResolveService: () => ResolveService,
|
|
10
10
|
ResolvedAccountSchema: () => ResolvedAccountSchema,
|
|
11
|
+
ResolvedAccount_Kind: () => ResolvedAccount_Kind,
|
|
12
|
+
ResolvedAccount_KindSchema: () => ResolvedAccount_KindSchema,
|
|
11
13
|
file_auth_v1_resolve: () => file_auth_v1_resolve
|
|
12
14
|
});
|
|
13
15
|
/**
|
|
14
16
|
* Describes the file auth/v1/resolve.proto.
|
|
15
17
|
*/
|
|
16
|
-
const file_auth_v1_resolve = /*@__PURE__*/ fileDesc("
|
|
18
|
+
const file_auth_v1_resolve = /*@__PURE__*/ fileDesc("ChVhdXRoL3YxL3Jlc29sdmUucHJvdG8SB2F1dGgudjEi1QEKD1Jlc29sdmVkQWNjb3VudBIdChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAkSLQoEa2luZBgCIAEoDjIdLmF1dGgudjEuUmVzb2x2ZWRBY2NvdW50LktpbmRCABIVCg1yb290X3VzZXJuYW1lGAMgASgJEhgKEHN1YmFjY291bnRfbGFiZWwYBCABKAkSEgoKYWNjb3VudF9pZBgFIAEoBiIvCgRLaW5kEhQKEEtJTkRfVU5TUEVDSUZJRUQQABIICgRST09UEAESBwoDU1VCEAIiawoVUmVzb2x2ZUFjY291bnRSZXF1ZXN0Eg8KBXF1ZXJ5GAEgASgJQgASJAoEaGludBgCIAEoDjIULmF1dGgudjEuUmVzb2x2ZUhpbnRCABIbChNpbmNsdWRlX3N1YmFjY291bnRzGAMgASgIIkMKFlJlc29sdmVBY2NvdW50UmVzcG9uc2USKQoHbWF0Y2hlcxgBIAMoCzIYLmF1dGgudjEuUmVzb2x2ZWRBY2NvdW50KlQKC1Jlc29sdmVIaW50EhwKGFJFU09MVkVfSElOVF9VTlNQRUNJRklFRBAAEgwKCFVTRVJOQU1FEAESBgoCSUQQAhIRCg1TTUFSVF9BQ0NPVU5UEAMyZQoOUmVzb2x2ZVNlcnZpY2USUwoOUmVzb2x2ZUFjY291bnQSHi5hdXRoLnYxLlJlc29sdmVBY2NvdW50UmVxdWVzdBofLmF1dGgudjEuUmVzb2x2ZUFjY291bnRSZXNwb25zZSIAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==");
|
|
17
19
|
/**
|
|
18
20
|
* Describes the message auth.v1.ResolvedAccount.
|
|
19
21
|
* Use `create(ResolvedAccountSchema)` to create a new message.
|
|
20
22
|
*/
|
|
21
23
|
const ResolvedAccountSchema = /*@__PURE__*/ messageDesc(file_auth_v1_resolve, 0);
|
|
22
24
|
/**
|
|
25
|
+
* Category of account that owns the resolved smart-account address.
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum auth.v1.ResolvedAccount.Kind
|
|
28
|
+
*/
|
|
29
|
+
let ResolvedAccount_Kind = /* @__PURE__ */ function(ResolvedAccount_Kind) {
|
|
30
|
+
/**
|
|
31
|
+
* Account kind was not provided.
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
ResolvedAccount_Kind[ResolvedAccount_Kind["KIND_UNSPECIFIED"] = 0] = "KIND_UNSPECIFIED";
|
|
36
|
+
/**
|
|
37
|
+
* Root account.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: ROOT = 1;
|
|
40
|
+
*/
|
|
41
|
+
ResolvedAccount_Kind[ResolvedAccount_Kind["ROOT"] = 1] = "ROOT";
|
|
42
|
+
/**
|
|
43
|
+
* Sub-account.
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: SUB = 2;
|
|
46
|
+
*/
|
|
47
|
+
ResolvedAccount_Kind[ResolvedAccount_Kind["SUB"] = 2] = "SUB";
|
|
48
|
+
return ResolvedAccount_Kind;
|
|
49
|
+
}({});
|
|
50
|
+
/**
|
|
51
|
+
* Describes the enum auth.v1.ResolvedAccount.Kind.
|
|
52
|
+
*/
|
|
53
|
+
const ResolvedAccount_KindSchema = /*@__PURE__*/ enumDesc(file_auth_v1_resolve, 0, 0);
|
|
54
|
+
/**
|
|
23
55
|
* Describes the message auth.v1.ResolveAccountRequest.
|
|
24
56
|
* Use `create(ResolveAccountRequestSchema)` to create a new message.
|
|
25
57
|
*/
|
|
@@ -75,6 +107,6 @@ const ResolveHintSchema = /*@__PURE__*/ enumDesc(file_auth_v1_resolve, 0);
|
|
|
75
107
|
*/
|
|
76
108
|
const ResolveService = /*@__PURE__*/ serviceDesc(file_auth_v1_resolve, 0);
|
|
77
109
|
//#endregion
|
|
78
|
-
export { ResolveAccountRequestSchema, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccountSchema, file_auth_v1_resolve, resolve_pb_exports };
|
|
110
|
+
export { ResolveAccountRequestSchema, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccountSchema, ResolvedAccount_Kind, ResolvedAccount_KindSchema, file_auth_v1_resolve, resolve_pb_exports };
|
|
79
111
|
|
|
80
112
|
//# sourceMappingURL=resolve_pb.js.map
|