@openfort/openfort-node 0.8.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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
- "type": "string",
6537
- "enum": ["project", "account"],
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. 'project' applies to all accounts, 'account' applies to a specific account.",
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": {
@@ -13914,7 +14206,7 @@
13914
14206
  },
13915
14207
  "/v1/policy_rules": {
13916
14208
  "get": {
13917
- "operationId": "GetPolicyRules",
14209
+ "operationId": "GetGasPolicyRulesLegacy",
13918
14210
  "responses": {
13919
14211
  "200": {
13920
14212
  "description": "Successful response.",
@@ -13954,9 +14246,9 @@
13954
14246
  "description": "Error response."
13955
14247
  }
13956
14248
  },
13957
- "description": "Returns a list of policy rules of a 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.",
13958
- "summary": "List policy rules of a policy.",
13959
- "tags": ["PolicyRules"],
14249
+ "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.",
14250
+ "summary": "List gas policy rules (legacy - use /v2/fee-sponsorship for new integrations).",
14251
+ "tags": ["Gas Policy Rules (Legacy)"],
13960
14252
  "security": [
13961
14253
  {
13962
14254
  "sk": []
@@ -14024,7 +14316,7 @@
14024
14316
  ]
14025
14317
  },
14026
14318
  "post": {
14027
- "operationId": "CreatePolicyRule",
14319
+ "operationId": "CreateGasPolicyRuleLegacy",
14028
14320
  "responses": {
14029
14321
  "200": {
14030
14322
  "description": "Successful response.",
@@ -14100,8 +14392,8 @@
14100
14392
  "description": "Error response."
14101
14393
  }
14102
14394
  },
14103
- "summary": "Create a policy rule object.",
14104
- "tags": ["PolicyRules"],
14395
+ "summary": "Create a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
14396
+ "tags": ["Gas Policy Rules (Legacy)"],
14105
14397
  "security": [
14106
14398
  {
14107
14399
  "sk": []
@@ -14125,7 +14417,7 @@
14125
14417
  },
14126
14418
  "/v1/policy_rules/{id}": {
14127
14419
  "post": {
14128
- "operationId": "UpdatePolicyRule",
14420
+ "operationId": "UpdateGasPolicyRuleLegacy",
14129
14421
  "responses": {
14130
14422
  "200": {
14131
14423
  "description": "Successful response.",
@@ -14158,8 +14450,8 @@
14158
14450
  "description": "Error response."
14159
14451
  }
14160
14452
  },
14161
- "summary": "Update a policy rule object.",
14162
- "tags": ["PolicyRules"],
14453
+ "summary": "Update a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
14454
+ "tags": ["Gas Policy Rules (Legacy)"],
14163
14455
  "security": [
14164
14456
  {
14165
14457
  "sk": []
@@ -14192,7 +14484,7 @@
14192
14484
  }
14193
14485
  },
14194
14486
  "delete": {
14195
- "operationId": "DeletePolicyRule",
14487
+ "operationId": "DeleteGasPolicyRuleLegacy",
14196
14488
  "responses": {
14197
14489
  "200": {
14198
14490
  "description": "Successful response.",
@@ -14220,8 +14512,8 @@
14220
14512
  "description": "Error response."
14221
14513
  }
14222
14514
  },
14223
- "summary": "Deletes a policy rule object.",
14224
- "tags": ["PolicyRules"],
14515
+ "summary": "Delete a gas policy rule (legacy - use /v2/fee-sponsorship for new integrations).",
14516
+ "tags": ["Gas Policy Rules (Legacy)"],
14225
14517
  "security": [
14226
14518
  {
14227
14519
  "sk": []
@@ -14246,7 +14538,7 @@
14246
14538
  },
14247
14539
  "/v1/policies": {
14248
14540
  "get": {
14249
- "operationId": "GetPolicies",
14541
+ "operationId": "GetGasPoliciesLegacy",
14250
14542
  "responses": {
14251
14543
  "200": {
14252
14544
  "description": "Successful response.",
@@ -14299,9 +14591,9 @@
14299
14591
  "description": "Error response."
14300
14592
  }
14301
14593
  },
14302
- "description": "Returns a list of Policies.\n\nReturns the latest 10 transaction intents for each policy.",
14303
- "summary": "List policies.",
14304
- "tags": ["Policies"],
14594
+ "description": "Returns a list of gas sponsorship policies.\n\nReturns the latest 10 transaction intents for each policy.",
14595
+ "summary": "List gas policies (legacy - use /v2/fee-sponsorship for new integrations).",
14596
+ "tags": ["Gas Policies (Legacy)"],
14305
14597
  "security": [
14306
14598
  {
14307
14599
  "sk": []
@@ -14398,7 +14690,7 @@
14398
14690
  ]
14399
14691
  },
14400
14692
  "post": {
14401
- "operationId": "CreatePolicy",
14693
+ "operationId": "CreateGasPolicyLegacy",
14402
14694
  "responses": {
14403
14695
  "200": {
14404
14696
  "description": "Successful response.",
@@ -14445,8 +14737,8 @@
14445
14737
  "description": "Error response."
14446
14738
  }
14447
14739
  },
14448
- "summary": "Create a policy object.",
14449
- "tags": ["Policies"],
14740
+ "summary": "Create a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
14741
+ "tags": ["Gas Policies (Legacy)"],
14450
14742
  "security": [
14451
14743
  {
14452
14744
  "sk": []
@@ -14470,7 +14762,7 @@
14470
14762
  },
14471
14763
  "/v1/policies/{id}": {
14472
14764
  "get": {
14473
- "operationId": "GetPolicy",
14765
+ "operationId": "GetGasPolicyLegacy",
14474
14766
  "responses": {
14475
14767
  "200": {
14476
14768
  "description": "Successful response.",
@@ -14514,9 +14806,9 @@
14514
14806
  "description": "Error response."
14515
14807
  }
14516
14808
  },
14517
- "description": "Retrieves the details of a Policy that has previously been created.\n\nReturns the latest 10 transaction intents that used this policy.",
14518
- "summary": "Get a policy object.",
14519
- "tags": ["Policies"],
14809
+ "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.",
14810
+ "summary": "Get a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
14811
+ "tags": ["Gas Policies (Legacy)"],
14520
14812
  "security": [
14521
14813
  {
14522
14814
  "sk": []
@@ -14553,7 +14845,7 @@
14553
14845
  ]
14554
14846
  },
14555
14847
  "post": {
14556
- "operationId": "UpdatePolicy",
14848
+ "operationId": "UpdateGasPolicyLegacy",
14557
14849
  "responses": {
14558
14850
  "200": {
14559
14851
  "description": "Successful response.",
@@ -14600,8 +14892,8 @@
14600
14892
  "description": "Error response."
14601
14893
  }
14602
14894
  },
14603
- "summary": "Update a policy object.",
14604
- "tags": ["Policies"],
14895
+ "summary": "Update a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
14896
+ "tags": ["Gas Policies (Legacy)"],
14605
14897
  "security": [
14606
14898
  {
14607
14899
  "sk": []
@@ -14634,7 +14926,7 @@
14634
14926
  }
14635
14927
  },
14636
14928
  "delete": {
14637
- "operationId": "DeletePolicy",
14929
+ "operationId": "DeleteGasPolicyLegacy",
14638
14930
  "responses": {
14639
14931
  "200": {
14640
14932
  "description": "Successful response.",
@@ -14662,8 +14954,8 @@
14662
14954
  "description": "Error response."
14663
14955
  }
14664
14956
  },
14665
- "summary": "Delete a policy object.",
14666
- "tags": ["Policies"],
14957
+ "summary": "Delete a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
14958
+ "tags": ["Gas Policies (Legacy)"],
14667
14959
  "security": [
14668
14960
  {
14669
14961
  "sk": []
@@ -14688,7 +14980,7 @@
14688
14980
  },
14689
14981
  "/v1/policies/{id}/disable": {
14690
14982
  "put": {
14691
- "operationId": "DisablePolicy",
14983
+ "operationId": "DisableGasPolicyLegacy",
14692
14984
  "responses": {
14693
14985
  "200": {
14694
14986
  "description": "Successful response.",
@@ -14735,8 +15027,8 @@
14735
15027
  "description": "Error response."
14736
15028
  }
14737
15029
  },
14738
- "summary": "Disable a policy object.",
14739
- "tags": ["Policies"],
15030
+ "summary": "Disable a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
15031
+ "tags": ["Gas Policies (Legacy)"],
14740
15032
  "security": [
14741
15033
  {
14742
15034
  "sk": []
@@ -14761,7 +15053,7 @@
14761
15053
  },
14762
15054
  "/v1/policies/{id}/enable": {
14763
15055
  "put": {
14764
- "operationId": "EnablePolicy",
15056
+ "operationId": "EnableGasPolicyLegacy",
14765
15057
  "responses": {
14766
15058
  "200": {
14767
15059
  "description": "Successful response.",
@@ -14808,8 +15100,8 @@
14808
15100
  "description": "Error response."
14809
15101
  }
14810
15102
  },
14811
- "summary": "Enable a policy object.",
14812
- "tags": ["Policies"],
15103
+ "summary": "Enable a gas policy (legacy - use /v2/fee-sponsorship for new integrations).",
15104
+ "tags": ["Gas Policies (Legacy)"],
14813
15105
  "security": [
14814
15106
  {
14815
15107
  "sk": []
@@ -14834,7 +15126,7 @@
14834
15126
  },
14835
15127
  "/v1/policies/{id}/reports": {
14836
15128
  "get": {
14837
- "operationId": "GetPolicyTotalGasUsage",
15129
+ "operationId": "GetGasPolicyTotalGasUsageLegacy",
14838
15130
  "responses": {
14839
15131
  "200": {
14840
15132
  "description": "Successful response.",
@@ -14892,8 +15184,8 @@
14892
15184
  "description": ""
14893
15185
  }
14894
15186
  },
14895
- "summary": "List all gas reports of a policy.",
14896
- "tags": ["Policies"],
15187
+ "summary": "List all gas reports of a gas policy (legacy).",
15188
+ "tags": ["Gas Policies (Legacy)"],
14897
15189
  "security": [
14898
15190
  {
14899
15191
  "sk": []
@@ -14949,7 +15241,7 @@
14949
15241
  },
14950
15242
  "/v1/policies/{id}/reports/transaction_intents": {
14951
15243
  "get": {
14952
- "operationId": "GetPolicyReportTransactionIntents",
15244
+ "operationId": "GetGasPolicyReportTransactionIntentsLegacy",
14953
15245
  "responses": {
14954
15246
  "200": {
14955
15247
  "description": "Successful response.",
@@ -14995,8 +15287,8 @@
14995
15287
  "description": ""
14996
15288
  }
14997
15289
  },
14998
- "summary": "List transaction intents of a policy report.",
14999
- "tags": ["Policies"],
15290
+ "summary": "List transaction intents of a gas policy report (legacy).",
15291
+ "tags": ["Gas Policies (Legacy)"],
15000
15292
  "security": [
15001
15293
  {
15002
15294
  "sk": []
@@ -15043,7 +15335,7 @@
15043
15335
  },
15044
15336
  "/v1/policies/{id}/withdraw": {
15045
15337
  "get": {
15046
- "operationId": "GetPolicyBalance",
15338
+ "operationId": "GetGasPolicyBalanceLegacy",
15047
15339
  "responses": {
15048
15340
  "200": {
15049
15341
  "description": "Successful response.",
@@ -15101,9 +15393,9 @@
15101
15393
  "description": ""
15102
15394
  }
15103
15395
  },
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"],
15396
+ "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.",
15397
+ "summary": "Get amount of tokens paid for gas policy (legacy).",
15398
+ "tags": ["Gas Policies (Legacy)"],
15107
15399
  "security": [
15108
15400
  {
15109
15401
  "sk": []
@@ -15126,7 +15418,7 @@
15126
15418
  ]
15127
15419
  },
15128
15420
  "post": {
15129
- "operationId": "CreatePolicyWithdrawal",
15421
+ "operationId": "CreateGasPolicyWithdrawalLegacy",
15130
15422
  "responses": {
15131
15423
  "200": {
15132
15424
  "description": "Successful response.",
@@ -15227,9 +15519,9 @@
15227
15519
  "description": ""
15228
15520
  }
15229
15521
  },
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"],
15522
+ "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.",
15523
+ "summary": "Withdraw tokens collected by gas policy (legacy).",
15524
+ "tags": ["Gas Policies (Legacy)"],
15233
15525
  "security": [
15234
15526
  {
15235
15527
  "sk": []
@@ -18258,10 +18550,13 @@
18258
18550
  "name": "scope",
18259
18551
  "required": false,
18260
18552
  "schema": {
18261
- "type": "string",
18262
- "enum": ["project", "account"]
18553
+ "type": "array",
18554
+ "items": {
18555
+ "type": "string",
18556
+ "enum": ["project", "account", "transaction"]
18557
+ }
18263
18558
  },
18264
- "example": "project"
18559
+ "example": ["project", "account"]
18265
18560
  },
18266
18561
  {
18267
18562
  "description": "Filter by enabled status.",
@@ -18524,6 +18819,394 @@
18524
18819
  }
18525
18820
  }
18526
18821
  },
18822
+ "/v2/fee-sponsorship": {
18823
+ "get": {
18824
+ "operationId": "ListFeeSponsorships",
18825
+ "responses": {
18826
+ "200": {
18827
+ "description": "Successful response.",
18828
+ "content": {
18829
+ "application/json": {
18830
+ "schema": {
18831
+ "$ref": "#/components/schemas/FeeSponsorshipListResponse"
18832
+ }
18833
+ }
18834
+ }
18835
+ },
18836
+ "401": {
18837
+ "description": "Unauthorized."
18838
+ }
18839
+ },
18840
+ "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).",
18841
+ "summary": "List fee sponsorship policies.",
18842
+ "tags": ["Fee Sponsorship"],
18843
+ "security": [
18844
+ {
18845
+ "sk": []
18846
+ },
18847
+ {
18848
+ "user_project": []
18849
+ }
18850
+ ],
18851
+ "parameters": [
18852
+ {
18853
+ "description": "Specifies the maximum number of records to return.",
18854
+ "in": "query",
18855
+ "name": "limit",
18856
+ "required": false,
18857
+ "schema": {
18858
+ "format": "int32",
18859
+ "type": "integer",
18860
+ "minimum": 1
18861
+ }
18862
+ },
18863
+ {
18864
+ "description": "Specifies the offset for the first records to return.",
18865
+ "in": "query",
18866
+ "name": "skip",
18867
+ "required": false,
18868
+ "schema": {
18869
+ "format": "int32",
18870
+ "type": "integer",
18871
+ "minimum": 0
18872
+ }
18873
+ },
18874
+ {
18875
+ "description": "Specifies the order in which to sort the results.",
18876
+ "in": "query",
18877
+ "name": "order",
18878
+ "required": false,
18879
+ "schema": {
18880
+ "$ref": "#/components/schemas/Prisma.SortOrder"
18881
+ }
18882
+ },
18883
+ {
18884
+ "description": "Filter by policy name (partial match).",
18885
+ "in": "query",
18886
+ "name": "name",
18887
+ "required": false,
18888
+ "schema": {
18889
+ "type": "string"
18890
+ },
18891
+ "example": "DeFi"
18892
+ },
18893
+ {
18894
+ "description": "Filter by chain ID.",
18895
+ "in": "query",
18896
+ "name": "chainId",
18897
+ "required": false,
18898
+ "schema": {
18899
+ "format": "int32",
18900
+ "type": "integer"
18901
+ },
18902
+ "example": 1
18903
+ },
18904
+ {
18905
+ "description": "Filter by enabled status.",
18906
+ "in": "query",
18907
+ "name": "enabled",
18908
+ "required": false,
18909
+ "schema": {
18910
+ "type": "boolean"
18911
+ },
18912
+ "example": true
18913
+ },
18914
+ {
18915
+ "description": "Include deleted policies.",
18916
+ "in": "query",
18917
+ "name": "deleted",
18918
+ "required": false,
18919
+ "schema": {
18920
+ "default": false,
18921
+ "type": "boolean"
18922
+ },
18923
+ "example": false
18924
+ }
18925
+ ]
18926
+ },
18927
+ "post": {
18928
+ "operationId": "CreateFeeSponsorship",
18929
+ "responses": {
18930
+ "201": {
18931
+ "description": "Created.",
18932
+ "content": {
18933
+ "application/json": {
18934
+ "schema": {
18935
+ "$ref": "#/components/schemas/FeeSponsorshipResponse"
18936
+ }
18937
+ }
18938
+ }
18939
+ },
18940
+ "400": {
18941
+ "description": "Bad request."
18942
+ },
18943
+ "401": {
18944
+ "description": "Unauthorized."
18945
+ }
18946
+ },
18947
+ "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",
18948
+ "summary": "Create a fee sponsorship.",
18949
+ "tags": ["Fee Sponsorship"],
18950
+ "security": [
18951
+ {
18952
+ "sk": []
18953
+ },
18954
+ {
18955
+ "user_project": []
18956
+ }
18957
+ ],
18958
+ "parameters": [],
18959
+ "requestBody": {
18960
+ "required": true,
18961
+ "content": {
18962
+ "application/json": {
18963
+ "schema": {
18964
+ "$ref": "#/components/schemas/CreateFeeSponsorshipRequest"
18965
+ }
18966
+ }
18967
+ }
18968
+ }
18969
+ }
18970
+ },
18971
+ "/v2/fee-sponsorship/{feeSponsorshipId}": {
18972
+ "get": {
18973
+ "operationId": "GetFeeSponsorship",
18974
+ "responses": {
18975
+ "200": {
18976
+ "description": "Successful response.",
18977
+ "content": {
18978
+ "application/json": {
18979
+ "schema": {
18980
+ "$ref": "#/components/schemas/FeeSponsorshipResponse"
18981
+ }
18982
+ }
18983
+ }
18984
+ },
18985
+ "401": {
18986
+ "description": "Unauthorized."
18987
+ },
18988
+ "404": {
18989
+ "description": "Not found."
18990
+ }
18991
+ },
18992
+ "description": "Retrieves the details of a fee sponsorship.",
18993
+ "summary": "Get a fee sponsorship.",
18994
+ "tags": ["Fee Sponsorship"],
18995
+ "security": [
18996
+ {
18997
+ "sk": []
18998
+ },
18999
+ {
19000
+ "user_project": []
19001
+ }
19002
+ ],
19003
+ "parameters": [
19004
+ {
19005
+ "description": "Specifies the unique fee sponsorship ID (starts with pol_).",
19006
+ "in": "path",
19007
+ "name": "feeSponsorshipId",
19008
+ "required": true,
19009
+ "schema": {
19010
+ "type": "string"
19011
+ },
19012
+ "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
19013
+ }
19014
+ ]
19015
+ },
19016
+ "put": {
19017
+ "operationId": "UpdateFeeSponsorship",
19018
+ "responses": {
19019
+ "200": {
19020
+ "description": "Successful response.",
19021
+ "content": {
19022
+ "application/json": {
19023
+ "schema": {
19024
+ "$ref": "#/components/schemas/FeeSponsorshipResponse"
19025
+ }
19026
+ }
19027
+ }
19028
+ },
19029
+ "400": {
19030
+ "description": "Bad request."
19031
+ },
19032
+ "401": {
19033
+ "description": "Unauthorized."
19034
+ },
19035
+ "404": {
19036
+ "description": "Not found."
19037
+ }
19038
+ },
19039
+ "description": "Updates a fee sponsorship.",
19040
+ "summary": "Update a fee sponsorship.",
19041
+ "tags": ["Fee Sponsorship"],
19042
+ "security": [
19043
+ {
19044
+ "sk": []
19045
+ },
19046
+ {
19047
+ "user_project": []
19048
+ }
19049
+ ],
19050
+ "parameters": [
19051
+ {
19052
+ "description": "Specifies the unique fee sponsorship ID (starts with pol_).",
19053
+ "in": "path",
19054
+ "name": "feeSponsorshipId",
19055
+ "required": true,
19056
+ "schema": {
19057
+ "type": "string"
19058
+ },
19059
+ "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
19060
+ }
19061
+ ],
19062
+ "requestBody": {
19063
+ "required": true,
19064
+ "content": {
19065
+ "application/json": {
19066
+ "schema": {
19067
+ "$ref": "#/components/schemas/UpdateFeeSponsorshipRequest"
19068
+ }
19069
+ }
19070
+ }
19071
+ }
19072
+ },
19073
+ "delete": {
19074
+ "operationId": "DeleteFeeSponsorship",
19075
+ "responses": {
19076
+ "200": {
19077
+ "description": "Successful response.",
19078
+ "content": {
19079
+ "application/json": {
19080
+ "schema": {
19081
+ "$ref": "#/components/schemas/FeeSponsorshipDeleteResponse"
19082
+ }
19083
+ }
19084
+ }
19085
+ },
19086
+ "401": {
19087
+ "description": "Unauthorized."
19088
+ },
19089
+ "404": {
19090
+ "description": "Not found."
19091
+ }
19092
+ },
19093
+ "description": "Deletes a fee sponsorship.\n\nThis is a soft delete - the fee sponsorship is marked as deleted but not removed from the database.",
19094
+ "summary": "Delete a fee sponsorship.",
19095
+ "tags": ["Fee Sponsorship"],
19096
+ "security": [
19097
+ {
19098
+ "sk": []
19099
+ },
19100
+ {
19101
+ "user_project": []
19102
+ }
19103
+ ],
19104
+ "parameters": [
19105
+ {
19106
+ "description": "Specifies the unique fee sponsorship ID (starts with pol_).",
19107
+ "in": "path",
19108
+ "name": "feeSponsorshipId",
19109
+ "required": true,
19110
+ "schema": {
19111
+ "type": "string"
19112
+ },
19113
+ "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
19114
+ }
19115
+ ]
19116
+ }
19117
+ },
19118
+ "/v2/fee-sponsorship/{feeSponsorshipId}/enable": {
19119
+ "put": {
19120
+ "operationId": "EnableFeeSponsorship",
19121
+ "responses": {
19122
+ "200": {
19123
+ "description": "Successful response.",
19124
+ "content": {
19125
+ "application/json": {
19126
+ "schema": {
19127
+ "$ref": "#/components/schemas/FeeSponsorshipResponse"
19128
+ }
19129
+ }
19130
+ }
19131
+ },
19132
+ "401": {
19133
+ "description": "Unauthorized."
19134
+ },
19135
+ "404": {
19136
+ "description": "Not found."
19137
+ }
19138
+ },
19139
+ "description": "Enables a fee sponsorship.",
19140
+ "summary": "Enable a fee sponsorship.",
19141
+ "tags": ["Fee Sponsorship"],
19142
+ "security": [
19143
+ {
19144
+ "sk": []
19145
+ },
19146
+ {
19147
+ "user_project": []
19148
+ }
19149
+ ],
19150
+ "parameters": [
19151
+ {
19152
+ "description": "Specifies the unique fee sponsorship ID (starts with pol_).",
19153
+ "in": "path",
19154
+ "name": "feeSponsorshipId",
19155
+ "required": true,
19156
+ "schema": {
19157
+ "type": "string"
19158
+ },
19159
+ "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
19160
+ }
19161
+ ]
19162
+ }
19163
+ },
19164
+ "/v2/fee-sponsorship/{feeSponsorshipId}/disable": {
19165
+ "put": {
19166
+ "operationId": "DisableFeeSponsorship",
19167
+ "responses": {
19168
+ "200": {
19169
+ "description": "Successful response.",
19170
+ "content": {
19171
+ "application/json": {
19172
+ "schema": {
19173
+ "$ref": "#/components/schemas/FeeSponsorshipResponse"
19174
+ }
19175
+ }
19176
+ }
19177
+ },
19178
+ "401": {
19179
+ "description": "Unauthorized."
19180
+ },
19181
+ "404": {
19182
+ "description": "Not found."
19183
+ }
19184
+ },
19185
+ "description": "Disables a fee sponsorship.",
19186
+ "summary": "Disable a fee sponsorship.",
19187
+ "tags": ["Fee Sponsorship"],
19188
+ "security": [
19189
+ {
19190
+ "sk": []
19191
+ },
19192
+ {
19193
+ "user_project": []
19194
+ }
19195
+ ],
19196
+ "parameters": [
19197
+ {
19198
+ "description": "Specifies the unique fee sponsorship ID (starts with pol_).",
19199
+ "in": "path",
19200
+ "name": "feeSponsorshipId",
19201
+ "required": true,
19202
+ "schema": {
19203
+ "type": "string"
19204
+ },
19205
+ "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65"
19206
+ }
19207
+ ]
19208
+ }
19209
+ },
18527
19210
  "/v2/accounts/backend": {
18528
19211
  "get": {
18529
19212
  "operationId": "listBackendWallets",