diff --git a/apirequest/document.go b/apirequest/document.go index 92f317d..b5c1191 100644 --- a/apirequest/document.go +++ b/apirequest/document.go @@ -77,6 +77,7 @@ func (request V1DocumentsPOST) Request(v *voki.Voki) (response apiresponse.V1Doc var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{} +// Deprecated: Use V1DocumentsPOST instead type V1DocumentPOST struct { Data struct { Document *multipart.FileHeader `document` @@ -86,6 +87,7 @@ type V1DocumentPOST struct { } } +// Deprecated: Use NewV1DocumentsPOST instead func NewV1DocumentPOST(bucket string, document *multipart.FileHeader) (request V1DocumentPOST, err error) { if bucket == "" { err = fmt.Errorf("NewV1DocumentPOST requires non-nil bucket name")