@polyester/sdk 0.35.0-devnet-20261111031027 → 0.35.0-devnet-20261111140253

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/catalogs/snapshot-validation.js +2 -1
  3. package/dist/catalogs/snapshot-validation.js.map +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
  5. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
  6. package/dist/gen/ai/v1/assistant_pb.js +1174 -0
  7. package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
  8. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
  9. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
  10. package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
  11. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
  12. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
  13. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  14. package/dist/gen/auth/v1/address_book_pb.js +6 -0
  15. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/api_keys_pb.d.ts +242 -2
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/api_keys_pb.js +81 -2
  19. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.d.ts +48 -6
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +48 -6
  23. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/policies_pb.d.ts +83 -19
  25. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.js +74 -16
  27. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/social_verification_pb.d.ts +167 -11
  29. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/social_verification_pb.js +41 -3
  31. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -6
  33. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  35. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
  36. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  37. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  38. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
  39. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
  40. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  43. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  44. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  45. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
  46. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  47. package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
  48. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  49. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
  50. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  51. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  53. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +170 -3
  54. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  57. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  58. package/dist/gen/claims/v1/claims_pb.js +1 -1
  59. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  60. package/dist/gen/index.d.ts +9 -5
  61. package/dist/gen/index.js +5 -1
  62. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  63. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  64. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  65. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  66. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
  67. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  68. package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
  69. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  70. package/dist/gen/orders/v1/orders_pb.d.ts +4 -4
  71. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  72. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
  73. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
  74. package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
  75. package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
  76. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1186 -127
  77. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  78. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +282 -5
  79. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  80. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +253 -38
  81. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  82. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +180 -36
  83. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  84. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
  85. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
  86. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
  87. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
  88. package/dist/gen/system/v1/system_pb.d.ts +77 -0
  89. package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
  90. package/dist/gen/system/v1/system_pb.js +34 -0
  91. package/dist/gen/system/v1/system_pb.js.map +1 -0
  92. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
  93. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  94. package/dist/index.d.ts +5 -5
  95. package/dist/services/api-keys/api-keys.codecs.js +10 -1
  96. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  97. package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
  98. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  99. package/dist/services/api-keys/api-keys.schemas.js +3 -1
  100. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  101. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
  102. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  103. package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
  104. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  105. package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
  106. package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
  107. package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
  108. package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
  109. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +394 -26
  110. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  111. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
  112. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  113. package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
  114. package/dist/services/candles/candles.schemas.d.ts +10 -10
  115. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  116. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  117. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  118. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  119. package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
  120. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  121. package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
  122. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  123. package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -40
  124. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  125. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  126. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  127. package/dist/services/market-data/market-data.schemas.js +7 -2
  128. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  129. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  130. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  131. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  132. package/dist/services/orders/orders-batch.schemas.d.ts +27 -27
  133. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  134. package/dist/services/orders/orders-output.schemas.d.ts +17 -17
  135. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  136. package/dist/services/policies/shared.codecs.js +24 -3
  137. package/dist/services/policies/shared.codecs.js.map +1 -1
  138. package/dist/services/policies/shared.d.ts +1 -1
  139. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  140. package/dist/services/social-verification/social-verification.codecs.js +13 -5
  141. package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
  142. package/dist/services/social-verification/social-verification.d.ts +18 -3
  143. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  144. package/dist/services/social-verification/social-verification.js +26 -3
  145. package/dist/services/social-verification/social-verification.js.map +1 -1
  146. package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
  147. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  148. package/dist/services/social-verification/social-verification.schemas.js +35 -10
  149. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  150. package/dist/services/social-verification/social-verification.types.d.ts +2 -2
  151. package/dist/services/subaccounts/subaccounts.schemas.d.ts +7 -7
  152. package/dist/services/trades/trades.schemas.d.ts +2 -2
  153. package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
  154. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  155. package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
  156. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  157. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
  158. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  159. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
  160. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  161. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  162. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  163. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  164. package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
  165. package/dist/shared/catalog-config.d.ts +5 -0
  166. package/dist/shared/catalog-config.d.ts.map +1 -1
  167. package/dist/shared/catalog-config.js.map +1 -1
  168. package/dist/shared/error-detail.d.ts +6 -0
  169. package/dist/shared/error-detail.d.ts.map +1 -1
  170. package/dist/shared/error-detail.js.map +1 -1
  171. package/dist/shared/error-details/withdraw.js +11 -2
  172. package/dist/shared/error-details/withdraw.js.map +1 -1
  173. package/dist/shared/ledger-codes.d.ts +4 -2
  174. package/dist/shared/ledger-codes.d.ts.map +1 -1
  175. package/dist/shared/ledger-codes.js +6 -3
  176. package/dist/shared/ledger-codes.js.map +1 -1
  177. package/dist/shared/rate-limit.schemas.d.ts +2 -2
  178. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  179. package/dist/shared/rate-limit.schemas.js +4 -1
  180. package/dist/shared/rate-limit.schemas.js.map +1 -1
  181. package/dist/shared/transports.d.ts +2 -1
  182. package/dist/shared/transports.d.ts.map +1 -1
  183. package/dist/shared/transports.js.map +1 -1
  184. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { Message } from "@bufbuild/protobuf";
2
2
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
3
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
4
4
  declare namespace api_keys_pb_d_exports {
5
- export { ApiKey, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpec, ApiKeyUpdateSpecSchema, CreateApiKeyRequest, CreateApiKeyRequestSchema, CreateApiKeyResponse, CreateApiKeyResponseSchema, DeleteApiKeyRequest, DeleteApiKeyRequestSchema, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, GetApiKeyRequest, GetApiKeyRequestSchema, GetApiKeyResponse, GetApiKeyResponseSchema, ListApiKeysRequest, ListApiKeysRequestSchema, ListApiKeysResponse, ListApiKeysResponseSchema, UpdateApiKeyRequest, UpdateApiKeyRequestSchema, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, file_auth_v1_api_keys };
5
+ export { ApiKey, ApiKeyPurpose, ApiKeyPurposeSchema, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpec, ApiKeyUpdateSpecSchema, AssistantKeySpec, AssistantKeySpecSchema, CreateApiKeyRequest, CreateApiKeyRequestSchema, CreateApiKeyResponse, CreateApiKeyResponseSchema, DeleteApiKeyRequest, DeleteApiKeyRequestSchema, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, DeleteAssistantKeysRequest, DeleteAssistantKeysRequestSchema, DeleteAssistantKeysResponse, DeleteAssistantKeysResponseSchema, GetApiKeyRequest, GetApiKeyRequestSchema, GetApiKeyResponse, GetApiKeyResponseSchema, ListApiKeysRequest, ListApiKeysRequestSchema, ListApiKeysResponse, ListApiKeysResponseSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, SetAssistantKeysRequest, SetAssistantKeysRequestSchema, SetAssistantKeysResponse, SetAssistantKeysResponseSchema, UpdateApiKeyRequest, UpdateApiKeyRequestSchema, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, file_auth_v1_api_keys };
6
6
  }
7
7
  /**
8
8
  * Describes the file auth/v1/api_keys.proto.
@@ -115,6 +115,13 @@ type ApiKey = Message<"auth.v1.ApiKey"> & {
115
115
  * @generated from field: uint64 revision = 26;
116
116
  */
117
117
  revision: bigint;
118
+ /**
119
+ * What the key is for. ASSISTANT keys are managed with SetAssistantKeys and
120
+ * are otherwise listed, updated and revoked like any key.
121
+ *
122
+ * @generated from field: auth.v1.ApiKeyPurpose purpose = 27;
123
+ */
124
+ purpose: ApiKeyPurpose;
118
125
  };
119
126
  /**
120
127
  * Describes the message auth.v1.ApiKey.
@@ -401,6 +408,155 @@ type UpdateApiKeyResponse = Message<"auth.v1.UpdateApiKeyResponse"> & {
401
408
  * Use `create(UpdateApiKeyResponseSchema)` to create a new message.
402
409
  */
403
410
  declare const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse>;
