RustAutofill.sys.mjs

class RustAutofill.sys.Address()

What you get back as an address.

RustAutofill.sys.Address.addressLevel1

type: string

RustAutofill.sys.Address.addressLevel2

type: string

RustAutofill.sys.Address.addressLevel3

type: string

RustAutofill.sys.Address.country

type: string

RustAutofill.sys.Address.email

type: string

RustAutofill.sys.Address.guid

type: string

RustAutofill.sys.Address.name

type: string

RustAutofill.sys.Address.organization

type: string

RustAutofill.sys.Address.postalCode

type: string

RustAutofill.sys.Address.streetAddress

type: string

RustAutofill.sys.Address.tel

type: string

RustAutofill.sys.Address.timeCreated

type: number

RustAutofill.sys.Address.timeLastModified

type: number

RustAutofill.sys.Address.timeLastUsed

type: number

RustAutofill.sys.Address.timesUsed

type: number

class RustAutofill.sys.AddressBulkResultEntry()

A bulk insert result entry, returned per input record by add_many_addresses_with_meta

RustAutofill.sys.AddressBulkResultEntry.Error
RustAutofill.sys.AddressBulkResultEntry.Success
class RustAutofill.sys.AddressBulkTombstoneResultEntry()

Per-record result of add_many_address_tombstones.

RustAutofill.sys.AddressBulkTombstoneResultEntry.Error
RustAutofill.sys.AddressBulkTombstoneResultEntry.Success
class RustAutofill.sys.AddressMeta()

Metadata fields managed internally by the library: the guid, timestamps and local sync state. These are automatically set on add_address and updated on operations like touch and update_address. Not included in UpdatableAddressFields; use add_address_with_meta when importing records that already have metadata.

RustAutofill.sys.AddressMeta.guid

type: string

RustAutofill.sys.AddressMeta.syncChangeCounter

type: number

RustAutofill.sys.AddressMeta.timeCreated

type: number

RustAutofill.sys.AddressMeta.timeLastModified

type: number

RustAutofill.sys.AddressMeta.timeLastUsed

type: number

RustAutofill.sys.AddressMeta.timesUsed

type: number

class RustAutofill.sys.AddressTombstone()

A tombstone for a record deleted locally but not yet uploaded, supplied to add_many_address_tombstones when migrating from another store.

RustAutofill.sys.AddressTombstone.guid

type: string

RustAutofill.sys.AddressTombstone.timeDeleted

type: number

class RustAutofill.sys.AddressesBridgedEngine()

The bridged sync engine for addresses, which wraps the sync15::engine::SyncEngine implemented by this component (see sync15::engine::BridgedEngineWrapper). NOTE: all timestamps here are milliseconds.

RustAutofill.sys.AddressesBridgedEngine.apply(serverModifiedMillis)

apply

Arguments:
  • serverModifiedMillis (number)

Returns:

Promise.<Array.<string>> – }

RustAutofill.sys.AddressesBridgedEngine.ensureCurrentSyncId(newSyncId)

ensureCurrentSyncId

Arguments:
  • newSyncId (string)

Returns:

Promise.<string> – }

RustAutofill.sys.AddressesBridgedEngine.lastSync()

lastSync

Returns:

Promise.<number> – }

RustAutofill.sys.AddressesBridgedEngine.reset()

reset

RustAutofill.sys.AddressesBridgedEngine.resetSyncId()

resetSyncId

Returns:

Promise.<string> – }

RustAutofill.sys.AddressesBridgedEngine.setUploaded(newTimestamp, uploadedIds)

setUploaded

Arguments:
  • newTimestamp (number)

  • uploadedIds (Array.<string>)

RustAutofill.sys.AddressesBridgedEngine.storeIncoming(incomingEnvelopesAsJson)

storeIncoming

Arguments:
  • incomingEnvelopesAsJson (Array.<string>)

RustAutofill.sys.AddressesBridgedEngine.syncFinished()

syncFinished

RustAutofill.sys.AddressesBridgedEngine.syncId()

syncId

Returns:

Promise.<?string> – }

RustAutofill.sys.AddressesBridgedEngine.syncStarted()

syncStarted

RustAutofill.sys.AddressesBridgedEngine.wipe()

wipe

class RustAutofill.sys.CreditCard()

What you get back as a credit-card. The number comes back decrypted; it is empty for a scrubbed card or one saved without a number. A number the key cannot read fails the read.

RustAutofill.sys.CreditCard.ccCvv

type: string

RustAutofill.sys.CreditCard.ccExpMonth

type: number

RustAutofill.sys.CreditCard.ccExpYear

type: number

RustAutofill.sys.CreditCard.ccName

type: string

RustAutofill.sys.CreditCard.ccNumber

type: string

RustAutofill.sys.CreditCard.ccNumberLast4

type: string

RustAutofill.sys.CreditCard.ccType

type: string

RustAutofill.sys.CreditCard.guid

type: string

RustAutofill.sys.CreditCard.timeCreated

