@@ -161,17 +161,20 @@ func main() {
161161<details open >
162162<summary >Available methods</summary >
163163
164+ ### [ Document] ( docs/sdks/document/README.md )
165+
166+ * [ DocumentDownload] ( docs/sdks/document/README.md#documentdownload ) - Download document (beta)
164167
165168### [ Documents] ( docs/sdks/documents/README.md )
166169
167- * [ Update] ( docs/sdks/documents/README.md#update ) - Update document
168- * [ Find] ( docs/sdks/documents/README.md#find ) - Find documents
169170* [ Get] ( docs/sdks/documents/README.md#get ) - Get document
170- * [ CreateV0] ( docs/sdks/documents/README.md#createv0 ) - Create document
171+ * [ Find] ( docs/sdks/documents/README.md#find ) - Find documents
172+ * [ Update] ( docs/sdks/documents/README.md#update ) - Update document
171173* [ Delete] ( docs/sdks/documents/README.md#delete ) - Delete document
174+ * [ Duplicate] ( docs/sdks/documents/README.md#duplicate ) - Duplicate document
172175* [ Distribute] ( docs/sdks/documents/README.md#distribute ) - Distribute document
173176* [ Redistribute] ( docs/sdks/documents/README.md#redistribute ) - Redistribute document
174- * [ Duplicate ] ( docs/sdks/documents/README.md#duplicate ) - Duplicate document
177+ * [ CreateV0 ] ( docs/sdks/documents/README.md#createv0 ) - Create document
175178
176179#### [ Documents.Fields] ( docs/sdks/documentsfields/README.md )
177180
@@ -196,6 +199,10 @@ func main() {
196199* [ EmbeddingPresignCreateEmbeddingPresignToken] ( docs/sdks/embedding/README.md#embeddingpresigncreateembeddingpresigntoken ) - Create embedding presign token
197200* [ EmbeddingPresignVerifyEmbeddingPresignToken] ( docs/sdks/embedding/README.md#embeddingpresignverifyembeddingpresigntoken ) - Verify embedding presign token
198201
202+ ### [ Template] ( docs/sdks/template/README.md )
203+
204+ * [ TemplateCreateTemplateTemporary] ( docs/sdks/template/README.md#templatecreatetemplatetemporary ) - Create template
205+
199206### [ Templates] ( docs/sdks/templates/README.md )
200207
201208* [ Find] ( docs/sdks/templates/README.md#find ) - Find templates
@@ -244,7 +251,6 @@ package main
244251import (
245252 " context"
246253 sdkgo " github.com/documenso/sdk-go"
247- " github.com/documenso/sdk-go/models/operations"
248254 " github.com/documenso/sdk-go/retry"
249255 " log"
250256 " models/operations"
@@ -258,9 +264,7 @@ func main() {
258264 sdkgo.WithSecurity (os.Getenv (" DOCUMENSO_API_KEY" )),
259265 )
260266
261- res , err := s.Documents .Update (ctx, operations.DocumentUpdateDocumentRequest {
262- DocumentID: 9701.92 ,
263- }, operations.WithRetries (
267+ res , err := s.Documents .Get (ctx, 6150.61 , operations.WithRetries (
264268 retry.Config {
265269 Strategy: " backoff" ,
266270 Backoff: &retry.BackoffStrategy {
@@ -288,7 +292,6 @@ package main
288292import (
289293 " context"
290294 sdkgo " github.com/documenso/sdk-go"
291- " github.com/documenso/sdk-go/models/operations"
292295 " github.com/documenso/sdk-go/retry"
293296 " log"
294297 " os"
@@ -312,9 +315,7 @@ func main() {
312315 sdkgo.WithSecurity (os.Getenv (" DOCUMENSO_API_KEY" )),
313316 )
314317
315- res , err := s.Documents .Update (ctx, operations.DocumentUpdateDocumentRequest {
316- DocumentID: 9701.92 ,
317- })
318+ res , err := s.Documents .Get (ctx, 6150.61 )
318319 if err != nil {
319320 log.Fatal (err)
320321 }
@@ -333,13 +334,14 @@ Handling errors in this SDK should largely match your expectations. All operatio
333334
334335By Default, an API error will return ` apierrors.APIError ` . When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective * Errors* tables in SDK docs for more details on possible error types for each operation.
335336
336- For example, the ` Update ` function may return the following errors:
337+ For example, the ` Get ` function may return the following errors:
337338
338- | Error Type | Status Code | Content Type |
339- | --------------------------------------------------- | ----------- | ---------------- |
340- | apierrors.DocumentUpdateDocumentBadRequestError | 400 | application/json |
341- | apierrors.DocumentUpdateDocumentInternalServerError | 500 | application/json |
342- | apierrors.APIError | 4XX, 5XX | \* /\* |
339+ | Error Type | Status Code | Content Type |
340+ | ---------------------------------------- | ----------- | ---------------- |
341+ | apierrors.DocumentGetBadRequestError | 400 | application/json |
342+ | apierrors.DocumentGetNotFoundError | 404 | application/json |
343+ | apierrors.DocumentGetInternalServerError | 500 | application/json |
344+ | apierrors.APIError | 4XX, 5XX | \* /\* |
343345
344346### Example
345347
@@ -351,7 +353,6 @@ import (
351353 " errors"
352354 sdkgo " github.com/documenso/sdk-go"
353355 " github.com/documenso/sdk-go/models/apierrors"
354- " github.com/documenso/sdk-go/models/operations"
355356 " log"
356357 " os"
357358)
@@ -363,18 +364,22 @@ func main() {
363364 sdkgo.WithSecurity (os.Getenv (" DOCUMENSO_API_KEY" )),
364365 )
365366
366- res , err := s.Documents .Update (ctx, operations.DocumentUpdateDocumentRequest {
367- DocumentID: 9701.92 ,
368- })
367+ res , err := s.Documents .Get (ctx, 6150.61 )
369368 if err != nil {
370369
371- var e *apierrors.DocumentUpdateDocumentBadRequestError
370+ var e *apierrors.DocumentGetBadRequestError
372371 if errors.As (err, &e) {
373372 // handle error
374373 log.Fatal (e.Error ())
375374 }
376375
377- var e *apierrors.DocumentUpdateDocumentInternalServerError
376+ var e *apierrors.DocumentGetNotFoundError
377+ if errors.As (err, &e) {
378+ // handle error
379+ log.Fatal (e.Error ())
380+ }
381+
382+ var e *apierrors.DocumentGetInternalServerError
378383 if errors.As (err, &e) {
379384 // handle error
380385 log.Fatal (e.Error ())
@@ -403,7 +408,6 @@ package main
403408import (
404409 " context"
405410 sdkgo " github.com/documenso/sdk-go"
406- " github.com/documenso/sdk-go/models/operations"
407411 " log"
408412 " os"
409413)
@@ -416,9 +420,7 @@ func main() {
416420 sdkgo.WithSecurity (os.Getenv (" DOCUMENSO_API_KEY" )),
417421 )
418422
419- res , err := s.Documents .Update (ctx, operations.DocumentUpdateDocumentRequest {
420- DocumentID: 9701.92 ,
421- })
423+ res , err := s.Documents .Get (ctx, 6150.61 )
422424 if err != nil {
423425 log.Fatal (err)
424426 }
0 commit comments