Skip to content

Commit da8c49b

Browse files
authored
Merge pull request #4 from midday-ai/speakeasy-sdk-regen-1748542564
chore: 🐝 Update SDK - Generate 0.2.1
2 parents 1f359c3 + fff5705 commit da8c49b

File tree

88 files changed

+337
-336
lines changed

Some content is hidden

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

88 files changed

+337
-336
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 091cf3d7-4210-4977-a93c-0cefd2ff8475
33
management:
4-
docChecksum: 74cf8ffc74b31f65b6a990cfedf6b063
4+
docChecksum: 0032e112b4a5f03bf277c99f15dced65
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.554.0
6+
speakeasyVersion: 1.554.1
77
generationVersion: 2.616.1
8-
releaseVersion: 0.2.0
9-
configChecksum: fc418cc5546e0dbb2bbbb619204d589c
8+
releaseVersion: 0.2.1
9+
configChecksum: 947560ee0df9a424aa3d4c0acede2f25
1010
repoURL: https://github.com/midday-ai/midday-ts.git
1111
installationURL: https://github.com/midday-ai/midday-ts
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
oAuth2PasswordEnabled: true
2222
sdkHooksConfigAccess: true
2323
typescript:
24-
version: 0.2.0
24+
version: 0.2.1
2525
additionalDependencies:
2626
dependencies: {}
2727
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.554.0
1+
speakeasyVersion: 1.554.1
22
sources:
33
Midday API:
44
sourceNamespace: midday-api
5-
sourceRevisionDigest: sha256:3154f23e76599f16be162ed9779576123e1d2f4a55479268d7b3159e835bb2ca
6-
sourceBlobDigest: sha256:494de936987888f911e0a7ffa9928d26e37e2babf10e73091dfe27b2187734d7
5+
sourceRevisionDigest: sha256:f2ea4d2b25b5ec58c8e5426028728f1c20a7bbea105679e6e0b452d37fe3e18f
6+
sourceBlobDigest: sha256:a0e6eecb2e29484d1407a8a6ea72ceec83b3c921d52872eddf62e79fc62721b7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748540328
9+
- speakeasy-sdk-regen-1748542564
1010
- 0.0.1
1111
targets:
1212
midday:
1313
source: Midday API
1414
sourceNamespace: midday-api
15-
sourceRevisionDigest: sha256:3154f23e76599f16be162ed9779576123e1d2f4a55479268d7b3159e835bb2ca
16-
sourceBlobDigest: sha256:494de936987888f911e0a7ffa9928d26e37e2babf10e73091dfe27b2187734d7
15+
sourceRevisionDigest: sha256:f2ea4d2b25b5ec58c8e5426028728f1c20a7bbea105679e6e0b452d37fe3e18f
16+
sourceBlobDigest: sha256:a0e6eecb2e29484d1407a8a6ea72ceec83b3c921d52872eddf62e79fc62721b7
1717
codeSamplesNamespace: midday-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:81622f369aec8a6899f3d0417ac30d320c331380346ea6c72f4923468cf0ea90
18+
codeSamplesRevisionDigest: sha256:72d109d7bb76c2318526818c4d0cc0af097f992bf48f8ea8369d3e0bdc13dd4b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SDKValidationError } from "@midday-ai/sdk/models/errors/sdkvalidationer
2626
// Use `MiddayCore` for best tree-shaking performance.
2727
// You can create one instance of it to use across an application.
2828
const midday = new MiddayCore({
29-
bearer: "MIDDAY_API_KEY",
29+
token: "MIDDAY_API_KEY",
3030
});
3131

3232
async function run() {

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Add the following server definition to your `claude_desktop_config.json` file:
9292
"-y", "--package", "@midday-ai/sdk",
9393
"--",
9494
"mcp", "start",
95-
"--bearer", "..."
95+
"--api-token", "..."
9696
]
9797
}
9898
}
@@ -115,7 +115,7 @@ Create a `.cursor/mcp.json` file in your project root with the following content
115115
"-y", "--package", "@midday-ai/sdk",
116116
"--",
117117
"mcp", "start",
118-
"--bearer", "..."
118+
"--api-token", "..."
119119
]
120120
}
121121
}
@@ -170,7 +170,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
170170
import { Midday } from "@midday-ai/sdk";
171171

