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. The canonical docs are in services/interfaces/mozIBridgedSyncEngine.idl. 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.

RustAutofill.sys.CreditCard.ccExpMonth

type: number

RustAutofill.sys.CreditCard.ccExpYear

type: number

RustAutofill.sys.CreditCard.ccName

type: string

RustAutofill.sys.CreditCard.ccNumberEnc

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.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.

RustAutofill.sys.UpdatableCreditCardFields.ccExpMonth

type: number

RustAutofill.sys.UpdatableCreditCardFields.ccExpYear

type: number

RustAutofill.sys.UpdatableCreditCardFields.ccName

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccNumberEnc

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccNumberLast4

type: string

RustAutofill.sys.UpdatableCreditCardFields.ccType

type: string

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.decryptString(key, ciphertext)

Decrypt an arbitrary string - key must have come from create_key() and ciphertext must have come from encrypt_string()

Arguments:
  • key (string)

  • ciphertext (string)

Returns:

string

RustAutofill.sys.encryptString(key, cleartext)

Encrypt an arbitrary string - key must have come from create_key()

Arguments:
  • key (string)

  • cleartext (string)

Returns:

string