@cubist-labs/cubesigner-sdk 0.4.231 → 0.4.237

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/src/schema.ts CHANGED
@@ -403,7 +403,23 @@ export interface paths {
403
403
  post: operations["diffieHellmanExchange"];
404
404
  };
405
405
  "/v0/org/{org_id}/emails/{purpose}": {
406
+ /**
407
+ * Get Email Template
408
+ * @description Get Email Template
409
+ *
410
+ * Returns the email template for a given purpose.
411
+ */
412
+ get: operations["getEmailConfig"];
413
+ /**
414
+ * Configure Email Template
415
+ * @description Configure Email Template
416
+ */
406
417
  put: operations["configureEmail"];
418
+ /**
419
+ * Delete Email Template
420
+ * @description Delete Email Template
421
+ */
422
+ delete: operations["deleteEmailConfig"];
407
423
  };
408
424
  "/v0/org/{org_id}/evm/eip191/sign/{pubkey}": {
409
425
  /**
@@ -581,6 +597,23 @@ export interface paths {
581
597
  */
582
598
  post: operations["invitationAccept"];
583
599
  };
600
+ "/v0/org/{org_id}/invitations": {
601
+ /**
602
+ * List pending invitations
603
+ * @description List pending invitations
604
+ *
605
+ * Returns all pending (not yet accepted) invitations for the organization.
606
+ */
607
+ get: operations["listInvitations"];
608
+ /**
609
+ * Cancel a pending invitation
610
+ * @description Cancel a pending invitation
611
+ *
612
+ * Removes a pending invitation from the organization. If no pending invitation
613
+ * exists for the given email address, a not-found error is returned.
614
+ */
615
+ delete: operations["cancelInvitation"];
616
+ };
584
617
  "/v0/org/{org_id}/invite": {
585
618
  /**
586
619
  * Invite User
@@ -1002,6 +1035,31 @@ export interface paths {
1002
1035
  */
1003
1036
  post: operations["invokePolicy"];
1004
1037
  };