type: number

RustAutofill.sys.CreditCard.timeLastModified

type: number

RustAutofill.sys.CreditCard.timeLastUsed

type: number

RustAutofill.sys.CreditCard.timesUsed

type: number

class RustAutofill.sys.CreditCardBulkResultEntry()

A bulk insert result entry, returned per input record by add_many_credit_cards_with_meta

RustAutofill.sys.CreditCardBulkResultEntry.Error
RustAutofill.sys.CreditCardBulkResultEntry.Success
class RustAutofill.sys.CreditCardBulkTombstoneResultEntry()

Per-record result of add_many_credit_card_tombstones.

RustAutofill.sys.CreditCardBulkTombstoneResultEntry.Error
RustAutofill.sys.CreditCardBulkTombstoneResultEntry.Success
class RustAutofill.sys.CreditCardCandidate()

A credit card stored in the database, minus the encrypted fields.

Reading these never needs the encryption key, so consumers listing cards by name, last four digits and expiry can do so without forcing the user to authenticate. See list_credit_card_candidates().

RustAutofill.sys.CreditCardCandidate.ccExpMonth

type: number

RustAutofill.sys.CreditCardCandidate.ccExpYear

type: number

RustAutofill.sys.CreditCardCandidate.ccName

type: string

RustAutofill.sys.CreditCardCandidate.ccNumberLast4

type: string

RustAutofill.sys.CreditCardCandidate.ccType

type: string

RustAutofill.sys.CreditCardCandidate.guid

type: string

RustAutofill.sys.CreditCardCandidate.hasCvv

type: boolean

RustAutofill.sys.CreditCardCandidate.timeCreated

type: number

RustAutofill.sys.CreditCardCandidate.timeLastModified

type: number

RustAutofill.sys.CreditCardCandidate.timeLastUsed

type: number

RustAutofill.sys.CreditCardCandidate.timesUsed

type: number

class RustAutofill.sys.CreditCardMeta()

Metadata fields managed internally by the library: the guid, timestamps and local sync state. These are automatically set on add_credit_card and updated on operations like touch and update_credit_card. Not included in UpdatableCreditCardFields; use add_credit_card_with_meta when importing records that already have metadata.

RustAutofill.sys.CreditCardMeta.guid

type: string

RustAutofill.sys.CreditCardMeta.syncChangeCounter

type: number

RustAutofill.sys.CreditCardMeta.timeCreated

type: number

RustAutofill.sys.CreditCardMeta.timeLastModified

type: number

RustAutofill.sys.CreditCardMeta.timeLastUsed

type: number

RustAutofill.sys.CreditCardMeta.timesUsed

type: number

class RustAutofill.sys.CreditCardTombstone()

A tombstone for a record deleted locally but not yet uploaded, supplied to add_many_credit_card_tombstones when migrating from another store.

RustAutofill.sys.CreditCardTombstone.guid

type: string

RustAutofill.sys.CreditCardTombstone.timeDeleted

type: number

class RustAutofill.sys.CreditCardsBridgedEngine()

The bridged sync engine for credit cards, which wraps the sync15::engine::SyncEngine implemented by this component (see sync15::engine::BridgedEngineWrapper). NOTE: all timestamps here are milliseconds.

RustAutofill.sys.CreditCardsBridgedEngine.apply(serverModifiedMillis)

apply

Arguments:
  • serverModifiedMillis (number)

Returns:

Promise.<Array.<string>> – }

RustAutofill.sys.CreditCardsBridgedEngine.ensureCurrentSyncId(newSyncId)

ensureCurrentSyncId

Arguments:
  • newSyncId (string)

Returns:

Promise.<string> – }

RustAutofill.sys.CreditCardsBridgedEngine.lastSync()

lastSync

Returns:

Promise.<number> – }

RustAutofill.sys.CreditCardsBridgedEngine.reset()

reset

RustAutofill.sys.CreditCardsBridgedEngine.resetSyncId()

resetSyncId

Returns:

Promise.<string> – }

RustAutofill.sys.CreditCardsBridgedEngine.setUploaded(newTimestamp, uploadedIds)

setUploaded

Arguments:
  • newTimestamp (number)

  • uploadedIds (Array.<string>)

RustAutofill.sys.CreditCardsBridgedEngine.storeIncoming(incomingEnvelopesAsJson)

storeIncoming

Arguments:
  • incomingEnvelopesAsJson (Array.<string>)

RustAutofill.sys.CreditCardsBridgedEngine.syncFinished()

syncFinished

RustAutofill.sys.CreditCardsBridgedEngine.syncId()

syncId

Returns:

Promise.<?string> – }

RustAutofill.sys.CreditCardsBridgedEngine.syncStarted()

syncStarted

RustAutofill.sys.CreditCardsBridgedEngine.wipe()

wipe

class RustAutofill.sys.CreditCardsDeletionMetrics()

Metrics tracking scrubbing of credit cards that cannot be decrypted, see

