Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
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"
}
4 changes: 2 additions & 2 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
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-bea2e5f3b01053a66261a824c75c2640856d0ba00ad795ab71734c4ab9ae33b0.yml
openapi_spec_hash: d766f6e344c12ca6d23e6ef6713b38c4
config_hash: 5fa7ded4bfdffe4cc1944a819da87f9f
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.2.0 (2025-11-04)

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))


### Chores

* **internal:** grammar fix (it's -> its) ([60171f3](https://github.com/beeper/desktop-api-go/commit/60171f3c6eed029a5689bc8ac58656baf63d88f3))

## 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
4 changes: 2 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
13 changes: 8 additions & 5 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,41 +141,44 @@ type Chat struct {
Network string `json:"network,required"`
// Chat participants information.
Participants ChatParticipants `json:"participants,required"`
// Display title of the chat as computed by the client/server.
Title string `json:"title,required"`
// Chat type: 'single' for direct messages, 'group' for group chats.
//
// Any of "single", "group".
Type ChatType `json:"type,required"`
// Number of unread messages.
UnreadCount int64 `json:"unreadCount,required"`
// Description of the chat.
Description string `json:"description,nullable"`
// True if chat is archived.
IsArchived bool `json:"isArchived"`
// True if chat notifications are muted.
// True if the chat is muted.
IsMuted bool `json:"isMuted"`
// True if chat is pinned.
// True if the chat is pinned.
IsPinned bool `json:"isPinned"`
// Timestamp of last activity.
LastActivity time.Time `json:"lastActivity" format:"date-time"`
// Last read message sortKey.
LastReadMessageSortKey string `json:"lastReadMessageSortKey"`
// Local chat ID specific to this Beeper Desktop installation.
LocalChatID string `json:"localChatID,nullable"`
// Display title of the chat.
Title string `json:"title,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
AccountID respjson.Field
Network respjson.Field
Participants respjson.Field
Title respjson.Field
Type respjson.Field
UnreadCount respjson.Field
Description respjson.Field
IsArchived respjson.Field
IsMuted respjson.Field
IsPinned respjson.Field
LastActivity respjson.Field
LastReadMessageSortKey respjson.Field
LocalChatID respjson.Field
Title respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.1.0" // x-release-please-version
const PackageVersion = "0.2.0" // x-release-please-version
2 changes: 1 addition & 1 deletion packages/respjson/respjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package respjson
// Use [Field.Valid] to check if an optional value was null or omitted.
//
// A Field will always occur in the following structure, where it
// mirrors the original field in it's parent struct:
// mirrors the original field in its parent struct:
//
// type ExampleObject struct {
// Foo bool `json:"foo"`
Expand Down