List credential schemas
Returns a list of credential schemas. Use the optional parameters to filter and sort.
See the credential schemas guide for more information.
Function
- React Native
- iOS
- Android
getCredentialSchemas(query: CredentialSchemaListQuery): Promise<ItemList<CredentialSchema>>
func getCredentialSchemas(query: CredentialSchemaListQueryBindingDto) throws -> CredentialSchemaListBindingDto
fun `getCredentialSchemas`(`query`: CredentialSchemaListQueryBindingDto): CredentialSchemaListBindingDto
Parameters
- React Native
- iOS
- Android
export interface CredentialSchemaListQuery extends ListQuery {
sort?: SortableCredentialSchemaColumnEnum;
sortDirection?: SortDirection;
name?: string;
ids?: string[];
exact?: ExactCredentialSchemaFilterColumnEnum[];
include?: CredentialSchemaListIncludeEntityType[];
}
export interface ListQuery {
page: number;
pageSize: number;
organisationId: string;
}
public struct CredentialSchemaListQueryBindingDto {
public var page: UInt32
public var pageSize: UInt32
public var organisationId: String
public var sort: SortableCredentialSchemaColumnBindingEnum?
public var sortDirection: SortDirection?
public var name: String?
public var ids: [String]?
public var exact: [CredentialSchemaListQueryExactColumnBindingEnum]?
public var include: [CredentialSchemaListIncludeEntityType]?
}
data class CredentialSchemaListQueryBindingDto (
var `page`: kotlin.UInt,
var `pageSize`: kotlin.UInt,
var `organisationId`: kotlin.String,
var `sort`: SortableCredentialSchemaColumnBindingEnum?,
var `sortDirection`: SortDirection?,
var `name`: kotlin.String?,
var `ids`: List<kotlin.String>?,
var `exact`: List<CredentialSchemaListQueryExactColumnBindingEnum>?,
var `include`: List<CredentialSchemaListIncludeEntityType>?
)
-
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 credentials whose credential schema's name starts with this string. Not case-sensitive.
ids
- Specify credential schemas to be returned.
-
exact
- Set which filters apply in an exact way.- [
NAME
]
- [
-
include
- Include certain values in the return. Supported values:LAYOUT_PROPERTIES
: return the design elements of credentials, so credentials can be displayed as intended
Return value
- React Native
- iOS
- Android
export interface ItemList<Item> {
totalItems: number;
totalPages: number;
values: Item[];
}
export interface CredentialSchema {
id: string;
createdDate: string;
lastModified: string;
name: string;
format: string;
revocationMethod: string;
walletStorageType?: WalletStorageType;
schemaId: string;
schemaType: CredentialSchemaType;
layoutType?: LayoutType;
}
public struct CredentialSchemaListBindingDto {
public var values: [CredentialSchemaBindingDto]
public var totalPages: UInt64
public var totalItems: UInt64
}
public struct CredentialSchemaBindingDto {
public var id: String
public var createdDate: String
public var lastModified: String
public var name: String
public var format: String
public var revocationMethod: String
public var walletStorageType: WalletStorageTypeBindingEnum?
public var schemaId: String
public var schemaType: CredentialSchemaTypeBindingEnum
public var layoutType: LayoutTypeBindingEnum?
}
data class CredentialSchemaListBindingDto (
var `values`: List<CredentialSchemaBindingDto>,
var `totalPages`: ULong,
var `totalItems`: ULong
)
data class CredentialSchemaBindingDto (
var `id`: String,
var `createdDate`: String,
var `lastModified`: String,
var `name`: String,
var `format`: String,
var `revocationMethod`: String,
var `walletStorageType`: WalletStorageTypeBindingEnum?,
var `schemaId`: String,
var `schemaType`: CredentialSchemaTypeBindingEnum,
var `layoutType`: LayoutTypeBindingEnum?
)
Fields
-
format
- Credential format of the credentials issued using this schema. -
revocationMethod
- Revocation method of credentials issued using this schema, if any. -
walletStorageType
- Wallet storage type requested by the verifier, if any.
credentialSchema
- See the credentialSchema guide.
layoutType
- Represents the visual structure of the credential in the wallet. The details of the design of the credential (for credentials issued by Procivis One) are found in theCredentialSchemaDetail
of the get credential details function. For more information on the display properties of Procivis One credentials, see the credentials designer guide.