411
+ /**
412
+ * AssistantKeySpec is one account's key in the caller's assistant key set.
413
+ *
414
+ * @generated from message auth.v1.AssistantKeySpec
415
+ */
416
+ type AssistantKeySpec = Message<"auth.v1.AssistantKeySpec"> & {
417
+ /**
418
+ * Sub-account the key acts for (opaque ID). Unset means the caller's main
419
+ * account. A key acts for exactly one account.
420
+ *
421
+ * @generated from field: optional fixed64 subaccount_id = 1;
422
+ */
423
+ subaccountId?: bigint | undefined;
424
+ /**
425
+ * Ed25519 public key bytes the Polyester AI assistant signs with. Must be
426
+ * exactly 32 bytes, and distinct within the set.
427
+ *
428
+ * @generated from field: bytes public_key_ed25519 = 2;
429
+ */
430
+ publicKeyEd25519: Uint8Array;
431
+ /**
432
+ * API policy that bounds the key (opaque ID). It must belong to the same
433
+ * main account as the key, and must not allow EXTERNAL_WITHDRAW,
434
+ * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.
435
+ *
436
+ * @generated from field: fixed64 policy_id = 3;
437
+ */
438
+ policyId: bigint;
439
+ /**
440
+ * Time until which the key may be registered, as the Polyester AI assistant
441
+ * issued it with the key (PrepareAssistantKeys), in whole milliseconds.
442
+ * Required for a new key: it must still be ahead, and at most 15 minutes
443
+ * ahead. Not needed when the account's current assistant key already has
444
+ * this public key.
445
+ *
446
+ * @generated from field: google.protobuf.Timestamp registration_deadline = 4;
447
+ */
448
+ registrationDeadline?: Timestamp | undefined;
449
+ /**
450
+ * The key's own Ed25519 signature over the caller's account, the key's
451
+ * account, its public key and registration_deadline, as the assistant
452
+ * issued it with the key (64 bytes). Required for a new key; not needed
453
+ * when the account's current assistant key already has this public key.
454
+ *
455
+ * @generated from field: bytes registration_proof = 5;
456
+ */
457
+ registrationProof: Uint8Array;
458
+ };
459
+ /**
460
+ * Describes the message auth.v1.AssistantKeySpec.
461
+ * Use `create(AssistantKeySpecSchema)` to create a new message.
462
+ */
463
+ declare const AssistantKeySpecSchema: GenMessage<AssistantKeySpec>;
464
+ /**
465
+ * SetAssistantKeysRequest replaces the caller's assistant key set.
466
+ *
467
+ * @generated from message auth.v1.SetAssistantKeysRequest
468
+ */
469
+ type SetAssistantKeysRequest = Message<"auth.v1.SetAssistantKeysRequest"> & {
470
+ /**
471
+ * The complete set, at most one key per account and at most 64 keys. An
472
+ * account left out loses its assistant key.
473
+ *
474
+ * @generated from field: repeated auth.v1.AssistantKeySpec keys = 1;
475
+ */
476
+ keys: AssistantKeySpec[];
477
+ };
478
+ /**
479
+ * Describes the message auth.v1.SetAssistantKeysRequest.
480
+ * Use `create(SetAssistantKeysRequestSchema)` to create a new message.
481
+ */
482
+ declare const SetAssistantKeysRequestSchema: GenMessage<SetAssistantKeysRequest>;
483
+ /**
484
+ * SetAssistantKeysResponse returns the caller's assistant key set.
485
+ *
486
+ * @generated from message auth.v1.SetAssistantKeysResponse
487
+ */
488
+ type SetAssistantKeysResponse = Message<"auth.v1.SetAssistantKeysResponse"> & {
489
+ /**
490
+ * The assistant keys now in the set, in request order.
491
+ *
492
+ * @generated from field: repeated auth.v1.ApiKey api_keys = 1;
493
+ */
494
+ apiKeys: ApiKey[];
495
+ };
496
+ /**
497
+ * Describes the message auth.v1.SetAssistantKeysResponse.
498
+ * Use `create(SetAssistantKeysResponseSchema)` to create a new message.
499
+ */
500
+ declare const SetAssistantKeysResponseSchema: GenMessage<SetAssistantKeysResponse>;
501
+ /**
502
+ * ListAssistantKeysRequest lists the caller's assistant key set.
503
+ *
504
+ * @generated from message auth.v1.ListAssistantKeysRequest
505
+ */
506
+ type ListAssistantKeysRequest = Message<"auth.v1.ListAssistantKeysRequest"> & {};
507
+ /**
508
+ * Describes the message auth.v1.ListAssistantKeysRequest.
509
+ * Use `create(ListAssistantKeysRequestSchema)` to create a new message.
510
+ */
511
+ declare const ListAssistantKeysRequestSchema: GenMessage<ListAssistantKeysRequest>;
512
+ /**
513
+ * ListAssistantKeysResponse contains the caller's assistant keys.
514
+ *
515
+ * @generated from message auth.v1.ListAssistantKeysResponse
516
+ */
517
+ type ListAssistantKeysResponse = Message<"auth.v1.ListAssistantKeysResponse"> & {
518
+ /**
519
+ * Non-revoked assistant keys the caller set up, newest first.
520
+ *
521
+ * @generated from field: repeated auth.v1.ApiKey api_keys = 1;
522
+ */
523
+ apiKeys: ApiKey[];
524
+ };
525
+ /**
526
+ * Describes the message auth.v1.ListAssistantKeysResponse.
527
+ * Use `create(ListAssistantKeysResponseSchema)` to create a new message.
528
+ */
529
+ declare const ListAssistantKeysResponseSchema: GenMessage<ListAssistantKeysResponse>;
530
+ /**
531
+ * DeleteAssistantKeysRequest revokes the caller's whole assistant key set.
532
+ *
533
+ * @generated from message auth.v1.DeleteAssistantKeysRequest
534
+ */
535
+ type DeleteAssistantKeysRequest = Message<"auth.v1.DeleteAssistantKeysRequest"> & {};
536
+ /**
537
+ * Describes the message auth.v1.DeleteAssistantKeysRequest.
538
+ * Use `create(DeleteAssistantKeysRequestSchema)` to create a new message.
539
+ */
540
+ declare const DeleteAssistantKeysRequestSchema: GenMessage<DeleteAssistantKeysRequest>;
541
+ /**
542
+ * DeleteAssistantKeysResponse lists the keys that were revoked.
543
+ *
544
+ * @generated from message auth.v1.DeleteAssistantKeysResponse
545
+ */
546
+ type DeleteAssistantKeysResponse = Message<"auth.v1.DeleteAssistantKeysResponse"> & {
547
+ /**
548
+ * Opaque identifiers of the keys revoked by this request. Empty when the set
549
+ * was already empty.
550
+ *
551
+ * @generated from field: repeated string revoked_key_ids = 1;
552
+ */
553
+ revokedKeyIds: string[];
554
+ };
555
+ /**
556
+ * Describes the message auth.v1.DeleteAssistantKeysResponse.
557
+ * Use `create(DeleteAssistantKeysResponseSchema)` to create a new message.
558
+ */
559
+ declare const DeleteAssistantKeysResponseSchema: GenMessage<DeleteAssistantKeysResponse>;
404
560
  /**
405
561
  * Status of an API key.
406
562
  *
@@ -436,6 +592,40 @@ declare enum ApiKeyStatus {
436
592
  * Describes the enum auth.v1.ApiKeyStatus.
437
593
  */
438
594
  declare const ApiKeyStatusSchema: GenEnum<ApiKeyStatus>;
595
+ /**
596
+ * Purpose of an API key.
597
+ *
598
+ * @generated from enum auth.v1.ApiKeyPurpose
599
+ */
600
+ declare enum ApiKeyPurpose {
601
+ /**
602
+ * No purpose specified.
603
+ *
604
+ * @generated from enum value: PURPOSE_UNSPECIFIED = 0;
605
+ */
606
+ PURPOSE_UNSPECIFIED = 0,
607
+ /**
608
+ * A key the account holder created for their own programs.
609
+ *
610
+ * @generated from enum value: STANDARD = 1;
611
+ */
612
+ STANDARD = 1,
613
+ /**
614
+ * A key the account holder created for the Polyester AI assistant through
615
+ * SetAssistantKeys. Its policy can never allow actions that move value out
616
+ * of the account or manage where it goes, such as external withdrawals or
617
+ * internal transfers. Only its creator's assistant uses it, so a sub-account
618
+ * assistant key is revoked when its creator loses the role that manages the
619
+ * sub-account's API keys or leaves the sub-account.
620
+ *
621
+ * @generated from enum value: ASSISTANT = 2;
622
+ */
623
+ ASSISTANT = 2
624
+ }
625
+ /**
626
+ * Describes the enum auth.v1.ApiKeyPurpose.
627
+ */
628
+ declare const ApiKeyPurposeSchema: GenEnum<ApiKeyPurpose>;
439
629
  /**
440
630
  * ApiKeyService manages API keys for authenticated callers.
441
631
  *
@@ -500,7 +690,57 @@ declare const ApiKeyService: GenService<{
500
690
  input: typeof UpdateApiKeyRequestSchema;
501
691
  output: typeof UpdateApiKeyResponseSchema;
502
692
  };
693
+ /**
694
+ * Create or replace the caller's Polyester AI assistant key set: one
695
+ * ASSISTANT key per enabled account, each bounded by its API policy. One
696
+ * fresh step-up proof covers the whole set, and the change is all or
697
+ * nothing. An entry whose account already has an assistant key with the same
698
+ * public key keeps that key, with its status, and takes the requested
699
+ * policy; any other entry replaces the account's key. Accounts left out of
700
+ * the set have their assistant key revoked. A sub-account entry needs the
701
+ * same access as CreateApiKey: owner, or a role that manages its API keys.
702
+ * The acting caller's root account must have accepted the current terms;
703
+ * otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned. A
704
+ * policy that allows a money-out action returns FailedPrecondition with
705
+ * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED. A new key is registered only with
706
+ * the registration proof and deadline the assistant issued with it
707
+ * (PrepareAssistantKeys), before that deadline: a missing or failing proof
708
+ * returns InvalidArgument with AUTH_ASSISTANT_KEY_PROOF_INVALID, a passed
709
+ * deadline FailedPrecondition with AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED,
710
+ * and one more than 15 minutes ahead InvalidArgument with
711
+ * AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.
712
+ *
713
+ * @generated from rpc auth.v1.ApiKeyService.SetAssistantKeys
714
+ */
715
+ setAssistantKeys: {
716
+ methodKind: "unary";
717
+ input: typeof SetAssistantKeysRequestSchema;
718
+ output: typeof SetAssistantKeysResponseSchema;
719
+ };
720
+ /**
721
+ * List the caller's non-revoked Polyester AI assistant keys, newest first.
722
+ *
723
+ * @generated from rpc auth.v1.ApiKeyService.ListAssistantKeys
724
+ */
725
+ listAssistantKeys: {
726
+ methodKind: "unary";
727
+ input: typeof ListAssistantKeysRequestSchema;
728
+ output: typeof ListAssistantKeysResponseSchema;
729
+ };
730
+ /**
731
+ * Revoke the caller's whole Polyester AI assistant key set. Revocation only
732
+ * removes access, so it needs no step-up proof. Revocation is permanent. As
733
+ * for DeleteApiKey, key management sees it at once, and requests signed with
734
+ * a revoked key are refused within a few seconds of the response.
735
+ *
736
+ * @generated from rpc auth.v1.ApiKeyService.DeleteAssistantKeys
737
+ */
738
+ deleteAssistantKeys: {
739
+ methodKind: "unary";
740
+ input: typeof DeleteAssistantKeysRequestSchema;
741
+ output: typeof DeleteAssistantKeysResponseSchema;
742
+ };
503
743
  }>;
