Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fbf0470
feat(api): add `description` field to chats, make `title` optional
stainless-app[bot] Oct 23, 2025
60171f3
chore(internal): grammar fix (it's -> its)
stainless-app[bot] Nov 4, 2025
1194594
chore: bump gjson version
stainless-app[bot] Nov 12, 2025
2bcd6c1
fix(client): correctly specify Accept header with */* instead of empty
stainless-app[bot] Nov 19, 2025
77a6d60
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
fa3d456
chore: elide duplicate aliases
stainless-app[bot] Dec 6, 2025
568939e
fix(mcp): correct code tool API endpoint
stainless-app[bot] Dec 6, 2025
d304cbe
fix: rename param to avoid collision
stainless-app[bot] Dec 6, 2025
a338742
feat(encoder): support bracket encoding form-data object members
stainless-app[bot] Dec 12, 2025
4658d5c
chore: add float64 to valid types for RegisterFieldValidator
stainless-app[bot] Dec 19, 2025
f2d3a30
chore(internal): codegen related update
stainless-app[bot] Jan 6, 2026
fcad6f3
docs: prominently feature MCP server setup in root SDK readmes
stainless-app[bot] Jan 6, 2026
1f84ff0
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 17, 2026
9fd334b
fix(docs): add missing pointer prefix to api.md return types
stainless-app[bot] Jan 17, 2026
ebb892c
chore: configure new SDK language
stainless-app[bot] Jan 23, 2026
6d37bf4
feat(api): add upload asset and edit message endpoints
stainless-app[bot] Jan 23, 2026
782c77d
feat(api): manual updates
stainless-app[bot] Jan 23, 2026
0cf432f
feat(api): remove mcp for now
stainless-app[bot] Jan 23, 2026
4676368
codegen metadata
stainless-app[bot] Jan 24, 2026
279946e
codegen metadata
stainless-app[bot] Jan 24, 2026
9ea70da
feat(client): add a convenient param.SetJSON helper
stainless-app[bot] Jan 24, 2026
7454269
fix: fix for namespace collisions with client and resource test methods
stainless-app[bot] Jan 30, 2026
d52c6cb
feat(api): manual updates
stainless-app[bot] Jan 31, 2026
1cf7cec
release: 0.2.0
stainless-app[bot] Jan 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/beeper-desktop-api-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
".": "0.2.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-0763b61997721da6f4514241bf0f7bb5f7a88c7298baf0f1b2d58036aaf7e2f1.yml
openapi_spec_hash: 5158475919c04bb52fb03c6a4582188d
config_hash: 5fa7ded4bfdffe4cc1944a819da87f9f
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-099d55ac0e749a64dacc1706d7d8276d1acbe52103f0419393c39e8911966cfe.yml
openapi_spec_hash: 70a1b1d513b62c6d6caabbbf360220b4
config_hash: 48ff2d23c2ebc82bd3c15787f0041684
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Changelog

## 0.2.0 (2026-01-31)

Full Changelog: [v0.1.0...v0.2.0](https://github.com/beeper/desktop-api-go/compare/v0.1.0...v0.2.0)

### Features

* **api:** add `description` field to chats, make `title` optional ([fbf0470](https://github.com/beeper/desktop-api-go/commit/fbf047029f11c57542963ed3446ab191ae738643))
* **api:** add upload asset and edit message endpoints ([6d37bf4](https://github.com/beeper/desktop-api-go/commit/6d37bf45aeaeef173628d7bd16ecb5fcfe49ca1e))
* **api:** manual updates ([d52c6cb](https://github.com/beeper/desktop-api-go/commit/d52c6cbcfa8217c6fde16793dac7ed98d2c61348))
* **api:** manual updates ([782c77d](https://github.com/beeper/desktop-api-go/commit/782c77d0de3e076765031d3b311c81f55a82b02b))
* **api:** remove mcp for now ([0cf432f](https://github.com/beeper/desktop-api-go/commit/0cf432f5b3aa26727a571becd287501776a58726))
* **client:** add a convenient param.SetJSON helper ([9ea70da](https://github.com/beeper/desktop-api-go/commit/9ea70da2a4b22a60440ca738ba6367037de2b63b))
* **encoder:** support bracket encoding form-data object members ([a338742](https://github.com/beeper/desktop-api-go/commit/a33874294b78dc962f1acf74668ab59697d61711))


### Bug Fixes

* **client:** correctly specify Accept header with */* instead of empty ([2bcd6c1](https://github.com/beeper/desktop-api-go/commit/2bcd6c1aaaf2b7e6e554d8a87743d2593856f678))
* **docs:** add missing pointer prefix to api.md return types ([9fd334b](https://github.com/beeper/desktop-api-go/commit/9fd334be8ea4e83d5414c7d044cd326643137685))
* fix for namespace collisions with client and resource test methods ([7454269](https://github.com/beeper/desktop-api-go/commit/7454269a9eb54a359ce5efdfe31c4f036251707a))
* **mcp:** correct code tool API endpoint ([568939e](https://github.com/beeper/desktop-api-go/commit/568939eff6ad5bcdcd42d7bae3439af3389e4b8a))
* rename param to avoid collision ([d304cbe](https://github.com/beeper/desktop-api-go/commit/d304cbe9e74f9486567156cb28a60cf7cee5b053))


### Chores

* add float64 to valid types for RegisterFieldValidator ([4658d5c](https://github.com/beeper/desktop-api-go/commit/4658d5c7d11ff703a1b7e5ccfb594b22f2ee5144))
* bump gjson version ([1194594](https://github.com/beeper/desktop-api-go/commit/1194594b4e0744f59f66e0cda1929e75eb8973a2))
* configure new SDK language ([ebb892c](https://github.com/beeper/desktop-api-go/commit/ebb892cd8a5b4bad877c0b88724a9a55f43dac94))
* elide duplicate aliases ([fa3d456](https://github.com/beeper/desktop-api-go/commit/fa3d4564c46606bcb63fd98906eb0687758ac059))
* **internal:** codegen related update ([f2d3a30](https://github.com/beeper/desktop-api-go/commit/f2d3a30447ffaae00b456f610aba7afee08d32f0))
* **internal:** codegen related update ([77a6d60](https://github.com/beeper/desktop-api-go/commit/77a6d605f55019d31fba8ed59ddc5232f527f9ff))
* **internal:** grammar fix (it's -> its) ([60171f3](https://github.com/beeper/desktop-api-go/commit/60171f3c6eed029a5689bc8ac58656baf63d88f3))
* **internal:** update `actions/checkout` version ([1f84ff0](https://github.com/beeper/desktop-api-go/commit/1f84ff0e78592fb0b97fb1185dbe049a298af53d))


### Documentation

* prominently feature MCP server setup in root SDK readmes ([fcad6f3](https://github.com/beeper/desktop-api-go/commit/fcad6f33198927cfd1e144648a38fb43b1d43f06))

## 0.1.0 (2025-10-16)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/beeper/desktop-api-go/compare/v0.0.1...v0.1.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2025 beeperdesktop
Copyright 2026 beeperdesktop

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/beeper/desktop-api-go@v0.1.0'
go get -u 'github.com/beeper/desktop-api-go@v0.2.0'
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -127,7 +127,7 @@ custom := param.Override[beeperdesktopapi.FooParams](12)

### Request unions

Unions are represented as a struct with fields prefixed by "Of" for each of it's variants,
Unions are represented as a struct with fields prefixed by "Of" for each of its variants,
only one field can be non-zero. The non-zero field will be serialized.

Sub-properties of the union can be accessed via methods on the union struct.
Expand Down Expand Up @@ -377,6 +377,24 @@ file returned by `os.Open` will be sent with the file name on disk.
We also provide a helper `beeperdesktopapi.File(reader io.Reader, filename string, contentType string)`
which can be used to wrap any `io.Reader` with the appropriate file name and content type.

```go
// A file from the file system
file, err := os.Open("/path/to/file")
beeperdesktopapi.AssetUploadParams{
File: file,
}

// A file from a string
beeperdesktopapi.AssetUploadParams{
File: strings.NewReader("my file contents"),
}

// With a custom filename and contentType
beeperdesktopapi.AssetUploadParams{
File: beeperdesktopapi.File(strings.NewReader(`{"hello": "foo"}`), "file.go", "application/json"),
}
```

### Retries

Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
Expand Down
2 changes: 0 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ type Account struct {
// Chat account added to Beeper. Use this to route account-scoped actions.
AccountID string `json:"accountID,required"`
// Display-only human-readable network name (e.g., 'WhatsApp', 'Messenger').
//
// Deprecated: deprecated
Network string `json:"network,required"`
// User the account belongs to.
User shared.User `json:"user,required"`
Expand Down
4 changes: 2 additions & 2 deletions accountcontact.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func NewAccountContactService(opts ...option.RequestOption) (r AccountContactSer
return
}

// Search contacts across on a specific account using the network's search API.
// Only use for creating new chats.
// Search contacts on a specific account using the network's search API. Only use
// for creating new chats.
func (r *AccountContactService) Search(ctx context.Context, accountID string, query AccountContactSearchParams, opts ...option.RequestOption) (res *AccountContactSearchResponse, err error) {
opts = slices.Concat(r.Options, opts)
if accountID == "" {
Expand Down
36 changes: 36 additions & 0 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,42 @@ type AttachmentSize = shared.AttachmentSize
// This is an alias to an internal type.
type Message = shared.Message

// Message content type. Useful for distinguishing reactions, media messages, and
// state events from regular text messages.
//
// This is an alias to an internal type.
type MessageType = shared.MessageType

// Equals "TEXT"
const MessageTypeText = shared.MessageTypeText

// Equals "NOTICE"
const MessageTypeNotice = shared.MessageTypeNotice

// Equals "IMAGE"
const MessageTypeImage = shared.MessageTypeImage

// Equals "VIDEO"
const MessageTypeVideo = shared.MessageTypeVideo

// Equals "VOICE"
const MessageTypeVoice = shared.MessageTypeVoice

// Equals "AUDIO"
const MessageTypeAudio = shared.MessageTypeAudio

// Equals "FILE"
const MessageTypeFile = shared.MessageTypeFile

// Equals "STICKER"
const MessageTypeSticker = shared.MessageTypeSticker

// Equals "LOCATION"
const MessageTypeLocation = shared.MessageTypeLocation

// Equals "REACTION"
const MessageTypeReaction = shared.MessageTypeReaction

// This is an alias to an internal type.
type Reaction = shared.Reaction

Expand Down
Loading