1038
+ "/v0/org/{org_id}/policy/buckets": {
1039
+ /**
1040
+ * List Buckets
1041
+ * @description List Buckets
1042
+ *
1043
+ * List available meta information about all policy KV store buckets in the org.
1044
+ */
1045
+ get: operations["listPolicyBuckets"];
1046
+ };
1047
+ "/v0/org/{org_id}/policy/buckets/{bucket_name}": {
1048
+ /**
1049
+ * Get Bucket
1050
+ * @description Get Bucket
1051
+ *
1052
+ * Returns the meta information of a policy KV store bucket.
1053
+ */
1054
+ get: operations["getPolicyBucket"];
1055
+ /**
1056
+ * Update Bucket
1057
+ * @description Update Bucket
1058
+ *
1059
+ * Updates meta information for an existing policy KV store bucket.
1060
+ */
1061
+ patch: operations["updatePolicyBucket"];
1062
+ };
1005
1063
  "/v0/org/{org_id}/policy/import_key": {
1006
1064
  /**
1007
1065
  * Create Policy Import Key
@@ -1017,7 +1075,7 @@ export interface paths {
1017
1075
  * Get the org-wide policy secrets.
1018
1076
  * @description Get the org-wide policy secrets.
1019
1077
  *
1020
- * Note that this only returns the keys for the secrets, omiting the values.
1078
+ * Note that this only returns the keys for the secrets, omitting the values.
1021
1079
  * The values are secret and are not accessible outside Wasm policy execution.
1022
1080
  */
1023
1081
  get: operations["getPolicySecrets"];
@@ -1027,18 +1085,22 @@ export interface paths {
1027
1085
  *
1028
1086
  * The provided secrets will replace any existing org-level secrets.
1029
1087
  * It fails if the secrets weren't previously created.
1088
+ *
1089
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
1030
1090
  */
1031
1091
  patch: operations["updatePolicySecrets"];
1032
1092
  };
1033
1093
  "/v0/org/{org_id}/policy/secrets/{secret_name}": {
1034
1094
  /**
1035
- * Create or overwrite an org-level policy secret
1036
- * @description Create or overwrite an org-level policy secret
1095
+ * Create or overwrite an org-level policy secret.
1096
+ * @description Create or overwrite an org-level policy secret.
1097
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
1037
1098
  */
1038
1099
  put: operations["setPolicySecret"];
1039
1100
  /**
1040
- * Delete an org-level policy secret
1041
- * @description Delete an org-level policy secret
1101
+ * Delete an org-level policy secret.
1102
+ * @description Delete an org-level policy secret.
1103
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
1042
1104
  */
1043
1105
  delete: operations["deletePolicySecret"];
1044
1106
  };
@@ -1209,6 +1271,13 @@ export interface paths {
1209
1271
  */
1210
1272
  delete: operations["removeUserFromRole"];
1211
1273
  };
1274
+ "/v0/org/{org_id}/rpc": {
1275
+ /**
1276
+ * High-level RPC endpoint.
1277
+ * @description High-level RPC endpoint.
1278
+ */
1279
+ post: operations["rpcApi"];
1280
+ };
1212
1281
  "/v0/org/{org_id}/session": {
1213
1282
  /**
1214
1283
  * List sessions
@@ -1524,14 +1593,6 @@ export interface paths {
1524
1593
  */
1525
1594
  patch: operations["passkeyAuthComplete"];
1526
1595
  };
1527
- "/v0/private/policy-execute/{policy_name}": {
1528
- /**
1529
- * The policy_execute API endpoint is intended to demonstrate that the signer
1530
- * @description The policy_execute API endpoint is intended to demonstrate that the signer
1531
- * can use the policy engine, by way of the PolicyEngineClient.
1532
- */
1533
- post: operations["policy-execute"];
1534
- };
1535
1596
  "/v0/user/me/fido": {
1536
1597
  /**
1537
1598
  * Initiate registration of a FIDO key
@@ -1823,8 +1884,7 @@ export interface components {
1823
1884
  */
1824
1885
  Aud: string | string[];
1825
1886
  AuditLogEntry: {
1826
- /** @description The name of the event */
1827
- event: string;
1887
+ event: components["schemas"]["OrgEventDiscriminants"];
1828
1888
  /** @description UUID of the event. Unique across all events. */
1829
1889
  event_id: string;
1830
1890
  org_id: components["schemas"]["Id"];
@@ -2872,7 +2932,8 @@ export interface components {
2872
2932
  | "UserProfileMigrationTooManyItems"
2873
2933
  | "InputTooShort"
2874
2934
  | "InvalidTweakLength"
2875
- | "InvalidCustomChains";
2935
+ | "InvalidCustomChains"
2936
+ | "InvalidRpcRequest";
2876
2937
  BillingArgs: {
2877
2938
  billing_org: components["schemas"]["Id"];
2878
2939
  event_type: components["schemas"]["BillingEvent"];
@@ -2924,6 +2985,8 @@ export interface components {
2924
2985
  | "UpdateKey"
2925
2986
  | "ListHistoricalKeyTx"
2926
2987
  | "Invite"
2988
+ | "CancelInvitation"
2989
+ | "ListInvitations"
2927
2990
  | "ListUsers"
2928
2991
  | "GetUser"
2929
2992
  | "GetUserByEmail"
@@ -2942,6 +3005,8 @@ export interface components {
2942
3005
  | "UpdateRole"
2943
3006
  | "DeleteRole"
2944
3007
  | "ConfigureEmail"
3008
+ | "GetEmailConfig"
3009
+ | "DeleteEmailConfig"
2945
3010
  | "ListHistoricalRoleTx"
2946
3011
  | "CreatePolicy"
2947
3012
  | "GetPolicy"
@@ -2956,6 +3021,9 @@ export interface components {
2956
3021
  | "SetPolicySecret"
2957
3022
  | "DeletePolicySecret"
2958
3023
  | "CreatePolicyImportKey"
3024
+ | "GetPolicyBucket"
3025
+ | "ListPolicyBuckets"
3026
+ | "UpdatePolicyBucket"
2959
3027
  | "UserExportDelete"
2960
3028
  | "UserExportList"
2961
3029
  | "UserExportInit"
@@ -3044,9 +3112,12 @@ export interface components {
3044
3112
  | "IdpAuthenticate"
3045
3113
  | "IdpPasswordResetRequest"
3046
3114
  | "IdpPasswordResetConfirm"
3115
+ | "RpcApi"
3116
+ | "RpcCreateTransaction"
3117
+ | "RpcGetTransaction"
3118
+ | "RpcListTransactions"
3047
3119
  | "CustomChainRpcCall"
3048
3120
  | "EsploraApiCall"
3049
- | "ExecutePolicy"
3050
3121
  | "SentryApiCall"
3051
3122
  | "SentryApiCallPublic"
3052
3123
  | "MmiJwkSet"
@@ -3284,6 +3355,60 @@ export interface components {
3284
3355
  */
3285
3356
  value: number;
3286
3357
  };
3358
+ /**
3359
+ * @description The access-controlled actions that can be performed on a bucket
3360
+ * @enum {string}
3361
+ */
3362
+ BucketAction:
3363
+ | "read:key:value"
3364
+ | "read:key:exists"
3365
+ | "update:key:value"
3366
+ | "delete:key:value"
3367
+ | "scan:keys"
3368
+ | "update:bucket:owner"
3369
+ | "update:bucket:acl"
3370
+ | "update:bucket:metadata";
3371
+ /** @description Information about a policy KV store bucket. */
3372
+ BucketInfo: ({
3373
+ created?: components["schemas"]["EpochDateTime"] | null;
3374
+ last_modified?: components["schemas"]["EpochDateTime"] | null;
3375
+ /**
3376
+ * Format: int64
3377
+ * @description Version of this object
3378
+ */
3379
+ version?: number;
3380
+ } & {
3381
+ /** @description The access-control entries for the bucket. */
3382
+ acl?: unknown[] | null;
3383
+ /** @description Arbitrary user-defined metadata. */
3384
+ metadata?: unknown;
3385
+ owner: components["schemas"]["Id"];
3386
+ }) & {
3387
+ /** @description The name of the bucket. */
3388
+ name: string;
3389
+ };
3390
+ /**
3391
+ * @description Sub-entity of org where per-bucket metadata (like ACL) is stored.
3392
+ * The [Id] of a [BucketMeta] must be the bucket name.
3393
+ */
3394
+ BucketMeta: {
3395
+ created?: components["schemas"]["EpochDateTime"] | null;
3396
+ last_modified?: components["schemas"]["EpochDateTime"] | null;
3397
+ /**
3398
+ * Format: int64
3399
+ * @description Version of this object
3400
+ */
3401
+ version?: number;
3402
+ } & {
3403
+ /** @description The access-control entries for the bucket. */
3404
+ acl?: unknown[] | null;
3405
+ /** @description Arbitrary user-defined metadata. */
3406
+ metadata?: unknown;
3407
+ owner: components["schemas"]["Id"];
3408
+ };
3409
+ CancelInvitationRequest: {
3410
+ email: components["schemas"]["Email"];
3411
+ };
3287
3412
  /**
3288
3413
  * @description Supported Canton environments.
3289
3414
  * @enum {string}
@@ -3544,6 +3669,37 @@ export interface components {
3544
3669
  */
3545
3670
  name: string;
3546
3671
  };
3672
+ /** @description Parameters for creating an EVM transaction. */
3673
+ CreateEvmTransactionRequest: components["schemas"]["CreateEvmTransferRequest"] & {
3674
+ /** @enum {string} */
3675
+ type: "Transfer";
3676
+ };
3677
+ /** @description Parameters for creating an EVM transfer. */
3678
+ CreateEvmTransferRequest: {
3679
+ token: "CreateEvmTransferRequest";
3680
+ } & Omit<components["schemas"]["EvmToken"], "token"> &
3681
+ components["schemas"]["EvmTxCustomization"] & {
3682
+ /**
3683
+ * Format: int64
3684
+ * @description The EVM chain id this transaction is for.
3685
+ */
3686
+ chain_id: number;
3687
+ /**
3688
+ * @description The address that the amount will be transferred from.
3689
+ *
3690
+ * Must match the material id of a key the session can access.
3691
+ */
3692
+ from: string;
3693
+ /** @description The address that the amount will be transferred to. */
3694
+ to: string;
3695
+ /**
3696
+ * @description The amount being transferred, as a hex value.
3697
+ *
3698
+ * This value should be in WEI for native transfers, and in the token's denomination
3699
+ * for ERC-20 transfers.
3700
+ */
3701
+ value: string;
3702
+ };
3547
3703
  CreateKeyImportKeyResponse: components["schemas"]["KeyImportKey"] & {
3548
3704
  /**
3549
3705
  * @description An attestation document from a secure enclave, including an
@@ -3704,6 +3860,13 @@ export interface components {
3704
3860
  */
3705
3861
  scopes?: components["schemas"]["Scope"][] | null;
3706
3862
  };
3863
+ /** @description Parameters for the [`cs_createTransaction`](RpcMethod::CreateTransaction) method. */
3864
+ CreateTransactionRequest: {
3865
+ type: "CreateTransactionRequest";
3866
+ } & Omit<components["schemas"]["CreateEvmTransactionRequest"], "type"> & {
3867
+ /** @enum {string} */
3868
+ chain: "Evm";
3869
+ };
3707
3870
  /**
3708
3871
  * @description An extended form of `PublicKeyCredentialCreationOptions` that allows clients to derive the WebAuthn challenge
3709
3872
  * from a structured preimage.
@@ -4451,6 +4614,35 @@ export interface components {
4451
4614
  */
4452
4615
  rpc_url: string;
4453
4616
  };
4617
+ /** @description An EVM token. */
4618
+ EvmToken:
4619
+ | {
4620
+ /** @enum {string} */
4621
+ token: "Native";
4622
+ }
4623
+ | {
4624
+ /** @enum {string} */
4625
+ token: "Erc20";
4626
+ /** @description The ERC-20 token address. */
4627
+ token_address: string;
4628
+ };
4629
+ /** @description EVM-specific transaction details. */
4630
+ EvmTransactionDetails: {
4631
+ /**
4632
+ * @description The transaction hash, as submitted to the chain.
4633
+ *
4634
+ * Can be undefined if the transaction hasn't been signed or submitted yet.
4635
+ */
4636
+ hash?: string;
4637
+ /**
4638
+ * @description The signature for the transaction.
4639
+ *
4640
+ * Can be undefined if the transaction hasn't been signed yet, or failed to be signed.
4641
+ */
4642
+ signature?: string;
4643
+ /** @description The transaction itself. */
4644
+ tx: unknown;
4645
+ };
4454
4646
  EvmTxCmp: {
4455
4647
  /**
4456
4648
  * Format: int64
@@ -4476,6 +4668,34 @@ export interface components {
4476
4668
  /** @description Whether the 'nonce' property of the EVM transaction is allowed to be different. */
4477
4669
  ignore_nonce?: boolean;
4478
4670
  };
4671
+ /** @description Optional fields used to customize EVM transactions. */
4672
+ EvmTxCustomization: {
4673
+ /**
4674
+ * @description Optional gas limit.
4675
+ *
4676
+ * If not specified, estimated gas is used.
4677
+ */
4678
+ gas_limit?: string | null;
4679
+ /**
4680
+ * @description Optional max fee for the transaction.
4681
+ *
4682
+ * If not specified, estimated fees are used.
4683
+ */
4684
+ max_fee_per_gas?: string | null;
4685
+ /**
4686
+ * @description Optional max priority fee for the transaction.
4687
+ *
4688
+ * If not specified, estimated fees are used.
4689
+ */
4690
+ max_priority_fee_per_gas?: string | null;
4691
+ /**
4692
+ * @description Optional nonce.
4693
+ *
4694
+ * If not specified, the sender's transaction count from the latest block is
4695
+ * used.
4696
+ */
4697
+ nonce?: string | null;
4698
+ };
4479
4699
  /** @enum {string} */
4480
4700
  EvmTxDepositErrorCode:
4481
4701
  | "EvmTxDepositReceiverMismatch"
@@ -4547,7 +4767,10 @@ export interface components {
4547
4767
  | "sign:mmi"
4548
4768
  | "manage:*"
4549
4769
  | "manage:readonly"
4550
- | "manage:email"
4770
+ | "manage:email:*"
4771
+ | "manage:email:get"
4772
+ | "manage:email:update"
4773
+ | "manage:email:delete"
4551
4774
  | "manage:mfa:*"
4552
4775
  | "manage:mfa:readonly"
4553
4776
  | "manage:mfa:list"
@@ -4578,6 +4801,7 @@ export interface components {
4578
4801
  | "manage:key:update:owner"
4579
4802
  | "manage:key:update:policy"
4580
4803
  | "manage:key:update:enabled"
4804
+ | "manage:key:update:region"
4581
4805
  | "manage:key:update:metadata"
4582
4806
  | "manage:key:update:editPolicy"
4583
4807
  | "manage:key:delete"
@@ -4603,6 +4827,13 @@ export interface components {
4603
4827
  | "manage:policy:secrets:update:values"
4604
4828
  | "manage:policy:secrets:update:acl"
4605
4829
  | "manage:policy:secrets:update:editPolicy"
4830
+ | "manage:policy:buckets:*"
4831
+ | "manage:policy:buckets:get"
4832
+ | "manage:policy:buckets:list"
4833
+ | "manage:policy:buckets:update:*"
4834
+ | "manage:policy:buckets:update:owner"
4835
+ | "manage:policy:buckets:update:acl"
4836
+ | "manage:policy:buckets:update:metadata"
4606
4837
  | "manage:contact:*"
4607
4838
  | "manage:contact:readonly"
4608
4839
  | "manage:contact:create"
@@ -4634,6 +4865,7 @@ export interface components {
4634
4865
  | "manage:role:update:enabled"
4635
4866
  | "manage:role:update:policy"
4636
4867
  | "manage:role:update:editPolicy"
4868
+ | "manage:role:update:actions"
4637
4869
  | "manage:role:update:key:*"
4638
4870
  | "manage:role:update:key:add"
4639
4871
  | "manage:role:update:key:remove"
@@ -4655,11 +4887,34 @@ export interface components {
4655
4887
  | "manage:org:addUser"
4656
4888
  | "manage:org:inviteUser"
4657
4889
  | "manage:org:inviteAlien"
4890
+ | "manage:org:invitation:list"
4891
+ | "manage:org:invitation:cancel"
4658
4892
  | "manage:org:updateMembership"
4659
4893
  | "manage:org:listUsers"
4660
4894
  | "manage:org:user:get"
4661
4895
  | "manage:org:deleteUser"
4662
4896
  | "manage:org:get"
4897
+ | "manage:org:update:*"
4898
+ | "manage:org:update:enabled"
4899
+ | "manage:org:update:policy"
4900
+ | "manage:org:update:signPolicy"
4901
+ | "manage:org:update:export"
4902
+ | "manage:org:update:totpFailureLimit"
4903
+ | "manage:org:update:notificationEndpoints"
4904
+ | "manage:org:update:defaultInviteKind"
4905
+ | "manage:org:update:idpConfiguration"
4906
+ | "manage:org:update:passkeyConfiguration"
4907
+ | "manage:org:update:emailPreferences"
4908
+ | "manage:org:update:historicalData"
4909
+ | "manage:org:update:requireScopeCeiling"
4910
+ | "manage:org:update:alienLoginRequirement"
4911
+ | "manage:org:update:memberLoginRequirement"
4912
+ | "manage:org:update:keyExportRequirement"
4913
+ | "manage:org:update:allowedMfaTypes"
4914
+ | "manage:org:update:policyEngineConf"
4915
+ | "manage:org:update:customChains"
4916
+ | "manage:org:update:extProps"
4917
+ | "manage:org:update:editPolicy"
4663
4918
  | "manage:org:user:resetMfa"
4664
4919
  | "manage:session:*"
4665
4920
  | "manage:session:readonly"
@@ -4691,7 +4946,12 @@ export interface components {
4691
4946
  | "export:user:complete"
4692
4947
  | "mmi:*"
4693
4948
  | "orgAccess:*"
4694
- | "orgAccess:child:*";
4949
+ | "orgAccess:child:*"
4950
+ | "rpc:*"
4951
+ | "rpc:createTransaction:*"
4952
+ | "rpc:createTransaction:evm"
4953
+ | "rpc:getTransaction"
4954
+ | "rpc:listTransactions";
4695
4955
  /**
4696
4956
  * @description This type specifies the interpretation of the `fee` field in Babylon
4697
4957
  * staking requests. If `sats`, the field is intpreted as a fixed value
@@ -4832,6 +5092,7 @@ export interface components {
4832
5092
  | "AutoAddBlsKeyToProtectedRole"
4833
5093
  | "UserNotPolicyOwner"
4834
5094
  | "UserNotContactOwner"
5095
+ | "UserNotBucketOwner"
4835
5096
  | "LegacySessionCannotHaveScopeCeiling"
4836
5097
  | "RoleInParentOrgNotAllowed"
4837
5098
  | "RemoveKeyFromRoleUserNotAllowed"
@@ -4885,9 +5146,24 @@ export interface components {
4885
5146
  */
4886
5147
  genesis_validators_root: string;
4887
5148
  };
5149
+ /** @description The email sender configuration (without sensitive auth details) */
5150
+ GetEmailConfigResponse: {
5151
+ /** @description The email address that emails are sent from */
5152
+ sender: string;
5153
+ template?: {
5154
+ /** @description An HTML template to use for the body. */
5155
+ body_template: string;
5156
+ /** @description The subject line template */
5157
+ subject_template: string;
5158
+ } | null;
5159
+ };
4888
5160
  GetKeysInOrgRequest: {
4889
5161
  key_type?: components["schemas"]["KeyType"] | null;
4890
5162
  };
5163
+ /** @description Parameters for the [`cs_getTransaction`](RpcMethod::GetTransaction) method. */
5164
+ GetTransactionRequest: {
5165
+ id: components["schemas"]["Id"];
5166
+ };
4891
5167
  GetUserByEmailResponse: {
4892
5168
  /**
4893
5169
  * @description Typically, this array is either empty (if no user with a given email was found)
@@ -5174,12 +5450,26 @@ export interface components {
5174
5450
  | "InvalidAlias"
5175
5451
  | "EmptyUpdateModifiedObject"
5176
5452
  | "EmptyUpdateModifiedActions"
5177
- | "DbContactAddressesInvalid";
5453
+ | "DbContactAddressesInvalid"
5454
+ | "InvalidEvmSigedRlp"
5455
+ | "InvalidErc20Data"
5456
+ | "InvalidRpcUrl";
5178
5457
  InvitationAcceptRequest: {
5179
5458
  auth: components["schemas"]["AuthSource"];
5180
5459
  /** @description Invitation token */
5181
5460
  token: string;
5182
5461
  };
5462
+ /** @description Information about a pending invitation */
5463
+ InvitationInfo: {
5464
+ created: components["schemas"]["EpochDateTime"];
5465
+ /** @description The email address the invitation was sent to */
5466
+ email: string;
5467
+ expiration: components["schemas"]["EpochDateTime"];
5468
+ inviter?: components["schemas"]["Id"] | null;
5469
+ /** @description The invited user's name */
5470
+ name: string;
5471
+ role: components["schemas"]["MemberRole"];
5472
+ };
5183
5473
  /**
5184
5474
  * @description Indicates the auth sources allowed to an invited user
5185
5475
  * @enum {string}
@@ -5327,6 +5617,29 @@ export interface components {
5327
5617
  /** @description The type of key this package represents */
5328
5618
  key_type: string;
5329
5619
  };
5620
+ /** @description The top-level JSON-RPC request type. */
5621
+ JsonRpcRequest: {
5622
+ method: "JsonRpcRequest";
5623
+ } & Omit<components["schemas"]["RpcMethod"], "method"> & {
5624
+ /** @description Request ID */
5625
+ id?: string;
5626
+ /** @description JSON-RPC version. */
5627
+ jsonrpc: string;
5628
+ };
5629
+ /** @description The RPC API's response. */
5630
+ JsonRpcResponse: {
5631
+ error?: components["schemas"]["ErrorObj"] | null;
5632
+ /** @description ID from the corresponding request. */
5633
+ id?: unknown;
5634
+ /** @description Constant "2.0". */
5635
+ jsonrpc: string;
5636
+ /** @description Result, if success. */
5637
+ result?: Record<string, unknown> | null;
5638
+ };
5639
+ /** @description Valid `result` from the JSON-RPC API. */
5640
+ JsonRpcResult:
5641
+ | components["schemas"]["TransactionInfo"]
5642
+ | components["schemas"]["ListTransactionsPaginatedResponse"];
5330
5643
  JwkSetResponse: {
5331
5644
  /** @description The keys included in this set */
5332
5645
  keys: Record<string, never>[];
@@ -5530,6 +5843,11 @@ export interface components {
5530
5843
  ListIdentitiesResponse: {
5531
5844
  identities: components["schemas"]["IdentityInfo"][];
5532
5845
  };
5846
+ /** @description List of pending invitations */
5847
+ ListInvitationsResponse: {
5848
+ /** @description Pending invitations */
5849
+ invitations: components["schemas"]["InvitationInfo"][];
5850
+ };
5533
5851
  ListMfaResponse: {
5534
5852
  /** @description All pending MFA requests */
5535
5853
  mfa_requests: components["schemas"]["MfaRequestInfo"][];
@@ -5539,6 +5857,35 @@ export interface components {
5539
5857
  /** @description All pending messages for a user. */
5540
5858
  pending_messages: components["schemas"]["PendingMessageInfo"][];
5541
5859
  };
5860
+ /**
5861
+ * @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
5862
+ * value (which can the user pass back to use as a url query parameter to continue pagination).
5863
+ */
5864
+ ListTransactionsPaginatedResponse: {
5865
+ /** @description A list of transaction infos. */
5866
+ transactions: components["schemas"]["TransactionInfo"][];
5867
+ } & {
5868
+ /**
5869
+ * @description If set, the content of `response` does not contain the entire result set.
5870
+ * To fetch the next page of the result set, call the same endpoint
5871
+ * but specify this value as the 'page.start' query parameter.
5872
+ */
5873
+ last_evaluated_key?: string | null;
5874
+ };
5875
+ /** @description Parameters for the [`cs_listTransactions`](RpcMethod::ListTransactions) method. */
5876
+ ListTransactionsRequest: components["schemas"]["Page"] & {
5877
+ /**
5878
+ * @description Optional user or role id.
5879
+ *
5880
+ * If defined, the response is filtered to transactions created by the given id.
5881
+ */
5882
+ owner?: string | null;
5883
+ };
5884
+ /** @description The response to [`cs_listTransactions`](super::request::RpcMethod::ListTransactions) */
5885
+ ListTransactionsResponse: {
5886
+ /** @description A list of transaction infos. */
5887
+ transactions: components["schemas"]["TransactionInfo"][];
5888
+ };
5542
5889
  LoginRequest: components["schemas"]["OidcLoginRequest"];
5543
5890
  /**
5544
5891
  * @description Describes whether a user in an org is an Owner or just a regular member
@@ -5611,7 +5958,7 @@ export interface components {
5611
5958
  * @description MFA policy provenance
5612
5959
  * @enum {string}
5613
5960
  */
5614
- provenance: "Key" | "KeyInRole" | "Role" | "User" | "EditPolicy";
5961
+ provenance: "Org" | "Key" | "KeyInRole" | "Role" | "User" | "EditPolicy";
5615
5962
  receipt?: components["schemas"]["Receipt"] | null;
5616
5963
  /** @description The region this MFA request was created in. It can only be redeemed from the same region. */
5617
5964
  region?: string;
@@ -5799,8 +6146,12 @@ export interface components {
5799
6146
  | "OrgExportCiphertextNotFound"
5800
6147
  | "UploadObjectNotFound"
5801
6148
  | "PolicySecretNotFound"
6149
+ | "BucketMetaNotFound"
5802
6150
  | "TimestreamDisabled"
5803
- | "CustomChainNotFound";
6151
+ | "CustomChainNotFound"
6152
+ | "InvitationNotFound"
6153
+ | "TransactionNotFound"
6154
+ | "EmailConfigNotFound";
5804
6155
  /** @description The configuration and status of a notification endpoint */
5805
6156
  NotificationEndpoint: components["schemas"]["NotificationEndpointSubscription"] & {
5806
6157
  status: components["schemas"]["SubscriptionStatus"];
@@ -6136,6 +6487,19 @@ export interface components {
6136
6487
  /** @enum {string} */
6137
6488
  org_event: "TendermintConcurrentSigning";
6138
6489
  }
6490
+ | {
6491
+ /** @description The email address of the invited user */
6492
+ email: string;
6493
+ /** @enum {string} */
6494
+ org_event: "InvitationCreated";
6495
+ role: components["schemas"]["MemberRole"];
6496
+ }
6497
+ | {
6498
+ /** @description The email address whose invitation was canceled */
6499
+ email: string;
6500
+ /** @enum {string} */
6501
+ org_event: "InvitationCanceled";
6502
+ }
6139
6503
  | {
6140
6504
  key_id: components["schemas"]["Id"];
6141
6505
  /** @enum {string} */
@@ -6196,6 +6560,8 @@ export interface components {
6196
6560
  | "MfaRejected"
6197
6561
  | "PolicyChanged"
6198
6562
  | "TendermintConcurrentSigning"
6563
+ | "InvitationCreated"
6564
+ | "InvitationCanceled"
6199
6565
  | "UserExportInit"
6200
6566
  | "UserExportComplete"
6201
6567
  | "WasmPolicyExecuted";
@@ -6218,169 +6584,179 @@ export interface components {
6218
6584
  /** @description A base64-encoded export ciphertext. */
6219
6585
  ciphertext: string;
6220
6586
  };
6221
- OrgInfo: components["schemas"]["MfaRequirements"] & {
6222
- access_model: components["schemas"]["AccessModel"];
6223
- custom_chains?: components["schemas"]["CustomChainsData"] | null;
6224
- default_invite_kind?: components["schemas"]["InviteKind"];
6225
- email_preferences?: components["schemas"]["EmailPreferences"];
6226
- /** @description When false, all cryptographic operations involving keys in this org are disabled. */
6227
- enabled: boolean;
6228
- ext_data?:
6229
- | ({
6230
- /**
6231
- * Format: int32
6232
- * @description Per alien user key count threshold, which, once exceeded, disallows further key creation by alien users.
6233
- *
6234
- * This setting is checked only when an alien user requests to create or import a new key.
6235
- * In other words, org admins can still assign unlimited number of keys to their alien users.
6236
- */
6237
- alien_key_count_threshold?: number | null;
6238
- } & {
6239
- created?: components["schemas"]["EpochDateTime"] | null;
6240
- last_modified?: components["schemas"]["EpochDateTime"] | null;
6241
- /**
6242
- * Format: int64
6243
- * @description Version of this object
6244
- */
6245
- version?: number;
6246
- } & Record<string, never>)
6247
- | null;
6248
- historical_data_configuration?: components["schemas"]["HistoricalDataConfiguration"];
6249
- idp_configuration?: components["schemas"]["IdpConfig"];
6250
- /** @description Deprecated: this field should be ignored. */
6251
- key_import_key?: string | null;
6252
- /**
6253
- * @description The organization's universally unique key-wrapping-key identifier.
6254
- * This value is required when setting up key export.
6255
- * @example mrk-fce09525e81587d23520f11e07e2e9d9
6256
- */
6257
- kwk_id: string;
6258
- /**
6259
- * @description Date/time (in UTC) when last 'unstake' was performed. Unix epoch if none.
6260
- * @example TODO
6261
- */
6262
- last_unstake: string;
6263
- /**
6264
- * Format: int32
6265
- * @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
6266
- */
6267
- last_unstake_day_count: number;
6268
- /** @description Whether metrics are collected for this org */
6269
- metrics_enabled?: boolean;
6270
- /**
6271
- * @description The human-readable name for the org
6272
- * @example my_org_name
6273
- */
6274
- name?: string | null;
6275
- /**
6276
- * @description The organization's notification endpoints, which are HTTPS URLs are notified about a
6277
- * configurable set of events in an organization. For each event, CubeSigner sends a POST
6278
- * request with a JSON-formatted body that contains the event details.
6279
- * @example [
6280
- * {
6281
- * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000001",
6282
- * "config": {
6283
- * "url": "https://example.com/endpoint1"
6284
- * },
6285
- * "status": "Confirmed"
6286
- * },
6287
- * {
6288
- * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000002",
6289
- * "config": {
6290
- * "filter": {
6291
- * "OneOf": [
6292
- * "Eth2ConcurrentAttestationSigning",
6293
- * "Eth2ConcurrentBlockSigning"
6294
- * ]
6295
- * },
6296
- * "url": "https://example.com/endpoint2"
6297
- * },
6298
- * "status": "Pending"
6299
- * }
6300
- * ]
6301
- */
6302
- notification_endpoints?: components["schemas"]["NotificationEndpoint"][];
6303
- /**
6304
- * @description The ID of the organization
6305
- * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
6306
- */
6307
- org_id: string;
6308
- passkey_configuration?: components["schemas"]["PasskeyConfig"];
6309
- /**
6310
- * @description Org-wide policies that are checked before a key is used for signing
6311
- * @example [
6312
- * {
6313
- * "MaxDailyUnstake": 5
6314
- * }
6315
- * ]
6316
- */
6317
- policy?: Record<string, never>[];
6318
- policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"];
6319
- /**
6320
- * Format: int32
6321
- * @description The organization's currently configured TOTP failure limit, i.e., the number
6322
- * of times a user can provide an incorrect TOTP code before being rate limited.
6323
- * This value can be between 1 and 5 (inclusive).
6324
- */
6325
- totp_failure_limit: number;
6326
- /**
6327
- * Format: int64
6328
- * @description The organization's currently configured user-export delay, i.e., the minimum
6329
- * amount of time (in seconds) between when a user-export is initiated and when
6330
- * it may be completed. (This value is meaningless for organizations that use
6331
- * org-wide export.)
6332
- */
6333
- user_export_delay: number;
6334
- /** @description Whether user export is disabled */
6335
- user_export_disabled?: boolean;
6336
- /**
6337
- * Format: int64
6338
- * @description The organization's currently configured user-export window, i.e., the amount
6339
- * of time (in seconds) between when the user-export delay is completed and when
6340
- * the user export request has expired and can no longer be completed. (This value
6341
- * is meaningless for organizations that use org-wide export.)
6342
- */
6343
- user_export_window: number;
6344
- /** @description If set, the official webapp origin is automatically allowed */
6345
- webapp_enabled?: boolean;
6346
- };
6347
- /** @description Supported org metrics. */
6348
- OrgMetric: OneOf<
6349
- [
6350
- {
6351
- BillingEvent: components["schemas"]["BillingDimensions"];
6352
- },
6353
- {
6354
- OidcLoginEvent: components["schemas"]["OidcLoginDimensions"];
6355
- },
6356
- {
6357
- SignEvent: components["schemas"]["SignDimensions"];
6358
- },
6359
- {
6360
- UserCount: components["schemas"]["UserCountDimensions"];
6361
- },
6362
- {
6363
- KeyCount: components["schemas"]["KeyCountDimensions"];
6364
- },
6365
- ]
6366
- >;
6367
- OrgMetricData: {
6368
- /** @description The data points, one for each time period (time periods for which the value is 0 are omitted). */
6369
- data: {
6370
- [key: string]: number;
6371
- };
6372
- /** @description The metric dimensions. */
6373
- dimensions: {
6374
- [key: string]: string;
6375
- };
6376
- };
6377
- /**
6378
- * @description Auto-generated discriminant enum variants
6379
- * @enum {string}
6380
- */
6381
- OrgMetricDiscriminants:
6382
- | "BillingEvent"
6383
- | "OidcLoginEvent"
6587
+ OrgInfo: components["schemas"]["MfaRequirements"] &
6588
+ components["schemas"]["CommonFields"] & {
6589
+ access_model: components["schemas"]["AccessModel"];
6590
+ custom_chains?: components["schemas"]["CustomChainsData"] | null;
6591
+ default_invite_kind?: components["schemas"]["InviteKind"];
6592
+ email_preferences?: components["schemas"]["EmailPreferences"];
6593
+ /** @description When false, all cryptographic operations involving keys in this org are disabled. */
6594
+ enabled: boolean;
6595
+ ext_data?:
6596
+ | ({
6597
+ /**
6598
+ * Format: int32
6599
+ * @description Per alien user key count threshold, which, once exceeded, disallows further key creation by alien users.
6600
+ *
6601
+ * This setting is checked only when an alien user requests to create or import a new key.
6602
+ * In other words, org admins can still assign unlimited number of keys to their alien users.
6603
+ */
6604
+ alien_key_count_threshold?: number | null;
6605
+ } & {
6606
+ created?: components["schemas"]["EpochDateTime"] | null;
6607
+ last_modified?: components["schemas"]["EpochDateTime"] | null;
6608
+ /**
6609
+ * Format: int64
6610
+ * @description Version of this object
6611
+ */
6612
+ version?: number;
6613
+ } & Record<string, never>)
6614
+ | null;
6615
+ historical_data_configuration?: components["schemas"]["HistoricalDataConfiguration"];
6616
+ idp_configuration?: components["schemas"]["IdpConfig"];
6617
+ /** @description Deprecated: this field should be ignored. */
6618
+ key_import_key?: string | null;
6619
+ /**
6620
+ * @description The organization's universally unique key-wrapping-key identifier.
6621
+ * This value is required when setting up key export.
6622
+ * @example mrk-fce09525e81587d23520f11e07e2e9d9
6623
+ */
6624
+ kwk_id: string;
6625
+ /**
6626
+ * @description Date/time (in UTC) when last 'unstake' was performed. Unix epoch if none.
6627
+ * @example TODO
6628
+ */
6629
+ last_unstake: string;
6630
+ /**
6631
+ * Format: int32
6632
+ * @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
6633
+ */
6634
+ last_unstake_day_count: number;
6635
+ /** @description Whether metrics are collected for this org */
6636
+ metrics_enabled?: boolean;
6637
+ /**
6638
+ * @description The human-readable name for the org
6639
+ * @example my_org_name
6640
+ */
6641
+ name?: string | null;
6642
+ /**
6643
+ * @description The organization's notification endpoints, which are HTTPS URLs are notified about a
6644
+ * configurable set of events in an organization. For each event, CubeSigner sends a POST
6645
+ * request with a JSON-formatted body that contains the event details.
6646
+ * @example [
6647
+ * {
6648
+ * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000001",
6649
+ * "config": {
6650
+ * "url": "https://example.com/endpoint1"
6651
+ * },
6652
+ * "status": "Confirmed"
6653
+ * },
6654
+ * {
6655
+ * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000002",
6656
+ * "config": {
6657
+ * "filter": {
6658
+ * "OneOf": [
6659
+ * "Eth2ConcurrentAttestationSigning",
6660
+ * "Eth2ConcurrentBlockSigning"
6661
+ * ]
6662
+ * },
6663
+ * "url": "https://example.com/endpoint2"
6664
+ * },
6665
+ * "status": "Pending"
6666
+ * }
6667
+ * ]
6668
+ */
6669
+ notification_endpoints?: components["schemas"]["NotificationEndpoint"][];
6670
+ /**
6671
+ * @description The ID of the organization
6672
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
6673
+ */
6674
+ org_id: string;
6675
+ passkey_configuration?: components["schemas"]["PasskeyConfig"];
6676
+ /**
6677
+ * @description Org-wide policies that are checked before a key is used for signing
6678
+ * @example [
6679
+ * {
6680
+ * "MaxDailyUnstake": 5
6681
+ * }
6682
+ * ]
6683
+ */
6684
+ policy?: Record<string, never>[];
6685
+ policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"];
6686
+ /**
6687
+ * @description Global sign policy that applies to every sign operation (every key, every role) in the org
6688
+ * @example [
6689
+ * {
6690
+ * "TxReceiver": "0x0000000000000000000000000000000000000000"
6691
+ * }
6692
+ * ]
6693
+ */
6694
+ sign_policy?: Record<string, never>[];
6695
+ /**
6696
+ * Format: int32
6697
+ * @description The organization's currently configured TOTP failure limit, i.e., the number
6698
+ * of times a user can provide an incorrect TOTP code before being rate limited.
6699
+ * This value can be between 1 and 5 (inclusive).
6700
+ */
6701
+ totp_failure_limit: number;
6702
+ /**
6703
+ * Format: int64
6704
+ * @description The organization's currently configured user-export delay, i.e., the minimum
6705
+ * amount of time (in seconds) between when a user-export is initiated and when
6706
+ * it may be completed. (This value is meaningless for organizations that use
6707
+ * org-wide export.)
6708
+ */
6709
+ user_export_delay: number;
6710
+ /** @description Whether user export is disabled */
6711
+ user_export_disabled?: boolean;
6712
+ /**
6713
+ * Format: int64
6714
+ * @description The organization's currently configured user-export window, i.e., the amount
6715
+ * of time (in seconds) between when the user-export delay is completed and when
6716
+ * the user export request has expired and can no longer be completed. (This value
6717
+ * is meaningless for organizations that use org-wide export.)
6718
+ */
6719
+ user_export_window: number;
6720
+ /** @description If set, the official webapp origin is automatically allowed */
6721
+ webapp_enabled?: boolean;
6722
+ };
6723
+ /** @description Supported org metrics. */
6724
+ OrgMetric: OneOf<
6725
+ [
6726
+ {
6727
+ BillingEvent: components["schemas"]["BillingDimensions"];
6728
+ },
6729
+ {
6730
+ OidcLoginEvent: components["schemas"]["OidcLoginDimensions"];
6731
+ },
6732
+ {
6733
+ SignEvent: components["schemas"]["SignDimensions"];
6734
+ },
6735
+ {
6736
+ UserCount: components["schemas"]["UserCountDimensions"];
6737
+ },
6738
+ {
6739
+ KeyCount: components["schemas"]["KeyCountDimensions"];
6740
+ },
6741
+ ]
6742
+ >;
6743
+ OrgMetricData: {
6744
+ /** @description The data points, one for each time period (time periods for which the value is 0 are omitted). */
6745
+ data: {
6746
+ [key: string]: number;
6747
+ };
6748
+ /** @description The metric dimensions. */
6749
+ dimensions: {
6750
+ [key: string]: string;
6751
+ };
6752
+ };
6753
+ /**
6754
+ * @description Auto-generated discriminant enum variants
6755
+ * @enum {string}
6756
+ */
6757
+ OrgMetricDiscriminants:
6758
+ | "BillingEvent"
6759
+ | "OidcLoginEvent"
6384
6760
  | "SignEvent"
6385
6761
  | "UserCount"
6386
6762
  | "KeyCount";
@@ -6451,6 +6827,21 @@ export interface components {
6451
6827
  */
6452
6828
  last_evaluated_key?: string | null;
6453
6829
  };
6830
+ /**
6831
+ * @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
6832
+ * value (which can the user pass back to use as a url query parameter to continue pagination).
6833
+ */
6834
+ PaginatedListBucketsResponse: {
6835
+ /** @description The buckets in the organization. */
6836
+ buckets: components["schemas"]["BucketInfo"][];
6837
+ } & {
6838
+ /**
6839
+ * @description If set, the content of `response` does not contain the entire result set.
6840
+ * To fetch the next page of the result set, call the same endpoint
6841
+ * but specify this value as the 'page.start' query parameter.
6842
+ */
6843
+ last_evaluated_key?: string | null;
6844
+ };
6454
6845
  /**
6455
6846
  * @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
6456
6847
  * value (which can the user pass back to use as a url query parameter to continue pagination).
@@ -6481,6 +6872,21 @@ export interface components {
6481
6872
  */
6482
6873
  last_evaluated_key?: string | null;
6483
6874
  };
6875
+ /**
6876
+ * @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
6877
+ * value (which can the user pass back to use as a url query parameter to continue pagination).
6878
+ */
6879
+ PaginatedListInvitationsResponse: {
6880
+ /** @description Pending invitations */
6881
+ invitations: components["schemas"]["InvitationInfo"][];
6882
+ } & {
6883
+ /**
6884
+ * @description If set, the content of `response` does not contain the entire result set.
6885
+ * To fetch the next page of the result set, call the same endpoint
6886
+ * but specify this value as the 'page.start' query parameter.
6887
+ */
6888
+ last_evaluated_key?: string | null;
6889
+ };
6484
6890
  /**
6485
6891
  * @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
6486
6892
  * value (which can the user pass back to use as a url query parameter to continue pagination).
@@ -6756,16 +7162,16 @@ export interface components {
6756
7162
  }) &
6757
7163
  Record<string, never>;
6758
7164
  /**
6759
- * PolicyAction
6760
7165
  * @description The access-controlled actions that can be performed on a named policy.
6761
- * @example read:policy
6762
7166
  * @enum {string}
6763
7167
  */
6764
7168
  PolicyAction:
6765
7169
  | "read:*"
7170
+ | "read"
6766
7171
  | "read:policy"
6767
7172
  | "read:logs"
6768
7173
  | "update:*"
7174
+ | "update"
6769
7175
  | "update:name"
6770
7176
  | "update:rules"
6771
7177
  | "update:metadata"
@@ -6805,6 +7211,13 @@ export interface components {
6805
7211
  */
6806
7212
  role_id: string;
6807
7213
  },
7214
+ {
7215
+ /**
7216
+ * @description The id of the org the policy should be attached to.
7217
+ * @example Org#b0156abd-53bd-4043-8e55-57f7af9512d5
7218
+ */
7219
+ org_id: string;
7220
+ },
6808
7221
  ]
6809
7222
  >;
6810
7223
  /** @description A struct containing Org-level configurations for the workings of the Policy Engine. */
@@ -7637,6 +8050,23 @@ export interface components {
7637
8050
  /** @description A JSON Web Token whose claims contain the `RoleInfo` structure. */
7638
8051
  jwt: string;
7639
8052
  };
8053
+ /** @description The RPC API method and matching parameters. */
8054
+ RpcMethod:
8055
+ | {
8056
+ /** @enum {string} */
8057
+ method: "cs_createTransaction";
8058
+ params: components["schemas"]["CreateTransactionRequest"];
8059
+ }
8060
+ | {
8061
+ /** @enum {string} */
8062
+ method: "cs_getTransaction";
8063
+ params: components["schemas"]["GetTransactionRequest"];
8064
+ }
8065
+ | {
8066
+ /** @enum {string} */
8067
+ method: "cs_listTransactions";
8068
+ params: components["schemas"]["ListTransactionsRequest"];
8069
+ };
7640
8070
  /** @description All scopes for accessing CubeSigner APIs */
7641
8071
  Scope: components["schemas"]["ExplicitScope"] | string;
7642
8072
  /** @description A set of scopes. */
@@ -8220,6 +8650,16 @@ export interface components {
8220
8650
  signedRawTransaction?: string | null;
8221
8651
  status: components["schemas"]["MmiStatus"];
8222
8652
  };
8653
+ /** @description Chain-specific transaction details. */
8654
+ TransactionDetails: components["schemas"]["EvmTransactionDetails"] & {
8655
+ /** @enum {string} */
8656
+ chain: "Evm";
8657
+ };
8658
+ /** @description Information about an existing transaction created by the RPC API. */
8659
+ TransactionInfo: components["schemas"]["Transaction"] & {
8660
+ /** @description The transaction id. */
8661
+ id: string;
8662
+ };
8223
8663
  /**
8224
8664
  * @description Supported queries
8225
8665
  * @enum {string}
@@ -8453,6 +8893,23 @@ export interface components {
8453
8893
  /** @description Optional policy evaluation tree. */
8454
8894
  policy_eval_tree?: unknown;
8455
8895
  } & Record<string, never>;
8896
+ /** @description The information needed to update a bucket. */
8897
+ UpdateBucketRequest: {
8898
+ /** @description Access-control entries defining how the bucket can be accessed. */
8899
+ acl?: unknown;
8900
+ /**
8901
+ * Format: int64
8902
+ * @description If set, updating only succeeds if the current version matches this value.
8903
+ */
8904
+ expected_version?: number | null;
8905
+ /** @description Optional metadata. */
8906
+ metadata?: unknown;
8907
+ /**
8908
+ * @description Update the owner of the bucket
8909
+ * @example User#00000000-0000-0000-0000-000000000000
8910
+ */
8911
+ owner?: string | null;
8912
+ };
8456
8913
  /** @description The information needed to update a Contact. */
8457
8914
  UpdateContactRequest: {
8458
8915
  addresses?: components["schemas"]["AddressMap"] | null;
@@ -8525,6 +8982,7 @@ export interface components {
8525
8982
  } | null;
8526
8983
  custom_chains?: components["schemas"]["CustomChainsData"] | null;
8527
8984
  default_invite_kind?: components["schemas"]["InviteKind"] | null;
8985
+ edit_policy?: components["schemas"]["EditPolicy"] | null;
8528
8986
  email_preferences?: components["schemas"]["EmailPreferences"] | null;
8529
8987
  /** @description If set, update this org's `enabled` field to this value. */
8530
8988
  enabled?: boolean | null;
@@ -8619,6 +9077,18 @@ export interface components {
8619
9077
  * Owners of the org are exempt from this requirement.
8620
9078
  */
8621
9079
  require_scope_ceiling?: boolean | null;
9080
+ /**
9081
+ * @description If set, update this org's sign rule (old sign rules will be overwritten!).
9082
+ * Only "deny"-style rules may be set.
9083
+ * @example [
9084
+ * {
9085
+ * "TxReceiver": [
9086
+ * "0x0000000000000000000000000000000000000000"
9087
+ * ]
9088
+ * }
9089
+ * ]
9090
+ */
9091
+ sign_policy?: unknown[] | null;
8622
9092
  /**
8623
9093
  * Format: int32
8624
9094
  * @description If set, update this org's TOTP failure limit. After this many failures,
@@ -8656,6 +9126,7 @@ export interface components {
8656
9126
  } | null;
8657
9127
  custom_chains?: components["schemas"]["CustomChainsData"] | null;
8658
9128
  default_invite_kind?: components["schemas"]["InviteKind"] | null;
9129
+ edit_policy?: components["schemas"]["EditPolicy"] | null;
8659
9130
  email_preferences?: components["schemas"]["EmailPreferences"] | null;
8660
9131
  /** @description The new value of the 'enabled' property */
8661
9132
  enabled?: boolean | null;
@@ -8720,6 +9191,15 @@ export interface components {
8720
9191
  policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"] | null;
8721
9192
  /** @description The new value of require_scope_ceiling */
8722
9193
  require_scope_ceiling?: boolean | null;
9194
+ /**
9195
+ * @description The new value of the org-wide sign rules
9196
+ * @example [
9197
+ * {
9198
+ * "TxReceiver": "0x0000000000000000000000000000000000000000"
9199
+ * }
9200
+ * ]
9201
+ */
9202
+ sign_policy?: Record<string, never>[] | null;
8723
9203
  /**
8724
9204
  * Format: int32
8725
9205
  * @description The new value of the TOTP failure limit
@@ -8737,6 +9217,11 @@ export interface components {
8737
9217
  * @description The new value of user-export window
8738
9218
  */
8739
9219
  user_export_window?: number | null;
9220
+ /**
9221
+ * Format: int64
9222
+ * @description New org version
9223
+ */
9224
+ version: number;
8740
9225
  };
8741
9226
  /** @description Request body for updating a named policy. */
8742
9227
  UpdatePolicyRequest: {
@@ -9255,6 +9740,29 @@ export interface components {
9255
9740
  };
9256
9741
  };
9257
9742
  };
9743
+ /** @description Information about a policy KV store bucket. */
9744
+ BucketInfo: {
9745
+ content: {
9746
+ "application/json": ({
9747
+ created?: components["schemas"]["EpochDateTime"] | null;
9748
+ last_modified?: components["schemas"]["EpochDateTime"] | null;
9749
+ /**
9750
+ * Format: int64
9751
+ * @description Version of this object
9752
+ */
9753
+ version?: number;
9754
+ } & {
9755
+ /** @description The access-control entries for the bucket. */
9756
+ acl?: unknown[] | null;
9757
+ /** @description Arbitrary user-defined metadata. */
9758
+ metadata?: unknown;
9759
+ owner: components["schemas"]["Id"];
9760
+ }) & {
9761
+ /** @description The name of the bucket. */
9762
+ name: string;
9763
+ };
9764
+ };
9765
+ };
9258
9766
  /** @description The number of users and keys in an org, organized by user role and key type */
9259
9767
  ComputeCountsResponse: {
9260
9768
  content: {
@@ -9475,6 +9983,21 @@ export interface components {
9475
9983
  };
9476
9984
  };
9477
9985
  };
9986
+ /** @description The email sender configuration (without sensitive auth details) */
9987
+ GetEmailConfigResponse: {
9988
+ content: {
9989
+ "application/json": {
9990
+ /** @description The email address that emails are sent from */
9991
+ sender: string;
9992
+ template?: {
9993
+ /** @description An HTML template to use for the body. */
9994
+ body_template: string;
9995
+ /** @description The subject line template */
9996
+ subject_template: string;
9997
+ } | null;
9998
+ };
9999
+ };
10000
+ };
9478
10001
  GetUserByEmailResponse: {
9479
10002
  content: {
9480
10003
  "application/json": {
@@ -9543,6 +10066,20 @@ export interface components {
9543
10066
  "application/json": components["schemas"]["Response"] & Record<string, never>;
9544
10067
  };
9545
10068
  };
10069
+ /** @description The RPC API's response. */
10070
+ JsonRpcResponse: {
10071
+ content: {
10072
+ "application/json": {
10073
+ error?: components["schemas"]["ErrorObj"] | null;
10074
+ /** @description ID from the corresponding request. */
10075
+ id?: unknown;
10076
+ /** @description Constant "2.0". */
10077
+ jsonrpc: string;
10078
+ /** @description Result, if success. */
10079
+ result?: Record<string, unknown> | null;
10080
+ };
10081
+ };
10082
+ };
9546
10083
  /** @description A JSON Web Key set describing the key used to sign JSON Web Tokens */
9547
10084
  JwkSetResponse: {
9548
10085
  content: {
@@ -9727,7 +10264,7 @@ export interface components {
9727
10264
  * @description MFA policy provenance
9728
10265
  * @enum {string}
9729
10266
  */
9730
- provenance: "Key" | "KeyInRole" | "Role" | "User" | "EditPolicy";
10267
+ provenance: "Org" | "Key" | "KeyInRole" | "Role" | "User" | "EditPolicy";
9731
10268
  receipt?: components["schemas"]["Receipt"] | null;
9732
10269
  /** @description The region this MFA request was created in. It can only be redeemed from the same region. */
9733
10270
  region?: string;
@@ -9779,132 +10316,142 @@ export interface components {
9779
10316
  };
9780
10317
  OrgInfo: {
9781
10318
  content: {
9782
- "application/json": components["schemas"]["MfaRequirements"] & {
9783
- access_model: components["schemas"]["AccessModel"];
9784
- custom_chains?: components["schemas"]["CustomChainsData"] | null;
9785
- default_invite_kind?: components["schemas"]["InviteKind"];
9786
- email_preferences?: components["schemas"]["EmailPreferences"];
9787
- /** @description When false, all cryptographic operations involving keys in this org are disabled. */
9788
- enabled: boolean;
9789
- ext_data?:
9790
- | ({
9791
- /**
9792
- * Format: int32
9793
- * @description Per alien user key count threshold, which, once exceeded, disallows further key creation by alien users.
9794
- *
9795
- * This setting is checked only when an alien user requests to create or import a new key.
9796
- * In other words, org admins can still assign unlimited number of keys to their alien users.
9797
- */
9798
- alien_key_count_threshold?: number | null;
9799
- } & {
9800
- created?: components["schemas"]["EpochDateTime"] | null;
9801
- last_modified?: components["schemas"]["EpochDateTime"] | null;
9802
- /**
9803
- * Format: int64
9804
- * @description Version of this object
9805
- */
9806
- version?: number;
9807
- } & Record<string, never>)
9808
- | null;
9809
- historical_data_configuration?: components["schemas"]["HistoricalDataConfiguration"];
9810
- idp_configuration?: components["schemas"]["IdpConfig"];
9811
- /** @description Deprecated: this field should be ignored. */
9812
- key_import_key?: string | null;
9813
- /**
9814
- * @description The organization's universally unique key-wrapping-key identifier.
9815
- * This value is required when setting up key export.
9816
- * @example mrk-fce09525e81587d23520f11e07e2e9d9
9817
- */
9818
- kwk_id: string;
9819
- /**
9820
- * @description Date/time (in UTC) when last 'unstake' was performed. Unix epoch if none.
9821
- * @example TODO
9822
- */
9823
- last_unstake: string;
9824
- /**
9825
- * Format: int32
9826
- * @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
9827
- */
9828
- last_unstake_day_count: number;
9829
- /** @description Whether metrics are collected for this org */
9830
- metrics_enabled?: boolean;
9831
- /**
9832
- * @description The human-readable name for the org
9833
- * @example my_org_name
9834
- */
9835
- name?: string | null;
9836
- /**
9837
- * @description The organization's notification endpoints, which are HTTPS URLs are notified about a
9838
- * configurable set of events in an organization. For each event, CubeSigner sends a POST
9839
- * request with a JSON-formatted body that contains the event details.
9840
- * @example [
9841
- * {
9842
- * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000001",
9843
- * "config": {
9844
- * "url": "https://example.com/endpoint1"
9845
- * },
9846
- * "status": "Confirmed"
9847
- * },
9848
- * {
9849
- * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000002",
9850
- * "config": {
9851
- * "filter": {
9852
- * "OneOf": [
9853
- * "Eth2ConcurrentAttestationSigning",
9854
- * "Eth2ConcurrentBlockSigning"
9855
- * ]
9856
- * },
9857
- * "url": "https://example.com/endpoint2"
9858
- * },
9859
- * "status": "Pending"
9860
- * }
9861
- * ]
9862
- */
9863
- notification_endpoints?: components["schemas"]["NotificationEndpoint"][];
9864
- /**
9865
- * @description The ID of the organization
9866
- * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
9867
- */
9868
- org_id: string;
9869
- passkey_configuration?: components["schemas"]["PasskeyConfig"];
9870
- /**
9871
- * @description Org-wide policies that are checked before a key is used for signing
9872
- * @example [
9873
- * {
9874
- * "MaxDailyUnstake": 5
9875
- * }
9876
- * ]
9877
- */
9878
- policy?: Record<string, never>[];
9879
- policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"];
9880
- /**
9881
- * Format: int32
9882
- * @description The organization's currently configured TOTP failure limit, i.e., the number
9883
- * of times a user can provide an incorrect TOTP code before being rate limited.
9884
- * This value can be between 1 and 5 (inclusive).
9885
- */
9886
- totp_failure_limit: number;
9887
- /**
9888
- * Format: int64
9889
- * @description The organization's currently configured user-export delay, i.e., the minimum
9890
- * amount of time (in seconds) between when a user-export is initiated and when
9891
- * it may be completed. (This value is meaningless for organizations that use
9892
- * org-wide export.)
9893
- */
9894
- user_export_delay: number;
9895
- /** @description Whether user export is disabled */
9896
- user_export_disabled?: boolean;
9897
- /**
9898
- * Format: int64
9899
- * @description The organization's currently configured user-export window, i.e., the amount
9900
- * of time (in seconds) between when the user-export delay is completed and when
9901
- * the user export request has expired and can no longer be completed. (This value
9902
- * is meaningless for organizations that use org-wide export.)
9903
- */
9904
- user_export_window: number;
9905
- /** @description If set, the official webapp origin is automatically allowed */
9906
- webapp_enabled?: boolean;
9907
- };
10319
+ "application/json": components["schemas"]["MfaRequirements"] &
10320
+ components["schemas"]["CommonFields"] & {
10321
+ access_model: components["schemas"]["AccessModel"];
10322
+ custom_chains?: components["schemas"]["CustomChainsData"] | null;
10323
+ default_invite_kind?: components["schemas"]["InviteKind"];
10324
+ email_preferences?: components["schemas"]["EmailPreferences"];
10325
+ /** @description When false, all cryptographic operations involving keys in this org are disabled. */
10326
+ enabled: boolean;
10327
+ ext_data?:
10328
+ | ({
10329
+ /**
10330
+ * Format: int32
10331
+ * @description Per alien user key count threshold, which, once exceeded, disallows further key creation by alien users.
10332
+ *
10333
+ * This setting is checked only when an alien user requests to create or import a new key.
10334
+ * In other words, org admins can still assign unlimited number of keys to their alien users.
10335
+ */
10336
+ alien_key_count_threshold?: number | null;
10337
+ } & {
10338
+ created?: components["schemas"]["EpochDateTime"] | null;
10339
+ last_modified?: components["schemas"]["EpochDateTime"] | null;
10340
+ /**
10341
+ * Format: int64
10342
+ * @description Version of this object
10343
+ */
10344
+ version?: number;
10345
+ } & Record<string, never>)
10346
+ | null;
10347
+ historical_data_configuration?: components["schemas"]["HistoricalDataConfiguration"];
10348
+ idp_configuration?: components["schemas"]["IdpConfig"];
10349
+ /** @description Deprecated: this field should be ignored. */
10350
+ key_import_key?: string | null;
10351
+ /**
10352
+ * @description The organization's universally unique key-wrapping-key identifier.
10353
+ * This value is required when setting up key export.
10354
+ * @example mrk-fce09525e81587d23520f11e07e2e9d9
10355
+ */
10356
+ kwk_id: string;
10357
+ /**
10358
+ * @description Date/time (in UTC) when last 'unstake' was performed. Unix epoch if none.
10359
+ * @example TODO
10360
+ */
10361
+ last_unstake: string;
10362
+ /**
10363
+ * Format: int32
10364
+ * @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
10365
+ */
10366
+ last_unstake_day_count: number;
10367
+ /** @description Whether metrics are collected for this org */
10368
+ metrics_enabled?: boolean;
10369
+ /**
10370
+ * @description The human-readable name for the org
10371
+ * @example my_org_name
10372
+ */
10373
+ name?: string | null;
10374
+ /**
10375
+ * @description The organization's notification endpoints, which are HTTPS URLs are notified about a
10376
+ * configurable set of events in an organization. For each event, CubeSigner sends a POST
10377
+ * request with a JSON-formatted body that contains the event details.
10378
+ * @example [
10379
+ * {
10380
+ * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000001",
10381
+ * "config": {
10382
+ * "url": "https://example.com/endpoint1"
10383
+ * },
10384
+ * "status": "Confirmed"
10385
+ * },
10386
+ * {
10387
+ * "arn": "arn:aws:sns:us-east-1:012345678901:OrgEventsTopic:12345678-0000-0000-0000-000000000002",
10388
+ * "config": {
10389
+ * "filter": {
10390
+ * "OneOf": [
10391
+ * "Eth2ConcurrentAttestationSigning",
10392
+ * "Eth2ConcurrentBlockSigning"
10393
+ * ]
10394
+ * },
10395
+ * "url": "https://example.com/endpoint2"
10396
+ * },
10397
+ * "status": "Pending"
10398
+ * }
10399
+ * ]
10400
+ */
10401
+ notification_endpoints?: components["schemas"]["NotificationEndpoint"][];
10402
+ /**
10403
+ * @description The ID of the organization
10404
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
10405
+ */
10406
+ org_id: string;
10407
+ passkey_configuration?: components["schemas"]["PasskeyConfig"];
10408
+ /**
10409
+ * @description Org-wide policies that are checked before a key is used for signing
10410
+ * @example [
10411
+ * {
10412
+ * "MaxDailyUnstake": 5
10413
+ * }
10414
+ * ]
10415
+ */
10416
+ policy?: Record<string, never>[];
10417
+ policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"];
10418
+ /**
10419
+ * @description Global sign policy that applies to every sign operation (every key, every role) in the org
10420
+ * @example [
10421
+ * {
10422
+ * "TxReceiver": "0x0000000000000000000000000000000000000000"
10423
+ * }
10424
+ * ]
10425
+ */
10426
+ sign_policy?: Record<string, never>[];
10427
+ /**
10428
+ * Format: int32
10429
+ * @description The organization's currently configured TOTP failure limit, i.e., the number
10430
+ * of times a user can provide an incorrect TOTP code before being rate limited.
10431
+ * This value can be between 1 and 5 (inclusive).
10432
+ */
10433
+ totp_failure_limit: number;
10434
+ /**
10435
+ * Format: int64
10436
+ * @description The organization's currently configured user-export delay, i.e., the minimum
10437
+ * amount of time (in seconds) between when a user-export is initiated and when
10438
+ * it may be completed. (This value is meaningless for organizations that use
10439
+ * org-wide export.)
10440
+ */
10441
+ user_export_delay: number;
10442
+ /** @description Whether user export is disabled */
10443
+ user_export_disabled?: boolean;
10444
+ /**
10445
+ * Format: int64
10446
+ * @description The organization's currently configured user-export window, i.e., the amount
10447
+ * of time (in seconds) between when the user-export delay is completed and when
10448
+ * the user export request has expired and can no longer be completed. (This value
10449
+ * is meaningless for organizations that use org-wide export.)
10450
+ */
10451
+ user_export_window: number;
10452
+ /** @description If set, the official webapp origin is automatically allowed */
10453
+ webapp_enabled?: boolean;
10454
+ };
9908
10455
  };
9909
10456
  };
9910
10457
  PaginatedAuditLogResponse: {
@@ -9937,6 +10484,21 @@ export interface components {
9937
10484
  };
9938
10485
  };
9939
10486
  };
10487
+ PaginatedListBucketsResponse: {
10488
+ content: {
10489
+ "application/json": {
10490
+ /** @description The buckets in the organization. */
10491
+ buckets: components["schemas"]["BucketInfo"][];
10492
+ } & {
10493
+ /**
10494
+ * @description If set, the content of `response` does not contain the entire result set.
10495
+ * To fetch the next page of the result set, call the same endpoint
10496
+ * but specify this value as the 'page.start' query parameter.
10497
+ */
10498
+ last_evaluated_key?: string | null;
10499
+ };
10500
+ };
10501
+ };
9940
10502
  PaginatedListContactsResponse: {
9941
10503
  content: {
9942
10504
  "application/json": {
@@ -9967,6 +10529,21 @@ export interface components {
9967
10529
  };
9968
10530
  };
9969
10531
  };
10532
+ PaginatedListInvitationsResponse: {
10533
+ content: {
10534
+ "application/json": {
10535
+ /** @description Pending invitations */
10536
+ invitations: components["schemas"]["InvitationInfo"][];
10537
+ } & {
10538
+ /**
10539
+ * @description If set, the content of `response` does not contain the entire result set.
10540
+ * To fetch the next page of the result set, call the same endpoint
10541
+ * but specify this value as the 'page.start' query parameter.
10542
+ */
10543
+ last_evaluated_key?: string | null;
10544
+ };
10545
+ };
10546
+ };
9970
10547
  PaginatedListKeyRolesResponse: {
9971
10548
  content: {
9972
10549
  "application/json": {
@@ -10589,6 +11166,7 @@ export interface components {
10589
11166
  } | null;
10590
11167
  custom_chains?: components["schemas"]["CustomChainsData"] | null;
10591
11168
  default_invite_kind?: components["schemas"]["InviteKind"] | null;
11169
+ edit_policy?: components["schemas"]["EditPolicy"] | null;
10592
11170
  email_preferences?: components["schemas"]["EmailPreferences"] | null;
10593
11171
  /** @description The new value of the 'enabled' property */
10594
11172
  enabled?: boolean | null;
@@ -10657,6 +11235,15 @@ export interface components {
10657
11235
  policy_engine_configuration?: components["schemas"]["PolicyEngineConfiguration"] | null;
10658
11236
  /** @description The new value of require_scope_ceiling */
10659
11237
  require_scope_ceiling?: boolean | null;
11238
+ /**
11239
+ * @description The new value of the org-wide sign rules
11240
+ * @example [
11241
+ * {
11242
+ * "TxReceiver": "0x0000000000000000000000000000000000000000"
11243
+ * }
11244
+ * ]
11245
+ */
11246
+ sign_policy?: Record<string, never>[] | null;
10660
11247
  /**
10661
11248
  * Format: int32
10662
11249
  * @description The new value of the TOTP failure limit
@@ -10671,9 +11258,14 @@ export interface components {
10671
11258
  user_export_disabled?: boolean | null;
10672
11259
  /**
10673
11260
  * Format: int64
10674
- * @description The new value of user-export window
11261
+ * @description The new value of user-export window
11262
+ */
11263
+ user_export_window?: number | null;
11264
+ /**
11265
+ * Format: int64
11266
+ * @description New org version
10675
11267
  */
10676
- user_export_window?: number | null;
11268
+ version: number;
10677
11269
  };
10678
11270
  };
10679
11271
  };
@@ -11981,6 +12573,45 @@ export interface operations {
11981
12573
  };
11982
12574
  };
11983
12575
  };
12576
+ /**
12577
+ * Get Email Template
12578
+ * @description Get Email Template
12579
+ *
12580
+ * Returns the email template for a given purpose.
12581
+ */
12582
+ getEmailConfig: {
12583
+ parameters: {
12584
+ path: {
12585
+ /**
12586
+ * @description Name or ID of the desired Org
12587
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
12588
+ */
12589
+ org_id: string;
12590
+ /** @description Which email configuration to get */
12591
+ purpose:
12592
+ | "otp"
12593
+ | "mfa_reset"
12594
+ | "otp_mfa"
12595
+ | "alien_password_reset"
12596
+ | "member_password_reset"
12597
+ | "alien_invite"
12598
+ | "member_invite"
12599
+ | "welcome";
12600
+ };
12601
+ };
12602
+ responses: {
12603
+ 200: components["responses"]["GetEmailConfigResponse"];
12604
+ default: {
12605
+ content: {
12606
+ "application/json": components["schemas"]["ErrorResponse"];
12607
+ };
12608
+ };
12609
+ };
12610
+ };
12611
+ /**
12612
+ * Configure Email Template
12613
+ * @description Configure Email Template
12614
+ */
11984
12615
  configureEmail: {
11985
12616
  parameters: {
11986
12617
  path: {
@@ -12015,6 +12646,44 @@ export interface operations {
12015
12646
  };
12016
12647
  };
12017
12648
  };
12649
+ /**
12650
+ * Delete Email Template
12651
+ * @description Delete Email Template
12652
+ */
12653
+ deleteEmailConfig: {
12654
+ parameters: {
12655
+ path: {
12656
+ /**
12657
+ * @description Name or ID of the desired Org
12658
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
12659
+ */
12660
+ org_id: string;
12661
+ /** @description Which email configuration to delete */
12662
+ purpose:
12663
+ | "otp"
12664
+ | "mfa_reset"
12665
+ | "otp_mfa"
12666
+ | "alien_password_reset"
12667
+ | "member_password_reset"
12668
+ | "alien_invite"
12669
+ | "member_invite"
12670
+ | "welcome";
12671
+ };
12672
+ };
12673
+ requestBody: {
12674
+ content: {
12675
+ "application/json": components["schemas"]["Empty"];
12676
+ };
12677
+ };
12678
+ responses: {
12679
+ 200: components["responses"]["EmptyImpl"];
12680
+ default: {
12681
+ content: {
12682
+ "application/json": components["schemas"]["ErrorResponse"];
12683
+ };
12684
+ };
12685
+ };
12686
+ };
12018
12687
  /**
12019
12688
  * Sign EIP-191 Data
12020
12689
  * @description Sign EIP-191 Data
@@ -12584,6 +13253,77 @@ export interface operations {
12584
13253
  };
12585
13254
  responses: {};
12586
13255
  };
13256
+ /**
13257
+ * List pending invitations
13258
+ * @description List pending invitations
13259
+ *
13260
+ * Returns all pending (not yet accepted) invitations for the organization.
13261
+ */
13262
+ listInvitations: {
13263
+ parameters: {
13264
+ query?: {
13265
+ /**
13266
+ * @description Max number of items to return per page.
13267
+ *
13268
+ * If the actual number of returned items may be less that this, even if there exist more
13269
+ * data in the result set. To reliably determine if more data is left in the result set,
13270
+ * inspect the [UnencryptedLastEvalKey] value in the response object.
13271
+ */
13272
+ "page.size"?: number;
13273
+ /**
13274
+ * @description The start of the page. Omit to start from the beginning; otherwise, only specify a
13275
+ * the exact value previously returned as 'last_evaluated_key' from the same endpoint.
13276
+ */
13277
+ "page.start"?: string | null;
13278
+ };
13279
+ path: {
13280
+ /**
13281
+ * @description Name or ID of the desired Org
13282
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
13283
+ */
13284
+ org_id: string;
13285
+ };
13286
+ };
13287
+ responses: {
13288
+ 200: components["responses"]["PaginatedListInvitationsResponse"];
13289
+ default: {
13290
+ content: {
13291
+ "application/json": components["schemas"]["ErrorResponse"];
13292
+ };
13293
+ };
13294
+ };
13295
+ };
13296
+ /**
13297
+ * Cancel a pending invitation
13298
+ * @description Cancel a pending invitation
13299
+ *
13300
+ * Removes a pending invitation from the organization. If no pending invitation
13301
+ * exists for the given email address, a not-found error is returned.
13302
+ */
13303
+ cancelInvitation: {
13304
+ parameters: {
13305
+ path: {
13306
+ /**
13307
+ * @description Name or ID of the desired Org
13308
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
13309
+ */
13310
+ org_id: string;
13311
+ };
13312
+ };
13313
+ requestBody: {
13314
+ content: {
13315
+ "application/json": components["schemas"]["CancelInvitationRequest"];
13316
+ };
13317
+ };
13318
+ responses: {
13319
+ 200: components["responses"]["EmptyImpl"];
13320
+ default: {
13321
+ content: {
13322
+ "application/json": components["schemas"]["ErrorResponse"];
13323
+ };
13324
+ };
13325
+ };
13326
+ };
12587
13327
  /**
12588
13328
  * Invite User
12589
13329
  * @description Invite User
@@ -14019,6 +14759,108 @@ export interface operations {
14019
14759
  };
14020
14760
  };
14021
14761
  };
14762
+ /**
14763
+ * List Buckets
14764
+ * @description List Buckets
14765
+ *
14766
+ * List available meta information about all policy KV store buckets in the org.
14767
+ */
14768
+ listPolicyBuckets: {
14769
+ parameters: {
14770
+ query?: {
14771
+ /**
14772
+ * @description Max number of items to return per page.
14773
+ *
14774
+ * If the actual number of returned items may be less that this, even if there exist more
14775
+ * data in the result set. To reliably determine if more data is left in the result set,
14776
+ * inspect the [UnencryptedLastEvalKey] value in the response object.
14777
+ */
14778
+ "page.size"?: number;
14779
+ /**
14780
+ * @description The start of the page. Omit to start from the beginning; otherwise, only specify a
14781
+ * the exact value previously returned as 'last_evaluated_key' from the same endpoint.
14782
+ */
14783
+ "page.start"?: string | null;
14784
+ };
14785
+ path: {
14786
+ /**
14787
+ * @description Name or ID of the desired Org
14788
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
14789
+ */
14790
+ org_id: string;
14791
+ };
14792
+ };
14793
+ responses: {
14794
+ 200: components["responses"]["PaginatedListBucketsResponse"];
14795
+ default: {
14796
+ content: {
14797
+ "application/json": components["schemas"]["ErrorResponse"];
14798
+ };
14799
+ };
14800
+ };
14801
+ };
14802
+ /**
14803
+ * Get Bucket
14804
+ * @description Get Bucket
14805
+ *
14806
+ * Returns the meta information of a policy KV store bucket.
14807
+ */
14808
+ getPolicyBucket: {
14809
+ parameters: {
14810
+ path: {
14811
+ /**
14812
+ * @description Name or ID of the desired Org
14813
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
14814
+ */
14815
+ org_id: string;
14816
+ bucket_name: string;
14817
+ };
14818
+ };
14819
+ responses: {
14820
+ 200: components["responses"]["BucketInfo"];
14821
+ default: {
14822
+ content: {
14823
+ "application/json": components["schemas"]["ErrorResponse"];
14824
+ };
14825
+ };
14826
+ };
14827
+ };
14828
+ /**
14829
+ * Update Bucket
14830
+ * @description Update Bucket
14831
+ *
14832
+ * Updates meta information for an existing policy KV store bucket.
14833
+ */
14834
+ updatePolicyBucket: {
14835
+ parameters: {
14836
+ path: {
14837
+ /**
14838
+ * @description Name or ID of the desired Org
14839
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
14840
+ */
14841
+ org_id: string;
14842
+ bucket_name: string;
14843
+ };
14844
+ };
14845
+ requestBody: {
14846
+ content: {
14847
+ "application/json": components["schemas"]["UpdateBucketRequest"];
14848
+ };
14849
+ };
14850
+ responses: {
14851
+ 200: components["responses"]["BucketInfo"];
14852
+ 202: {
14853
+ content: {
14854
+ "application/json": components["schemas"]["AcceptedResponse"];
14855
+ };
14856
+ };
14857
+ default: {
14858
+ content: {
14859
+ "application/json": components["schemas"]["ErrorResponse"];
14860
+ };
14861
+ };
14862
+ };
14863
+ };
14022
14864
  /**
14023
14865
  * Create Policy Import Key
14024
14866
  * @description Create Policy Import Key
@@ -14049,7 +14891,7 @@ export interface operations {
14049
14891
  * Get the org-wide policy secrets.
14050
14892
  * @description Get the org-wide policy secrets.
14051
14893
  *
14052
- * Note that this only returns the keys for the secrets, omiting the values.
14894
+ * Note that this only returns the keys for the secrets, omitting the values.
14053
14895
  * The values are secret and are not accessible outside Wasm policy execution.
14054
14896
  */
14055
14897
  getPolicySecrets: {
@@ -14077,6 +14919,8 @@ export interface operations {
14077
14919
  *
14078
14920
  * The provided secrets will replace any existing org-level secrets.
14079
14921
  * It fails if the secrets weren't previously created.
14922
+ *
14923
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
14080
14924
  */
14081
14925
  updatePolicySecrets: {
14082
14926
  parameters: {
@@ -14108,8 +14952,9 @@ export interface operations {
14108
14952
  };
14109
14953
  };
14110
14954
  /**
14111
- * Create or overwrite an org-level policy secret
14112
- * @description Create or overwrite an org-level policy secret
14955
+ * Create or overwrite an org-level policy secret.
14956
+ * @description Create or overwrite an org-level policy secret.
14957
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
14113
14958
  */
14114
14959
  setPolicySecret: {
14115
14960
  parameters: {
@@ -14142,8 +14987,9 @@ export interface operations {
14142
14987
  };
14143
14988
  };
14144
14989
  /**
14145
- * Delete an org-level policy secret
14146
- * @description Delete an org-level policy secret
14990
+ * Delete an org-level policy secret.
14991
+ * @description Delete an org-level policy secret.
14992
+ * Must be permitted by the policy secret's edit policy if set, and the org's edit policy otherwise.
14147
14993
  */
14148
14994
  deletePolicySecret: {
14149
14995
  parameters: {
@@ -14851,6 +15697,34 @@ export interface operations {
14851
15697
  };
14852
15698
  };
14853
15699
  };
15700
+ /**
15701
+ * High-level RPC endpoint.
15702
+ * @description High-level RPC endpoint.
15703
+ */
15704
+ rpcApi: {
15705
+ parameters: {
15706
+ path: {
15707
+ /**
15708
+ * @description Name or ID of the desired Org
15709
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
15710
+ */
15711
+ org_id: string;
15712
+ };
15713
+ };
15714
+ requestBody: {
15715
+ content: {
15716
+ "application/json": components["schemas"]["JsonRpcRequest"];
15717
+ };
15718
+ };
15719
+ responses: {
15720
+ 200: components["responses"]["JsonRpcResponse"];
15721
+ default: {
15722
+ content: {
15723
+ "application/json": components["schemas"]["ErrorResponse"];
15724
+ };
15725
+ };
15726
+ };
15727
+ };
14854
15728
  /**
14855
15729
  * List sessions
14856
15730
  * @description List sessions
@@ -16050,35 +16924,6 @@ export interface operations {
16050
16924
  };
16051
16925
  };
16052
16926
  };
16053
- /**
16054
- * The policy_execute API endpoint is intended to demonstrate that the signer
16055
- * @description The policy_execute API endpoint is intended to demonstrate that the signer
16056
- * can use the policy engine, by way of the PolicyEngineClient.
16057
- */
16058
- "policy-execute": {
16059
- parameters: {
16060
- path: {
16061
- /**
16062
- * @description Base64Url-nopad of the sha256 digest of the policy binary
16063
- * @example 123456
16064
- */
16065
- policy_name: string;
16066
- };
16067
- };
16068
- requestBody: {
16069
- content: {
16070
- "application/json": Record<string, never>;
16071
- };
16072
- };
16073
- responses: {
16074
- 200: components["responses"]["PolicyResultResponse"];
16075
- default: {
16076
- content: {
16077
- "application/json": components["schemas"]["ErrorResponse"];
16078
- };
16079
- };
16080
- };
16081
- };
16082
16927
  /**
16083
16928
  * Initiate registration of a FIDO key
16084
16929
  * @deprecated