List proof schemas
Returns a list of proof schemas. Use the optional parameters to filter and sort.
Function
- React Native
- iOS
- Android
getProofSchemas(
query: ProofSchemaListQuery
): Promise<ItemList<ProofSchemaListItem>>
func getProofSchemas(filters: ListProofSchamasFiltersBindingDto) throws -> ProofSchemaListBindingDto
fun `getProofSchemas`(`filters`: ListProofSchamasFiltersBindingDto): ProofSchemaListBindingDto
Parameters
- React Native
- iOS
- Android
export interface ProofSchemaListQuery extends ListQuery {
sort?: SortableProofSchemasColumnEnum;
sortDirection?: SortDirection;
name?: string;
exact?: ExactProofSchemaFilterColumnEnum[];
ids?: string[];
}
export interface ListQuery {
page: number;
pageSize: number;
organisationId: string;
}
public struct ListProofSchamasFiltersBindingDto {
public var page: UInt32
public var pageSize: UInt32
public var sort: SortableProofSchemaColumnBinding?
public var sortDirection: SortDirection?
public var organisationId: String
public var name: String?
public var exact: [ProofSchemaListQueryExactColumnBinding]?
public var ids: [String]?
}
data class ListProofSchamasFiltersBindingDto (
var `page`: kotlin.UInt,
var `pageSize`: kotlin.UInt,
var `sort`: SortableProofSchemaColumnBinding?,
var `sortDirection`: SortDirection?,
var `organisationId`: kotlin.String,
var `name`: kotlin.String?,
var `exact`: List<ProofSchemaListQueryExactColumnBinding>?,
var `ids`: List<kotlin.String>?
)
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 schemas whose name starts with this string. Not case-sensitive. -
exact
- Set which filters apply in an exact way.- [
NAME
]
- [
ids
- Specify proof schemas to be returned by their UUID.
Return value
- React Native
- iOS
- Android
export interface ItemList<Item> {
totalItems: number;
totalPages: number;
values: Item[];
}
export interface ProofSchemaListItem {
id: string;
createdDate: string;
lastModified: string;
deletedAt: string;
name: string;
expireDuration: number;
}
public struct ProofSchemaListBindingDto {
public var values: [GetProofSchemaListItemBindingDto]
public var totalPages: UInt64
public var totalItems: UInt64
}
public struct GetProofSchemaListItemBindingDto {
public var id: String
public var createdDate: String
public var lastModified: String
public var deletedAt: String?
public var name: String
public var expireDuration: UInt32
}
data class ProofSchemaListBindingDto (
var `values`: List<GetProofSchemaListItemBindingDto>,
var `totalPages`: kotlin.ULong,
var `totalItems`: kotlin.ULong
)
data class GetProofSchemaListItemBindingDto (
var `id`: kotlin.String,
var `createdDate`: kotlin.String,
var `lastModified`: kotlin.String,
var `deletedAt`: kotlin.String?,
var `name`: kotlin.String,
var `expireDuration`: kotlin.UInt
)
Fields
expireDuration
- The length of storage of received proofs, in seconds. After the defined duration, the received proof and its data are deleted from the system. If 0, the proofs received when using this proof schema will not be deleted.