504
744
  //#endregion
505
- export { ApiKey, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpec, ApiKeyUpdateSpecSchema, CreateApiKeyRequest, CreateApiKeyRequestSchema, CreateApiKeyResponse, CreateApiKeyResponseSchema, DeleteApiKeyRequest, DeleteApiKeyRequestSchema, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, GetApiKeyRequest, GetApiKeyRequestSchema, GetApiKeyResponse, GetApiKeyResponseSchema, ListApiKeysRequest, ListApiKeysRequestSchema, ListApiKeysResponse, ListApiKeysResponseSchema, UpdateApiKeyRequest, UpdateApiKeyRequestSchema, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, api_keys_pb_d_exports, file_auth_v1_api_keys };
745
+ export { ApiKey, ApiKeyPurpose, ApiKeyPurposeSchema, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpec, ApiKeyUpdateSpecSchema, AssistantKeySpec, AssistantKeySpecSchema, CreateApiKeyRequest, CreateApiKeyRequestSchema, CreateApiKeyResponse, CreateApiKeyResponseSchema, DeleteApiKeyRequest, DeleteApiKeyRequestSchema, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, DeleteAssistantKeysRequest, DeleteAssistantKeysRequestSchema, DeleteAssistantKeysResponse, DeleteAssistantKeysResponseSchema, GetApiKeyRequest, GetApiKeyRequestSchema, GetApiKeyResponse, GetApiKeyResponseSchema, ListApiKeysRequest, ListApiKeysRequestSchema, ListApiKeysResponse, ListApiKeysResponseSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, SetAssistantKeysRequest, SetAssistantKeysRequestSchema, SetAssistantKeysResponse, SetAssistantKeysResponseSchema, UpdateApiKeyRequest, UpdateApiKeyRequestSchema, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, api_keys_pb_d_exports, file_auth_v1_api_keys };
506
746
  //# sourceMappingURL=api_keys_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api_keys_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"mappings":";;;;;;;;;cAca,uBAAuB;;;;;;KAQxB,SAAS;;;;;;;EAOnB;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA,QAAQ;;;;;;EAOR;;;;;;;EAQA;;;;;;EAOA,YAAY;;;;;;;;EASZ,aAAa;;;;;;;EAQb,kBAAkB;;;;;;;EAQlB,YAAY;;;;;;;EAQZ;;;;;;;;;EAUA,YAAY;;;;;;EAOZ;;;;;;cAOW,cAAc,W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uB;;;;;;EAMjC,SAAS;;;;;;cAOE,4BAA4B,WAAW;;;;;;KAQxC,mBAAmB;;;;;;;EAO7B;;;;;;;EAQA,kBAAkB;;;;;;;;EASlB;;;;;;;;;;EAWA,uBAAuB;;;;;;;;;EAUvB,mBAAmB;;;;;;cAOR,wBAAwB,WAAW;;;;;;KAQpC,0BAA0B;;;;;;;EAOpC,MAAM;;;;;;cAOK,+BAA+B,WAAW;;;;;;KAQ3C,2BAA2B;;;;;;EAMrC,SAAS;;;;;;cAOE,gCAAgC,WAAW;;;;;;KAQ5C,2BAA2B;;;;;cAO1B,gCAAgC,WAAW;;;;;;KAQ5C,4BAA4B;;;;;;EAMtC,SAAS;;;;;;cAOE,iCAAiC,WAAW;;;;;;KAQ7C,6BAA6B;;;;;cAO5B,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8B;;;;;;;EAOxC;;;;;;cAOW,mCAAmC,WAAW;;;;;;aAQ/C;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,oBAAoB,QAAQ;;;;;;aAQ7B;;;;;;EAMV;;;;;;EAOA;;;;;;;;;;;EAYA;;;;;cAMW,qBAAqB,QAAQ;;;;;;cAQ7B,eAAe;;;;;;;;;EAS1B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAwBjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;EAUjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -4,19 +4,28 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf
4
4
  import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
5
5
  //#region src/gen/auth/v1/api_keys_pb.ts
