@@ -287,6 +287,28 @@ export interface OrganizationInfo {
287287}
288288
289289
290+ export interface PKILocalPendingEnrollment {
291+ certRef : X509CertificateReference
292+ addr : string
293+ submittedOn : number
294+ enrollmentId : string
295+ payload : PkiEnrollmentSubmitPayload
296+ encryptedKey : Uint8Array
297+ encryptedKeyAlgo : string
298+ ciphertext : Uint8Array
299+ }
300+
301+
302+ export interface PkiEnrollmentAnswerPayload {
303+ userId : string
304+ deviceId : string
305+ deviceLabel : string
306+ humanHandle : HumanHandle
307+ profile : UserProfile
308+ rootVerifyKey : Uint8Array
309+ }
310+
311+
290312export interface PkiEnrollmentListItem {
291313 enrollmentId : string
292314 submittedOn : number
@@ -297,6 +319,14 @@ export interface PkiEnrollmentListItem {
297319}
298320
299321
322+ export interface PkiEnrollmentSubmitPayload {
323+ verifyKey : Uint8Array
324+ publicKey : Uint8Array
325+ deviceLabel : string
326+ humanHandle : HumanHandle
327+ }
328+
329+
300330export interface ServerConfig {
301331 userProfileOutsiderAllowed : boolean
302332 activeUsersLimit : ActiveUsersLimit
@@ -2789,6 +2819,20 @@ export type PkiEnrollmentAcceptError =
27892819 | PkiEnrollmentAcceptErrorPkiOperationError
27902820
27912821
2822+ // PkiEnrollmentFinalizeError
2823+ export interface PkiEnrollmentFinalizeErrorInternal {
2824+ tag : "PkiEnrollmentFinalizeErrorInternal"
2825+ error : string
2826+ }
2827+ export interface PkiEnrollmentFinalizeErrorSaveError {
2828+ tag : "PkiEnrollmentFinalizeErrorSaveError"
2829+ error : string
2830+ }
2831+ export type PkiEnrollmentFinalizeError =
2832+ | PkiEnrollmentFinalizeErrorInternal
2833+ | PkiEnrollmentFinalizeErrorSaveError
2834+
2835+
27922836// PkiEnrollmentListError
27932837export interface PkiEnrollmentListErrorAuthorNotAllowed {
27942838 tag : "PkiEnrollmentListErrorAuthorNotAllowed"
@@ -4800,6 +4844,12 @@ export function pathParent(
48004844export function pathSplit (
48014845 path : string
48024846) : Promise < Array < string > >
4847+ export function pkiEnrollmentFinalize (
4848+ config : ClientConfig ,
4849+ save_strategy : DeviceSaveStrategy ,
4850+ accepted : PkiEnrollmentAnswerPayload ,
4851+ local_pending : PKILocalPendingEnrollment
4852+ ) : Promise < Result < AvailableDevice , PkiEnrollmentFinalizeError > >
48034853export function pkiEnrollmentSubmit (
48044854 config : ClientConfig ,
48054855 addr : string ,
0 commit comments