List proof requests
Returns a list of proof requests. Use the optional parameters to filter and sort.
Function
- React Native
- iOS
- Android
getProofs(proofId: ProofListQuery): Promise<ItemList<ProofListItem>>
func getProofs(query: ProofListQueryBindingDto) throws -> ProofListBindingDto
fun `getProofs`(`query`: ProofListQueryBindingDto): ProofListBindingDto
Parameters
- React Native
- iOS
- Android
export interface ProofListQuery extends ListQuery {
sort?: SortableProofColumnEnum;
sortDirection?: SortDirection;
name?: string;
ids?: string[];
proofStates?: ProofStateEnum[];
proofSchemaIds?: string[];
exact?: ExactProofFilterColumnEnum[];
}
export interface ListQuery {
page: number;
pageSize: number;
organisationId: string;
}
public struct ProofListQueryBindingDto {
public var page: UInt32
public var pageSize: UInt32
public var organisationId: String
public var sort: SortableProofListColumnBinding?
public var sortDirection: SortDirection?
public var name: String?
public var ids: [String]?
public var proofStates: [ProofStateBindingEnum]?
public var proofSchemaIds: [String]?
public var exact: [ProofListQueryExactColumnBindingEnum]?
}
data class ProofListQueryBindingDto (
var `page`: kotlin.UInt,
var `pageSize`: kotlin.UInt,
var `organisationId`: kotlin.String,
var `sort`: SortableProofListColumnBinding?,
var `sortDirection`: SortDirection?,
var `name`: kotlin.String?,
var `ids`: List<kotlin.String>?,
var `proofStates`: List<ProofStateBindingEnum>?,
var `proofSchemaIds`: List<kotlin.String>?,
var `exact`: List<ProofListQueryExactColumnBindingEnum>?
)
Fields
-
page
- Returns a specific page of the results. The first page is0
. -
pageSize
- Specify how many items appear on each page. -
organisationId
- Value from create organization. -
sorting - If no sorting values are provided,
CREATED_DATE
+DESCENDING
are used. If a value is passed forsort
, the default direction becomesASCENDING
.-
sort
- Sort by certain values in the response body.- [
CREATED_DATE
,SCHEMA_NAME
,ISSUER_DID
,STATE
]
- [
-
sortDirection
- Default value =DESCENDING
.- [
ASCENDING
,DESCENDING
]
- [
-
-
name
- Return proof requests whose name starts with this string. Not case-sensitive. -
exact
- Set which filters apply in an exact way.- [
NAME
]
- [
ids
- Specify proof requests to be returned by their UUID.
-
proofStates
- Return only proof requests with the specified state representation in the system. -
proofSchemaIds
- Return only the proof requests associated with the specified proof schema UUIDs.
Return value
- React Native
- iOS
- Android
export interface ItemList<Item> {
totalItems: number;
totalPages: number;
values: Item[];
}
export interface ProofListItem {
id: string;
createdDate: string;
lastModified: string;
issuanceDate: string;
requestedDate?: string;
completedDate?: string;
verifierDid?: string;
exchange: string;
transport: string;
state: ProofStateEnum;
schema: ProofSchemaListItem;
}
public struct ProofListBindingDto {
public var values: [ProofListItemBindingDto]
public var totalPages: UInt64
public var totalItems: UInt64
}
public struct ProofListItemBindingDto {
public var id: String
public var createdDate: String
public var lastModified: String
public var issuanceDate: String
public var requestedDate: String?
public var completedDate: String?
public var verifierDid: String?
public var exchange: String
public var transport: String
public var state: ProofStateBindingEnum
public var schema: GetProofSchemaListItemBindingDto?
}
data class ProofListBindingDto (
var `values`: List<ProofListItemBindingDto>,
var `totalPages`: kotlin.ULong,
var `totalItems`: kotlin.ULong
)
data class ProofListItemBindingDto (
var `id`: kotlin.String,
var `createdDate`: kotlin.String,
var `lastModified`: kotlin.String,
var `issuanceDate`: kotlin.String,
var `requestedDate`: kotlin.String?,
var `completedDate`: kotlin.String?,
var `verifierDid`: kotlin.String?,
var `exchange`: kotlin.String,
var `transport`: kotlin.String,
var `state`: ProofStateBindingEnum,
var `schema`: GetProofSchemaListItemBindingDto?
)
Fields
-
issuanceDate
- When proof request was shared with holder. -
requestedDate
- When proof request state changed fromPENDING
toREQUESTED
. Not supported in all exchange protocols. -
completedDate
- When holder submitted valid proof. -
verifierDid
- DID of the verifier making the request. -
exchange
- Exchange protocol used to make the request. -
transport
- Transport protocol used to transmit proof request.
-
schema
- Credential schema being used to issue the credential. This includes the layout properties of the credential, detailing how the credential should be displayed in the wallet. -
state
- See the proof request states guide.- [
CREATED
,PENDING
,REQUESTED
,ACCEPTED
,REJECTED
,ERROR
]
- [