Skip to content

Commit 6612ae3

Browse files
release: 0.23.0 (#59)
* chore(internal): tweak CI branches * feat(api): api update * release: 0.23.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 5bd8386 commit 6612ae3

20 files changed

+97
-25
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.22.0"
2+
".": "0.23.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 64
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-mapi-d350e605aaabe0e1ac88c0632aa838b55beeb43757e54e4474abf3f1607e76b1.yml
3-
openapi_spec_hash: f70289a7e9fccb400f4fbcdf44158201
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-mapi-21a163d81849f9a6f068aa9e270b633a8585e4767418781c258fdf3f9c86fe3a.yml
3+
openapi_spec_hash: d93d353bc8d396c543f4f991b26f18f8
44
config_hash: 6faa327b884de9362f7b76260eae1b71

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.23.0 (2026-03-18)
4+
5+
Full Changelog: [v0.22.0...v0.23.0](https://github.com/knocklabs/knock-mgmt-node/compare/v0.22.0...v0.23.0)
6+
7+
### Features
8+
9+
* **api:** api update ([00f4aeb](https://github.com/knocklabs/knock-mgmt-node/commit/00f4aebd0a673b209f8357ea93d2769bb4a94b3f))
10+
11+
12+
### Chores
13+
14+
* **internal:** tweak CI branches ([d8d4737](https://github.com/knocklabs/knock-mgmt-node/commit/d8d473758002352ea3aa8f35cfa2b7cc0a0f140e))
15+
316
## 0.22.0 (2026-03-12)
417

518
Full Changelog: [v0.21.0...v0.22.0](https://github.com/knocklabs/knock-mgmt-node/compare/v0.21.0...v0.22.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@knocklabs/mgmt",
3-
"version": "0.22.0",
3+
"version": "0.23.0",
44
"description": "The official TypeScript library for the Knock Mgmt API",
55
"author": "Knock Mgmt <support@knock.app>",
66
"types": "dist/index.d.ts",

src/resources/audiences.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export class Audiences extends APIResource {
8787
params: AudienceUpsertParams,
8888
options?: RequestOptions,
8989
): APIPromise<AudienceUpsertResponse> {
90-
const { environment, annotate, branch, commit, commit_message, ...body } = params;
90+
const { environment, annotate, branch, commit, commit_message, force, ...body } = params;
9191
return this._client.put(path`/v1/audiences/${audienceKey}`, {
92-
query: { environment, annotate, branch, commit, commit_message },
92+
query: { environment, annotate, branch, commit, commit_message, force },
9393
body,
9494
...options,
9595
});
@@ -405,6 +405,13 @@ export interface AudienceUpsertParams {
405405
* `true`.
406406
*/
407407
commit_message?: string;
408+
409+
/**
410+
* Query param: When set to true, forces the upsert to override existing content
411+
* regardless of environment restrictions. This bypasses the development-only
412+
* environment check and origin environment checks.
413+
*/
414+
force?: boolean;
408415
}
409416

410417
export namespace AudienceUpsertParams {

src/resources/email-layouts.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export class EmailLayouts extends APIResource {
7575
params: EmailLayoutUpsertParams,
7676
options?: RequestOptions,
7777
): APIPromise<EmailLayoutUpsertResponse> {
78-
const { environment, annotate, branch, commit, commit_message, ...body } = params;
78+
const { environment, annotate, branch, commit, commit_message, force, ...body } = params;
7979
return this._client.put(path`/v1/email_layouts/${emailLayoutKey}`, {
80-
query: { environment, annotate, branch, commit, commit_message },
80+
query: { environment, annotate, branch, commit, commit_message, force },
8181
body,
8282
...options,
8383
});
@@ -290,6 +290,13 @@ export interface EmailLayoutUpsertParams {
290290
* `true`.
291291
*/
292292
commit_message?: string;
293+
294+
/**
295+
* Query param: When set to true, forces the upsert to override existing content
296+
* regardless of environment restrictions. This bypasses the development-only
297+
* environment check and origin environment checks.
298+
*/
299+
force?: boolean;
293300
}
294301

295302
export namespace EmailLayoutUpsertParams {

src/resources/guides.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ export class Guides extends APIResource {
112112
params: GuideUpsertParams,
113113
options?: RequestOptions,
114114
): APIPromise<GuideUpsertResponse> {
115-
const { environment, annotate, branch, commit, commit_message, ...body } = params;
115+
const { environment, annotate, branch, commit, commit_message, force, ...body } = params;
116116
return this._client.put(path`/v1/guides/${guideKey}`, {
117-
query: { environment, annotate, branch, commit, commit_message },
117+
query: { environment, annotate, branch, commit, commit_message, force },
118118
body,
119119
...options,
120120
});
@@ -490,6 +490,13 @@ export interface GuideUpsertParams {
490490
* `true`.
491491
*/
492492
commit_message?: string;
493+
494+
/**
495+
* Query param: When set to true, forces the upsert to override existing content
496+
* regardless of environment restrictions. This bypasses the development-only
497+
* environment check and origin environment checks.
498+
*/
499+
force?: boolean;
493500
}
494501

495502
export namespace GuideUpsertParams {

src/resources/message-types.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export class MessageTypes extends APIResource {
7373
params: MessageTypeUpsertParams,
7474
options?: RequestOptions,
7575
): APIPromise<MessageTypeUpsertResponse> {
76-
const { environment, annotate, branch, commit, commit_message, ...body } = params;
76+
const { environment, annotate, branch, commit, commit_message, force, ...body } = params;
7777
return this._client.put(path`/v1/message_types/${messageTypeKey}`, {
78-
query: { environment, annotate, branch, commit, commit_message },
78+
query: { environment, annotate, branch, commit, commit_message, force },
7979
body,
8080
...options,
8181
});
@@ -386,6 +386,13 @@ export interface MessageTypeUpsertParams {
386386
* `true`.
387387
*/
388388
commit_message?: string;
389+
390+
/**
391+
* Query param: When set to true, forces the upsert to override existing content
392+
* regardless of environment restrictions. This bypasses the development-only
393+
* environment check and origin environment checks.
394+
*/
395+
force?: boolean;
389396
}
390397

391398
export namespace MessageTypeUpsertParams {

src/resources/partials.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export class Partials extends APIResource {
6969
params: PartialUpsertParams,
7070
options?: RequestOptions,
7171
): APIPromise<PartialUpsertResponse> {
72-
const { environment, annotate, branch, commit, commit_message, ...body } = params;
72+
const { environment, annotate, branch, commit, commit_message, force, ...body } = params;
7373
return this._client.put(path`/v1/partials/${partialKey}`, {
74-
query: { environment, annotate, branch, commit, commit_message },
74+
query: { environment, annotate, branch, commit, commit_message, force },
7575
body,
7676
...options,
7777
});
@@ -292,6 +292,13 @@ export interface PartialUpsertParams {
292292
* `true`.
293293
*/
294294
commit_message?: string;
295+
296+
/**
297+
* Query param: When set to true, forces the upsert to override existing content
298+
* regardless of environment restrictions. This bypasses the development-only
299+
* environment check and origin environment checks.
300+
*/
301+
force?: boolean;
295302
}
296303

297304
export namespace PartialUpsertParams {

0 commit comments

Comments
 (0)