RustAutofill.sys.CreditCardsDeletionMetrics.totalScrubbedRecords

type: number

class RustAutofill.sys.CryptoError()

CryptoError

class RustAutofill.sys.InterruptedError()

InterruptedError

class RustAutofill.sys.NoSuchRecord()

NoSuchRecord

class RustAutofill.sys.Passport()

What you get back as a passport.

RustAutofill.sys.Passport.country

type: string

RustAutofill.sys.Passport.expiryDateDay

type: number

RustAutofill.sys.Passport.expiryDateMonth

type: number

RustAutofill.sys.Passport.expiryDateYear

type: number

RustAutofill.sys.Passport.guid

type: string

RustAutofill.sys.Passport.issueDateDay

type: number

RustAutofill.sys.Passport.issueDateMonth

type: number

RustAutofill.sys.Passport.issueDateYear

type: number

RustAutofill.sys.Passport.name

type: string

RustAutofill.sys.Passport.passportNumber

type: string

RustAutofill.sys.Passport.timeCreated

type: number

RustAutofill.sys.Passport.timeLastModified

type: number

RustAutofill.sys.Passport.timeLastUsed

type: number

RustAutofill.sys.Passport.timesUsed

type: number

class RustAutofill.sys.SqlError()

SqlError

class RustAutofill.sys.UnexpectedAutofillApiError()

UnexpectedAutofillApiError

class RustAutofill.sys.UpdatableAddressFields()

What you pass to create or update an address.

RustAutofill.sys.UpdatableAddressFields.addressLevel1

type: string

RustAutofill.sys.UpdatableAddressFields.addressLevel2

type: string

RustAutofill.sys.UpdatableAddressFields.addressLevel3

type: string

RustAutofill.sys.UpdatableAddressFields.country

type: string

RustAutofill.sys.UpdatableAddressFields.email

type: string

RustAutofill.sys.UpdatableAddressFields.name

type: string

RustAutofill.sys.UpdatableAddressFields.organization

type: string

RustAutofill.sys.UpdatableAddressFields.postalCode

type: string

RustAutofill.sys.UpdatableAddressFields.streetAddress

type: string

RustAutofill.sys.UpdatableAddressFields.tel

type: string

class RustAutofill.sys.UpdatableAddressFieldsWithMeta()

An address together with its metadata, passed to add_address_with_meta and update_address_with_meta when importing a record from another store.

RustAutofill.sys.UpdatableAddressFieldsWithMeta.fields

type: UpdatableAddressFields

RustAutofill.sys.UpdatableAddressFieldsWithMeta.meta

type: AddressMeta

class RustAutofill.sys.UpdatableCreditCardFields()

What you pass to create or update a credit-card. The number is given in cleartext; the store encrypts it and derives the last-4 digits itself.

RustAutofill.sys.UpdatableCreditCardFields.ccCvv

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccExpMonth

type: number

RustAutofill.sys.UpdatableCreditCardFields.ccExpYear

type: number

RustAutofill.sys.UpdatableCreditCardFields.ccName

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccNumber

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccType

type: string

class RustAutofill.sys.UpdatableCreditCardFieldsWithMeta()

A credit card together with its metadata, passed to add_credit_card_with_meta and update_credit_card_with_meta when importing a record from another store.

RustAutofill.sys.UpdatableCreditCardFieldsWithMeta.fields

type: UpdatableCreditCardFields

RustAutofill.sys.UpdatableCreditCardFieldsWithMeta.meta

type: CreditCardMeta

class RustAutofill.sys.UpdatablePassportFields()

What you pass to create or update a passport.

RustAutofill.sys.UpdatablePassportFields.country

type: string

RustAutofill.sys.UpdatablePassportFields.expiryDateDay

type: number

RustAutofill.sys.UpdatablePassportFields.expiryDateMonth

type: number

RustAutofill.sys.UpdatablePassportFields.expiryDateYear

type: number

RustAutofill.sys.UpdatablePassportFields.issueDateDay

type: number

RustAutofill.sys.UpdatablePassportFields.issueDateMonth

type: number

RustAutofill.sys.UpdatablePassportFields.issueDateYear

type: number

RustAutofill.sys.UpdatablePassportFields.name

type: string

RustAutofill.sys.UpdatablePassportFields.passportNumber

type: string

RustAutofill.sys.createAutofillKey()

Create a new, random, encryption key.

Returns:

string

RustAutofill.sys.createAutofillStoreWithNssKeymanager(path, primaryPasswordAuthenticator)

createAutofillStoreWithNssKeymanager

Arguments:
  • path (string)

  • primaryPasswordAuthenticator (PrimaryPasswordAuthenticator)

Returns:

Promise.<Store> – }

RustAutofill.sys.createAutofillStoreWithStaticKeyManager(path, key)

Create a Store with StaticKeyManager by passing in a db path and a static key

Arguments:
  • path (string)

  • key (string)

Returns:

Promise.<Store> – }