@@ -442,6 +442,13 @@ asyncio.run(main())
442442<details open >
443443<summary >Available methods</summary >
444444
445+ ### [ environments] ( docs/sdks/environments/README.md )
446+
447+ * [ create] ( docs/sdks/environments/README.md#create ) - Create an environment
448+ * [ list] ( docs/sdks/environments/README.md#list ) - List all environments
449+ * [ update] ( docs/sdks/environments/README.md#update ) - Update an environment
450+ * [ delete] ( docs/sdks/environments/README.md#delete ) - Delete an environment
451+
445452### [ integrations] ( docs/sdks/integrations/README.md )
446453
447454* [ list] ( docs/sdks/integrations/README.md#list ) - List all integrations
@@ -475,7 +482,7 @@ asyncio.run(main())
475482* [ create] ( docs/sdks/subscribers/README.md#create ) - Create a subscriber
476483* [ retrieve] ( docs/sdks/subscribers/README.md#retrieve ) - Retrieve a subscriber
477484* [ patch] ( docs/sdks/subscribers/README.md#patch ) - Update a subscriber
478- * [ delete] ( docs/sdks/subscribers/README.md#delete ) - Delete subscriber
485+ * [ delete] ( docs/sdks/subscribers/README.md#delete ) - Delete a subscriber
479486* [ create_bulk] ( docs/sdks/subscribers/README.md#create_bulk ) - Bulk create subscribers
480487
481488#### [ subscribers.credentials] ( docs/sdks/credentials/README.md )
@@ -526,6 +533,20 @@ asyncio.run(main())
526533* [ create] ( docs/sdks/subscriptions/README.md#create ) - Create topic subscriptions
527534* [ delete] ( docs/sdks/subscriptions/README.md#delete ) - Delete topic subscriptions
528535
536+ ### [ workflows] ( docs/sdks/workflows/README.md )
537+
538+ * [ create] ( docs/sdks/workflows/README.md#create ) - Create a workflow
539+ * [ list] ( docs/sdks/workflows/README.md#list ) - List all workflows
540+ * [ update] ( docs/sdks/workflows/README.md#update ) - Update a workflow
541+ * [ get] ( docs/sdks/workflows/README.md#get ) - Retrieve a workflow
542+ * [ delete] ( docs/sdks/workflows/README.md#delete ) - Delete a workflow
543+ * [ patch] ( docs/sdks/workflows/README.md#patch ) - Update a workflow
544+ * [ sync] ( docs/sdks/workflows/README.md#sync ) - Sync a workflow
545+
546+ #### [ workflows.steps] ( docs/sdks/steps/README.md )
547+
548+ * [ retrieve] ( docs/sdks/steps/README.md#retrieve ) - Retrieve workflow step
549+
529550</details >
530551<!-- End Available Resources and Operations [operations] -->
531552
@@ -609,13 +630,14 @@ By default, an API error will raise a models.APIError exception, which has the f
609630
610631When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective * Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the ` trigger_async ` method may raise the following exceptions:
611632
612- | Error Type | Status Code | Content Type |
613- | ------------------------- | -------------------------------------- | ---------------- |
614- | models.ErrorDto | 414 | application/json |
615- | models.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
616- | models.ValidationErrorDto | 422 | application/json |
617- | models.ErrorDto | 500 | application/json |
618- | models.APIError | 4XX, 5XX | \* /\* |
633+ | Error Type | Status Code | Content Type |
634+ | ------------------------------------ | --------------------------------- | ---------------- |
635+ | models.PayloadValidationExceptionDto | 400 | application/json |
636+ | models.ErrorDto | 414 | application/json |
637+ | models.ErrorDto | 401, 403, 404, 405, 409, 413, 415 | application/json |
638+ | models.ValidationErrorDto | 422 | application/json |
639+ | models.ErrorDto | 500 | application/json |
640+ | models.APIError | 4XX, 5XX | \* /\* |
619641
620642### Example
621643
@@ -645,6 +667,9 @@ with Novu(
645667 # Handle response
646668 print (res)
647669
670+ except models.PayloadValidationExceptionDto as e:
671+ # handle e.data: models.PayloadValidationExceptionDtoData
672+ raise (e)
648673 except models.ErrorDto as e:
649674 # handle e.data: models.ErrorDtoData
650675 raise (e)
0 commit comments