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 @@
{
".": "0.1.0-alpha.1"
".": "0.1.0-alpha.2"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 73
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-47fcdfdad014379e5efc5fbd61a920bd50d199ea5d0e61fef2619ae45c2507a2.yml
openapi_spec_hash: 5bc7a2c2e9b2d39d15cdf3f6f592e2b0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-f61996bf60ebbb80b846ccdea5aa6287aa6dabab65a638e66b3f6488e52fc73c.yml
openapi_spec_hash: b34bc438d847cc513134db148343e616
config_hash: 1543050ac0815a90f8fc8158f853af03
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.2 (2026-07-09)

Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/knocklabs/knock-mgmt-python/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)

### Features

* **api:** api update ([64df980](https://github.com/knocklabs/knock-mgmt-python/commit/64df9806f28e4be7d5314ece2452cd7173d52787))

## 0.1.0-alpha.1 (2026-07-01)

Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/knocklabs/knock-mgmt-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "knock_mapi"
version = "0.1.0-alpha.1"
version = "0.1.0-alpha.2"
description = "The official Python library for the knock mgmt API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/knock_mapi/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "knock_mapi"
__version__ = "0.1.0-alpha.1" # x-release-please-version
__version__ = "0.1.0-alpha.2" # x-release-please-version
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/audiences.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def upsert(
*,
environment: str,
audience: audience_upsert_params.Audience,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -255,6 +256,9 @@ def upsert(
`type: static` for audiences with explicitly managed members, or `type: dynamic`
for audiences with segment-based membership.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -289,6 +293,7 @@ def upsert(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down Expand Up @@ -559,6 +564,7 @@ async def upsert(
*,
environment: str,
audience: audience_upsert_params.Audience,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -582,6 +588,9 @@ async def upsert(
`type: static` for audiences with explicitly managed members, or `type: dynamic`
for audiences with segment-based membership.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -616,6 +625,7 @@ async def upsert(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def commit_all(
self,
*,
environment: str,
allow_empty: bool | Omit = omit,
branch: str | Omit = omit,
commit_message: str | Omit = omit,
resource_id: str | Omit = omit,
Expand All @@ -191,6 +192,9 @@ def commit_all(
Args:
environment: The environment slug.

allow_empty: When used with a single resource_type and resource_id, creates a new version
with identical content and commits it if there are no unpublished changes.

branch: The slug of a branch to use. This option can only be used when `environment` is
`"development"`.

Expand Down Expand Up @@ -220,6 +224,7 @@ def commit_all(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"branch": branch,
"commit_message": commit_message,
"resource_id": resource_id,
Expand Down Expand Up @@ -476,6 +481,7 @@ async def commit_all(
self,
*,
environment: str,
allow_empty: bool | Omit = omit,
branch: str | Omit = omit,
commit_message: str | Omit = omit,
resource_id: str | Omit = omit,
Expand All @@ -497,6 +503,9 @@ async def commit_all(
Args:
environment: The environment slug.

allow_empty: When used with a single resource_type and resource_id, creates a new version
with identical content and commits it if there are no unpublished changes.

branch: The slug of a branch to use. This option can only be used when `environment` is
`"development"`.

Expand Down Expand Up @@ -526,6 +535,7 @@ async def commit_all(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"branch": branch,
"commit_message": commit_message,
"resource_id": resource_id,
Expand Down
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/email_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def upsert(
*,
environment: str,
email_layout: email_layout_upsert_params.EmailLayout,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -207,6 +208,9 @@ def upsert(

email_layout: A request to update or create an email layout.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -241,6 +245,7 @@ def upsert(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down Expand Up @@ -468,6 +473,7 @@ async def upsert(
*,
environment: str,
email_layout: email_layout_upsert_params.EmailLayout,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -490,6 +496,9 @@ async def upsert(

email_layout: A request to update or create an email layout.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -526,6 +535,7 @@ async def upsert(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/guides.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def upsert(
*,
environment: str,
guide: guide_upsert_params.Guide,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -381,6 +382,9 @@ def upsert(

guide: A request to create or update a guide.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -415,6 +419,7 @@ def upsert(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down Expand Up @@ -807,6 +812,7 @@ async def upsert(
*,
environment: str,
guide: guide_upsert_params.Guide,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -829,6 +835,9 @@ async def upsert(

guide: A request to create or update a guide.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -863,6 +872,7 @@ async def upsert(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/message_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def upsert(
*,
environment: str,
message_type: message_type_upsert_params.MessageType,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -209,6 +210,9 @@ def upsert(

message_type: A request to create a message type.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -243,6 +247,7 @@ def upsert(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down Expand Up @@ -473,6 +478,7 @@ async def upsert(
*,
environment: str,
message_type: message_type_upsert_params.MessageType,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -495,6 +501,9 @@ async def upsert(

message_type: A request to create a message type.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -531,6 +540,7 @@ async def upsert(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down
10 changes: 10 additions & 0 deletions src/knock_mapi/resources/partials.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def upsert(
*,
environment: str,
partial: partial_upsert_params.Partial,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -202,6 +203,9 @@ def upsert(

partial: A partial object with attributes to update or create a partial.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -236,6 +240,7 @@ def upsert(
query=maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down Expand Up @@ -461,6 +466,7 @@ async def upsert(
*,
environment: str,
partial: partial_upsert_params.Partial,
allow_empty: bool | Omit = omit,
annotate: bool | Omit = omit,
branch: str | Omit = omit,
commit: bool | Omit = omit,
Expand All @@ -483,6 +489,9 @@ async def upsert(

partial: A partial object with attributes to update or create a partial.

allow_empty: When used with commit, creates a new version with identical content and commits
it if there are no unpublished changes.

annotate: Whether to annotate the resource. Only used in the Knock CLI.

branch: The slug of a branch to use. This option can only be used when `environment` is
Expand Down Expand Up @@ -517,6 +526,7 @@ async def upsert(
query=await async_maybe_transform(
{
"environment": environment,
"allow_empty": allow_empty,
"annotate": annotate,
"branch": branch,
"commit": commit,
Expand Down
Loading
Loading