Release 0.1.0-beta.12
Pre-release
Pre-release
This release includes:
- Support for reading and writing OTP field information such as the TOTP code and seed, through the Item API.
- The
Update
operation is renamed toPut
to create more realistic expectation with regard to the effect of the operation. - The item creation operation now takes as input
ItemCreateParams
. - Support for a few more field types: Phone, Url, CreditCardType.
NOTE This release contains breaking changes:
Wherever you were using
updatedItem, err := client.Items.Update(context.Background(), newItem)
you must now use
updatedItem, err := client.Items.Put(context.Background(), newItem)
and wherever you were using
item := onepassword.Item{
ID: "",
Title: "",
Category: "",
VaultID: "",
Fields: nil,
Sections: nil,
}
createdItem, err := client.Items.Create(context.Background(), item)
you must now use
params := onepassword.ItemCreateParams {
Title: "",
Category: "",
VaultID: "",
Fields: nil,
Sections: nil,
}
createdItem, err := client.Items.Create(context.Background(), params)