Skip to content

Release 0.1.0-beta.12

Pre-release
Pre-release
Compare
Choose a tag to compare
@hculea hculea released this 01 Aug 09:01
· 77 commits to main since this release
v0.1.0-beta.12
47f0ce9

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 to Put 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)