Skip to content

Commit e65e6c7

Browse files
authored
Merge pull request #1 from midday-ai/speakeasy-sdk-regen-1749687693
chore: 🐝 Update SDK - Generate 0.1.0
2 parents 8c61255 + 53f6b1d commit e65e6c7

File tree

135 files changed

+6049
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+6049
-508
lines changed

.devcontainer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
<div align="center">
3+
<a href="https://codespaces.new/midday-ai/midday-go.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
27
> **Remember to shutdown a GitHub Codespace when it is not in use!**
38
49
# Dev Containers Quick Start

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/go
33
{
44
"name": "Go",
5-
"image": "mcr.microsoft.com/devcontainers/go:1-1.20-bullseye",
5+
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bullseye",
66
// Features to add to the dev container. More info: https://containers.dev/features.
77
// "features": {},
88
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.speakeasy/gen.lock

Lines changed: 151 additions & 31 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ generation:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
2222
sdkHooksConfigAccess: true
23+
tests:
24+
generateTests: true
25+
generateNewTests: false
26+
skipResponseBodyAssertions: false
2327
go:
24-
version: 0.0.1
28+
version: 0.1.0
2529
additionalDependencies: {}
2630
allowUnknownFieldsInWeakUnions: false
31+
baseErrorName: MiddayError
2732
clientServerStatusCodesAsErrors: true
2833
defaultErrorName: APIError
2934
envVarPrefix: MIDDAY
@@ -39,6 +44,8 @@ go:
3944
inputModelSuffix: input
4045
maxMethodParams: 4
4146
methodArguments: require-security-and-request
47+
modulePath: ""
4248
outputModelSuffix: output
4349
packageName: github.com/midday-ai/midday-go
4450
responseFormat: envelope-http
51+
sdkPackageName: ""

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
speakeasyVersion: 1.554.1
1+
speakeasyVersion: 1.606.0
22
sources:
33
Midday-OAS:
44
sourceNamespace: midday-api
5-
sourceRevisionDigest: sha256:f2ea4d2b25b5ec58c8e5426028728f1c20a7bbea105679e6e0b452d37fe3e18f
6-
sourceBlobDigest: sha256:a0e6eecb2e29484d1407a8a6ea72ceec83b3c921d52872eddf62e79fc62721b7
5+
sourceRevisionDigest: sha256:f914bc30ad4ad47a5888b409e12b3dde9ccf093bf10ea24be3416a97ab950e4e
6+
sourceBlobDigest: sha256:e4822e044b4565fa816fe6cdd727bc82ccbac8008057a1da0e440106d8c3a87a
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1749687693
910
targets:
1011
midday:
1112
source: Midday-OAS
1213
sourceNamespace: midday-api
13-
sourceRevisionDigest: sha256:f2ea4d2b25b5ec58c8e5426028728f1c20a7bbea105679e6e0b452d37fe3e18f
14-
sourceBlobDigest: sha256:a0e6eecb2e29484d1407a8a6ea72ceec83b3c921d52872eddf62e79fc62721b7
14+
sourceRevisionDigest: sha256:f914bc30ad4ad47a5888b409e12b3dde9ccf093bf10ea24be3416a97ab950e4e
15+
sourceBlobDigest: sha256:e4822e044b4565fa816fe6cdd727bc82ccbac8008057a1da0e440106d8c3a87a
1516
codeSamplesNamespace: midday-oas-go-code-samples
16-
codeSamplesRevisionDigest: sha256:3e70b434d892d46d6244da13f9e817f15f2e5266610613ef985981e1ad3908da
17+
codeSamplesRevisionDigest: sha256:c37ffda8783f0a2730b2ec00b348ad1050a6a4e106c6422a080115f6cbaf6ffc
1718
workflow:
1819
workflowVersion: 1.0.0
1920
speakeasyVersion: latest

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
Midday is a platform for Invoicing, Time tracking, File reconciliation, Storage, Financial Overview & your own Assistant.
1111
<!-- End Summary [summary] -->
1212

13+
<!-- Start Summary [summary] -->
14+
## Summary
15+
16+
Midday API: Midday is a platform for Invoicing, Time tracking, File reconciliation, Storage, Financial Overview & your own Assistant.
17+
<!-- End Summary [summary] -->
18+
1319
<!-- Start Table of Contents [toc] -->
1420
## Table of Contents
1521
<!-- $toc-max-depth=2 -->
16-
* [github.com/midday-ai/midday-go](#githubcommidday-aimidday-go)
1722
* [SDK Installation](#sdk-installation)
1823
* [SDK Example Usage](#sdk-example-usage)
1924
* [Authentication](#authentication)
@@ -272,13 +277,13 @@ func main() {
272277
* [Update](docs/sdks/teams/README.md#update) - Update a team
273278
* [Members](docs/sdks/teams/README.md#members) - List all team members
274279

275-
### [Tracker](docs/sdks/tracker/README.md)
276-
277-
* [Delete](docs/sdks/tracker/README.md#delete) - Delete a tracker entry
278-
279280
### [TrackerEntries](docs/sdks/trackerentries/README.md)
280281

281282
* [List](docs/sdks/trackerentries/README.md#list) - List all tracker entries
283+
* [Create](docs/sdks/trackerentries/README.md#create) - Create a tracker entry
284+
* [CreateBulk](docs/sdks/trackerentries/README.md#createbulk) - Create multiple tracker entries
285+
* [Delete](docs/sdks/trackerentries/README.md#delete) - Delete a tracker entry
286+
* [Update](docs/sdks/trackerentries/README.md#update) - Update a tracker entry
282287

283288
### [TrackerProjects](docs/sdks/trackerprojects/README.md)
284289

@@ -288,6 +293,13 @@ func main() {
288293
* [Delete](docs/sdks/trackerprojects/README.md#delete) - Delete a tracker project
289294
* [Update](docs/sdks/trackerprojects/README.md#update) - Update a tracker project
290295

296+
### [TrackerTimer](docs/sdks/trackertimer/README.md)
297+
298+
* [StartTimer](docs/sdks/trackertimer/README.md#starttimer) - Start a timer
299+
* [StopTimer](docs/sdks/trackertimer/README.md#stoptimer) - Stop a timer
300+
* [GetCurrentTimer](docs/sdks/trackertimer/README.md#getcurrenttimer) - Get current timer
301+
* [GetTimerStatus](docs/sdks/trackertimer/README.md#gettimerstatus) - Get timer status
302+
291303
### [Transactions](docs/sdks/transactions/README.md)
292304

293305
* [List](docs/sdks/transactions/README.md#list) - List all transactions
@@ -672,12 +684,13 @@ The built-in `net/http` client satisfies this interface and a default client bas
672684
import (
673685
"net/http"
674686
"time"
675-
"github.com/myorg/your-go-sdk"
687+
688+
"github.com/midday-ai/midday-go"
676689
)
677690

678691
var (
679692
httpClient = &http.Client{Timeout: 30 * time.Second}
680-
sdkClient = sdk.New(sdk.WithClient(httpClient))
693+
sdkClient = middaygo.New(middaygo.WithClient(httpClient))
681694
)
682695
```
683696

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2025-08-21 00:20:05
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.606.0 (2.686.7) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [go v0.1.0] .
10+
### Releases
11+
- [Go v0.1.0] https://github.com/midday-ai/midday-go/releases/tag/v0.1.0 - .

bankaccounts.go

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,13 @@ func (s *BankAccounts) List(ctx context.Context, enabled *bool, manual *bool, op
122122
"504",
123123
},
124124
}, func() (*http.Response, error) {
125-
if req.Body != nil {
125+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
126126
copyBody, err := req.GetBody()
127+
127128
if err != nil {
128129
return nil, err
129130
}
131+
130132
req.Body = copyBody
131133
}
132134

@@ -333,11 +335,13 @@ func (s *BankAccounts) Create(ctx context.Context, request *operations.CreateBan
333335
"504",
334336
},
335337
}, func() (*http.Response, error) {
336-
if req.Body != nil {
338+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
337339
copyBody, err := req.GetBody()
340+
338341
if err != nil {
339342
return nil, err
340343
}
344+
341345
req.Body = copyBody
342346
}
343347

@@ -541,11 +545,13 @@ func (s *BankAccounts) Get(ctx context.Context, id string, opts ...operations.Op
541545
"504",
542546
},
543547
}, func() (*http.Response, error) {
544-
if req.Body != nil {
548+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
545549
copyBody, err := req.GetBody()
550+
546551
if err != nil {
547552
return nil, err
548553
}
554+
549555
req.Body = copyBody
550556
}
551557

@@ -749,11 +755,13 @@ func (s *BankAccounts) Delete(ctx context.Context, id string, opts ...operations
749755
"504",
750756
},
751757
}, func() (*http.Response, error) {
752-
if req.Body != nil {
758+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
753759
copyBody, err := req.GetBody()
760+
754761
if err != nil {
755762
return nil, err
756763
}
764+
757765
req.Body = copyBody
758766
}
759767

@@ -965,11 +973,13 @@ func (s *BankAccounts) Update(ctx context.Context, id string, requestBody *opera
965973
"504",
966974
},
967975
}, func() (*http.Response, error) {
968-
if req.Body != nil {
976+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
969977
copyBody, err := req.GetBody()
978+
970979
if err != nil {
971980
return nil, err
972981
}
982+
973983
req.Body = copyBody
974984
}
975985

customers.go

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,13 @@ func (s *Customers) List(ctx context.Context, q *string, sort []string, cursor *
124124
"504",
125125
},
126126
}, func() (*http.Response, error) {
127-
if req.Body != nil {
127+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
128128
copyBody, err := req.GetBody()
129+
129130
if err != nil {
130131
return nil, err
131132
}
133+
132134
req.Body = copyBody
133135
}
134136

@@ -335,11 +337,13 @@ func (s *Customers) Create(ctx context.Context, request *operations.CreateCustom
335337
"504",
336338
},
337339
}, func() (*http.Response, error) {
338-
if req.Body != nil {
340+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
339341
copyBody, err := req.GetBody()
342+
340343
if err != nil {
341344
return nil, err
342345
}
346+
343347
req.Body = copyBody
344348
}
345349

@@ -543,11 +547,13 @@ func (s *Customers) Get(ctx context.Context, id string, opts ...operations.Optio
543547
"504",
544548
},
545549
}, func() (*http.Response, error) {
546-
if req.Body != nil {
550+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
547551
copyBody, err := req.GetBody()
552+
548553
if err != nil {
549554
return nil, err
550555
}
556+
551557
req.Body = copyBody
552558
}
553559

@@ -751,11 +757,13 @@ func (s *Customers) Delete(ctx context.Context, id string, opts ...operations.Op
751757
"504",
752758
},
753759
}, func() (*http.Response, error) {
754-
if req.Body != nil {
760+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
755761
copyBody, err := req.GetBody()
762+
756763
if err != nil {
757764
return nil, err
758765
}
766+
759767
req.Body = copyBody
760768
}
761769

@@ -967,11 +975,13 @@ func (s *Customers) Update(ctx context.Context, id string, requestBody *operatio
967975
"504",
968976
},
969977
}, func() (*http.Response, error) {
970-
if req.Body != nil {
978+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
971979
copyBody, err := req.GetBody()
980+
972981
if err != nil {
973982
return nil, err
974983
}
984+
975985
req.Body = copyBody
976986
}
977987

docs/models/components/category.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ Category information assigned to the transaction for organization
1010
| `ID` | *string* | :heavy_check_mark: | Unique identifier of the category | office-supplies |
1111
| `Name` | *string* | :heavy_check_mark: | Display name of the category | Office Supplies |
1212
| `Color` | *string* | :heavy_check_mark: | Hex color code associated with the category for UI display | #FF5733 |
13+
| `TaxRate` | *float64* | :heavy_check_mark: | Tax rate of the category | 10 |
14+
| `TaxType` | *string* | :heavy_check_mark: | Tax type of the category | VAT |
1315
| `Slug` | *string* | :heavy_check_mark: | URL-friendly slug of the category | office-supplies |

0 commit comments

Comments
 (0)