Skip to content
Merged
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 @@
{
".": "1.21.0"
".": "1.22.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: 89
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-226200e7cda539eab84341167939339109659a66a48312fd41cb8b15b89ef8e2.yml
openapi_spec_hash: 2097f5fdc617bdbe6a2780daa693a2f8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-7e017b74e4af156a7dc03b3ee24e8a9d7bbd8854c4f383b8caa9cac0d5fd3efa.yml
openapi_spec_hash: 40c32d8afabbb41391f8ed91519ff7f6
config_hash: 658c551418df454aa40794f8ac679c18
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.22.0 (2025-10-14)

Full Changelog: [v1.21.0...v1.22.0](https://github.com/knocklabs/knock-go/compare/v1.21.0...v1.22.0)

### Features

* **api:** api update ([302c255](https://github.com/knocklabs/knock-go/commit/302c25566e1c41148bd1ce456587039192b99f06))

## 1.21.0 (2025-10-13)

Full Changelog: [v1.20.0...v1.21.0](https://github.com/knocklabs/knock-go/compare/v1.20.0...v1.21.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/knocklabs/knock-go@v1.21.0'
go get -u 'github.com/knocklabs/knock-go@v1.22.0'
```

<!-- x-release-please-end -->
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 = "1.21.0" // x-release-please-version
const PackageVersion = "1.22.0" // x-release-please-version
2 changes: 2 additions & 0 deletions object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ func TestObjectSetWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down Expand Up @@ -563,6 +564,7 @@ func TestObjectSetPreferencesWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
2 changes: 2 additions & 0 deletions objectbulk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func TestObjectBulkAddSubscriptions(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down Expand Up @@ -223,6 +224,7 @@ func TestObjectBulkSet(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
3 changes: 3 additions & 0 deletions recipientpreference.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ type PreferenceSetRequestParam struct {
Categories param.Field[map[string]PreferenceSetRequestCategoriesUnionParam] `json:"categories"`
// Channel type preferences.
ChannelTypes param.Field[PreferenceSetChannelTypesParam] `json:"channel_types"`
// Whether the recipient is subscribed to commercial communications. When false,
// the recipient will not receive commercial workflow notifications.
CommercialSubscribed param.Field[bool] `json:"commercial_subscribed"`
// An object where the key is the workflow key and the values are the preference
// settings for that workflow.
Workflows param.Field[map[string]PreferenceSetRequestWorkflowsUnionParam] `json:"workflows"`
Expand Down
1 change: 1 addition & 0 deletions schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func TestScheduleNewWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
2 changes: 2 additions & 0 deletions schedulebulk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func TestScheduleBulkNew(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down Expand Up @@ -184,6 +185,7 @@ func TestScheduleBulkNew(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
1 change: 1 addition & 0 deletions tenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func TestTenantSetWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
2 changes: 2 additions & 0 deletions user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func TestUserUpdateWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down Expand Up @@ -511,6 +512,7 @@ func TestUserSetPreferencesWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down
2 changes: 2 additions & 0 deletions userbulk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func TestUserBulkIdentify(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down Expand Up @@ -199,6 +200,7 @@ func TestUserBulkSetPreferencesWithOptionalParams(t *testing.T) {
}}),
}),
}),
CommercialSubscribed: knock.F(true),
Workflows: knock.F(map[string]knock.PreferenceSetRequestWorkflowsUnionParam{
"dinosaurs-loose": knock.PreferenceSetRequestWorkflowsPreferenceSetWorkflowCategorySettingObjectParam{
ChannelTypes: knock.F(knock.PreferenceSetChannelTypesParam{
Expand Down