172172
const midday = new Midday({
173-
bearer: "MIDDAY_API_KEY",
173+
token: "MIDDAY_API_KEY",
174174
});
175175

176176
async function run() {
@@ -236,16 +236,16 @@ run();
236236

237237
This SDK supports the following security scheme globally:
238238

239-
| Name | Type | Scheme | Environment Variable |
240-
| -------- | ---- | ----------- | -------------------- |
241-
| `bearer` | http | HTTP Bearer | `MIDDAY_BEARER` |
239+
| Name | Type | Scheme | Environment Variable |
240+
| ------- | ---- | ----------- | -------------------- |
241+
| `token` | http | HTTP Bearer | `MIDDAY_TOKEN` |
242242

243-
To authenticate with the API the `bearer` parameter must be set when initializing the SDK client instance. For example:
243+
To authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example:
244244
```typescript
245245
import { Midday } from "@midday-ai/sdk";
246246

247247
const midday = new Midday({
248-
bearer: "MIDDAY_API_KEY",
248+
token: "MIDDAY_API_KEY",
249249
});
250250

251251
async function run() {
@@ -495,7 +495,7 @@ To change the default retry strategy for a single API call, simply provide a ret
495495
import { Midday } from "@midday-ai/sdk";
496496

497497
const midday = new Midday({
498-
bearer: "MIDDAY_API_KEY",
498+
token: "MIDDAY_API_KEY",
499499
});
500500

501501
async function run() {
@@ -579,7 +579,7 @@ const midday = new Midday({
579579
},
580580
retryConnectionErrors: false,
581581
},
582-
bearer: "MIDDAY_API_KEY",
582+
token: "MIDDAY_API_KEY",
583583
});
584584

585585
async function run() {
@@ -652,7 +652,7 @@ import { Midday } from "@midday-ai/sdk";
652652
import { SDKValidationError } from "@midday-ai/sdk/models/errors";
653653

654654
const midday = new Midday({
655-
bearer: "MIDDAY_API_KEY",
655+
token: "MIDDAY_API_KEY",
656656
});
657657

658658
async function run() {
@@ -760,7 +760,7 @@ import { Midday } from "@midday-ai/sdk";
760760

761761
const midday = new Midday({
762762
serverURL: "https://api.midday.ai",
763-
bearer: "MIDDAY_API_KEY",
763+
token: "MIDDAY_API_KEY",
764764
});
765765

766766
async function run() {

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ Based on:
1818
### Generated
1919
- [typescript v0.2.0] .
2020
### Releases
21-
- [NPM v0.2.0] https://www.npmjs.com/package/@midday-ai/sdk/v/0.2.0 - .
21+
- [NPM v0.2.0] https://www.npmjs.com/package/@midday-ai/sdk/v/0.2.0 - .
22+
23+
## 2025-05-29 18:15:47
24+
### Changes
25+
Based on:
26+
- OpenAPI Doc
27+
- Speakeasy CLI 1.554.1 (2.616.1) https://github.com/speakeasy-api/speakeasy
28+
### Generated
29+
- [typescript v0.2.1] .
30+
### Releases
31+
- [NPM v0.2.1] https://www.npmjs.com/package/@midday-ai/sdk/v/0.2.1 - .

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Midday } from "@midday-ai/sdk";
44

55
const midday = new Midday({
6-
bearer: "MIDDAY_API_KEY",
6+
token: "MIDDAY_API_KEY",
77
});
88

99
async function run() {

docs/models/security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
import { Security } from "@midday-ai/sdk";
77

88
let value: Security = {
9-
bearer: "MIDDAY_API_KEY",
9+
token: "MIDDAY_API_KEY",
1010
};
1111
```
1212

1313
## Fields
1414

1515
| Field | Type | Required | Description | Example |
1616
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
17-
| `bearer` | *string* | :heavy_minus_sign: | N/A | MIDDAY_API_KEY |
17+
| `token` | *string* | :heavy_minus_sign: | N/A | MIDDAY_API_KEY |

docs/sdks/bankaccounts/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Retrieve a list of bank accounts for the authenticated team.
2121
import { Midday } from "@midday-ai/sdk";
2222

2323
const midday = new Midday({
24-
bearer: "MIDDAY_API_KEY",
24+
token: "MIDDAY_API_KEY",
2525
});
2626

2727
async function run() {
@@ -45,7 +45,7 @@ import { bankAccountsList } from "@midday-ai/sdk/funcs/bankAccountsList.js";
4545
// Use `MiddayCore` for best tree-shaking performance.
4646
// You can create one instance of it to use across an application.
4747
const midday = new MiddayCore({
48-
bearer: "MIDDAY_API_KEY",
48+
token: "MIDDAY_API_KEY",
4949
});
5050

5151
async function run() {
@@ -93,7 +93,7 @@ Create a new bank account for the authenticated team.
9393
import { Midday } from "@midday-ai/sdk";
9494

9595
const midday = new Midday({
96-
bearer: "MIDDAY_API_KEY",
96+
token: "MIDDAY_API_KEY",
9797
});
9898

9999
async function run() {
@@ -121,7 +121,7 @@ import { bankAccountsCreate } from "@midday-ai/sdk/funcs/bankAccountsCreate.js";
121121
// Use `MiddayCore` for best tree-shaking performance.
122122
// You can create one instance of it to use across an application.
123123
const midday = new MiddayCore({
124-
bearer: "MIDDAY_API_KEY",
124+
token: "MIDDAY_API_KEY",
125125
});
126126

127127
async function run() {
@@ -173,7 +173,7 @@ Retrieve a bank account by ID for the authenticated team.
173173
import { Midday } from "@midday-ai/sdk";
174174

175175
const midday = new Midday({
176-
bearer: "MIDDAY_API_KEY",
176+
token: "MIDDAY_API_KEY",
177177
});
178178

179179
async function run() {
@@ -199,7 +199,7 @@ import { bankAccountsGet } from "@midday-ai/sdk/funcs/bankAccountsGet.js";
199199
// Use `MiddayCore` for best tree-shaking performance.
200200
// You can create one instance of it to use across an application.
201201
const midday = new MiddayCore({
202-
bearer: "MIDDAY_API_KEY",
202+
token: "MIDDAY_API_KEY",
203203
});
204204

205205
async function run() {
@@ -249,7 +249,7 @@ Update a bank account by ID for the authenticated team.
249249
import { Midday } from "@midday-ai/sdk";
250250

251251
const midday = new Midday({
252-
bearer: "MIDDAY_API_KEY",
252+
token: "MIDDAY_API_KEY",
253253
});
254254

255255
async function run() {
@@ -282,7 +282,7 @@ import { bankAccountsUpdate } from "@midday-ai/sdk/funcs/bankAccountsUpdate.js";
282282
// Use `MiddayCore` for best tree-shaking performance.
283283
// You can create one instance of it to use across an application.
284284
const midday = new MiddayCore({
285-
bearer: "MIDDAY_API_KEY",
285+
token: "MIDDAY_API_KEY",
286286
});
287287

288288
async function run() {
@@ -339,7 +339,7 @@ Delete a bank account by ID for the authenticated team.
339339
import { Midday } from "@midday-ai/sdk";
340340

341341
const midday = new Midday({
342-
bearer: "MIDDAY_API_KEY",
342+
token: "MIDDAY_API_KEY",
343343
});
344344

345345
async function run() {
@@ -365,7 +365,7 @@ import { bankAccountsDelete } from "@midday-ai/sdk/funcs/bankAccountsDelete.js";
365365
// Use `MiddayCore` for best tree-shaking performance.
366366
// You can create one instance of it to use across an application.
367367
const midday = new MiddayCore({
368-
bearer: "MIDDAY_API_KEY",
368+
token: "MIDDAY_API_KEY",
369369
});
370370

371371
async function run() {

docs/sdks/customers/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Retrieve a list of customers for the authenticated team.
2121
import { Midday } from "@midday-ai/sdk";
2222

2323
const midday = new Midday({
24-
bearer: "MIDDAY_API_KEY",
24+
token: "MIDDAY_API_KEY",
2525
});
2626

2727
async function run() {
@@ -53,7 +53,7 @@ import { customersList } from "@midday-ai/sdk/funcs/customersList.js";
5353
// Use `MiddayCore` for best tree-shaking performance.
5454
// You can create one instance of it to use across an application.
5555
const midday = new MiddayCore({
56-
bearer: "MIDDAY_API_KEY",
56+
token: "MIDDAY_API_KEY",
5757
});
5858

5959
async function run() {
@@ -109,7 +109,7 @@ Create a new customer for the authenticated team.
109109
import { Midday } from "@midday-ai/sdk";
110110

111111
const midday = new Midday({
112-
bearer: "MIDDAY_API_KEY",
112+
token: "MIDDAY_API_KEY",
113113
});
114114

115115
async function run() {
@@ -159,7 +159,7 @@ import { customersCreate } from "@midday-ai/sdk/funcs/customersCreate.js";
159159
// Use `MiddayCore` for best tree-shaking performance.
160160
// You can create one instance of it to use across an application.
161161
const midday = new MiddayCore({
162-
bearer: "MIDDAY_API_KEY",
162+
token: "MIDDAY_API_KEY",
163163
});
164164

165165
async function run() {
@@ -233,7 +233,7 @@ Retrieve a customer by ID for the authenticated team.
233233
import { Midday } from "@midday-ai/sdk";
234234

235235
const midday = new Midday({
236-
bearer: "MIDDAY_API_KEY",
236+
token: "MIDDAY_API_KEY",
237237
});
238238

239239
async function run() {
@@ -259,7 +259,7 @@ import { customersGet } from "@midday-ai/sdk/funcs/customersGet.js";
259259
// Use `MiddayCore` for best tree-shaking performance.
260260
// You can create one instance of it to use across an application.
261261
const midday = new MiddayCore({
262-
bearer: "MIDDAY_API_KEY",
262+
token: "MIDDAY_API_KEY",
263263
});
264264

265265
async function run() {
@@ -309,7 +309,7 @@ Update a customer by ID for the authenticated team.
309309
import { Midday } from "@midday-ai/sdk";
310310

311311
const midday = new Midday({
312-
bearer: "MIDDAY_API_KEY",
312+
token: "MIDDAY_API_KEY",
313313
});
314314

315315
async function run() {
@@ -362,7 +362,7 @@ import { customersUpdate } from "@midday-ai/sdk/funcs/customersUpdate.js";
362362
// Use `MiddayCore` for best tree-shaking performance.
363363
// You can create one instance of it to use across an application.
364364
const midday = new MiddayCore({
365-
bearer: "MIDDAY_API_KEY",
365+
token: "MIDDAY_API_KEY",
366366
});
367367

368368
async function run() {
@@ -439,7 +439,7 @@ Delete a customer by ID for the authenticated team.
439439
import { Midday } from "@midday-ai/sdk";
440440

441441
const midday = new Midday({
442-
bearer: "MIDDAY_API_KEY",
442+
token: "MIDDAY_API_KEY",
443443
});
444444

445445
async function run() {
@@ -465,7 +465,7 @@ import { customersDelete } from "@midday-ai/sdk/funcs/customersDelete.js";
465465
// Use `MiddayCore` for best tree-shaking performance.
466466
// You can create one instance of it to use across an application.
467467
const midday = new MiddayCore({
468-
bearer: "MIDDAY_API_KEY",
468+
token: "MIDDAY_API_KEY",
469469
});
470470

471471
async function run() {

0 commit comments

Comments
 (0)