6
6
  var api_keys_pb_exports = /* @__PURE__ */ __exportAll({
7
+ ApiKeyPurpose: () => ApiKeyPurpose,
8
+ ApiKeyPurposeSchema: () => ApiKeyPurposeSchema,
7
9
  ApiKeySchema: () => ApiKeySchema,
8
10
  ApiKeyService: () => ApiKeyService,
9
11
  ApiKeyStatus: () => ApiKeyStatus,
10
12
  ApiKeyStatusSchema: () => ApiKeyStatusSchema,
11
13
  ApiKeyUpdateSpecSchema: () => ApiKeyUpdateSpecSchema,
14
+ AssistantKeySpecSchema: () => AssistantKeySpecSchema,
12
15
  CreateApiKeyRequestSchema: () => CreateApiKeyRequestSchema,
13
16
  CreateApiKeyResponseSchema: () => CreateApiKeyResponseSchema,
14
17
  DeleteApiKeyRequestSchema: () => DeleteApiKeyRequestSchema,
15
18
  DeleteApiKeyResponseSchema: () => DeleteApiKeyResponseSchema,
19
+ DeleteAssistantKeysRequestSchema: () => DeleteAssistantKeysRequestSchema,
20
+ DeleteAssistantKeysResponseSchema: () => DeleteAssistantKeysResponseSchema,
16
21
  GetApiKeyRequestSchema: () => GetApiKeyRequestSchema,
17
22
  GetApiKeyResponseSchema: () => GetApiKeyResponseSchema,
18
23
  ListApiKeysRequestSchema: () => ListApiKeysRequestSchema,
19
24
  ListApiKeysResponseSchema: () => ListApiKeysResponseSchema,
25
+ ListAssistantKeysRequestSchema: () => ListAssistantKeysRequestSchema,
26
+ ListAssistantKeysResponseSchema: () => ListAssistantKeysResponseSchema,
27
+ SetAssistantKeysRequestSchema: () => SetAssistantKeysRequestSchema,
28
+ SetAssistantKeysResponseSchema: () => SetAssistantKeysResponseSchema,
20
29
  UpdateApiKeyRequestSchema: () => UpdateApiKeyRequestSchema,
21
30
  UpdateApiKeyResponseSchema: () => UpdateApiKeyResponseSchema,
22
31
  file_auth_v1_api_keys: () => file_auth_v1_api_keys
@@ -24,7 +33,7 @@ var api_keys_pb_exports = /* @__PURE__ */ __exportAll({
24
33
  /**
25
34
  * Describes the file auth/v1/api_keys.proto.
26
35
  */
27
- const file_auth_v1_api_keys = /*@__PURE__*/ fileDesc("ChZhdXRoL3YxL2FwaV9rZXlzLnByb3RvEgdhdXRoLnYxIucDCgZBcGlLZXkSEAoGa2V5X2lkGAIgASgJQgASDQoFbGFiZWwYAyABKAkSDgoEaWNvbhgJIAEoCUIAEg8KBWNvbG9yGAogASgJQgASFgoMaXBfd2hpdGVsaXN0GAQgAygJQgASJQoGc3RhdHVzGAYgASgOMhUuYXV0aC52MS5BcGlLZXlTdGF0dXMSGgoNc3ViYWNjb3VudF9pZBgHIAEoBkgAiAEBEhYKCXBvbGljeV9pZBgIIAEoBkgBiAEBEi4KCmNyZWF0ZWRfYXQYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgVIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGgoScHVibGljX2tleV9lZDI1NTE5GBYgASgMEi4KCmV4cGlyZXNfYXQYFyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhgKEGNyZWF0ZWRfYnlfYWN0b3IYGCABKAkSLgoKdXBkYXRlZF9hdBgZIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEAoIcmV2aXNpb24YGiABKARCEAoOX3N1YmFjY291bnRfaWRCDAoKX3BvbGljeV9pZCKrAQoTQ3JlYXRlQXBpS2V5UmVxdWVzdBIPCgVsYWJlbBgBIAEoCUIAEhoKDXN1YmFjY291bnRfaWQYAyABKAZIAIgBARIOCgRpY29uGAYgASgJQgASDwoFY29sb3IYByABKAlCABIWCgxpcF93aGl0ZWxpc3QYBCADKAlCABIcChJwdWJsaWNfa2V5X2VkMjU1MTkYBSABKAxCAEIQCg5fc3ViYWNjb3VudF9pZCI4ChRDcmVhdGVBcGlLZXlSZXNwb25zZRIgCgdhcGlfa2V5GAEgASgLMg8uYXV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xLkxpc3RBc3Npc3RhbnRLZXlzUmVzcG9uc2UiABJiChNEZWxldGVBc3Npc3RhbnRLZXlzEiMuYXV0aC52MS5EZWxldGVBc3Npc3RhbnRLZXlzUmVxdWVzdBokLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1Jlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=", [
28
37
  file_google_protobuf_field_mask,
29
38
  file_google_protobuf_timestamp,
30
39
  file_polyester_api_options
@@ -90,6 +99,41 @@ const UpdateApiKeyRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_key
90
99
  */
91
100
  const UpdateApiKeyResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 11);
92
101
  /**
102
+ * Describes the message auth.v1.AssistantKeySpec.
103
+ * Use `create(AssistantKeySpecSchema)` to create a new message.
104
+ */
105
+ const AssistantKeySpecSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 12);
106
+ /**
107
+ * Describes the message auth.v1.SetAssistantKeysRequest.
108
+ * Use `create(SetAssistantKeysRequestSchema)` to create a new message.
109
+ */
110
+ const SetAssistantKeysRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 13);
111
+ /**
112
+ * Describes the message auth.v1.SetAssistantKeysResponse.
113
+ * Use `create(SetAssistantKeysResponseSchema)` to create a new message.
114
+ */
115
+ const SetAssistantKeysResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 14);
116
+ /**
117
+ * Describes the message auth.v1.ListAssistantKeysRequest.
118
+ * Use `create(ListAssistantKeysRequestSchema)` to create a new message.
119
+ */
120
+ const ListAssistantKeysRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 15);
121
+ /**
122
+ * Describes the message auth.v1.ListAssistantKeysResponse.
123
+ * Use `create(ListAssistantKeysResponseSchema)` to create a new message.
124
+ */
125
+ const ListAssistantKeysResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 16);
126
+ /**
127
+ * Describes the message auth.v1.DeleteAssistantKeysRequest.
128
+ * Use `create(DeleteAssistantKeysRequestSchema)` to create a new message.
129
+ */
130
+ const DeleteAssistantKeysRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 17);
131
+ /**
132
+ * Describes the message auth.v1.DeleteAssistantKeysResponse.
133
+ * Use `create(DeleteAssistantKeysResponseSchema)` to create a new message.
134
+ */
135
+ const DeleteAssistantKeysResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_api_keys, 18);
136
+ /**
93
137
  * Status of an API key.
94
138
  *
95
139
  * @generated from enum auth.v1.ApiKeyStatus
@@ -126,12 +170,47 @@ let ApiKeyStatus = /* @__PURE__ */ function(ApiKeyStatus) {
126
170
  */
127
171
  const ApiKeyStatusSchema = /*@__PURE__*/ enumDesc(file_auth_v1_api_keys, 0);
128
172
  /**
173
+ * Purpose of an API key.
174
+ *
175
+ * @generated from enum auth.v1.ApiKeyPurpose
176
+ */
177
+ let ApiKeyPurpose = /* @__PURE__ */ function(ApiKeyPurpose) {
178
+ /**
179
+ * No purpose specified.
180
+ *
181
+ * @generated from enum value: PURPOSE_UNSPECIFIED = 0;
182
+ */
183
+ ApiKeyPurpose[ApiKeyPurpose["PURPOSE_UNSPECIFIED"] = 0] = "PURPOSE_UNSPECIFIED";
184
+ /**
185
+ * A key the account holder created for their own programs.
186
+ *
187
+ * @generated from enum value: STANDARD = 1;
188
+ */
189
+ ApiKeyPurpose[ApiKeyPurpose["STANDARD"] = 1] = "STANDARD";
190
+ /**
191
+ * A key the account holder created for the Polyester AI assistant through
192
+ * SetAssistantKeys. Its policy can never allow actions that move value out
193
+ * of the account or manage where it goes, such as external withdrawals or
194
+ * internal transfers. Only its creator's assistant uses it, so a sub-account
195
+ * assistant key is revoked when its creator loses the role that manages the
196
+ * sub-account's API keys or leaves the sub-account.
197
+ *
198
+ * @generated from enum value: ASSISTANT = 2;
199
+ */
200
+ ApiKeyPurpose[ApiKeyPurpose["ASSISTANT"] = 2] = "ASSISTANT";
201
+ return ApiKeyPurpose;
202
+ }({});
203
+ /**
204
+ * Describes the enum auth.v1.ApiKeyPurpose.
205
+ */
206
+ const ApiKeyPurposeSchema = /*@__PURE__*/ enumDesc(file_auth_v1_api_keys, 1);
207
+ /**
129
208
  * ApiKeyService manages API keys for authenticated callers.
130
209
  *
131
210
  * @generated from service auth.v1.ApiKeyService
132
211
  */
133
212
  const ApiKeyService = /*@__PURE__*/ serviceDesc(file_auth_v1_api_keys, 0);
134
213
  //#endregion
135
- export { ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpecSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, DeleteApiKeyRequestSchema, DeleteApiKeyResponseSchema, GetApiKeyRequestSchema, GetApiKeyResponseSchema, ListApiKeysRequestSchema, ListApiKeysResponseSchema, UpdateApiKeyRequestSchema, UpdateApiKeyResponseSchema, api_keys_pb_exports, file_auth_v1_api_keys };
214
+ export { ApiKeyPurpose, ApiKeyPurposeSchema, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpecSchema, AssistantKeySpecSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, DeleteApiKeyRequestSchema, DeleteApiKeyResponseSchema, DeleteAssistantKeysRequestSchema, DeleteAssistantKeysResponseSchema, GetApiKeyRequestSchema, GetApiKeyResponseSchema, ListApiKeysRequestSchema, ListApiKeysResponseSchema, ListAssistantKeysRequestSchema, ListAssistantKeysResponseSchema, SetAssistantKeysRequestSchema, SetAssistantKeysResponseSchema, UpdateApiKeyRequestSchema, UpdateApiKeyResponseSchema, api_keys_pb_exports, file_auth_v1_api_keys };
136
215
 
137
216
  //# sourceMappingURL=api_keys_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api_keys_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/api_keys.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/api_keys.proto.\n */\nexport const file_auth_v1_api_keys: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhdXRoL3YxL2FwaV9rZXlzLnByb3RvEgdhdXRoLnYxIucDCgZBcGlLZXkSEAoGa2V5X2lkGAIgASgJQgASDQoFbGFiZWwYAyABKAkSDgoEaWNvbhgJIAEoCUIAEg8KBWNvbG9yGAogASgJQgASFgoMaXBfd2hpdGVsaXN0GAQgAygJQgASJQoGc3RhdHVzGAYgASgOMhUuYXV0aC52MS5BcGlLZXlTdGF0dXMSGgoNc3ViYWNjb3VudF9pZBgHIAEoBkgAiAEBEhYKCXBvbGljeV9pZBgIIAEoBkgBiAEBEi4KCmNyZWF0ZWRfYXQYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgVIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGgoScHVibGljX2tleV9lZDI1NTE5GBYgASgMEi4KCmV4cGlyZXNfYXQYFyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhgKEGNyZWF0ZWRfYnlfYWN0b3IYGCABKAkSLgoKdXBkYXRlZF9hdBgZIAEo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rZXlfaWQYASABKAlCABIsCgdhcGlfa2V5GAIgASgLMhkuYXV0aC52MS5BcGlLZXlVcGRhdGVTcGVjQgASMQoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgASGwoRZXhwZWN0ZWRfcmV2aXNpb24YBCABKARCACI4ChRVcGRhdGVBcGlLZXlSZXNwb25zZRIgCgdhcGlfa2V5GAEgASgLMg8uYXV0aC52MS5BcGlLZXkqVQoMQXBpS2V5U3RhdHVzEh4KGkFQSV9LRVlfU1RBVFVTX1VOU1BFQ0lGSUVEEAASCgoGQUNUSVZFEAESCwoHUkVWT0tFRBACEgwKCERJU0FCTEVEEAMykAMKDUFwaUtleVNlcnZpY2USTQoMQ3JlYXRlQXBpS2V5EhwuYXV0aC52MS5DcmVhdGVBcGlLZXlSZXF1ZXN0Gh0uYXV0aC52MS5DcmVhdGVBcGlLZXlSZXNwb25zZSIAEkoKC0xpc3RBcGlLZXlzEhsuYXV0aC52MS5MaXN0QXBpS2V5c1JlcXVlc3QaHC5hdXRoLnYxLkxpc3RBcGlLZXlzUmVzcG9uc2UiABJECglHZXRBcGlLZXkSGS5hdXRoLnYxLkdldEFwaUtleVJlcXVlc3QaGi5hdXRoLnYxLkdldEFwaUtleVJlc3BvbnNlIgASTQoMRGVsZXRlQXBpS2V5EhwuYXV0aC52MS5EZWxldGVBcGlLZXlSZXF1ZXN0Gh0uYXV0aC52MS5EZWxldGVBcGlLZXlSZXNwb25zZSIAEk0KDFVwZGF0ZUFwaUtleRIcLmF1dGgudjEuVXBkYXRlQXBpS2V5UmVxdWVzdBodLmF1dGgudjEuVXBkYXRlQXBpS2V5UmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ApiKey is public API key metadata. It never includes the private key or seed.\n *\n * @generated from message auth.v1.ApiKey\n */\nexport type ApiKey = Message<\"auth.v1.ApiKey\"> & {\n /**\n * Stable opaque identifier used to refer to this key, formatted as \"ak_\"\n * followed by 32 lowercase hex characters.\n *\n * @generated from field: string key_id = 2;\n */\n keyId: string;\n\n /**\n * Human-readable label for the key. Maximum length is 64 characters.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 9;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 10;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Current key status.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 6;\n */\n status: ApiKeyStatus;\n\n /**\n * Optional sub-account this key is scoped to (opaque ID; empty = root-level).\n *\n * @generated from field: optional fixed64 subaccount_id = 7;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional API policy attached to this key (opaque ID).\n * Empty means no policy is attached and the key has no permissions.\n *\n * @generated from field: optional fixed64 policy_id = 8;\n */\n policyId?: bigint | undefined;\n\n /**\n * Time in UTC when this key was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 20;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Approximate last time in UTC when this key authenticated a request,\n * recorded at most about once a minute; it may lag recent use by a few\n * minutes. Omitted when no use has been recorded.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 21;\n */\n lastUsedAt?: Timestamp | undefined;\n\n /**\n * Ed25519 public key bytes associated with this API key. The private key or\n * seed is never returned by the API.\n *\n * @generated from field: bytes public_key_ed25519 = 22;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * Optional expiry time in UTC. When set, the key cannot authenticate requests\n * after this time, regardless of status.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 23;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Read-only actor label describing who created this key, such as a username\n * or account label.\n *\n * @generated from field: string created_by_actor = 24;\n */\n createdByActor: string;\n\n /**\n * Time in UTC when this key's configuration was last changed. For the same\n * key, later is fresher, equal is an idempotent replay, and earlier is stale.\n * Equal timestamps with different configuration indicate an invariant failure.\n * This is independent of last_used_at, which tracks authentication activity.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 25;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * Monotonic resource revision used for conditional updates.\n *\n * @generated from field: uint64 revision = 26;\n */\n revision: bigint;\n};\n\n/**\n * Describes the message auth.v1.ApiKey.\n * Use `create(ApiKeySchema)` to create a new message.\n */\nexport const ApiKeySchema: GenMessage<ApiKey> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 0);\n\n/**\n * CreateApiKeyRequest creates a new API key. Clients generate the Ed25519 key\n * pair locally and submit only the public key.\n *\n * @generated from message auth.v1.CreateApiKeyRequest\n */\nexport type CreateApiKeyRequest = Message<\"auth.v1.CreateApiKeyRequest\"> & {\n /**\n * Human-readable label for the key. Required; 1 to 64 characters, and must\n * not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * Optional sub-account to scope this key to (opaque ID). If unset, the key is\n * root-level.\n *\n * @generated from field: optional fixed64 subaccount_id = 3;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 6;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 7;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Ed25519 public key bytes. Must be exactly 32 bytes. The private key or seed\n * must never be sent to the API.\n *\n * @generated from field: bytes public_key_ed25519 = 5;\n */\n publicKeyEd25519: Uint8Array;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyRequest.\n * Use `create(CreateApiKeyRequestSchema)` to create a new message.\n */\nexport const CreateApiKeyRequestSchema: GenMessage<CreateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 1);\n\n/**\n * CreateApiKeyResponse returns the created API key metadata.\n *\n * @generated from message auth.v1.CreateApiKeyResponse\n */\nexport type CreateApiKeyResponse = Message<\"auth.v1.CreateApiKeyResponse\"> & {\n /**\n * Created API key metadata. The private key or seed is never returned.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyResponse.\n * Use `create(CreateApiKeyResponseSchema)` to create a new message.\n */\nexport const CreateApiKeyResponseSchema: GenMessage<CreateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ListApiKeysRequest lists non-revoked API keys visible to the caller.\n *\n * @generated from message auth.v1.ListApiKeysRequest\n */\nexport type ListApiKeysRequest = Message<\"auth.v1.ListApiKeysRequest\"> & {\n /**\n * Optional filter: only keys scoped to this sub-account (opaque ID). The\n * caller must own or administer the sub-account. If unset, only non-revoked\n * keys owned by the caller are returned.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysRequest.\n * Use `create(ListApiKeysRequestSchema)` to create a new message.\n */\nexport const ListApiKeysRequestSchema: GenMessage<ListApiKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 3);\n\n/**\n * ListApiKeysResponse contains matching API keys, newest first by creation time.\n *\n * @generated from message auth.v1.ListApiKeysResponse\n */\nexport type ListApiKeysResponse = Message<\"auth.v1.ListApiKeysResponse\"> & {\n /**\n * Matching API keys, newest first. Revoked keys are excluded.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysResponse.\n * Use `create(ListApiKeysResponseSchema)` to create a new message.\n */\nexport const ListApiKeysResponseSchema: GenMessage<ListApiKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 4);\n\n/**\n * DeleteApiKeyRequest permanently revokes an API key.\n *\n * @generated from message auth.v1.DeleteApiKeyRequest\n */\nexport type DeleteApiKeyRequest = Message<\"auth.v1.DeleteApiKeyRequest\"> & {\n /**\n * Opaque API key identifier (e.g. \"ak_<hex>\"). This is the stable public\n * handle for a key.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyRequest.\n * Use `create(DeleteApiKeyRequestSchema)` to create a new message.\n */\nexport const DeleteApiKeyRequestSchema: GenMessage<DeleteApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 5);\n\n/**\n * DeleteApiKeyResponse is empty when revocation succeeds.\n *\n * @generated from message auth.v1.DeleteApiKeyResponse\n */\nexport type DeleteApiKeyResponse = Message<\"auth.v1.DeleteApiKeyResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyResponse.\n * Use `create(DeleteApiKeyResponseSchema)` to create a new message.\n */\nexport const DeleteApiKeyResponseSchema: GenMessage<DeleteApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 6);\n\n/**\n * GetApiKeyRequest returns one API key visible to its owner or a sub-account admin.\n *\n * @generated from message auth.v1.GetApiKeyRequest\n */\nexport type GetApiKeyRequest = Message<\"auth.v1.GetApiKeyRequest\"> & {\n /**\n * Opaque API key identifier, formatted as \"ak_\" followed by 32 lowercase hex\n * characters.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyRequest.\n * Use `create(GetApiKeyRequestSchema)` to create a new message.\n */\nexport const GetApiKeyRequestSchema: GenMessage<GetApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 7);\n\n/**\n * GetApiKeyResponse returns one API key visible to the caller.\n *\n * @generated from message auth.v1.GetApiKeyResponse\n */\nexport type GetApiKeyResponse = Message<\"auth.v1.GetApiKeyResponse\"> & {\n /**\n * Matching API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyResponse.\n * Use `create(GetApiKeyResponseSchema)` to create a new message.\n */\nexport const GetApiKeyResponseSchema: GenMessage<GetApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 8);\n\n/**\n * ApiKeyUpdateSpec contains mutable API key configuration.\n *\n * @generated from message auth.v1.ApiKeyUpdateSpec\n */\nexport type ApiKeyUpdateSpec = Message<\"auth.v1.ApiKeyUpdateSpec\"> & {\n /**\n * Human-friendly label for the key. Empty clears the label when selected.\n * Must not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * User-chosen icon/emoji for UI display. Empty clears the icon when selected.\n *\n * @generated from field: string icon = 2;\n */\n icon: string;\n\n /**\n * User-chosen color token for UI display. Empty clears the color when selected.\n *\n * @generated from field: string color = 3;\n */\n color: string;\n\n /**\n * New status. ACTIVE and DISABLED are allowed; revocation uses DeleteApiKey.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 4;\n */\n status: ApiKeyStatus;\n\n /**\n * Complete replacement IP whitelist. Empty clears the restriction when selected.\n *\n * @generated from field: repeated string ip_whitelist = 5;\n */\n ipWhitelist: string[];\n\n /**\n * Expiry time in UTC. When selected, omission or the epoch clears expiry.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ApiKeyUpdateSpec.\n * Use `create(ApiKeyUpdateSpecSchema)` to create a new message.\n */\nexport const ApiKeyUpdateSpecSchema: GenMessage<ApiKeyUpdateSpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 9);\n\n/**\n * UpdateApiKeyRequest changes selected mutable fields on an existing API key.\n *\n * @generated from message auth.v1.UpdateApiKeyRequest\n */\nexport type UpdateApiKeyRequest = Message<\"auth.v1.UpdateApiKeyRequest\"> & {\n /**\n * Opaque API key identifier to update.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n\n /**\n * Candidate values for fields selected by update_mask.\n *\n * @generated from field: auth.v1.ApiKeyUpdateSpec api_key = 2;\n */\n apiKey?: ApiKeyUpdateSpec | undefined;\n\n /**\n * Mutable fields to apply. Paths are relative to api_key. The mask is required,\n * must be non-empty, and cannot contain \"*\".\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * Revision returned by the latest successful read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyRequest.\n * Use `create(UpdateApiKeyRequestSchema)` to create a new message.\n */\nexport const UpdateApiKeyRequestSchema: GenMessage<UpdateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 10);\n\n/**\n * UpdateApiKeyResponse returns the API key after applying the update.\n *\n * @generated from message auth.v1.UpdateApiKeyResponse\n */\nexport type UpdateApiKeyResponse = Message<\"auth.v1.UpdateApiKeyResponse\"> & {\n /**\n * Updated API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyResponse.\n * Use `create(UpdateApiKeyResponseSchema)` to create a new message.\n */\nexport const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 11);\n\n/**\n * Status of an API key.\n *\n * @generated from enum auth.v1.ApiKeyStatus\n */\nexport enum ApiKeyStatus {\n /**\n * No API key status specified.\n *\n * @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;\n */\n API_KEY_STATUS_UNSPECIFIED = 0,\n\n /**\n * Key can authenticate requests.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Key has been permanently revoked and cannot be used again.\n *\n * @generated from enum value: REVOKED = 2;\n */\n REVOKED = 2,\n\n /**\n * Key is temporarily disabled and cannot authenticate requests until re-enabled.\n *\n * @generated from enum value: DISABLED = 3;\n */\n DISABLED = 3,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyStatus.\n */\nexport const ApiKeyStatusSchema: GenEnum<ApiKeyStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 0);\n\n/**\n * ApiKeyService manages API keys for authenticated callers.\n *\n * @generated from service auth.v1.ApiKeyService\n */\nexport const ApiKeyService: GenService<{\n /**\n * Create a new API key for the caller. Account security settings may require\n * MFA enrollment or a fresh step-up proof. The acting caller's root account\n * must have accepted the current terms, including when targeting a shared\n * subaccount; otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned.\n *\n * @generated from rpc auth.v1.ApiKeyService.CreateApiKey\n */\n createApiKey: {\n methodKind: \"unary\";\n input: typeof CreateApiKeyRequestSchema;\n output: typeof CreateApiKeyResponseSchema;\n },\n /**\n * List non-revoked API keys visible to the caller, newest first. An API key\n * needs READ_API_KEYS; a key scoped to a sub-account sees only that\n * sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListApiKeys\n */\n listApiKeys: {\n methodKind: \"unary\";\n input: typeof ListApiKeysRequestSchema;\n output: typeof ListApiKeysResponseSchema;\n },\n /**\n * Get a single API key owned by the caller or scoped to a sub-account the caller administers.\n * An API key needs READ_API_KEYS; a key scoped to a sub-account reads only\n * that sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.GetApiKey\n */\n getApiKey: {\n methodKind: \"unary\";\n input: typeof GetApiKeyRequestSchema;\n output: typeof GetApiKeyResponseSchema;\n },\n /**\n * Revoke an API key permanently.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteApiKey\n */\n deleteApiKey: {\n methodKind: \"unary\";\n input: typeof DeleteApiKeyRequestSchema;\n output: typeof DeleteApiKeyResponseSchema;\n },\n /**\n * Update API key metadata and allowed status transitions. Revocation must use\n * DeleteApiKey.\n *\n * @generated from rpc auth.v1.ApiKeyService.UpdateApiKey\n */\n updateApiKey: {\n methodKind: \"unary\";\n input: typeof UpdateApiKeyRequestSchema;\n output: typeof UpdateApiKeyResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_api_keys, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,wBACX,uBAAS,goFAAgoF;CAAC;CAAiC;CAAgC;AAA0B,CAAC;;;;;AAiIxuF,MAAa,eACX,0BAAY,uBAAuB,CAAC;;;;;AA4DtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAsBtC,MAAa,2BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AActC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,yBACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,0BACX,0BAAY,uBAAuB,CAAC;;;;;AAwDtC,MAAa,yBACX,0BAAY,uBAAuB,CAAC;;;;;AA0CtC,MAAa,4BACX,0BAAY,uBAAuB,EAAE;;;;;AAoBvC,MAAa,6BACX,0BAAY,uBAAuB,EAAE;;;;;;AAOvC,IAAY,eAAL,yBAAA,cAAA;;;;;;CAML,aAAA,aAAA,gCAAA,KAAA;;;;;;CAOA,aAAA,aAAA,YAAA,KAAA;;;;;;CAOA,aAAA,aAAA,aAAA,KAAA;;;;;;CAOA,aAAA,aAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,uBAAuB,CAAC;;;;;;AAOnC,MAAa,gBA4DX,0BAAY,uBAAuB,CAAC"}
1
+ {"version":3,"file":"api_keys_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/api_keys.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/api_keys.proto.\n */\nexport const file_auth_v1_api_keys: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhdXRoL3YxL2FwaV9rZXlzLnByb3RvEgdhdXRoLnYxIpAECgZBcGlLZXkSEAoGa2V5X2lkGAIgASgJQgASDQoFbGFiZWwYAyABKAkSDgoEaWNvbhgJIAEoCUIAEg8KBWNvbG9yGAogASgJQgASFgoMaXBfd2hpdGVsaXN0GAQgAygJQgASJQoGc3RhdHVzGAYgASgOMhUuYXV0aC52MS5BcGlLZXlTdGF0dXMSGgoNc3ViYWNjb3VudF9pZBgHIAEoBkgAiAEBEhYKCXBvbGljeV9pZBgIIAEoBkgBiAEBEi4KCmNyZWF0ZWRfYXQYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgVIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGgoScHVibGljX2tleV9lZDI1NTE5GBYgASgMEi4KC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c3Npc3RhbnRLZXlzEiMuYXV0aC52MS5EZWxldGVBc3Npc3RhbnRLZXlzUmVxdWVzdBokLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1Jlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ApiKey is public API key metadata. It never includes the private key or seed.\n *\n * @generated from message auth.v1.ApiKey\n */\nexport type ApiKey = Message<\"auth.v1.ApiKey\"> & {\n /**\n * Stable opaque identifier used to refer to this key, formatted as \"ak_\"\n * followed by 32 lowercase hex characters.\n *\n * @generated from field: string key_id = 2;\n */\n keyId: string;\n\n /**\n * Human-readable label for the key. Maximum length is 64 characters.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 9;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 10;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Current key status.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 6;\n */\n status: ApiKeyStatus;\n\n /**\n * Optional sub-account this key is scoped to (opaque ID; empty = root-level).\n *\n * @generated from field: optional fixed64 subaccount_id = 7;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional API policy attached to this key (opaque ID).\n * Empty means no policy is attached and the key has no permissions.\n *\n * @generated from field: optional fixed64 policy_id = 8;\n */\n policyId?: bigint | undefined;\n\n /**\n * Time in UTC when this key was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 20;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Approximate last time in UTC when this key authenticated a request,\n * recorded at most about once a minute; it may lag recent use by a few\n * minutes. Omitted when no use has been recorded.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 21;\n */\n lastUsedAt?: Timestamp | undefined;\n\n /**\n * Ed25519 public key bytes associated with this API key. The private key or\n * seed is never returned by the API.\n *\n * @generated from field: bytes public_key_ed25519 = 22;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * Optional expiry time in UTC. When set, the key cannot authenticate requests\n * after this time, regardless of status.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 23;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Read-only actor label describing who created this key, such as a username\n * or account label.\n *\n * @generated from field: string created_by_actor = 24;\n */\n createdByActor: string;\n\n /**\n * Time in UTC when this key's configuration was last changed. For the same\n * key, later is fresher, equal is an idempotent replay, and earlier is stale.\n * Equal timestamps with different configuration indicate an invariant failure.\n * This is independent of last_used_at, which tracks authentication activity.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 25;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * Monotonic resource revision used for conditional updates.\n *\n * @generated from field: uint64 revision = 26;\n */\n revision: bigint;\n\n /**\n * What the key is for. ASSISTANT keys are managed with SetAssistantKeys and\n * are otherwise listed, updated and revoked like any key.\n *\n * @generated from field: auth.v1.ApiKeyPurpose purpose = 27;\n */\n purpose: ApiKeyPurpose;\n};\n\n/**\n * Describes the message auth.v1.ApiKey.\n * Use `create(ApiKeySchema)` to create a new message.\n */\nexport const ApiKeySchema: GenMessage<ApiKey> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 0);\n\n/**\n * CreateApiKeyRequest creates a new API key. Clients generate the Ed25519 key\n * pair locally and submit only the public key.\n *\n * @generated from message auth.v1.CreateApiKeyRequest\n */\nexport type CreateApiKeyRequest = Message<\"auth.v1.CreateApiKeyRequest\"> & {\n /**\n * Human-readable label for the key. Required; 1 to 64 characters, and must\n * not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * Optional sub-account to scope this key to (opaque ID). If unset, the key is\n * root-level.\n *\n * @generated from field: optional fixed64 subaccount_id = 3;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 6;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 7;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Ed25519 public key bytes. Must be exactly 32 bytes. The private key or seed\n * must never be sent to the API.\n *\n * @generated from field: bytes public_key_ed25519 = 5;\n */\n publicKeyEd25519: Uint8Array;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyRequest.\n * Use `create(CreateApiKeyRequestSchema)` to create a new message.\n */\nexport const CreateApiKeyRequestSchema: GenMessage<CreateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 1);\n\n/**\n * CreateApiKeyResponse returns the created API key metadata.\n *\n * @generated from message auth.v1.CreateApiKeyResponse\n */\nexport type CreateApiKeyResponse = Message<\"auth.v1.CreateApiKeyResponse\"> & {\n /**\n * Created API key metadata. The private key or seed is never returned.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyResponse.\n * Use `create(CreateApiKeyResponseSchema)` to create a new message.\n */\nexport const CreateApiKeyResponseSchema: GenMessage<CreateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ListApiKeysRequest lists non-revoked API keys visible to the caller.\n *\n * @generated from message auth.v1.ListApiKeysRequest\n */\nexport type ListApiKeysRequest = Message<\"auth.v1.ListApiKeysRequest\"> & {\n /**\n * Optional filter: only keys scoped to this sub-account (opaque ID). The\n * caller must own or administer the sub-account. If unset, only non-revoked\n * keys owned by the caller are returned.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysRequest.\n * Use `create(ListApiKeysRequestSchema)` to create a new message.\n */\nexport const ListApiKeysRequestSchema: GenMessage<ListApiKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 3);\n\n/**\n * ListApiKeysResponse contains matching API keys, newest first by creation time.\n *\n * @generated from message auth.v1.ListApiKeysResponse\n */\nexport type ListApiKeysResponse = Message<\"auth.v1.ListApiKeysResponse\"> & {\n /**\n * Matching API keys, newest first. Revoked keys are excluded.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysResponse.\n * Use `create(ListApiKeysResponseSchema)` to create a new message.\n */\nexport const ListApiKeysResponseSchema: GenMessage<ListApiKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 4);\n\n/**\n * DeleteApiKeyRequest permanently revokes an API key.\n *\n * @generated from message auth.v1.DeleteApiKeyRequest\n */\nexport type DeleteApiKeyRequest = Message<\"auth.v1.DeleteApiKeyRequest\"> & {\n /**\n * Opaque API key identifier (e.g. \"ak_<hex>\"). This is the stable public\n * handle for a key.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyRequest.\n * Use `create(DeleteApiKeyRequestSchema)` to create a new message.\n */\nexport const DeleteApiKeyRequestSchema: GenMessage<DeleteApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 5);\n\n/**\n * DeleteApiKeyResponse is empty when revocation succeeds.\n *\n * @generated from message auth.v1.DeleteApiKeyResponse\n */\nexport type DeleteApiKeyResponse = Message<\"auth.v1.DeleteApiKeyResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyResponse.\n * Use `create(DeleteApiKeyResponseSchema)` to create a new message.\n */\nexport const DeleteApiKeyResponseSchema: GenMessage<DeleteApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 6);\n\n/**\n * GetApiKeyRequest returns one API key visible to its owner or a sub-account admin.\n *\n * @generated from message auth.v1.GetApiKeyRequest\n */\nexport type GetApiKeyRequest = Message<\"auth.v1.GetApiKeyRequest\"> & {\n /**\n * Opaque API key identifier, formatted as \"ak_\" followed by 32 lowercase hex\n * characters.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyRequest.\n * Use `create(GetApiKeyRequestSchema)` to create a new message.\n */\nexport const GetApiKeyRequestSchema: GenMessage<GetApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 7);\n\n/**\n * GetApiKeyResponse returns one API key visible to the caller.\n *\n * @generated from message auth.v1.GetApiKeyResponse\n */\nexport type GetApiKeyResponse = Message<\"auth.v1.GetApiKeyResponse\"> & {\n /**\n * Matching API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyResponse.\n * Use `create(GetApiKeyResponseSchema)` to create a new message.\n */\nexport const GetApiKeyResponseSchema: GenMessage<GetApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 8);\n\n/**\n * ApiKeyUpdateSpec contains mutable API key configuration.\n *\n * @generated from message auth.v1.ApiKeyUpdateSpec\n */\nexport type ApiKeyUpdateSpec = Message<\"auth.v1.ApiKeyUpdateSpec\"> & {\n /**\n * Human-friendly label for the key. Empty clears the label when selected.\n * Must not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * User-chosen icon/emoji for UI display. Empty clears the icon when selected.\n *\n * @generated from field: string icon = 2;\n */\n icon: string;\n\n /**\n * User-chosen color token for UI display. Empty clears the color when selected.\n *\n * @generated from field: string color = 3;\n */\n color: string;\n\n /**\n * New status. ACTIVE and DISABLED are allowed; revocation uses DeleteApiKey.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 4;\n */\n status: ApiKeyStatus;\n\n /**\n * Complete replacement IP whitelist. Empty clears the restriction when selected.\n *\n * @generated from field: repeated string ip_whitelist = 5;\n */\n ipWhitelist: string[];\n\n /**\n * Expiry time in UTC. When selected, omission or the epoch clears expiry.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ApiKeyUpdateSpec.\n * Use `create(ApiKeyUpdateSpecSchema)` to create a new message.\n */\nexport const ApiKeyUpdateSpecSchema: GenMessage<ApiKeyUpdateSpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 9);\n\n/**\n * UpdateApiKeyRequest changes selected mutable fields on an existing API key.\n *\n * @generated from message auth.v1.UpdateApiKeyRequest\n */\nexport type UpdateApiKeyRequest = Message<\"auth.v1.UpdateApiKeyRequest\"> & {\n /**\n * Opaque API key identifier to update.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n\n /**\n * Candidate values for fields selected by update_mask.\n *\n * @generated from field: auth.v1.ApiKeyUpdateSpec api_key = 2;\n */\n apiKey?: ApiKeyUpdateSpec | undefined;\n\n /**\n * Mutable fields to apply. Paths are relative to api_key. The mask is required,\n * must be non-empty, and cannot contain \"*\".\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * Revision returned by the latest successful read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyRequest.\n * Use `create(UpdateApiKeyRequestSchema)` to create a new message.\n */\nexport const UpdateApiKeyRequestSchema: GenMessage<UpdateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 10);\n\n/**\n * UpdateApiKeyResponse returns the API key after applying the update.\n *\n * @generated from message auth.v1.UpdateApiKeyResponse\n */\nexport type UpdateApiKeyResponse = Message<\"auth.v1.UpdateApiKeyResponse\"> & {\n /**\n * Updated API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyResponse.\n * Use `create(UpdateApiKeyResponseSchema)` to create a new message.\n */\nexport const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 11);\n\n/**\n * AssistantKeySpec is one account's key in the caller's assistant key set.\n *\n * @generated from message auth.v1.AssistantKeySpec\n */\nexport type AssistantKeySpec = Message<\"auth.v1.AssistantKeySpec\"> & {\n /**\n * Sub-account the key acts for (opaque ID). Unset means the caller's main\n * account. A key acts for exactly one account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Ed25519 public key bytes the Polyester AI assistant signs with. Must be\n * exactly 32 bytes, and distinct within the set.\n *\n * @generated from field: bytes public_key_ed25519 = 2;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * API policy that bounds the key (opaque ID). It must belong to the same\n * main account as the key, and must not allow EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.\n *\n * @generated from field: fixed64 policy_id = 3;\n */\n policyId: bigint;\n\n /**\n * Time until which the key may be registered, as the Polyester AI assistant\n * issued it with the key (PrepareAssistantKeys), in whole milliseconds.\n * Required for a new key: it must still be ahead, and at most 15 minutes\n * ahead. Not needed when the account's current assistant key already has\n * this public key.\n *\n * @generated from field: google.protobuf.Timestamp registration_deadline = 4;\n */\n registrationDeadline?: Timestamp | undefined;\n\n /**\n * The key's own Ed25519 signature over the caller's account, the key's\n * account, its public key and registration_deadline, as the assistant\n * issued it with the key (64 bytes). Required for a new key; not needed\n * when the account's current assistant key already has this public key.\n *\n * @generated from field: bytes registration_proof = 5;\n */\n registrationProof: Uint8Array;\n};\n\n/**\n * Describes the message auth.v1.AssistantKeySpec.\n * Use `create(AssistantKeySpecSchema)` to create a new message.\n */\nexport const AssistantKeySpecSchema: GenMessage<AssistantKeySpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 12);\n\n/**\n * SetAssistantKeysRequest replaces the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysRequest\n */\nexport type SetAssistantKeysRequest = Message<\"auth.v1.SetAssistantKeysRequest\"> & {\n /**\n * The complete set, at most one key per account and at most 64 keys. An\n * account left out loses its assistant key.\n *\n * @generated from field: repeated auth.v1.AssistantKeySpec keys = 1;\n */\n keys: AssistantKeySpec[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysRequest.\n * Use `create(SetAssistantKeysRequestSchema)` to create a new message.\n */\nexport const SetAssistantKeysRequestSchema: GenMessage<SetAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 13);\n\n/**\n * SetAssistantKeysResponse returns the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysResponse\n */\nexport type SetAssistantKeysResponse = Message<\"auth.v1.SetAssistantKeysResponse\"> & {\n /**\n * The assistant keys now in the set, in request order.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysResponse.\n * Use `create(SetAssistantKeysResponseSchema)` to create a new message.\n */\nexport const SetAssistantKeysResponseSchema: GenMessage<SetAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 14);\n\n/**\n * ListAssistantKeysRequest lists the caller's assistant key set.\n *\n * @generated from message auth.v1.ListAssistantKeysRequest\n */\nexport type ListAssistantKeysRequest = Message<\"auth.v1.ListAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysRequest.\n * Use `create(ListAssistantKeysRequestSchema)` to create a new message.\n */\nexport const ListAssistantKeysRequestSchema: GenMessage<ListAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 15);\n\n/**\n * ListAssistantKeysResponse contains the caller's assistant keys.\n *\n * @generated from message auth.v1.ListAssistantKeysResponse\n */\nexport type ListAssistantKeysResponse = Message<\"auth.v1.ListAssistantKeysResponse\"> & {\n /**\n * Non-revoked assistant keys the caller set up, newest first.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysResponse.\n * Use `create(ListAssistantKeysResponseSchema)` to create a new message.\n */\nexport const ListAssistantKeysResponseSchema: GenMessage<ListAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 16);\n\n/**\n * DeleteAssistantKeysRequest revokes the caller's whole assistant key set.\n *\n * @generated from message auth.v1.DeleteAssistantKeysRequest\n */\nexport type DeleteAssistantKeysRequest = Message<\"auth.v1.DeleteAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysRequest.\n * Use `create(DeleteAssistantKeysRequestSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysRequestSchema: GenMessage<DeleteAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 17);\n\n/**\n * DeleteAssistantKeysResponse lists the keys that were revoked.\n *\n * @generated from message auth.v1.DeleteAssistantKeysResponse\n */\nexport type DeleteAssistantKeysResponse = Message<\"auth.v1.DeleteAssistantKeysResponse\"> & {\n /**\n * Opaque identifiers of the keys revoked by this request. Empty when the set\n * was already empty.\n *\n * @generated from field: repeated string revoked_key_ids = 1;\n */\n revokedKeyIds: string[];\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysResponse.\n * Use `create(DeleteAssistantKeysResponseSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysResponseSchema: GenMessage<DeleteAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 18);\n\n/**\n * Status of an API key.\n *\n * @generated from enum auth.v1.ApiKeyStatus\n */\nexport enum ApiKeyStatus {\n /**\n * No API key status specified.\n *\n * @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;\n */\n API_KEY_STATUS_UNSPECIFIED = 0,\n\n /**\n * Key can authenticate requests.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Key has been permanently revoked and cannot be used again.\n *\n * @generated from enum value: REVOKED = 2;\n */\n REVOKED = 2,\n\n /**\n * Key is temporarily disabled and cannot authenticate requests until re-enabled.\n *\n * @generated from enum value: DISABLED = 3;\n */\n DISABLED = 3,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyStatus.\n */\nexport const ApiKeyStatusSchema: GenEnum<ApiKeyStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 0);\n\n/**\n * Purpose of an API key.\n *\n * @generated from enum auth.v1.ApiKeyPurpose\n */\nexport enum ApiKeyPurpose {\n /**\n * No purpose specified.\n *\n * @generated from enum value: PURPOSE_UNSPECIFIED = 0;\n */\n PURPOSE_UNSPECIFIED = 0,\n\n /**\n * A key the account holder created for their own programs.\n *\n * @generated from enum value: STANDARD = 1;\n */\n STANDARD = 1,\n\n /**\n * A key the account holder created for the Polyester AI assistant through\n * SetAssistantKeys. Its policy can never allow actions that move value out\n * of the account or manage where it goes, such as external withdrawals or\n * internal transfers. Only its creator's assistant uses it, so a sub-account\n * assistant key is revoked when its creator loses the role that manages the\n * sub-account's API keys or leaves the sub-account.\n *\n * @generated from enum value: ASSISTANT = 2;\n */\n ASSISTANT = 2,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyPurpose.\n */\nexport const ApiKeyPurposeSchema: GenEnum<ApiKeyPurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 1);\n\n/**\n * ApiKeyService manages API keys for authenticated callers.\n *\n * @generated from service auth.v1.ApiKeyService\n */\nexport const ApiKeyService: GenService<{\n /**\n * Create a new API key for the caller. Account security settings may require\n * MFA enrollment or a fresh step-up proof. The acting caller's root account\n * must have accepted the current terms, including when targeting a shared\n * subaccount; otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned.\n *\n * @generated from rpc auth.v1.ApiKeyService.CreateApiKey\n */\n createApiKey: {\n methodKind: \"unary\";\n input: typeof CreateApiKeyRequestSchema;\n output: typeof CreateApiKeyResponseSchema;\n },\n /**\n * List non-revoked API keys visible to the caller, newest first. An API key\n * needs READ_API_KEYS; a key scoped to a sub-account sees only that\n * sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListApiKeys\n */\n listApiKeys: {\n methodKind: \"unary\";\n input: typeof ListApiKeysRequestSchema;\n output: typeof ListApiKeysResponseSchema;\n },\n /**\n * Get a single API key owned by the caller or scoped to a sub-account the caller administers.\n * An API key needs READ_API_KEYS; a key scoped to a sub-account reads only\n * that sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.GetApiKey\n */\n getApiKey: {\n methodKind: \"unary\";\n input: typeof GetApiKeyRequestSchema;\n output: typeof GetApiKeyResponseSchema;\n },\n /**\n * Revoke an API key permanently.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteApiKey\n */\n deleteApiKey: {\n methodKind: \"unary\";\n input: typeof DeleteApiKeyRequestSchema;\n output: typeof DeleteApiKeyResponseSchema;\n },\n /**\n * Update API key metadata and allowed status transitions. Revocation must use\n * DeleteApiKey.\n *\n * @generated from rpc auth.v1.ApiKeyService.UpdateApiKey\n */\n updateApiKey: {\n methodKind: \"unary\";\n input: typeof UpdateApiKeyRequestSchema;\n output: typeof UpdateApiKeyResponseSchema;\n },\n /**\n * Create or replace the caller's Polyester AI assistant key set: one\n * ASSISTANT key per enabled account, each bounded by its API policy. One\n * fresh step-up proof covers the whole set, and the change is all or\n * nothing. An entry whose account already has an assistant key with the same\n * public key keeps that key, with its status, and takes the requested\n * policy; any other entry replaces the account's key. Accounts left out of\n * the set have their assistant key revoked. A sub-account entry needs the\n * same access as CreateApiKey: owner, or a role that manages its API keys.\n * The acting caller's root account must have accepted the current terms;\n * otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned. A\n * policy that allows a money-out action returns FailedPrecondition with\n * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED. A new key is registered only with\n * the registration proof and deadline the assistant issued with it\n * (PrepareAssistantKeys), before that deadline: a missing or failing proof\n * returns InvalidArgument with AUTH_ASSISTANT_KEY_PROOF_INVALID, a passed\n * deadline FailedPrecondition with AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED,\n * and one more than 15 minutes ahead InvalidArgument with\n * AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.\n *\n * @generated from rpc auth.v1.ApiKeyService.SetAssistantKeys\n */\n setAssistantKeys: {\n methodKind: \"unary\";\n input: typeof SetAssistantKeysRequestSchema;\n output: typeof SetAssistantKeysResponseSchema;\n },\n /**\n * List the caller's non-revoked Polyester AI assistant keys, newest first.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListAssistantKeys\n */\n listAssistantKeys: {\n methodKind: \"unary\";\n input: typeof ListAssistantKeysRequestSchema;\n output: typeof ListAssistantKeysResponseSchema;\n },\n /**\n * Revoke the caller's whole Polyester AI assistant key set. Revocation only\n * removes access, so it needs no step-up proof. Revocation is permanent. As\n * for DeleteApiKey, key management sees it at once, and requests signed with\n * a revoked key are refused within a few seconds of the response.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteAssistantKeys\n */\n deleteAssistantKeys: {\n methodKind: \"unary\";\n input: typeof DeleteAssistantKeysRequestSchema;\n output: typeof DeleteAssistantKeysResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_api_keys, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,wBACX,uBAAS,g0HAAg0H;CAAC;CAAiC;CAA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