From 6d7c22aaf9cb48bda949488c8be7a968d003f18b Mon Sep 17 00:00:00 2001 From: chrisgacsal <8679051+chrisgacsal@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:28:14 +0000 Subject: [PATCH] chore(api): generate python client --- .../src/openmeter/_operations/_operations.py | 30 ++++++------------- .../openmeter/aio/_operations/_operations.py | 30 ++++++------------- 2 files changed, 18 insertions(+), 42 deletions(-) diff --git a/api/client/python/src/openmeter/_operations/_operations.py b/api/client/python/src/openmeter/_operations/_operations.py index 9b7160596..a552b09a4 100644 --- a/api/client/python/src/openmeter/_operations/_operations.py +++ b/api/client/python/src/openmeter/_operations/_operations.py @@ -6226,7 +6226,6 @@ def list_notification_events( subject: Optional[List[str]] = None, **kwargs: Any ) -> List[JSON]: - # pylint: disable=line-too-long """List notification evens. List all notification events. @@ -6260,7 +6259,12 @@ def list_notification_events( notification event was created. Required. "deliveryStatus": [ { - "channelId": "str", # Required. + "channel": { + "id": "str", # A unique identifier for the + notification channel. Required. + "type": "str" # The type of the notification + channel. Required. "WEBHOOK" + }, "state": "str", # Required. Known values are: "SUCCESS", "FAILED", and "SENDING". "updatedAt": "2020-02-20 00:00:00" # Required. @@ -6268,28 +6272,12 @@ def list_notification_events( ], "id": "str", # A unique identifier for the notification event. Required. - "payload": { - "data": { - "str": {} # Event type specific data. The format - may vary based on the type of the event and the schema is defined for - each event type separately. Required. - }, - "id": "str", # A unique identifier for the notification - event the payload belongs to. Required. - "timestamp": "2020-02-20 00:00:00", # Timestamp when the - notification event was created. Required. - "type": "str", # The type of the notification rule generated - this event. Required. - "metadata": { - "str": {} # Optional. Metadata information related - to the event. - } - }, + "payload": {}, "rule": { "id": "str", # A unique identifier for the notification rule. Required. - "type": "str" # The type of the notification rule. Required. - "entitlements.balance.threshold" + "type": "str" # The type of the notification event. + Required. "entitlements.balance.threshold" } } ] diff --git a/api/client/python/src/openmeter/aio/_operations/_operations.py b/api/client/python/src/openmeter/aio/_operations/_operations.py index bc3ba53a6..7782a697c 100644 --- a/api/client/python/src/openmeter/aio/_operations/_operations.py +++ b/api/client/python/src/openmeter/aio/_operations/_operations.py @@ -5247,7 +5247,6 @@ async def list_notification_events( subject: Optional[List[str]] = None, **kwargs: Any ) -> List[JSON]: - # pylint: disable=line-too-long """List notification evens. List all notification events. @@ -5281,7 +5280,12 @@ async def list_notification_events( notification event was created. Required. "deliveryStatus": [ { - "channelId": "str", # Required. + "channel": { + "id": "str", # A unique identifier for the + notification channel. Required. + "type": "str" # The type of the notification + channel. Required. "WEBHOOK" + }, "state": "str", # Required. Known values are: "SUCCESS", "FAILED", and "SENDING". "updatedAt": "2020-02-20 00:00:00" # Required. @@ -5289,28 +5293,12 @@ async def list_notification_events( ], "id": "str", # A unique identifier for the notification event. Required. - "payload": { - "data": { - "str": {} # Event type specific data. The format - may vary based on the type of the event and the schema is defined for - each event type separately. Required. - }, - "id": "str", # A unique identifier for the notification - event the payload belongs to. Required. - "timestamp": "2020-02-20 00:00:00", # Timestamp when the - notification event was created. Required. - "type": "str", # The type of the notification rule generated - this event. Required. - "metadata": { - "str": {} # Optional. Metadata information related - to the event. - } - }, + "payload": {}, "rule": { "id": "str", # A unique identifier for the notification rule. Required. - "type": "str" # The type of the notification rule. Required. - "entitlements.balance.threshold" + "type": "str" # The type of the notification event. + Required. "entitlements.balance.threshold" } } ]