Import proof schema
Imports a shared proof schema to a mobile verifier. Proof schemas can be used to create proof requests.
Make an HTTP request on the URL retrieved from the shared proof schema to preview the schema. To import, pass the schema along with the organization ID of the mobile verifier.
Function
- React Native
- iOS
- Android
importProofSchema(
request: ImportProofSchemaRequest
): Promise<string>
func importProofSchema(request: ImportProofSchemaRequestBindingsDto) throws -> String
fun `importProofSchema`(`request`: ImportProofSchemaRequestBindingsDto): kotlin.String
Parameters
- React Native
- iOS
- Android
export interface ImportProofSchemaRequest {
organisationId: string;
schema: ImportProofSchema;
}
export interface ImportProofSchema {
id: string;
createdDate: string;
lastModified: string;
name: string;
organisationId: string;
importedSourceUrl: string;
expireDuration: number;
proofInputSchemas: ImportProofSchemaInputSchema[];
}
public struct ImportProofSchemaRequestBindingsDto {
public var schema: ImportProofSchemaBindingDto
public var organisationId: String
}
public struct ImportProofSchemaBindingDto {
public var id: String
public var createdDate: String
public var lastModified: String
public var name: String
public var organisationId: String
public var importedSourceUrl: String
public var expireDuration: UInt32
public var proofInputSchemas: [ImportProofSchemaInputSchemaBindingDto]
}
data class ImportProofSchemaRequestBindingsDto (
var `schema`: ImportProofSchemaBindingDto,
var `organisationId`: kotlin.String
)
data class ImportProofSchemaBindingDto (
var `id`: kotlin.String,
var `createdDate`: kotlin.String,
var `lastModified`: kotlin.String,
var `name`: kotlin.String,
var `organisationId`: kotlin.String,
var `importedSourceUrl`: kotlin.String,
var `expireDuration`: kotlin.UInt,
var `proofInputSchemas`: List<ImportProofSchemaInputSchemaBindingDto>
)
Fields
-
schema
- Shared proof schema to be imported. -
organisationId
- The organization ID of the mobile verifier.
Return value
The UUID of imported proof schema is returned.