@openfort/openfort-node 0.8.4 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +29 -37
- package/dist/index.d.mts +3293 -1405
- package/dist/index.d.ts +3293 -1405
- package/dist/index.js +536 -273
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +500 -255
- package/dist/index.mjs.map +1 -1
- package/examples/README.md +7 -16
- package/examples/evm/accounts/getAccount.ts +0 -6
- package/examples/evm/embedded/pregenerate.ts +1 -1
- package/examples/fee-sponsorship/createPolicy.ts +24 -8
- package/examples/fee-sponsorship/disableEnablePolicy.ts +22 -9
- package/examples/fee-sponsorship/getPolicy.ts +24 -11
- package/examples/fee-sponsorship/listPolicies.ts +7 -5
- package/examples/fee-sponsorship/updatePolicy.ts +20 -7
- package/examples/iam/getSession.ts +0 -2
- package/examples/transactions/createTransactionIntent.ts +17 -11
- package/examples/transactions/estimateGas.ts +16 -14
- package/examples/transactions/getTransactionIntent.ts +16 -15
- package/openapi.json +1121 -117
- package/package.json +1 -1
- package/examples/fee-sponsorship/createPolicyRule.ts +0 -43
- package/examples/fee-sponsorship/listPolicyRules.ts +0 -37
package/openapi.json
CHANGED
|
@@ -5745,7 +5745,7 @@
|
|
|
5745
5745
|
"additionalProperties": false
|
|
5746
5746
|
},
|
|
5747
5747
|
"PolicyV2Scope": {
|
|
5748
|
-
"enum": ["project", "account"],
|
|
5748
|
+
"enum": ["project", "account", "transaction"],
|
|
5749
5749
|
"type": "string"
|
|
5750
5750
|
},
|
|
5751
5751
|
"PolicyV2Action": {
|
|
@@ -6533,10 +6533,13 @@
|
|
|
6533
6533
|
"description": "Specifies the order in which to sort the results."
|
|
6534
6534
|
},
|
|
6535
6535
|
"scope": {
|
|
6536
|
-
"
|
|
6537
|
-
|
|
6536
|
+
"items": {
|
|
6537
|
+
"type": "string",
|
|
6538
|
+
"enum": ["project", "account", "transaction"]
|
|
6539
|
+
},
|
|
6540
|
+
"type": "array",
|
|
6538
6541
|
"description": "Filter by scope.",
|
|
6539
|
-
"example": "project"
|
|
6542
|
+
"example": ["project", "account"]
|
|
6540
6543
|
},
|
|
6541
6544
|
"enabled": {
|
|
6542
6545
|
"type": "boolean",
|
|
@@ -7124,8 +7127,8 @@
|
|
|
7124
7127
|
"properties": {
|
|
7125
7128
|
"scope": {
|
|
7126
7129
|
"type": "string",
|
|
7127
|
-
"enum": ["project", "account"],
|
|
7128
|
-
"description": "The scope of the policy
|
|
7130
|
+
"enum": ["project", "account", "transaction"],
|
|
7131
|
+
"description": "The scope of the policy.\n- 'project': applies to all accounts (soft validation - no match = user pays)\n- 'account': applies to a specific account (soft validation)\n- 'transaction': only when explicitly passed (hard validation - no match = tx fails)",
|
|
7129
7132
|
"example": "project"
|
|
7130
7133
|
},
|
|
7131
7134
|
"description": {
|
|
@@ -7366,6 +7369,295 @@
|
|
|
7366
7369
|
"type": "object",
|
|
7367
7370
|
"additionalProperties": false
|
|
7368
7371
|
},
|
|
7372
|
+
"FeeSponsorshipStrategyResponse": {
|
|
7373
|
+
"description": "Strategy information in fee sponsorship response.",
|
|
7374
|
+
"properties": {
|
|
7375
|
+
"sponsorSchema": {
|
|
7376
|
+
"type": "string",
|
|
7377
|
+
"description": "The sponsorship schema type.",
|
|
7378
|
+
"example": "pay_for_user"
|
|
7379
|
+
},
|
|
7380
|
+
"tokenContract": {
|
|
7381
|
+
"type": "string",
|
|
7382
|
+
"description": "Token contract ID for charge_custom_tokens or fixed_rate schemas.",
|
|
7383
|
+
"example": "con_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7384
|
+
},
|
|
7385
|
+
"tokenContractAmount": {
|
|
7386
|
+
"type": "string",
|
|
7387
|
+
"description": "Token amount for charge_custom_tokens or fixed_rate schemas.",
|
|
7388
|
+
"example": "1000000000000000000"
|
|
7389
|
+
},
|
|
7390
|
+
"dynamicExchangeRate": {
|
|
7391
|
+
"type": "boolean",
|
|
7392
|
+
"description": "Whether the exchange rate is computed dynamically from cached prices.\nTrue when tokenContractAmount was not provided at creation time.",
|
|
7393
|
+
"example": true
|
|
7394
|
+
}
|
|
7395
|
+
},
|
|
7396
|
+
"required": ["sponsorSchema"],
|
|
7397
|
+
"type": "object",
|
|
7398
|
+
"additionalProperties": false
|
|
7399
|
+
},
|
|
7400
|
+
"EntityType.FEE_SPONSORSHIP": {
|
|
7401
|
+
"enum": ["feeSponsorship"],
|
|
7402
|
+
"type": "string"
|
|
7403
|
+
},
|
|
7404
|
+
"FeeSponsorshipResponse": {
|
|
7405
|
+
"description": "Fee sponsorship policy response.",
|
|
7406
|
+
"properties": {
|
|
7407
|
+
"id": {
|
|
7408
|
+
"type": "string"
|
|
7409
|
+
},
|
|
7410
|
+
"object": {
|
|
7411
|
+
"$ref": "#/components/schemas/EntityType.FEE_SPONSORSHIP"
|
|
7412
|
+
},
|
|
7413
|
+
"createdAt": {
|
|
7414
|
+
"type": "integer",
|
|
7415
|
+
"format": "int32"
|
|
7416
|
+
},
|
|
7417
|
+
"name": {
|
|
7418
|
+
"type": "string",
|
|
7419
|
+
"nullable": true,
|
|
7420
|
+
"description": "Name of the fee sponsorship policy.",
|
|
7421
|
+
"example": "My DeFi Gas Sponsorship"
|
|
7422
|
+
},
|
|
7423
|
+
"chainId": {
|
|
7424
|
+
"type": "integer",
|
|
7425
|
+
"format": "int32",
|
|
7426
|
+
"nullable": true,
|
|
7427
|
+
"description": "Chain ID for single-chain sponsorship.",
|
|
7428
|
+
"example": 8453,
|
|
7429
|
+
"deprecated": true
|
|
7430
|
+
},
|
|
7431
|
+
"enabled": {
|
|
7432
|
+
"type": "boolean",
|
|
7433
|
+
"description": "Whether the policy is enabled.",
|
|
7434
|
+
"example": true
|
|
7435
|
+
},
|
|
7436
|
+
"strategy": {
|
|
7437
|
+
"$ref": "#/components/schemas/FeeSponsorshipStrategyResponse",
|
|
7438
|
+
"description": "Sponsorship strategy configuration."
|
|
7439
|
+
},
|
|
7440
|
+
"paymasterId": {
|
|
7441
|
+
"type": "string",
|
|
7442
|
+
"nullable": true,
|
|
7443
|
+
"description": "Paymaster ID (optional).",
|
|
7444
|
+
"example": "pay_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7445
|
+
},
|
|
7446
|
+
"forwarderContractId": {
|
|
7447
|
+
"type": "string",
|
|
7448
|
+
"nullable": true,
|
|
7449
|
+
"description": "Forwarder contract ID (optional, for meta-transactions).",
|
|
7450
|
+
"example": "cfo_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7451
|
+
},
|
|
7452
|
+
"policyId": {
|
|
7453
|
+
"type": "string",
|
|
7454
|
+
"nullable": true,
|
|
7455
|
+
"description": "Linked policy ID for criteria-based transaction filtering.",
|
|
7456
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7457
|
+
}
|
|
7458
|
+
},
|
|
7459
|
+
"required": [
|
|
7460
|
+
"id",
|
|
7461
|
+
"object",
|
|
7462
|
+
"createdAt",
|
|
7463
|
+
"name",
|
|
7464
|
+
"chainId",
|
|
7465
|
+
"enabled",
|
|
7466
|
+
"strategy",
|
|
7467
|
+
"paymasterId",
|
|
7468
|
+
"forwarderContractId",
|
|
7469
|
+
"policyId"
|
|
7470
|
+
],
|
|
7471
|
+
"type": "object",
|
|
7472
|
+
"additionalProperties": false
|
|
7473
|
+
},
|
|
7474
|
+
"FeeSponsorshipListResponse": {
|
|
7475
|
+
"properties": {
|
|
7476
|
+
"object": {
|
|
7477
|
+
"$ref": "#/components/schemas/ResponseType.LIST"
|
|
7478
|
+
},
|
|
7479
|
+
"url": {
|
|
7480
|
+
"type": "string"
|
|
7481
|
+
},
|
|
7482
|
+
"data": {
|
|
7483
|
+
"items": {
|
|
7484
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
7485
|
+
},
|
|
7486
|
+
"type": "array"
|
|
7487
|
+
},
|
|
7488
|
+
"start": {
|
|
7489
|
+
"type": "integer",
|
|
7490
|
+
"format": "int32"
|
|
7491
|
+
},
|
|
7492
|
+
"end": {
|
|
7493
|
+
"type": "integer",
|
|
7494
|
+
"format": "int32"
|
|
7495
|
+
},
|
|
7496
|
+
"total": {
|
|
7497
|
+
"type": "integer",
|
|
7498
|
+
"format": "int32"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
"required": ["object", "url", "data", "start", "end", "total"],
|
|
7502
|
+
"type": "object",
|
|
7503
|
+
"additionalProperties": false
|
|
7504
|
+
},
|
|
7505
|
+
"FeeSponsorshipListQueries": {
|
|
7506
|
+
"description": "Query parameters for listing fee sponsorship policies.",
|
|
7507
|
+
"properties": {
|
|
7508
|
+
"limit": {
|
|
7509
|
+
"type": "integer",
|
|
7510
|
+
"format": "int32",
|
|
7511
|
+
"description": "Specifies the maximum number of records to return.",
|
|
7512
|
+
"minimum": 1
|
|
7513
|
+
},
|
|
7514
|
+
"skip": {
|
|
7515
|
+
"type": "integer",
|
|
7516
|
+
"format": "int32",
|
|
7517
|
+
"description": "Specifies the offset for the first records to return.",
|
|
7518
|
+
"minimum": 0
|
|
7519
|
+
},
|
|
7520
|
+
"order": {
|
|
7521
|
+
"$ref": "#/components/schemas/Prisma.SortOrder",
|
|
7522
|
+
"description": "Specifies the order in which to sort the results."
|
|
7523
|
+
},
|
|
7524
|
+
"name": {
|
|
7525
|
+
"type": "string",
|
|
7526
|
+
"description": "Filter by policy name (partial match).",
|
|
7527
|
+
"example": "DeFi"
|
|
7528
|
+
},
|
|
7529
|
+
"chainId": {
|
|
7530
|
+
"type": "integer",
|
|
7531
|
+
"format": "int32",
|
|
7532
|
+
"description": "Filter by chain ID.",
|
|
7533
|
+
"example": 1
|
|
7534
|
+
},
|
|
7535
|
+
"enabled": {
|
|
7536
|
+
"type": "boolean",
|
|
7537
|
+
"description": "Filter by enabled status.",
|
|
7538
|
+
"example": true
|
|
7539
|
+
},
|
|
7540
|
+
"deleted": {
|
|
7541
|
+
"type": "boolean",
|
|
7542
|
+
"description": "Include deleted policies.",
|
|
7543
|
+
"example": false,
|
|
7544
|
+
"default": false
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
"type": "object",
|
|
7548
|
+
"additionalProperties": false
|
|
7549
|
+
},
|
|
7550
|
+
"FeeSponsorshipStrategy": {
|
|
7551
|
+
"description": "Strategy configuration for fee sponsorship.",
|
|
7552
|
+
"properties": {
|
|
7553
|
+
"sponsorSchema": {
|
|
7554
|
+
"$ref": "#/components/schemas/SponsorSchema",
|
|
7555
|
+
"description": "The sponsorship schema type.",
|
|
7556
|
+
"example": "pay_for_user"
|
|
7557
|
+
},
|
|
7558
|
+
"tokenContract": {
|
|
7559
|
+
"type": "string",
|
|
7560
|
+
"description": "Token contract UUID for charge_custom_tokens or fixed_rate schemas.",
|
|
7561
|
+
"example": "con_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7562
|
+
},
|
|
7563
|
+
"tokenContractAmount": {
|
|
7564
|
+
"type": "string",
|
|
7565
|
+
"description": "Token amount for charge_custom_tokens or fixed_rate schemas.",
|
|
7566
|
+
"example": "1000000000000000000"
|
|
7567
|
+
}
|
|
7568
|
+
},
|
|
7569
|
+
"required": ["sponsorSchema"],
|
|
7570
|
+
"type": "object",
|
|
7571
|
+
"additionalProperties": false
|
|
7572
|
+
},
|
|
7573
|
+
"CreateFeeSponsorshipRequest": {
|
|
7574
|
+
"description": "Request to create a new fee sponsorship policy.",
|
|
7575
|
+
"properties": {
|
|
7576
|
+
"name": {
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"description": "Name of the fee sponsorship policy.",
|
|
7579
|
+
"example": "My DeFi Gas Sponsorship"
|
|
7580
|
+
},
|
|
7581
|
+
"strategy": {
|
|
7582
|
+
"$ref": "#/components/schemas/FeeSponsorshipStrategy",
|
|
7583
|
+
"description": "Sponsorship strategy configuration."
|
|
7584
|
+
},
|
|
7585
|
+
"paymaster": {
|
|
7586
|
+
"type": "string",
|
|
7587
|
+
"description": "Paymaster UUID (optional, for pay_for_user schema).",
|
|
7588
|
+
"example": "pay_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7589
|
+
},
|
|
7590
|
+
"chainId": {
|
|
7591
|
+
"type": "integer",
|
|
7592
|
+
"format": "int32",
|
|
7593
|
+
"description": "Chain ID for single-chain sponsorship.",
|
|
7594
|
+
"example": 8453,
|
|
7595
|
+
"deprecated": true
|
|
7596
|
+
},
|
|
7597
|
+
"forwarderContractId": {
|
|
7598
|
+
"type": "string",
|
|
7599
|
+
"description": "Forwarder contract UUID (optional, for meta-transactions).",
|
|
7600
|
+
"example": "cfo_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7601
|
+
},
|
|
7602
|
+
"policyId": {
|
|
7603
|
+
"type": "string",
|
|
7604
|
+
"description": "Link to a policy for criteria-based transaction filtering.\nCreate the policy first via /v2/policies, then reference it here.",
|
|
7605
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7606
|
+
}
|
|
7607
|
+
},
|
|
7608
|
+
"required": ["strategy", "policyId"],
|
|
7609
|
+
"type": "object",
|
|
7610
|
+
"additionalProperties": false
|
|
7611
|
+
},
|
|
7612
|
+
"UpdateFeeSponsorshipRequest": {
|
|
7613
|
+
"description": "Request to update a fee sponsorship policy.",
|
|
7614
|
+
"properties": {
|
|
7615
|
+
"name": {
|
|
7616
|
+
"type": "string",
|
|
7617
|
+
"description": "Name of the fee sponsorship policy.",
|
|
7618
|
+
"example": "Updated Gas Sponsorship"
|
|
7619
|
+
},
|
|
7620
|
+
"strategy": {
|
|
7621
|
+
"$ref": "#/components/schemas/FeeSponsorshipStrategy",
|
|
7622
|
+
"description": "Sponsorship strategy configuration."
|
|
7623
|
+
},
|
|
7624
|
+
"chainId": {
|
|
7625
|
+
"type": "integer",
|
|
7626
|
+
"format": "int32",
|
|
7627
|
+
"description": "Chain ID for single-chain sponsorship.",
|
|
7628
|
+
"example": 8453,
|
|
7629
|
+
"deprecated": true
|
|
7630
|
+
},
|
|
7631
|
+
"forwarderContractId": {
|
|
7632
|
+
"type": "string",
|
|
7633
|
+
"description": "Forwarder contract UUID (optional, for meta-transactions).",
|
|
7634
|
+
"example": "cfo_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7635
|
+
},
|
|
7636
|
+
"policyId": {
|
|
7637
|
+
"type": "string",
|
|
7638
|
+
"description": "Link to a policy for criteria-based transaction filtering.",
|
|
7639
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7640
|
+
}
|
|
7641
|
+
},
|
|
7642
|
+
"type": "object",
|
|
7643
|
+
"additionalProperties": false
|
|
7644
|
+
},
|
|
7645
|
+
"FeeSponsorshipDeleteResponse": {
|
|
7646
|
+
"properties": {
|
|
7647
|
+
"id": {
|
|
7648
|
+
"type": "string"
|
|
7649
|
+
},
|
|
7650
|
+
"object": {
|
|
7651
|
+
"$ref": "#/components/schemas/EntityType.FEE_SPONSORSHIP"
|
|
7652
|
+
},
|
|
7653
|
+
"deleted": {
|
|
7654
|
+
"type": "boolean"
|
|
7655
|
+
}
|
|
7656
|
+
},
|
|
7657
|
+
"required": ["id", "object", "deleted"],
|
|
7658
|
+
"type": "object",
|
|
7659
|
+
"additionalProperties": false
|
|
7660
|
+
},
|
|
7369
7661
|
"RecoverV2Response": {
|
|
7370
7662
|
"properties": {
|
|
7371
7663
|
"id": {
|
|
@@ -7661,8 +7953,8 @@
|
|
|
7661
7953
|
"type": "object",
|
|
7662
7954
|
"additionalProperties": false
|
|
7663
7955
|
},
|
|
7664
|
-
"
|
|
7665
|
-
"description": "Response from
|
|
7956
|
+
"UpdateBackendWalletResponse": {
|
|
7957
|
+
"description": "Response from updating a backend wallet.",
|
|
7666
7958
|
"properties": {
|
|
7667
7959
|
"object": {
|
|
7668
7960
|
"type": "string",
|
|
@@ -7672,42 +7964,181 @@
|
|
|
7672
7964
|
},
|
|
7673
7965
|
"id": {
|
|
7674
7966
|
"type": "string",
|
|
7675
|
-
"description": "The
|
|
7967
|
+
"description": "The wallet ID (starts with `acc_`).",
|
|
7676
7968
|
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7677
7969
|
},
|
|
7678
|
-
"
|
|
7679
|
-
"type": "boolean",
|
|
7680
|
-
"description": "Whether the wallet was deleted."
|
|
7681
|
-
}
|
|
7682
|
-
},
|
|
7683
|
-
"required": ["object", "id", "deleted"],
|
|
7684
|
-
"type": "object",
|
|
7685
|
-
"additionalProperties": false
|
|
7686
|
-
},
|
|
7687
|
-
"SignResponse": {
|
|
7688
|
-
"description": "Response from signing data via backend wallet.",
|
|
7689
|
-
"properties": {
|
|
7690
|
-
"object": {
|
|
7970
|
+
"address": {
|
|
7691
7971
|
"type": "string",
|
|
7692
|
-
"
|
|
7693
|
-
"
|
|
7694
|
-
"description": "The type of object."
|
|
7972
|
+
"description": "The wallet address.",
|
|
7973
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
7695
7974
|
},
|
|
7696
|
-
"
|
|
7975
|
+
"chainType": {
|
|
7697
7976
|
"type": "string",
|
|
7698
|
-
"
|
|
7699
|
-
"
|
|
7977
|
+
"enum": ["EVM", "SVM"],
|
|
7978
|
+
"description": "The chain type the wallet is associated with.",
|
|
7979
|
+
"example": "EVM"
|
|
7700
7980
|
},
|
|
7701
|
-
"
|
|
7981
|
+
"custody": {
|
|
7702
7982
|
"type": "string",
|
|
7703
|
-
"
|
|
7704
|
-
"
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7983
|
+
"enum": ["Developer"],
|
|
7984
|
+
"nullable": false,
|
|
7985
|
+
"description": "Key custody: always \"Developer\" for backend wallets (server-managed keys in TEE).",
|
|
7986
|
+
"example": "Developer"
|
|
7987
|
+
},
|
|
7988
|
+
"accountType": {
|
|
7989
|
+
"type": "string",
|
|
7990
|
+
"description": "The current account type.",
|
|
7991
|
+
"example": "Delegated Account"
|
|
7992
|
+
},
|
|
7993
|
+
"createdAt": {
|
|
7994
|
+
"type": "integer",
|
|
7995
|
+
"format": "int32",
|
|
7996
|
+
"description": "Creation timestamp (Unix epoch seconds)."
|
|
7997
|
+
},
|
|
7998
|
+
"updatedAt": {
|
|
7999
|
+
"type": "integer",
|
|
8000
|
+
"format": "int32",
|
|
8001
|
+
"description": "Last updated timestamp (Unix epoch seconds)."
|
|
8002
|
+
},
|
|
8003
|
+
"delegatedAccount": {
|
|
8004
|
+
"properties": {
|
|
8005
|
+
"chain": {
|
|
8006
|
+
"properties": {
|
|
8007
|
+
"chainId": {
|
|
8008
|
+
"type": "integer",
|
|
8009
|
+
"format": "int32",
|
|
8010
|
+
"description": "The chain ID.",
|
|
8011
|
+
"example": 8453
|
|
8012
|
+
},
|
|
8013
|
+
"chainType": {
|
|
8014
|
+
"type": "string",
|
|
8015
|
+
"enum": ["EVM", "SVM"],
|
|
8016
|
+
"description": "The chain type.",
|
|
8017
|
+
"example": "EVM"
|
|
8018
|
+
}
|
|
8019
|
+
},
|
|
8020
|
+
"required": ["chainId", "chainType"],
|
|
8021
|
+
"type": "object",
|
|
8022
|
+
"description": "The chain configuration for this delegation."
|
|
8023
|
+
},
|
|
8024
|
+
"implementationAddress": {
|
|
8025
|
+
"type": "string",
|
|
8026
|
+
"description": "The implementation contract address.",
|
|
8027
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
8028
|
+
},
|
|
8029
|
+
"implementationType": {
|
|
8030
|
+
"type": "string",
|
|
8031
|
+
"description": "The implementation type used for delegation.",
|
|
8032
|
+
"example": "Calibur"
|
|
8033
|
+
},
|
|
8034
|
+
"id": {
|
|
8035
|
+
"type": "string",
|
|
8036
|
+
"description": "The delegated account ID (starts with `acc_`).",
|
|
8037
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8038
|
+
}
|
|
8039
|
+
},
|
|
8040
|
+
"required": [
|
|
8041
|
+
"chain",
|
|
8042
|
+
"implementationAddress",
|
|
8043
|
+
"implementationType",
|
|
8044
|
+
"id"
|
|
8045
|
+
],
|
|
8046
|
+
"type": "object",
|
|
8047
|
+
"description": "Present when the wallet has been upgraded to a delegated account."
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
"required": [
|
|
8051
|
+
"object",
|
|
8052
|
+
"id",
|
|
8053
|
+
"address",
|
|
8054
|
+
"chainType",
|
|
8055
|
+
"custody",
|
|
8056
|
+
"accountType",
|
|
8057
|
+
"createdAt",
|
|
8058
|
+
"updatedAt"
|
|
8059
|
+
],
|
|
8060
|
+
"type": "object",
|
|
8061
|
+
"additionalProperties": false
|
|
8062
|
+
},
|
|
8063
|
+
"UpdateBackendWalletRequest": {
|
|
8064
|
+
"description": "Request to update a backend wallet.\n\nAll fields are optional — only provide the fields you want to update.\nCurrently supports upgrading to a Delegated Account (EIP-7702).",
|
|
8065
|
+
"properties": {
|
|
8066
|
+
"accountType": {
|
|
8067
|
+
"type": "string",
|
|
8068
|
+
"enum": ["Delegated Account"],
|
|
8069
|
+
"nullable": false,
|
|
8070
|
+
"description": "Upgrade the account type. Currently only supports upgrading to \"Delegated Account\".",
|
|
8071
|
+
"example": "Delegated Account"
|
|
8072
|
+
},
|
|
8073
|
+
"chainType": {
|
|
8074
|
+
"type": "string",
|
|
8075
|
+
"enum": ["EVM", "SVM"],
|
|
8076
|
+
"description": "The chain type.",
|
|
8077
|
+
"example": "EVM"
|
|
8078
|
+
},
|
|
8079
|
+
"chainId": {
|
|
8080
|
+
"type": "integer",
|
|
8081
|
+
"format": "int32",
|
|
8082
|
+
"description": "The chain ID. Must be a [supported chain](/development/chains).",
|
|
8083
|
+
"example": 8453
|
|
8084
|
+
},
|
|
8085
|
+
"implementationType": {
|
|
8086
|
+
"type": "string",
|
|
8087
|
+
"description": "The implementation type for delegation (e.g., \"Calibur\", \"CaliburV9\").\nRequired when accountType is \"Delegated Account\".",
|
|
8088
|
+
"example": "Calibur"
|
|
8089
|
+
}
|
|
8090
|
+
},
|
|
8091
|
+
"required": ["chainType", "chainId"],
|
|
8092
|
+
"type": "object",
|
|
8093
|
+
"additionalProperties": false
|
|
8094
|
+
},
|
|
8095
|
+
"DeleteBackendWalletResponse": {
|
|
8096
|
+
"description": "Response from deleting a backend wallet.",
|
|
8097
|
+
"properties": {
|
|
8098
|
+
"object": {
|
|
8099
|
+
"type": "string",
|
|
8100
|
+
"enum": ["backendWallet"],
|
|
8101
|
+
"nullable": false,
|
|
8102
|
+
"description": "The type of object."
|
|
8103
|
+
},
|
|
8104
|
+
"id": {
|
|
8105
|
+
"type": "string",
|
|
8106
|
+
"description": "The deleted wallet ID.",
|
|
8107
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8108
|
+
},
|
|
8109
|
+
"deleted": {
|
|
8110
|
+
"type": "boolean",
|
|
8111
|
+
"description": "Whether the wallet was deleted."
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
"required": ["object", "id", "deleted"],
|
|
8115
|
+
"type": "object",
|
|
8116
|
+
"additionalProperties": false
|
|
8117
|
+
},
|
|
8118
|
+
"SignResponse": {
|
|
8119
|
+
"description": "Response from signing data via backend wallet.",
|
|
8120
|
+
"properties": {
|
|
8121
|
+
"object": {
|
|
8122
|
+
"type": "string",
|
|
8123
|
+
"enum": ["signature"],
|
|
8124
|
+
"nullable": false,
|
|
8125
|
+
"description": "The type of object."
|
|
8126
|
+
},
|
|
8127
|
+
"account": {
|
|
8128
|
+
"type": "string",
|
|
8129
|
+
"description": "The account ID that signed the data (starts with `acc_`).",
|
|
8130
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8131
|
+
},
|
|
8132
|
+
"signature": {
|
|
8133
|
+
"type": "string",
|
|
8134
|
+
"description": "The signature bytes (hex-encoded).",
|
|
8135
|
+
"example": "0x1234567890abcdef..."
|
|
8136
|
+
}
|
|
8137
|
+
},
|
|
8138
|
+
"required": ["object", "account", "signature"],
|
|
8139
|
+
"type": "object",
|
|
8140
|
+
"additionalProperties": false
|
|
8141
|
+
},
|
|
7711
8142
|
"SignRequest": {
|
|
7712
8143
|
"description": "Request to sign data via backend wallet.",
|
|
7713
8144
|
"properties": {
|
|
@@ -8339,6 +8770,135 @@
|
|
|
8339
8770
|
"type": "object",
|
|
8340
8771
|
"additionalProperties": false
|
|
8341
8772
|
},
|
|
8773
|
+
"UsageAlert": {
|
|
8774
|
+
"properties": {
|
|
8775
|
+
"type": {
|
|
8776
|
+
"type": "string",
|
|
8777
|
+
"enum": ["warning", "critical", "info"]
|
|
8778
|
+
},
|
|
8779
|
+
"message": {
|
|
8780
|
+
"type": "string"
|
|
8781
|
+
},
|
|
8782
|
+
"percentUsed": {
|
|
8783
|
+
"type": "number",
|
|
8784
|
+
"format": "double"
|
|
8785
|
+
}
|
|
8786
|
+
},
|
|
8787
|
+
"required": ["type", "message", "percentUsed"],
|
|
8788
|
+
"type": "object",
|
|
8789
|
+
"additionalProperties": false
|
|
8790
|
+
},
|
|
8791
|
+
"UsageSummaryResponse": {
|
|
8792
|
+
"properties": {
|
|
8793
|
+
"plan": {
|
|
8794
|
+
"properties": {
|
|
8795
|
+
"priceUsd": {
|
|
8796
|
+
"type": "integer",
|
|
8797
|
+
"format": "int32"
|
|
8798
|
+
},
|
|
8799
|
+
"name": {
|
|
8800
|
+
"type": "string"
|
|
8801
|
+
},
|
|
8802
|
+
"tier": {
|
|
8803
|
+
"type": "string"
|
|
8804
|
+
}
|
|
8805
|
+
},
|
|
8806
|
+
"required": ["priceUsd", "name", "tier"],
|
|
8807
|
+
"type": "object"
|
|
8808
|
+
},
|
|
8809
|
+
"operations": {
|
|
8810
|
+
"properties": {
|
|
8811
|
+
"estimatedOverageCostUsd": {
|
|
8812
|
+
"type": "number",
|
|
8813
|
+
"format": "double",
|
|
8814
|
+
"nullable": true
|
|
8815
|
+
},
|
|
8816
|
+
"overageCount": {
|
|
8817
|
+
"type": "integer",
|
|
8818
|
+
"format": "int32"
|
|
8819
|
+
},
|
|
8820
|
+
"percentUsed": {
|
|
8821
|
+
"type": "number",
|
|
8822
|
+
"format": "double"
|
|
8823
|
+
},
|
|
8824
|
+
"included": {
|
|
8825
|
+
"type": "integer",
|
|
8826
|
+
"format": "int32"
|
|
8827
|
+
},
|
|
8828
|
+
"current": {
|
|
8829
|
+
"type": "integer",
|
|
8830
|
+
"format": "int32"
|
|
8831
|
+
}
|
|
8832
|
+
},
|
|
8833
|
+
"required": [
|
|
8834
|
+
"estimatedOverageCostUsd",
|
|
8835
|
+
"overageCount",
|
|
8836
|
+
"percentUsed",
|
|
8837
|
+
"included",
|
|
8838
|
+
"current"
|
|
8839
|
+
],
|
|
8840
|
+
"type": "object"
|
|
8841
|
+
},
|
|
8842
|
+
"billingPeriod": {
|
|
8843
|
+
"properties": {
|
|
8844
|
+
"end": {
|
|
8845
|
+
"type": "string"
|
|
8846
|
+
},
|
|
8847
|
+
"start": {
|
|
8848
|
+
"type": "string"
|
|
8849
|
+
}
|
|
8850
|
+
},
|
|
8851
|
+
"required": ["end", "start"],
|
|
8852
|
+
"type": "object"
|
|
8853
|
+
},
|
|
8854
|
+
"alerts": {
|
|
8855
|
+
"items": {
|
|
8856
|
+
"$ref": "#/components/schemas/UsageAlert"
|
|
8857
|
+
},
|
|
8858
|
+
"type": "array"
|
|
8859
|
+
}
|
|
8860
|
+
},
|
|
8861
|
+
"required": ["plan", "operations", "billingPeriod", "alerts"],
|
|
8862
|
+
"type": "object",
|
|
8863
|
+
"additionalProperties": false
|
|
8864
|
+
},
|
|
8865
|
+
"MonthlyUsageHistoryResponse": {
|
|
8866
|
+
"properties": {
|
|
8867
|
+
"months": {
|
|
8868
|
+
"items": {
|
|
8869
|
+
"properties": {
|
|
8870
|
+
"overageCostUsd": {
|
|
8871
|
+
"type": "number",
|
|
8872
|
+
"format": "double",
|
|
8873
|
+
"nullable": true
|
|
8874
|
+
},
|
|
8875
|
+
"operationsIncluded": {
|
|
8876
|
+
"type": "integer",
|
|
8877
|
+
"format": "int32"
|
|
8878
|
+
},
|
|
8879
|
+
"operationsCount": {
|
|
8880
|
+
"type": "integer",
|
|
8881
|
+
"format": "int32"
|
|
8882
|
+
},
|
|
8883
|
+
"month": {
|
|
8884
|
+
"type": "string"
|
|
8885
|
+
}
|
|
8886
|
+
},
|
|
8887
|
+
"required": [
|
|
8888
|
+
"overageCostUsd",
|
|
8889
|
+
"operationsIncluded",
|
|
8890
|
+
"operationsCount",
|
|
8891
|
+
"month"
|
|
8892
|
+
],
|
|
8893
|
+
"type": "object"
|
|
8894
|
+
},
|
|
8895
|
+
"type": "array"
|
|
8896
|
+
}
|
|
8897
|
+
},
|
|
8898
|
+
"required": ["months"],
|
|
8899
|
+
"type": "object",
|
|
8900
|
+
"additionalProperties": false
|
|
8901
|
+
},
|
|
8342
8902
|
"ApiKeyResponse": {
|
|
8343
8903
|
"properties": {
|
|
8344
8904
|
"id": {
|
|
@@ -13914,7 +14474,7 @@
|
|
|
13914
14474
|
},
|
|
13915
14475
|
"/v1/policy_rules": {
|
|
13916
14476
|
"get": {
|
|
13917
|
-
"operationId": "
|
|
14477
|
+
"operationId": "GetGasPolicyRulesLegacy",
|
|
13918
14478
|
"responses": {
|
|
13919
14479
|
"200": {
|
|
13920
14480
|
"description": "Successful response.",
|
|
@@ -13954,9 +14514,9 @@
|
|
|
13954
14514
|
"description": "Error response."
|
|
13955
14515
|
}
|
|
13956
14516
|
},
|
|
13957
|
-
"description": "Returns a list of
|
|
13958
|
-
"summary": "List policy rules
|
|
13959
|
-
"tags": ["
|
|
14517
|
+
"description": "Returns a list of rules for a gas sponsorship policy.\n\nThe policy rules are returned sorted by creation date, with the most recently created policy rules appearing first.\n\nBy default, a maximum of 10 policy rules are shown per page.",
|
|
14518
|
+
"summary": "List gas policy rules (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
14519
|
+
"tags": ["Gas Policy Rules (Legacy)"],
|
|
13960
14520
|
"security": [
|
|
13961
14521
|
{
|
|
13962
14522
|
"sk": []
|
|
@@ -14024,7 +14584,7 @@
|
|
|
14024
14584
|
]
|
|
14025
14585
|
},
|
|
14026
14586
|
"post": {
|
|
14027
|
-
"operationId": "
|
|
14587
|
+
"operationId": "CreateGasPolicyRuleLegacy",
|
|
14028
14588
|
"responses": {
|
|
14029
14589
|
"200": {
|
|
14030
14590
|
"description": "Successful response.",
|
|
@@ -14100,8 +14660,8 @@
|
|
|
14100
14660
|
"description": "Error response."
|
|
14101
14661
|
}
|
|
14102
14662
|
},
|
|
14103
|
-
"summary": "Create a policy rule
|
|
14104
|
-
"tags": ["
|
|
14663
|
+
"summary": "Create a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
14664
|
+
"tags": ["Gas Policy Rules (Legacy)"],
|
|
14105
14665
|
"security": [
|
|
14106
14666
|
{
|
|
14107
14667
|
"sk": []
|
|
@@ -14125,7 +14685,7 @@
|
|
|
14125
14685
|
},
|
|
14126
14686
|
"/v1/policy_rules/{id}": {
|
|
14127
14687
|
"post": {
|
|
14128
|
-
"operationId": "
|
|
14688
|
+
"operationId": "UpdateGasPolicyRuleLegacy",
|
|
14129
14689
|
"responses": {
|
|
14130
14690
|
"200": {
|
|
14131
14691
|
"description": "Successful response.",
|
|
@@ -14158,8 +14718,8 @@
|
|
|
14158
14718
|
"description": "Error response."
|
|
14159
14719
|
}
|
|
14160
14720
|
},
|
|
14161
|
-
"summary": "Update a policy rule
|
|
14162
|
-
"tags": ["
|
|
14721
|
+
"summary": "Update a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
14722
|
+
"tags": ["Gas Policy Rules (Legacy)"],
|
|
14163
14723
|
"security": [
|
|
14164
14724
|
{
|
|
14165
14725
|
"sk": []
|
|
@@ -14192,7 +14752,7 @@
|
|
|
14192
14752
|
}
|
|
14193
14753
|
},
|
|
14194
14754
|
"delete": {
|
|
14195
|
-
"operationId": "
|
|
14755
|
+
"operationId": "DeleteGasPolicyRuleLegacy",
|
|
14196
14756
|
"responses": {
|
|
14197
14757
|
"200": {
|
|
14198
14758
|
"description": "Successful response.",
|
|
@@ -14220,8 +14780,8 @@
|
|
|
14220
14780
|
"description": "Error response."
|
|
14221
14781
|
}
|
|
14222
14782
|
},
|
|
14223
|
-
"summary": "
|
|
14224
|
-
"tags": ["
|
|
14783
|
+
"summary": "Delete a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
14784
|
+
"tags": ["Gas Policy Rules (Legacy)"],
|
|
14225
14785
|
"security": [
|
|
14226
14786
|
{
|
|
14227
14787
|
"sk": []
|
|
@@ -14246,7 +14806,7 @@
|
|
|
14246
14806
|
},
|
|
14247
14807
|
"/v1/policies": {
|
|
14248
14808
|
"get": {
|
|
14249
|
-
"operationId": "
|
|
14809
|
+
"operationId": "GetGasPoliciesLegacy",
|
|
14250
14810
|
"responses": {
|
|
14251
14811
|
"200": {
|
|
14252
14812
|
"description": "Successful response.",
|
|
@@ -14299,9 +14859,9 @@
|
|
|
14299
14859
|
"description": "Error response."
|
|
14300
14860
|
}
|
|
14301
14861
|
},
|
|
14302
|
-
"description": "Returns a list of
|
|
14303
|
-
"summary": "List policies.",
|
|
14304
|
-
"tags": ["Policies"],
|
|
14862
|
+
"description": "Returns a list of gas sponsorship policies.\n\nReturns the latest 10 transaction intents for each policy.",
|
|
14863
|
+
"summary": "List gas policies (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
14864
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14305
14865
|
"security": [
|
|
14306
14866
|
{
|
|
14307
14867
|
"sk": []
|
|
@@ -14398,7 +14958,7 @@
|
|
|
14398
14958
|
]
|
|
14399
14959
|
},
|
|
14400
14960
|
"post": {
|
|
14401
|
-
"operationId": "
|
|
14961
|
+
"operationId": "CreateGasPolicyLegacy",
|
|
14402
14962
|
"responses": {
|
|
14403
14963
|
"200": {
|
|
14404
14964
|
"description": "Successful response.",
|
|
@@ -14445,8 +15005,8 @@
|
|
|
14445
15005
|
"description": "Error response."
|
|
14446
15006
|
}
|
|
14447
15007
|
},
|
|
14448
|
-
"summary": "Create a policy
|
|
14449
|
-
"tags": ["Policies"],
|
|
15008
|
+
"summary": "Create a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15009
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14450
15010
|
"security": [
|
|
14451
15011
|
{
|
|
14452
15012
|
"sk": []
|
|
@@ -14470,7 +15030,7 @@
|
|
|
14470
15030
|
},
|
|
14471
15031
|
"/v1/policies/{id}": {
|
|
14472
15032
|
"get": {
|
|
14473
|
-
"operationId": "
|
|
15033
|
+
"operationId": "GetGasPolicyLegacy",
|
|
14474
15034
|
"responses": {
|
|
14475
15035
|
"200": {
|
|
14476
15036
|
"description": "Successful response.",
|
|
@@ -14514,9 +15074,9 @@
|
|
|
14514
15074
|
"description": "Error response."
|
|
14515
15075
|
}
|
|
14516
15076
|
},
|
|
14517
|
-
"description": "Retrieves the details of a
|
|
14518
|
-
"summary": "Get a policy
|
|
14519
|
-
"tags": ["Policies"],
|
|
15077
|
+
"description": "Retrieves the details of a gas sponsorship policy that has previously been created.\n\nReturns the latest 10 transaction intents that used this policy.",
|
|
15078
|
+
"summary": "Get a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15079
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14520
15080
|
"security": [
|
|
14521
15081
|
{
|
|
14522
15082
|
"sk": []
|
|
@@ -14553,7 +15113,7 @@
|
|
|
14553
15113
|
]
|
|
14554
15114
|
},
|
|
14555
15115
|
"post": {
|
|
14556
|
-
"operationId": "
|
|
15116
|
+
"operationId": "UpdateGasPolicyLegacy",
|
|
14557
15117
|
"responses": {
|
|
14558
15118
|
"200": {
|
|
14559
15119
|
"description": "Successful response.",
|
|
@@ -14600,8 +15160,8 @@
|
|
|
14600
15160
|
"description": "Error response."
|
|
14601
15161
|
}
|
|
14602
15162
|
},
|
|
14603
|
-
"summary": "Update a policy
|
|
14604
|
-
"tags": ["Policies"],
|
|
15163
|
+
"summary": "Update a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15164
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14605
15165
|
"security": [
|
|
14606
15166
|
{
|
|
14607
15167
|
"sk": []
|
|
@@ -14634,7 +15194,7 @@
|
|
|
14634
15194
|
}
|
|
14635
15195
|
},
|
|
14636
15196
|
"delete": {
|
|
14637
|
-
"operationId": "
|
|
15197
|
+
"operationId": "DeleteGasPolicyLegacy",
|
|
14638
15198
|
"responses": {
|
|
14639
15199
|
"200": {
|
|
14640
15200
|
"description": "Successful response.",
|
|
@@ -14662,8 +15222,8 @@
|
|
|
14662
15222
|
"description": "Error response."
|
|
14663
15223
|
}
|
|
14664
15224
|
},
|
|
14665
|
-
"summary": "Delete a policy
|
|
14666
|
-
"tags": ["Policies"],
|
|
15225
|
+
"summary": "Delete a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15226
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14667
15227
|
"security": [
|
|
14668
15228
|
{
|
|
14669
15229
|
"sk": []
|
|
@@ -14688,7 +15248,7 @@
|
|
|
14688
15248
|
},
|
|
14689
15249
|
"/v1/policies/{id}/disable": {
|
|
14690
15250
|
"put": {
|
|
14691
|
-
"operationId": "
|
|
15251
|
+
"operationId": "DisableGasPolicyLegacy",
|
|
14692
15252
|
"responses": {
|
|
14693
15253
|
"200": {
|
|
14694
15254
|
"description": "Successful response.",
|
|
@@ -14735,8 +15295,8 @@
|
|
|
14735
15295
|
"description": "Error response."
|
|
14736
15296
|
}
|
|
14737
15297
|
},
|
|
14738
|
-
"summary": "Disable a policy
|
|
14739
|
-
"tags": ["Policies"],
|
|
15298
|
+
"summary": "Disable a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15299
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14740
15300
|
"security": [
|
|
14741
15301
|
{
|
|
14742
15302
|
"sk": []
|
|
@@ -14761,7 +15321,7 @@
|
|
|
14761
15321
|
},
|
|
14762
15322
|
"/v1/policies/{id}/enable": {
|
|
14763
15323
|
"put": {
|
|
14764
|
-
"operationId": "
|
|
15324
|
+
"operationId": "EnableGasPolicyLegacy",
|
|
14765
15325
|
"responses": {
|
|
14766
15326
|
"200": {
|
|
14767
15327
|
"description": "Successful response.",
|
|
@@ -14808,8 +15368,8 @@
|
|
|
14808
15368
|
"description": "Error response."
|
|
14809
15369
|
}
|
|
14810
15370
|
},
|
|
14811
|
-
"summary": "Enable a policy
|
|
14812
|
-
"tags": ["Policies"],
|
|
15371
|
+
"summary": "Enable a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
|
|
15372
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14813
15373
|
"security": [
|
|
14814
15374
|
{
|
|
14815
15375
|
"sk": []
|
|
@@ -14834,7 +15394,7 @@
|
|
|
14834
15394
|
},
|
|
14835
15395
|
"/v1/policies/{id}/reports": {
|
|
14836
15396
|
"get": {
|
|
14837
|
-
"operationId": "
|
|
15397
|
+
"operationId": "GetGasPolicyTotalGasUsageLegacy",
|
|
14838
15398
|
"responses": {
|
|
14839
15399
|
"200": {
|
|
14840
15400
|
"description": "Successful response.",
|
|
@@ -14892,8 +15452,8 @@
|
|
|
14892
15452
|
"description": ""
|
|
14893
15453
|
}
|
|
14894
15454
|
},
|
|
14895
|
-
"summary": "List all gas reports of a policy.",
|
|
14896
|
-
"tags": ["Policies"],
|
|
15455
|
+
"summary": "List all gas reports of a gas policy (legacy).",
|
|
15456
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
14897
15457
|
"security": [
|
|
14898
15458
|
{
|
|
14899
15459
|
"sk": []
|
|
@@ -14949,7 +15509,7 @@
|
|
|
14949
15509
|
},
|
|
14950
15510
|
"/v1/policies/{id}/reports/transaction_intents": {
|
|
14951
15511
|
"get": {
|
|
14952
|
-
"operationId": "
|
|
15512
|
+
"operationId": "GetGasPolicyReportTransactionIntentsLegacy",
|
|
14953
15513
|
"responses": {
|
|
14954
15514
|
"200": {
|
|
14955
15515
|
"description": "Successful response.",
|
|
@@ -14995,8 +15555,8 @@
|
|
|
14995
15555
|
"description": ""
|
|
14996
15556
|
}
|
|
14997
15557
|
},
|
|
14998
|
-
"summary": "List transaction intents of a policy report.",
|
|
14999
|
-
"tags": ["Policies"],
|
|
15558
|
+
"summary": "List transaction intents of a gas policy report (legacy).",
|
|
15559
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
15000
15560
|
"security": [
|
|
15001
15561
|
{
|
|
15002
15562
|
"sk": []
|
|
@@ -15043,7 +15603,7 @@
|
|
|
15043
15603
|
},
|
|
15044
15604
|
"/v1/policies/{id}/withdraw": {
|
|
15045
15605
|
"get": {
|
|
15046
|
-
"operationId": "
|
|
15606
|
+
"operationId": "GetGasPolicyBalanceLegacy",
|
|
15047
15607
|
"responses": {
|
|
15048
15608
|
"200": {
|
|
15049
15609
|
"description": "Successful response.",
|
|
@@ -15101,9 +15661,9 @@
|
|
|
15101
15661
|
"description": ""
|
|
15102
15662
|
}
|
|
15103
15663
|
},
|
|
15104
|
-
"description": "Get the amount of ERC-20 tokens collected by policy.\n\nWhen using a policy that includes payment of gas in ERC-20 tokens, this endpoint returns the amount of tokens paid for gas.\nThis is specific to a policy that doesn't use your own deposited tokens in the paymaster.",
|
|
15105
|
-
"summary": "Get amount of tokens paid for gas policy.",
|
|
15106
|
-
"tags": ["Policies"],
|
|
15664
|
+
"description": "Get the amount of ERC-20 tokens collected by a gas policy.\n\nWhen using a policy that includes payment of gas in ERC-20 tokens, this endpoint returns the amount of tokens paid for gas.\nThis is specific to a policy that doesn't use your own deposited tokens in the paymaster.",
|
|
15665
|
+
"summary": "Get amount of tokens paid for gas policy (legacy).",
|
|
15666
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
15107
15667
|
"security": [
|
|
15108
15668
|
{
|
|
15109
15669
|
"sk": []
|
|
@@ -15126,7 +15686,7 @@
|
|
|
15126
15686
|
]
|
|
15127
15687
|
},
|
|
15128
15688
|
"post": {
|
|
15129
|
-
"operationId": "
|
|
15689
|
+
"operationId": "CreateGasPolicyWithdrawalLegacy",
|
|
15130
15690
|
"responses": {
|
|
15131
15691
|
"200": {
|
|
15132
15692
|
"description": "Successful response.",
|
|
@@ -15227,9 +15787,9 @@
|
|
|
15227
15787
|
"description": ""
|
|
15228
15788
|
}
|
|
15229
15789
|
},
|
|
15230
|
-
"description": "Transfer ERC-20 tokens collected by policy.\n\nWhen using a policy that includes payment of gas in ERC-20 tokens, this endpoint returns the amount of tokens paid for gas.\nThis is specific to a policy that doesn't use your own deposited tokens in the paymaster.",
|
|
15231
|
-
"summary": "Withdraw tokens collected by policy.",
|
|
15232
|
-
"tags": ["Policies"],
|
|
15790
|
+
"description": "Transfer ERC-20 tokens collected by a gas policy.\n\nWhen using a policy that includes payment of gas in ERC-20 tokens, this endpoint returns the amount of tokens paid for gas.\nThis is specific to a policy that doesn't use your own deposited tokens in the paymaster.",
|
|
15791
|
+
"summary": "Withdraw tokens collected by gas policy (legacy).",
|
|
15792
|
+
"tags": ["Gas Policies (Legacy)"],
|
|
15233
15793
|
"security": [
|
|
15234
15794
|
{
|
|
15235
15795
|
"sk": []
|
|
@@ -18258,10 +18818,13 @@
|
|
|
18258
18818
|
"name": "scope",
|
|
18259
18819
|
"required": false,
|
|
18260
18820
|
"schema": {
|
|
18261
|
-
"type": "
|
|
18262
|
-
"
|
|
18821
|
+
"type": "array",
|
|
18822
|
+
"items": {
|
|
18823
|
+
"type": "string",
|
|
18824
|
+
"enum": ["project", "account", "transaction"]
|
|
18825
|
+
}
|
|
18263
18826
|
},
|
|
18264
|
-
"example": "project"
|
|
18827
|
+
"example": ["project", "account"]
|
|
18265
18828
|
},
|
|
18266
18829
|
{
|
|
18267
18830
|
"description": "Filter by enabled status.",
|
|
@@ -18524,16 +19087,16 @@
|
|
|
18524
19087
|
}
|
|
18525
19088
|
}
|
|
18526
19089
|
},
|
|
18527
|
-
"/v2/
|
|
19090
|
+
"/v2/fee-sponsorship": {
|
|
18528
19091
|
"get": {
|
|
18529
|
-
"operationId": "
|
|
19092
|
+
"operationId": "ListFeeSponsorships",
|
|
18530
19093
|
"responses": {
|
|
18531
19094
|
"200": {
|
|
18532
19095
|
"description": "Successful response.",
|
|
18533
19096
|
"content": {
|
|
18534
19097
|
"application/json": {
|
|
18535
19098
|
"schema": {
|
|
18536
|
-
"$ref": "#/components/schemas/
|
|
19099
|
+
"$ref": "#/components/schemas/FeeSponsorshipListResponse"
|
|
18537
19100
|
}
|
|
18538
19101
|
}
|
|
18539
19102
|
}
|
|
@@ -18542,67 +19105,455 @@
|
|
|
18542
19105
|
"description": "Unauthorized."
|
|
18543
19106
|
}
|
|
18544
19107
|
},
|
|
18545
|
-
"description": "
|
|
18546
|
-
"summary": "List
|
|
18547
|
-
"tags": ["
|
|
19108
|
+
"description": "Returns a list of fee sponsorship policies.\n\nFee sponsorship policies define gas sponsorship rules by linking to a policy\nwith rich criteria (evmAddress, ethValue, evmNetwork, evmData).",
|
|
19109
|
+
"summary": "List fee sponsorship policies.",
|
|
19110
|
+
"tags": ["Fee Sponsorship"],
|
|
18548
19111
|
"security": [
|
|
18549
19112
|
{
|
|
18550
19113
|
"sk": []
|
|
19114
|
+
},
|
|
19115
|
+
{
|
|
19116
|
+
"user_project": []
|
|
18551
19117
|
}
|
|
18552
19118
|
],
|
|
18553
19119
|
"parameters": [
|
|
18554
19120
|
{
|
|
18555
|
-
"description": "
|
|
19121
|
+
"description": "Specifies the maximum number of records to return.",
|
|
18556
19122
|
"in": "query",
|
|
18557
19123
|
"name": "limit",
|
|
18558
19124
|
"required": false,
|
|
18559
19125
|
"schema": {
|
|
18560
19126
|
"format": "int32",
|
|
18561
|
-
"type": "integer"
|
|
18562
|
-
|
|
18563
|
-
|
|
19127
|
+
"type": "integer",
|
|
19128
|
+
"minimum": 1
|
|
19129
|
+
}
|
|
18564
19130
|
},
|
|
18565
19131
|
{
|
|
18566
|
-
"description": "
|
|
19132
|
+
"description": "Specifies the offset for the first records to return.",
|
|
18567
19133
|
"in": "query",
|
|
18568
19134
|
"name": "skip",
|
|
18569
19135
|
"required": false,
|
|
18570
19136
|
"schema": {
|
|
18571
19137
|
"format": "int32",
|
|
18572
|
-
"type": "integer"
|
|
18573
|
-
|
|
18574
|
-
|
|
19138
|
+
"type": "integer",
|
|
19139
|
+
"minimum": 0
|
|
19140
|
+
}
|
|
18575
19141
|
},
|
|
18576
19142
|
{
|
|
18577
|
-
"description": "
|
|
19143
|
+
"description": "Specifies the order in which to sort the results.",
|
|
18578
19144
|
"in": "query",
|
|
18579
|
-
"name": "
|
|
19145
|
+
"name": "order",
|
|
18580
19146
|
"required": false,
|
|
18581
19147
|
"schema": {
|
|
18582
|
-
"
|
|
18583
|
-
|
|
18584
|
-
},
|
|
18585
|
-
"example": "EVM"
|
|
19148
|
+
"$ref": "#/components/schemas/Prisma.SortOrder"
|
|
19149
|
+
}
|
|
18586
19150
|
},
|
|
18587
19151
|
{
|
|
18588
|
-
"description": "Filter by
|
|
19152
|
+
"description": "Filter by policy name (partial match).",
|
|
18589
19153
|
"in": "query",
|
|
18590
|
-
"name": "
|
|
19154
|
+
"name": "name",
|
|
18591
19155
|
"required": false,
|
|
18592
19156
|
"schema": {
|
|
18593
19157
|
"type": "string"
|
|
18594
19158
|
},
|
|
18595
|
-
"example": "
|
|
19159
|
+
"example": "DeFi"
|
|
18596
19160
|
},
|
|
18597
19161
|
{
|
|
18598
|
-
"description": "Filter by
|
|
19162
|
+
"description": "Filter by chain ID.",
|
|
18599
19163
|
"in": "query",
|
|
18600
|
-
"name": "
|
|
19164
|
+
"name": "chainId",
|
|
18601
19165
|
"required": false,
|
|
18602
19166
|
"schema": {
|
|
18603
|
-
"
|
|
19167
|
+
"format": "int32",
|
|
19168
|
+
"type": "integer"
|
|
18604
19169
|
},
|
|
18605
|
-
"example":
|
|
19170
|
+
"example": 1
|
|
19171
|
+
},
|
|
19172
|
+
{
|
|
19173
|
+
"description": "Filter by enabled status.",
|
|
19174
|
+
"in": "query",
|
|
19175
|
+
"name": "enabled",
|
|
19176
|
+
"required": false,
|
|
19177
|
+
"schema": {
|
|
19178
|
+
"type": "boolean"
|
|
19179
|
+
},
|
|
19180
|
+
"example": true
|
|
19181
|
+
},
|
|
19182
|
+
{
|
|
19183
|
+
"description": "Include deleted policies.",
|
|
19184
|
+
"in": "query",
|
|
19185
|
+
"name": "deleted",
|
|
19186
|
+
"required": false,
|
|
19187
|
+
"schema": {
|
|
19188
|
+
"default": false,
|
|
19189
|
+
"type": "boolean"
|
|
19190
|
+
},
|
|
19191
|
+
"example": false
|
|
19192
|
+
}
|
|
19193
|
+
]
|
|
19194
|
+
},
|
|
19195
|
+
"post": {
|
|
19196
|
+
"operationId": "CreateFeeSponsorship",
|
|
19197
|
+
"responses": {
|
|
19198
|
+
"201": {
|
|
19199
|
+
"description": "Created.",
|
|
19200
|
+
"content": {
|
|
19201
|
+
"application/json": {
|
|
19202
|
+
"schema": {
|
|
19203
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
19204
|
+
}
|
|
19205
|
+
}
|
|
19206
|
+
}
|
|
19207
|
+
},
|
|
19208
|
+
"400": {
|
|
19209
|
+
"description": "Bad request."
|
|
19210
|
+
},
|
|
19211
|
+
"401": {
|
|
19212
|
+
"description": "Unauthorized."
|
|
19213
|
+
}
|
|
19214
|
+
},
|
|
19215
|
+
"description": "Creates a new fee sponsorship.\n\nThis endpoint requires linking to an existing policy via `policyId`.\nCreate the policy first via `/v2/policies` with your criteria rules.\n\n**Workflow:**\n1. Create a policy via `/v2/policies` with criteria rules\n2. Create a fee sponsorship with `policyId` linking to that policy\n\n**Supported criteria types:**\n- `evmAddress`: Filter by recipient address (in/not in)\n- `ethValue`: Filter by ETH amount (<=, >=, <, >)\n- `evmNetwork`: Filter by chain ID (in/not in)\n- `evmData`: Filter by function selector or parameters",
|
|
19216
|
+
"summary": "Create a fee sponsorship.",
|
|
19217
|
+
"tags": ["Fee Sponsorship"],
|
|
19218
|
+
"security": [
|
|
19219
|
+
{
|
|
19220
|
+
"sk": []
|
|
19221
|
+
},
|
|
19222
|
+
{
|
|
19223
|
+
"user_project": []
|
|
19224
|
+
}
|
|
19225
|
+
],
|
|
19226
|
+
"parameters": [],
|
|
19227
|
+
"requestBody": {
|
|
19228
|
+
"required": true,
|
|
19229
|
+
"content": {
|
|
19230
|
+
"application/json": {
|
|
19231
|
+
"schema": {
|
|
19232
|
+
"$ref": "#/components/schemas/CreateFeeSponsorshipRequest"
|
|
19233
|
+
}
|
|
19234
|
+
}
|
|
19235
|
+
}
|
|
19236
|
+
}
|
|
19237
|
+
}
|
|
19238
|
+
},
|
|
19239
|
+
"/v2/fee-sponsorship/{feeSponsorshipId}": {
|
|
19240
|
+
"get": {
|
|
19241
|
+
"operationId": "GetFeeSponsorship",
|
|
19242
|
+
"responses": {
|
|
19243
|
+
"200": {
|
|
19244
|
+
"description": "Successful response.",
|
|
19245
|
+
"content": {
|
|
19246
|
+
"application/json": {
|
|
19247
|
+
"schema": {
|
|
19248
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
19249
|
+
}
|
|
19250
|
+
}
|
|
19251
|
+
}
|
|
19252
|
+
},
|
|
19253
|
+
"401": {
|
|
19254
|
+
"description": "Unauthorized."
|
|
19255
|
+
},
|
|
19256
|
+
"404": {
|
|
19257
|
+
"description": "Not found."
|
|
19258
|
+
}
|
|
19259
|
+
},
|
|
19260
|
+
"description": "Retrieves the details of a fee sponsorship.",
|
|
19261
|
+
"summary": "Get a fee sponsorship.",
|
|
19262
|
+
"tags": ["Fee Sponsorship"],
|
|
19263
|
+
"security": [
|
|
19264
|
+
{
|
|
19265
|
+
"sk": []
|
|
19266
|
+
},
|
|
19267
|
+
{
|
|
19268
|
+
"user_project": []
|
|
19269
|
+
}
|
|
19270
|
+
],
|
|
19271
|
+
"parameters": [
|
|
19272
|
+
{
|
|
19273
|
+
"description": "Specifies the unique fee sponsorship ID (starts with pol_).",
|
|
19274
|
+
"in": "path",
|
|
19275
|
+
"name": "feeSponsorshipId",
|
|
19276
|
+
"required": true,
|
|
19277
|
+
"schema": {
|
|
19278
|
+
"type": "string"
|
|
19279
|
+
},
|
|
19280
|
+
"example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
19281
|
+
}
|
|
19282
|
+
]
|
|
19283
|
+
},
|
|
19284
|
+
"put": {
|
|
19285
|
+
"operationId": "UpdateFeeSponsorship",
|
|
19286
|
+
"responses": {
|
|
19287
|
+
"200": {
|
|
19288
|
+
"description": "Successful response.",
|
|
19289
|
+
"content": {
|
|
19290
|
+
"application/json": {
|
|
19291
|
+
"schema": {
|
|
19292
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
19293
|
+
}
|
|
19294
|
+
}
|
|
19295
|
+
}
|
|
19296
|
+
},
|
|
19297
|
+
"400": {
|
|
19298
|
+
"description": "Bad request."
|
|
19299
|
+
},
|
|
19300
|
+
"401": {
|
|
19301
|
+
"description": "Unauthorized."
|
|
19302
|
+
},
|
|
19303
|
+
"404": {
|
|
19304
|
+
"description": "Not found."
|
|
19305
|
+
}
|
|
19306
|
+
},
|
|
19307
|
+
"description": "Updates a fee sponsorship.",
|
|
19308
|
+
"summary": "Update a fee sponsorship.",
|
|
19309
|
+
"tags": ["Fee Sponsorship"],
|
|
19310
|
+
"security": [
|
|
19311
|
+
{
|
|
19312
|
+
"sk": []
|
|
19313
|
+
},
|
|
19314
|
+
{
|
|
19315
|
+
"user_project": []
|
|
19316
|
+
}
|
|
19317
|
+
],
|
|
19318
|
+
"parameters": [
|
|
19319
|
+
{
|
|
19320
|
+
"description": "Specifies the unique fee sponsorship ID (starts with pol_).",
|
|
19321
|
+
"in": "path",
|
|
19322
|
+
"name": "feeSponsorshipId",
|
|
19323
|
+
"required": true,
|
|
19324
|
+
"schema": {
|
|
19325
|
+
"type": "string"
|
|
19326
|
+
},
|
|
19327
|
+
"example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
19328
|
+
}
|
|
19329
|
+
],
|
|
19330
|
+
"requestBody": {
|
|
19331
|
+
"required": true,
|
|
19332
|
+
"content": {
|
|
19333
|
+
"application/json": {
|
|
19334
|
+
"schema": {
|
|
19335
|
+
"$ref": "#/components/schemas/UpdateFeeSponsorshipRequest"
|
|
19336
|
+
}
|
|
19337
|
+
}
|
|
19338
|
+
}
|
|
19339
|
+
}
|
|
19340
|
+
},
|
|
19341
|
+
"delete": {
|
|
19342
|
+
"operationId": "DeleteFeeSponsorship",
|
|
19343
|
+
"responses": {
|
|
19344
|
+
"200": {
|
|
19345
|
+
"description": "Successful response.",
|
|
19346
|
+
"content": {
|
|
19347
|
+
"application/json": {
|
|
19348
|
+
"schema": {
|
|
19349
|
+
"$ref": "#/components/schemas/FeeSponsorshipDeleteResponse"
|
|
19350
|
+
}
|
|
19351
|
+
}
|
|
19352
|
+
}
|
|
19353
|
+
},
|
|
19354
|
+
"401": {
|
|
19355
|
+
"description": "Unauthorized."
|
|
19356
|
+
},
|
|
19357
|
+
"404": {
|
|
19358
|
+
"description": "Not found."
|
|
19359
|
+
}
|
|
19360
|
+
},
|
|
19361
|
+
"description": "Deletes a fee sponsorship.\n\nThis is a soft delete - the fee sponsorship is marked as deleted but not removed from the database.",
|
|
19362
|
+
"summary": "Delete a fee sponsorship.",
|
|
19363
|
+
"tags": ["Fee Sponsorship"],
|
|
19364
|
+
"security": [
|
|
19365
|
+
{
|
|
19366
|
+
"sk": []
|
|
19367
|
+
},
|
|
19368
|
+
{
|
|
19369
|
+
"user_project": []
|
|
19370
|
+
}
|
|
19371
|
+
],
|
|
19372
|
+
"parameters": [
|
|
19373
|
+
{
|
|
19374
|
+
"description": "Specifies the unique fee sponsorship ID (starts with pol_).",
|
|
19375
|
+
"in": "path",
|
|
19376
|
+
"name": "feeSponsorshipId",
|
|
19377
|
+
"required": true,
|
|
19378
|
+
"schema": {
|
|
19379
|
+
"type": "string"
|
|
19380
|
+
},
|
|
19381
|
+
"example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
19382
|
+
}
|
|
19383
|
+
]
|
|
19384
|
+
}
|
|
19385
|
+
},
|
|
19386
|
+
"/v2/fee-sponsorship/{feeSponsorshipId}/enable": {
|
|
19387
|
+
"put": {
|
|
19388
|
+
"operationId": "EnableFeeSponsorship",
|
|
19389
|
+
"responses": {
|
|
19390
|
+
"200": {
|
|
19391
|
+
"description": "Successful response.",
|
|
19392
|
+
"content": {
|
|
19393
|
+
"application/json": {
|
|
19394
|
+
"schema": {
|
|
19395
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
19396
|
+
}
|
|
19397
|
+
}
|
|
19398
|
+
}
|
|
19399
|
+
},
|
|
19400
|
+
"401": {
|
|
19401
|
+
"description": "Unauthorized."
|
|
19402
|
+
},
|
|
19403
|
+
"404": {
|
|
19404
|
+
"description": "Not found."
|
|
19405
|
+
}
|
|
19406
|
+
},
|
|
19407
|
+
"description": "Enables a fee sponsorship.",
|
|
19408
|
+
"summary": "Enable a fee sponsorship.",
|
|
19409
|
+
"tags": ["Fee Sponsorship"],
|
|
19410
|
+
"security": [
|
|
19411
|
+
{
|
|
19412
|
+
"sk": []
|
|
19413
|
+
},
|
|
19414
|
+
{
|
|
19415
|
+
"user_project": []
|
|
19416
|
+
}
|
|
19417
|
+
],
|
|
19418
|
+
"parameters": [
|
|
19419
|
+
{
|
|
19420
|
+
"description": "Specifies the unique fee sponsorship ID (starts with pol_).",
|
|
19421
|
+
"in": "path",
|
|
19422
|
+
"name": "feeSponsorshipId",
|
|
19423
|
+
"required": true,
|
|
19424
|
+
"schema": {
|
|
19425
|
+
"type": "string"
|
|
19426
|
+
},
|
|
19427
|
+
"example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
19428
|
+
}
|
|
19429
|
+
]
|
|
19430
|
+
}
|
|
19431
|
+
},
|
|
19432
|
+
"/v2/fee-sponsorship/{feeSponsorshipId}/disable": {
|
|
19433
|
+
"put": {
|
|
19434
|
+
"operationId": "DisableFeeSponsorship",
|
|
19435
|
+
"responses": {
|
|
19436
|
+
"200": {
|
|
19437
|
+
"description": "Successful response.",
|
|
19438
|
+
"content": {
|
|
19439
|
+
"application/json": {
|
|
19440
|
+
"schema": {
|
|
19441
|
+
"$ref": "#/components/schemas/FeeSponsorshipResponse"
|
|
19442
|
+
}
|
|
19443
|
+
}
|
|
19444
|
+
}
|
|
19445
|
+
},
|
|
19446
|
+
"401": {
|
|
19447
|
+
"description": "Unauthorized."
|
|
19448
|
+
},
|
|
19449
|
+
"404": {
|
|
19450
|
+
"description": "Not found."
|
|
19451
|
+
}
|
|
19452
|
+
},
|
|
19453
|
+
"description": "Disables a fee sponsorship.",
|
|
19454
|
+
"summary": "Disable a fee sponsorship.",
|
|
19455
|
+
"tags": ["Fee Sponsorship"],
|
|
19456
|
+
"security": [
|
|
19457
|
+
{
|
|
19458
|
+
"sk": []
|
|
19459
|
+
},
|
|
19460
|
+
{
|
|
19461
|
+
"user_project": []
|
|
19462
|
+
}
|
|
19463
|
+
],
|
|
19464
|
+
"parameters": [
|
|
19465
|
+
{
|
|
19466
|
+
"description": "Specifies the unique fee sponsorship ID (starts with pol_).",
|
|
19467
|
+
"in": "path",
|
|
19468
|
+
"name": "feeSponsorshipId",
|
|
19469
|
+
"required": true,
|
|
19470
|
+
"schema": {
|
|
19471
|
+
"type": "string"
|
|
19472
|
+
},
|
|
19473
|
+
"example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
19474
|
+
}
|
|
19475
|
+
]
|
|
19476
|
+
}
|
|
19477
|
+
},
|
|
19478
|
+
"/v2/accounts/backend": {
|
|
19479
|
+
"get": {
|
|
19480
|
+
"operationId": "listBackendWallets",
|
|
19481
|
+
"responses": {
|
|
19482
|
+
"200": {
|
|
19483
|
+
"description": "Successful response.",
|
|
19484
|
+
"content": {
|
|
19485
|
+
"application/json": {
|
|
19486
|
+
"schema": {
|
|
19487
|
+
"$ref": "#/components/schemas/BackendWalletListResponse"
|
|
19488
|
+
}
|
|
19489
|
+
}
|
|
19490
|
+
}
|
|
19491
|
+
},
|
|
19492
|
+
"401": {
|
|
19493
|
+
"description": "Unauthorized."
|
|
19494
|
+
}
|
|
19495
|
+
},
|
|
19496
|
+
"description": "List backend wallets.\n\nReturns a paginated list of backend wallets for the project.",
|
|
19497
|
+
"summary": "List backend wallets.",
|
|
19498
|
+
"tags": ["Backend Wallets"],
|
|
19499
|
+
"security": [
|
|
19500
|
+
{
|
|
19501
|
+
"sk": []
|
|
19502
|
+
}
|
|
19503
|
+
],
|
|
19504
|
+
"parameters": [
|
|
19505
|
+
{
|
|
19506
|
+
"description": "Number of wallets to return (default: 10, max: 100).",
|
|
19507
|
+
"in": "query",
|
|
19508
|
+
"name": "limit",
|
|
19509
|
+
"required": false,
|
|
19510
|
+
"schema": {
|
|
19511
|
+
"format": "int32",
|
|
19512
|
+
"type": "integer"
|
|
19513
|
+
},
|
|
19514
|
+
"example": 10
|
|
19515
|
+
},
|
|
19516
|
+
{
|
|
19517
|
+
"description": "Number of wallets to skip (for pagination).",
|
|
19518
|
+
"in": "query",
|
|
19519
|
+
"name": "skip",
|
|
19520
|
+
"required": false,
|
|
19521
|
+
"schema": {
|
|
19522
|
+
"format": "int32",
|
|
19523
|
+
"type": "integer"
|
|
19524
|
+
},
|
|
19525
|
+
"example": 0
|
|
19526
|
+
},
|
|
19527
|
+
{
|
|
19528
|
+
"description": "Filter by chain type.",
|
|
19529
|
+
"in": "query",
|
|
19530
|
+
"name": "chainType",
|
|
19531
|
+
"required": false,
|
|
19532
|
+
"schema": {
|
|
19533
|
+
"type": "string",
|
|
19534
|
+
"enum": ["EVM", "SVM"]
|
|
19535
|
+
},
|
|
19536
|
+
"example": "EVM"
|
|
19537
|
+
},
|
|
19538
|
+
{
|
|
19539
|
+
"description": "Filter by wallet address.",
|
|
19540
|
+
"in": "query",
|
|
19541
|
+
"name": "address",
|
|
19542
|
+
"required": false,
|
|
19543
|
+
"schema": {
|
|
19544
|
+
"type": "string"
|
|
19545
|
+
},
|
|
19546
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
19547
|
+
},
|
|
19548
|
+
{
|
|
19549
|
+
"description": "Filter by associated wallet ID (starts with `pla_`).",
|
|
19550
|
+
"in": "query",
|
|
19551
|
+
"name": "wallet",
|
|
19552
|
+
"required": false,
|
|
19553
|
+
"schema": {
|
|
19554
|
+
"type": "string"
|
|
19555
|
+
},
|
|
19556
|
+
"example": "pla_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
18606
19557
|
}
|
|
18607
19558
|
]
|
|
18608
19559
|
},
|
|
@@ -18685,6 +19636,59 @@
|
|
|
18685
19636
|
}
|
|
18686
19637
|
]
|
|
18687
19638
|
},
|
|
19639
|
+
"put": {
|
|
19640
|
+
"operationId": "updateBackendWallet",
|
|
19641
|
+
"responses": {
|
|
19642
|
+
"200": {
|
|
19643
|
+
"description": "Successful response.",
|
|
19644
|
+
"content": {
|
|
19645
|
+
"application/json": {
|
|
19646
|
+
"schema": {
|
|
19647
|
+
"$ref": "#/components/schemas/UpdateBackendWalletResponse"
|
|
19648
|
+
}
|
|
19649
|
+
}
|
|
19650
|
+
}
|
|
19651
|
+
},
|
|
19652
|
+
"400": {
|
|
19653
|
+
"description": "Bad request."
|
|
19654
|
+
},
|
|
19655
|
+
"401": {
|
|
19656
|
+
"description": "Unauthorized."
|
|
19657
|
+
},
|
|
19658
|
+
"404": {
|
|
19659
|
+
"description": "Wallet not found."
|
|
19660
|
+
}
|
|
19661
|
+
},
|
|
19662
|
+
"description": "Update a backend wallet.\n\nCurrently supports upgrading an EOA backend wallet to a Delegated Account (EIP-7702).\nProvide the target accountType along with the required delegation parameters (chainId, implementationType).",
|
|
19663
|
+
"summary": "Update backend wallet.",
|
|
19664
|
+
"tags": ["Backend Wallets"],
|
|
19665
|
+
"security": [
|
|
19666
|
+
{
|
|
19667
|
+
"sk": []
|
|
19668
|
+
}
|
|
19669
|
+
],
|
|
19670
|
+
"parameters": [
|
|
19671
|
+
{
|
|
19672
|
+
"description": "The wallet ID (starts with acc_).",
|
|
19673
|
+
"in": "path",
|
|
19674
|
+
"name": "id",
|
|
19675
|
+
"required": true,
|
|
19676
|
+
"schema": {
|
|
19677
|
+
"type": "string"
|
|
19678
|
+
}
|
|
19679
|
+
}
|
|
19680
|
+
],
|
|
19681
|
+
"requestBody": {
|
|
19682
|
+
"required": true,
|
|
19683
|
+
"content": {
|
|
19684
|
+
"application/json": {
|
|
19685
|
+
"schema": {
|
|
19686
|
+
"$ref": "#/components/schemas/UpdateBackendWalletRequest"
|
|
19687
|
+
}
|
|
19688
|
+
}
|
|
19689
|
+
}
|
|
19690
|
+
}
|
|
19691
|
+
},
|
|
18688
19692
|
"delete": {
|
|
18689
19693
|
"operationId": "deleteBackendWallet",
|
|
18690
19694
|
"responses": {
|