Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions apps/sv/src/main/openapi/sv-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ paths:
application/json:
schema:
"$ref": "../../../../common/src/main/openapi/common-internal.yaml#/components/schemas/ListValidatorLicensesResponse"
/v0/admin/validator/licenses/grant:
post:
tags: [sv]
x-jvm-package: sv_admin
operationId: "grantValidatorLicense"
requestBody:
required: true
content:
application/json:
schema:
"$ref": "#/components/schemas/GrantValidatorLicenseRequest"
responses:
"200":
description: ok
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"
/v0/admin/domain/cometbft/status:
get:
tags: [sv]
Expand Down Expand Up @@ -1131,3 +1147,11 @@ components:
$ref: "#/components/schemas/DomainDataSnapshot"
participant_users:
"$ref": "../../../../common/src/main/openapi/common-internal.yaml#/components/schemas/ParticipantUsersData"

GrantValidatorLicenseRequest:
type: object
required:
- party_id
properties:
party_id:
type: string
178 changes: 178 additions & 0 deletions apps/wallet/src/main/openapi/wallet-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,143 @@ paths:
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"

/v0/wallet/minting-delegation-proposals:
get:
tags: [wallet]
x-jvm-package: wallet
operationId: "listMintingDelegationProposals"
description: |
List all MintingDelegationProposal contracts where the user is the delegate.
parameters:
- name: "after"
description: |
A `next_page_token` from a prior response; if absent, return the first page.
in: "query"
required: false
schema:
type: integer
format: int64
- name: "limit"
description: Maximum number of elements to return, 1000 by default.
in: "query"
required: false
schema:
type: integer
format: int32
responses:
"200":
description: ok
content:
application/json:
schema:
"$ref": "#/components/schemas/ListMintingDelegationProposalsResponse"
"404":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/404"
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"

/v0/wallet/minting-delegation-proposals/{contract_id}/accept:
post:
tags: [wallet]
x-jvm-package: wallet
operationId: "acceptMintingDelegationProposal"
description: |
As the delegate, accept a MintingDelegationProposal, creating a MintingDelegation contract.
parameters:
- in: path
name: contract_id
required: true
schema:
type: string
responses:
"200":
description: ok
content:
application/json:
schema:
"$ref": "#/components/schemas/AcceptMintingDelegationProposalResponse"
"404":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/404"
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"

/v0/wallet/minting-delegation-proposals/{contract_id}/reject:
post:
tags: [wallet]
x-jvm-package: wallet
operationId: "rejectMintingDelegationProposal"
description: |
As the delegate, reject a MintingDelegationProposal.
parameters:
- in: path
name: contract_id
required: true
schema:
type: string
responses:
"200":
description: ok
"404":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/404"
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"

/v0/wallet/minting-delegations:
get:
tags: [wallet]
x-jvm-package: wallet
operationId: "listMintingDelegations"
description: |
List all MintingDelegation contracts where the user is the delegate.
parameters:
- name: "after"
description: |
A `next_page_token` from a prior response; if absent, return the first page.
in: "query"
required: false
schema:
type: integer
format: int64
- name: "limit"
description: Maximum number of elements to return, 1000 by default.
in: "query"
required: false
schema:
type: integer
format: int32
responses:
"200":
description: ok
content:
application/json:
schema:
"$ref": "#/components/schemas/ListMintingDelegationsResponse"
"404":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/404"
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"

/v0/wallet/minting-delegations/{contract_id}/reject:
post:
tags: [wallet]
x-jvm-package: wallet
operationId: "rejectMintingDelegation"
description: |
As the delegate, reject/terminate a MintingDelegation contract.
parameters:
- in: path
name: contract_id
required: true
schema:
type: string
responses:
"200":
description: ok
"404":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/404"
"500":
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/500"


components:
schemas:
Expand Down Expand Up @@ -1612,3 +1749,44 @@ components:
type: object
additionalProperties:
type: string

ListMintingDelegationProposalsResponse:
type: object
required:
- proposals
properties:
proposals:
type: array
items:
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/schemas/Contract"
next_page_token:
type: integer
format: int64
description: |
When requesting the next page of results, pass this as URL query parameter `after`.
If absent or `null`, there are no more pages.

AcceptMintingDelegationProposalResponse:
type: object
required:
- contract_id
properties:
contract_id:
type: string
description: Contract ID of the created MintingDelegation

ListMintingDelegationsResponse:
type: object
required:
- delegations
properties:
delegations:
type: array
items:
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/schemas/Contract"
next_page_token:
type: integer
format: int64
description: |
When requesting the next page of results, pass this as URL query parameter `after`.
If absent or `null`, there are no more pages.