@novu/api 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +92 -35
- package/bin/mcp-server.js.map +37 -37
- package/docs/sdks/groups/README.md +1 -1
- package/examples/package-lock.json +1 -1
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/translationsGroupsRetrieve.d.ts +1 -1
- package/funcs/translationsGroupsRetrieve.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/translationsGroupsDelete.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsDelete.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.js +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.js.map +1 -1
- package/models/components/chatstepupsertdto.d.ts +6 -1
- package/models/components/chatstepupsertdto.d.ts.map +1 -1
- package/models/components/chatstepupsertdto.js +2 -0
- package/models/components/chatstepupsertdto.js.map +1 -1
- package/models/components/createlayoutdto.d.ts +5 -0
- package/models/components/createlayoutdto.d.ts.map +1 -1
- package/models/components/createlayoutdto.js +2 -0
- package/models/components/createlayoutdto.js.map +1 -1
- package/models/components/createtranslationrequestdto.d.ts +3 -0
- package/models/components/createtranslationrequestdto.d.ts.map +1 -1
- package/models/components/createtranslationrequestdto.js +1 -0
- package/models/components/createtranslationrequestdto.js.map +1 -1
- package/models/components/customstepupsertdto.d.ts +6 -1
- package/models/components/customstepupsertdto.d.ts.map +1 -1
- package/models/components/customstepupsertdto.js +2 -0
- package/models/components/customstepupsertdto.js.map +1 -1
- package/models/components/delaycontroldto.d.ts +12 -4
- package/models/components/delaycontroldto.d.ts.map +1 -1
- package/models/components/delaycontroldto.js +7 -4
- package/models/components/delaycontroldto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +12 -4
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +7 -4
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/delaystepupsertdto.d.ts +6 -1
- package/models/components/delaystepupsertdto.d.ts.map +1 -1
- package/models/components/delaystepupsertdto.js +2 -0
- package/models/components/delaystepupsertdto.js.map +1 -1
- package/models/components/digeststepupsertdto.d.ts +6 -1
- package/models/components/digeststepupsertdto.d.ts.map +1 -1
- package/models/components/digeststepupsertdto.js +2 -0
- package/models/components/digeststepupsertdto.js.map +1 -1
- package/models/components/digesttimedconfigdto.d.ts +5 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -1
- package/models/components/digesttimedconfigdto.js +2 -0
- package/models/components/digesttimedconfigdto.js.map +1 -1
- package/models/components/duplicatelayoutdto.d.ts +5 -0
- package/models/components/duplicatelayoutdto.d.ts.map +1 -1
- package/models/components/duplicatelayoutdto.js +2 -0
- package/models/components/duplicatelayoutdto.js.map +1 -1
- package/models/components/emailstepupsertdto.d.ts +6 -1
- package/models/components/emailstepupsertdto.d.ts.map +1 -1
- package/models/components/emailstepupsertdto.js +2 -0
- package/models/components/emailstepupsertdto.js.map +1 -1
- package/models/components/getmasterjsonresponsedto.d.ts +29 -0
- package/models/components/getmasterjsonresponsedto.d.ts.map +1 -1
- package/models/components/getmasterjsonresponsedto.js +26 -1
- package/models/components/getmasterjsonresponsedto.js.map +1 -1
- package/models/components/inappstepupsertdto.d.ts +6 -1
- package/models/components/inappstepupsertdto.d.ts.map +1 -1
- package/models/components/inappstepupsertdto.js +2 -0
- package/models/components/inappstepupsertdto.js.map +1 -1
- package/models/components/layoutresponsedto.d.ts +5 -0
- package/models/components/layoutresponsedto.d.ts.map +1 -1
- package/models/components/layoutresponsedto.js +2 -0
- package/models/components/layoutresponsedto.js.map +1 -1
- package/models/components/pushstepupsertdto.d.ts +6 -1
- package/models/components/pushstepupsertdto.d.ts.map +1 -1
- package/models/components/pushstepupsertdto.js +2 -0
- package/models/components/pushstepupsertdto.js.map +1 -1
- package/models/components/smsstepupsertdto.d.ts +6 -1
- package/models/components/smsstepupsertdto.d.ts.map +1 -1
- package/models/components/smsstepupsertdto.js +2 -0
- package/models/components/smsstepupsertdto.js.map +1 -1
- package/models/components/throttlestepupsertdto.d.ts +6 -1
- package/models/components/throttlestepupsertdto.d.ts.map +1 -1
- package/models/components/throttlestepupsertdto.js +2 -0
- package/models/components/throttlestepupsertdto.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +5 -0
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +2 -0
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/translationgroupdto.d.ts +3 -0
- package/models/components/translationgroupdto.d.ts.map +1 -1
- package/models/components/translationgroupdto.js +1 -0
- package/models/components/translationgroupdto.js.map +1 -1
- package/models/components/translationresponsedto.d.ts +3 -0
- package/models/components/translationresponsedto.d.ts.map +1 -1
- package/models/components/translationresponsedto.js +1 -0
- package/models/components/translationresponsedto.js.map +1 -1
- package/models/components/uicomponentenum.d.ts +9 -3
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +3 -1
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/updatelayoutdto.d.ts +5 -0
- package/models/components/updatelayoutdto.d.ts.map +1 -1
- package/models/components/updatelayoutdto.js +2 -0
- package/models/components/updatelayoutdto.js.map +1 -1
- package/models/components/uploadtranslationsrequestdto.d.ts +3 -0
- package/models/components/uploadtranslationsrequestdto.d.ts.map +1 -1
- package/models/components/uploadtranslationsrequestdto.js +1 -0
- package/models/components/uploadtranslationsrequestdto.js.map +1 -1
- package/models/components/workflowresponsedto.d.ts +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.d.ts +3 -0
- package/models/operations/translationcontrollergetsingletranslation.d.ts.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.js +1 -0
- package/models/operations/translationcontrollergetsingletranslation.js.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.js.map +1 -1
- package/package.json +1 -1
- package/sdk/groups.d.ts +1 -1
- package/sdk/groups.js +1 -1
- package/sources/json-development.json +149 -28
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/translationsGroupsRetrieve.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/translationsGroupsRetrieve.ts +1 -1
- package/src/models/components/chatstepupsertdto.ts +8 -1
- package/src/models/components/createlayoutdto.ts +7 -0
- package/src/models/components/createtranslationrequestdto.ts +1 -0
- package/src/models/components/customstepupsertdto.ts +8 -1
- package/src/models/components/delaycontroldto.ts +16 -8
- package/src/models/components/delaystepresponsedto.ts +16 -8
- package/src/models/components/delaystepupsertdto.ts +8 -1
- package/src/models/components/digeststepupsertdto.ts +8 -1
- package/src/models/components/digesttimedconfigdto.ts +7 -0
- package/src/models/components/duplicatelayoutdto.ts +7 -0
- package/src/models/components/emailstepupsertdto.ts +8 -1
- package/src/models/components/getmasterjsonresponsedto.ts +53 -0
- package/src/models/components/inappstepupsertdto.ts +8 -1
- package/src/models/components/layoutresponsedto.ts +7 -0
- package/src/models/components/pushstepupsertdto.ts +8 -1
- package/src/models/components/smsstepupsertdto.ts +8 -1
- package/src/models/components/throttlestepupsertdto.ts +8 -1
- package/src/models/components/topicpayloaddto.ts +7 -0
- package/src/models/components/translationgroupdto.ts +1 -0
- package/src/models/components/translationresponsedto.ts +1 -0
- package/src/models/components/uicomponentenum.ts +3 -1
- package/src/models/components/updatelayoutdto.ts +7 -0
- package/src/models/components/uploadtranslationsrequestdto.ts +1 -0
- package/src/models/components/workflowresponsedto.ts +1 -1
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/models/operations/translationcontrollerdeletetranslationendpoint.ts +1 -0
- package/src/models/operations/translationcontrollerdeletetranslationgroupendpoint.ts +1 -0
- package/src/models/operations/translationcontrollergetsingletranslation.ts +1 -0
- package/src/models/operations/translationcontrollergettranslationgroupendpoint.ts +1 -0
- package/src/sdk/groups.ts +1 -1
|
@@ -13144,7 +13144,8 @@
|
|
|
13144
13144
|
"example": "workflow",
|
|
13145
13145
|
"schema": {
|
|
13146
13146
|
"enum": [
|
|
13147
|
-
"workflow"
|
|
13147
|
+
"workflow",
|
|
13148
|
+
"layout"
|
|
13148
13149
|
],
|
|
13149
13150
|
"type": "string"
|
|
13150
13151
|
}
|
|
@@ -13204,7 +13205,8 @@
|
|
|
13204
13205
|
"description": "Resource type",
|
|
13205
13206
|
"schema": {
|
|
13206
13207
|
"enum": [
|
|
13207
|
-
"workflow"
|
|
13208
|
+
"workflow",
|
|
13209
|
+
"layout"
|
|
13208
13210
|
],
|
|
13209
13211
|
"type": "string"
|
|
13210
13212
|
}
|
|
@@ -13279,7 +13281,8 @@
|
|
|
13279
13281
|
"description": "Resource type",
|
|
13280
13282
|
"schema": {
|
|
13281
13283
|
"enum": [
|
|
13282
|
-
"workflow"
|
|
13284
|
+
"workflow",
|
|
13285
|
+
"layout"
|
|
13283
13286
|
],
|
|
13284
13287
|
"type": "string"
|
|
13285
13288
|
}
|
|
@@ -13339,7 +13342,7 @@
|
|
|
13339
13342
|
"x-speakeasy-name-override": "retrieve",
|
|
13340
13343
|
"x-speakeasy-group": "Translations.Groups",
|
|
13341
13344
|
"summary": "Retrieve a translation group",
|
|
13342
|
-
"description": "Retrieves a single translation group by resource type (workflow) and resource ID (workflowId)",
|
|
13345
|
+
"description": "Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)",
|
|
13343
13346
|
"parameters": [
|
|
13344
13347
|
{
|
|
13345
13348
|
"name": "resourceType",
|
|
@@ -13349,7 +13352,8 @@
|
|
|
13349
13352
|
"example": "workflow",
|
|
13350
13353
|
"schema": {
|
|
13351
13354
|
"enum": [
|
|
13352
|
-
"workflow"
|
|
13355
|
+
"workflow",
|
|
13356
|
+
"layout"
|
|
13353
13357
|
],
|
|
13354
13358
|
"type": "string"
|
|
13355
13359
|
}
|
|
@@ -26445,6 +26449,15 @@
|
|
|
26445
26449
|
"type": "string"
|
|
26446
26450
|
}
|
|
26447
26451
|
},
|
|
26452
|
+
{
|
|
26453
|
+
"name": "contextSearch",
|
|
26454
|
+
"required": false,
|
|
26455
|
+
"in": "query",
|
|
26456
|
+
"description": "Context search - can search by type, ID, or exact format \"type:id\"",
|
|
26457
|
+
"schema": {
|
|
26458
|
+
"type": "string"
|
|
26459
|
+
}
|
|
26460
|
+
},
|
|
26448
26461
|
{
|
|
26449
26462
|
"name": "after",
|
|
26450
26463
|
"required": false,
|
|
@@ -33808,6 +33821,13 @@
|
|
|
33808
33821
|
},
|
|
33809
33822
|
"type": {
|
|
33810
33823
|
"$ref": "#/components/schemas/TriggerRecipientsTypeEnum"
|
|
33824
|
+
},
|
|
33825
|
+
"exclude": {
|
|
33826
|
+
"description": "Optional array of subscriber IDs to exclude from the topic trigger",
|
|
33827
|
+
"type": "array",
|
|
33828
|
+
"items": {
|
|
33829
|
+
"type": "string"
|
|
33830
|
+
}
|
|
33811
33831
|
}
|
|
33812
33832
|
},
|
|
33813
33833
|
"required": [
|
|
@@ -34383,6 +34403,10 @@
|
|
|
34383
34403
|
"cronExpression": {
|
|
34384
34404
|
"type": "string",
|
|
34385
34405
|
"description": "Cron expression for scheduling"
|
|
34406
|
+
},
|
|
34407
|
+
"untilDate": {
|
|
34408
|
+
"type": "string",
|
|
34409
|
+
"description": "Until date for scheduling"
|
|
34386
34410
|
}
|
|
34387
34411
|
}
|
|
34388
34412
|
},
|
|
@@ -35356,6 +35380,13 @@
|
|
|
35356
35380
|
"type": "boolean",
|
|
35357
35381
|
"description": "Critical flag"
|
|
35358
35382
|
},
|
|
35383
|
+
"contextKeys": {
|
|
35384
|
+
"description": "Contexts (keys) in which the workflow run was executed",
|
|
35385
|
+
"type": "array",
|
|
35386
|
+
"items": {
|
|
35387
|
+
"type": "string"
|
|
35388
|
+
}
|
|
35389
|
+
},
|
|
35359
35390
|
"steps": {
|
|
35360
35391
|
"description": "Workflow run steps",
|
|
35361
35392
|
"type": "array",
|
|
@@ -35599,6 +35630,13 @@
|
|
|
35599
35630
|
"type": "boolean",
|
|
35600
35631
|
"description": "Critical flag"
|
|
35601
35632
|
},
|
|
35633
|
+
"contextKeys": {
|
|
35634
|
+
"description": "Contexts (keys) in which the workflow run was executed",
|
|
35635
|
+
"type": "array",
|
|
35636
|
+
"items": {
|
|
35637
|
+
"type": "string"
|
|
35638
|
+
}
|
|
35639
|
+
},
|
|
35602
35640
|
"steps": {
|
|
35603
35641
|
"description": "Step runs",
|
|
35604
35642
|
"type": "array",
|
|
@@ -38577,11 +38615,13 @@
|
|
|
38577
38615
|
"URL_TEXT_BOX",
|
|
38578
38616
|
"DIGEST_AMOUNT",
|
|
38579
38617
|
"DIGEST_UNIT",
|
|
38618
|
+
"DIGEST_TYPE",
|
|
38580
38619
|
"DIGEST_KEY",
|
|
38581
38620
|
"DIGEST_CRON",
|
|
38582
|
-
"DELAY_TYPE",
|
|
38583
38621
|
"DELAY_AMOUNT",
|
|
38584
38622
|
"DELAY_UNIT",
|
|
38623
|
+
"DELAY_TYPE",
|
|
38624
|
+
"DELAY_CRON",
|
|
38585
38625
|
"THROTTLE_TYPE",
|
|
38586
38626
|
"THROTTLE_WINDOW",
|
|
38587
38627
|
"THROTTLE_UNIT",
|
|
@@ -38772,6 +38812,10 @@
|
|
|
38772
38812
|
"type": "boolean",
|
|
38773
38813
|
"description": "Whether the layout is the default layout"
|
|
38774
38814
|
},
|
|
38815
|
+
"isTranslationEnabled": {
|
|
38816
|
+
"type": "boolean",
|
|
38817
|
+
"description": "Whether the layout translations are enabled"
|
|
38818
|
+
},
|
|
38775
38819
|
"updatedAt": {
|
|
38776
38820
|
"type": "string",
|
|
38777
38821
|
"description": "Last updated timestamp"
|
|
@@ -38816,6 +38860,7 @@
|
|
|
38816
38860
|
"slug",
|
|
38817
38861
|
"name",
|
|
38818
38862
|
"isDefault",
|
|
38863
|
+
"isTranslationEnabled",
|
|
38819
38864
|
"updatedAt",
|
|
38820
38865
|
"createdAt",
|
|
38821
38866
|
"origin",
|
|
@@ -38842,6 +38887,11 @@
|
|
|
38842
38887
|
"type": "string",
|
|
38843
38888
|
"description": "Name of the layout"
|
|
38844
38889
|
},
|
|
38890
|
+
"isTranslationEnabled": {
|
|
38891
|
+
"type": "boolean",
|
|
38892
|
+
"description": "Enable or disable translations for this layout",
|
|
38893
|
+
"default": false
|
|
38894
|
+
},
|
|
38845
38895
|
"__source": {
|
|
38846
38896
|
"$ref": "#/components/schemas/LayoutCreationSourceEnum"
|
|
38847
38897
|
}
|
|
@@ -38858,6 +38908,11 @@
|
|
|
38858
38908
|
"type": "string",
|
|
38859
38909
|
"description": "Name of the layout"
|
|
38860
38910
|
},
|
|
38911
|
+
"isTranslationEnabled": {
|
|
38912
|
+
"type": "boolean",
|
|
38913
|
+
"description": "Enable or disable translations for this layout",
|
|
38914
|
+
"default": false
|
|
38915
|
+
},
|
|
38861
38916
|
"controlValues": {
|
|
38862
38917
|
"nullable": true,
|
|
38863
38918
|
"description": "Control values for the layout",
|
|
@@ -38878,6 +38933,11 @@
|
|
|
38878
38933
|
"name": {
|
|
38879
38934
|
"type": "string",
|
|
38880
38935
|
"description": "Name of the layout"
|
|
38936
|
+
},
|
|
38937
|
+
"isTranslationEnabled": {
|
|
38938
|
+
"type": "boolean",
|
|
38939
|
+
"description": "Enable or disable translations for this layout",
|
|
38940
|
+
"default": false
|
|
38881
38941
|
}
|
|
38882
38942
|
},
|
|
38883
38943
|
"required": [
|
|
@@ -40404,7 +40464,8 @@
|
|
|
40404
40464
|
"type": {
|
|
40405
40465
|
"type": "string",
|
|
40406
40466
|
"enum": [
|
|
40407
|
-
"regular"
|
|
40467
|
+
"regular",
|
|
40468
|
+
"timed"
|
|
40408
40469
|
],
|
|
40409
40470
|
"description": "Type of the delay. Currently only 'regular' is supported by the schema.",
|
|
40410
40471
|
"default": "regular"
|
|
@@ -40425,13 +40486,13 @@
|
|
|
40425
40486
|
],
|
|
40426
40487
|
"type": "string",
|
|
40427
40488
|
"description": "Unit of time for the delay amount."
|
|
40489
|
+
},
|
|
40490
|
+
"cron": {
|
|
40491
|
+
"type": "string",
|
|
40492
|
+
"minLength": 1,
|
|
40493
|
+
"description": "Cron expression for the delay. Min length 1."
|
|
40428
40494
|
}
|
|
40429
|
-
}
|
|
40430
|
-
"required": [
|
|
40431
|
-
"type",
|
|
40432
|
-
"amount",
|
|
40433
|
-
"unit"
|
|
40434
|
-
]
|
|
40495
|
+
}
|
|
40435
40496
|
},
|
|
40436
40497
|
"DelayControlsMetadataResponseDto": {
|
|
40437
40498
|
"type": "object",
|
|
@@ -41424,7 +41485,7 @@
|
|
|
41424
41485
|
},
|
|
41425
41486
|
"_id": {
|
|
41426
41487
|
"type": "string",
|
|
41427
|
-
"description": "
|
|
41488
|
+
"description": "Database identifier of the workflow"
|
|
41428
41489
|
},
|
|
41429
41490
|
"workflowId": {
|
|
41430
41491
|
"type": "string",
|
|
@@ -41569,7 +41630,12 @@
|
|
|
41569
41630
|
"properties": {
|
|
41570
41631
|
"_id": {
|
|
41571
41632
|
"type": "string",
|
|
41572
|
-
"description": "
|
|
41633
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41634
|
+
},
|
|
41635
|
+
"stepId": {
|
|
41636
|
+
"type": "string",
|
|
41637
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41638
|
+
"description": "Unique identifier for the step"
|
|
41573
41639
|
},
|
|
41574
41640
|
"name": {
|
|
41575
41641
|
"type": "string",
|
|
@@ -41601,7 +41667,12 @@
|
|
|
41601
41667
|
"properties": {
|
|
41602
41668
|
"_id": {
|
|
41603
41669
|
"type": "string",
|
|
41604
|
-
"description": "
|
|
41670
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41671
|
+
},
|
|
41672
|
+
"stepId": {
|
|
41673
|
+
"type": "string",
|
|
41674
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41675
|
+
"description": "Unique identifier for the step"
|
|
41605
41676
|
},
|
|
41606
41677
|
"name": {
|
|
41607
41678
|
"type": "string",
|
|
@@ -41633,7 +41704,12 @@
|
|
|
41633
41704
|
"properties": {
|
|
41634
41705
|
"_id": {
|
|
41635
41706
|
"type": "string",
|
|
41636
|
-
"description": "
|
|
41707
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41708
|
+
},
|
|
41709
|
+
"stepId": {
|
|
41710
|
+
"type": "string",
|
|
41711
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41712
|
+
"description": "Unique identifier for the step"
|
|
41637
41713
|
},
|
|
41638
41714
|
"name": {
|
|
41639
41715
|
"type": "string",
|
|
@@ -41665,7 +41741,12 @@
|
|
|
41665
41741
|
"properties": {
|
|
41666
41742
|
"_id": {
|
|
41667
41743
|
"type": "string",
|
|
41668
|
-
"description": "
|
|
41744
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41745
|
+
},
|
|
41746
|
+
"stepId": {
|
|
41747
|
+
"type": "string",
|
|
41748
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41749
|
+
"description": "Unique identifier for the step"
|
|
41669
41750
|
},
|
|
41670
41751
|
"name": {
|
|
41671
41752
|
"type": "string",
|
|
@@ -41697,7 +41778,12 @@
|
|
|
41697
41778
|
"properties": {
|
|
41698
41779
|
"_id": {
|
|
41699
41780
|
"type": "string",
|
|
41700
|
-
"description": "
|
|
41781
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41782
|
+
},
|
|
41783
|
+
"stepId": {
|
|
41784
|
+
"type": "string",
|
|
41785
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41786
|
+
"description": "Unique identifier for the step"
|
|
41701
41787
|
},
|
|
41702
41788
|
"name": {
|
|
41703
41789
|
"type": "string",
|
|
@@ -41729,7 +41815,12 @@
|
|
|
41729
41815
|
"properties": {
|
|
41730
41816
|
"_id": {
|
|
41731
41817
|
"type": "string",
|
|
41732
|
-
"description": "
|
|
41818
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41819
|
+
},
|
|
41820
|
+
"stepId": {
|
|
41821
|
+
"type": "string",
|
|
41822
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41823
|
+
"description": "Unique identifier for the step"
|
|
41733
41824
|
},
|
|
41734
41825
|
"name": {
|
|
41735
41826
|
"type": "string",
|
|
@@ -41761,7 +41852,12 @@
|
|
|
41761
41852
|
"properties": {
|
|
41762
41853
|
"_id": {
|
|
41763
41854
|
"type": "string",
|
|
41764
|
-
"description": "
|
|
41855
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41856
|
+
},
|
|
41857
|
+
"stepId": {
|
|
41858
|
+
"type": "string",
|
|
41859
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41860
|
+
"description": "Unique identifier for the step"
|
|
41765
41861
|
},
|
|
41766
41862
|
"name": {
|
|
41767
41863
|
"type": "string",
|
|
@@ -41793,7 +41889,12 @@
|
|
|
41793
41889
|
"properties": {
|
|
41794
41890
|
"_id": {
|
|
41795
41891
|
"type": "string",
|
|
41796
|
-
"description": "
|
|
41892
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41893
|
+
},
|
|
41894
|
+
"stepId": {
|
|
41895
|
+
"type": "string",
|
|
41896
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41897
|
+
"description": "Unique identifier for the step"
|
|
41797
41898
|
},
|
|
41798
41899
|
"name": {
|
|
41799
41900
|
"type": "string",
|
|
@@ -41825,7 +41926,12 @@
|
|
|
41825
41926
|
"properties": {
|
|
41826
41927
|
"_id": {
|
|
41827
41928
|
"type": "string",
|
|
41828
|
-
"description": "
|
|
41929
|
+
"description": "Database identifier of the step. Used for updating the step."
|
|
41930
|
+
},
|
|
41931
|
+
"stepId": {
|
|
41932
|
+
"type": "string",
|
|
41933
|
+
"pattern": "/^[a-z0-9]+(?:-[a-z0-9]+)*$/",
|
|
41934
|
+
"description": "Unique identifier for the step"
|
|
41829
41935
|
},
|
|
41830
41936
|
"name": {
|
|
41831
41937
|
"type": "string",
|
|
@@ -42719,7 +42825,8 @@
|
|
|
42719
42825
|
"type": "string",
|
|
42720
42826
|
"description": "The resource type to associate localizations with",
|
|
42721
42827
|
"enum": [
|
|
42722
|
-
"workflow"
|
|
42828
|
+
"workflow",
|
|
42829
|
+
"layout"
|
|
42723
42830
|
]
|
|
42724
42831
|
}
|
|
42725
42832
|
},
|
|
@@ -42776,7 +42883,8 @@
|
|
|
42776
42883
|
"type": "string",
|
|
42777
42884
|
"description": "The resource type to associate translation with",
|
|
42778
42885
|
"enum": [
|
|
42779
|
-
"workflow"
|
|
42886
|
+
"workflow",
|
|
42887
|
+
"layout"
|
|
42780
42888
|
]
|
|
42781
42889
|
},
|
|
42782
42890
|
"locale": {
|
|
@@ -42813,7 +42921,8 @@
|
|
|
42813
42921
|
"description": "Resource type",
|
|
42814
42922
|
"example": "workflow",
|
|
42815
42923
|
"enum": [
|
|
42816
|
-
"workflow"
|
|
42924
|
+
"workflow",
|
|
42925
|
+
"layout"
|
|
42817
42926
|
]
|
|
42818
42927
|
},
|
|
42819
42928
|
"locale": {
|
|
@@ -42865,10 +42974,21 @@
|
|
|
42865
42974
|
"reset.message": "Click the link to reset"
|
|
42866
42975
|
}
|
|
42867
42976
|
}
|
|
42977
|
+
},
|
|
42978
|
+
"layouts": {
|
|
42979
|
+
"type": "object",
|
|
42980
|
+
"description": "All translations for given locale organized by layout identifier",
|
|
42981
|
+
"example": {
|
|
42982
|
+
"default-layout": {
|
|
42983
|
+
"layout.title": "Default layout",
|
|
42984
|
+
"layout.message": "Hello there!"
|
|
42985
|
+
}
|
|
42986
|
+
}
|
|
42868
42987
|
}
|
|
42869
42988
|
},
|
|
42870
42989
|
"required": [
|
|
42871
|
-
"workflows"
|
|
42990
|
+
"workflows",
|
|
42991
|
+
"layouts"
|
|
42872
42992
|
]
|
|
42873
42993
|
},
|
|
42874
42994
|
"ImportMasterJsonRequestDto": {
|
|
@@ -42954,7 +43074,8 @@
|
|
|
42954
43074
|
"description": "Resource type",
|
|
42955
43075
|
"example": "workflow",
|
|
42956
43076
|
"enum": [
|
|
42957
|
-
"workflow"
|
|
43077
|
+
"workflow",
|
|
43078
|
+
"layout"
|
|
42958
43079
|
]
|
|
42959
43080
|
},
|
|
42960
43081
|
"resourceName": {
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Retrieve a translation group
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Retrieves a single translation group by resource type (workflow) and resource ID (workflowId)
|
|
32
|
+
* Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)
|
|
33
33
|
*/
|
|
34
34
|
export function translationsGroupsRetrieve(
|
|
35
35
|
client: NovuCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "3.9.0",
|
|
62
|
-
sdkVersion: "1.7.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 1.7.
|
|
62
|
+
sdkVersion: "1.7.1",
|
|
63
|
+
genVersion: "2.721.3",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 1.7.1 2.721.3 3.9.0 @novu/api",
|
|
65
65
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const tool$translationsGroupsRetrieve: ToolDefinition<typeof args> = {
|
|
|
19
19
|
name: "translations-groups-retrieve",
|
|
20
20
|
description: `Retrieve a translation group
|
|
21
21
|
|
|
22
|
-
Retrieves a single translation group by resource type (workflow) and resource ID (workflowId)`,
|
|
22
|
+
Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)`,
|
|
23
23
|
args,
|
|
24
24
|
tool: async (client, args, ctx) => {
|
|
25
25
|
const [result, apiCall] = await translationsGroupsRetrieve(
|
|
@@ -28,9 +28,13 @@ export type ChatStepUpsertDtoControlValues = ChatControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type ChatStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const ChatStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([ChatControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const ChatStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type ChatStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: ChatControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const ChatStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
ChatStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([ChatControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -22,6 +22,10 @@ export type CreateLayoutDto = {
|
|
|
22
22
|
* Name of the layout
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Enable or disable translations for this layout
|
|
27
|
+
*/
|
|
28
|
+
isTranslationEnabled?: boolean | undefined;
|
|
25
29
|
/**
|
|
26
30
|
* Source of layout creation
|
|
27
31
|
*/
|
|
@@ -36,6 +40,7 @@ export const CreateLayoutDto$inboundSchema: z.ZodType<
|
|
|
36
40
|
> = z.object({
|
|
37
41
|
layoutId: z.string(),
|
|
38
42
|
name: z.string(),
|
|
43
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
39
44
|
__source: LayoutCreationSourceEnum$inboundSchema.default("dashboard"),
|
|
40
45
|
}).transform((v) => {
|
|
41
46
|
return remap$(v, {
|
|
@@ -47,6 +52,7 @@ export const CreateLayoutDto$inboundSchema: z.ZodType<
|
|
|
47
52
|
export type CreateLayoutDto$Outbound = {
|
|
48
53
|
layoutId: string;
|
|
49
54
|
name: string;
|
|
55
|
+
isTranslationEnabled: boolean;
|
|
50
56
|
__source: string;
|
|
51
57
|
};
|
|
52
58
|
|
|
@@ -58,6 +64,7 @@ export const CreateLayoutDto$outboundSchema: z.ZodType<
|
|
|
58
64
|
> = z.object({
|
|
59
65
|
layoutId: z.string(),
|
|
60
66
|
name: z.string(),
|
|
67
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
61
68
|
source: LayoutCreationSourceEnum$outboundSchema.default("dashboard"),
|
|
62
69
|
}).transform((v) => {
|
|
63
70
|
return remap$(v, {
|
|
@@ -28,9 +28,13 @@ export type CustomStepUpsertDtoControlValues = CustomControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type CustomStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const CustomStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([CustomControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const CustomStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type CustomStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: CustomControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const CustomStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
CustomStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([CustomControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -13,6 +13,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export const Type = {
|
|
15
15
|
Regular: "regular",
|
|
16
|
+
Timed: "timed",
|
|
16
17
|
} as const;
|
|
17
18
|
/**
|
|
18
19
|
* Type of the delay. Currently only 'regular' is supported by the schema.
|
|
@@ -47,11 +48,15 @@ export type DelayControlDto = {
|
|
|
47
48
|
/**
|
|
48
49
|
* Amount of time to delay.
|
|
49
50
|
*/
|
|
50
|
-
amount
|
|
51
|
+
amount?: number | undefined;
|
|
51
52
|
/**
|
|
52
53
|
* Unit of time for the delay amount.
|
|
53
54
|
*/
|
|
54
|
-
unit
|
|
55
|
+
unit?: Unit | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Cron expression for the delay. Min length 1.
|
|
58
|
+
*/
|
|
59
|
+
cron?: string | undefined;
|
|
55
60
|
};
|
|
56
61
|
|
|
57
62
|
/** @internal */
|
|
@@ -102,16 +107,18 @@ export const DelayControlDto$inboundSchema: z.ZodType<
|
|
|
102
107
|
> = z.object({
|
|
103
108
|
skip: z.record(z.any()).optional(),
|
|
104
109
|
type: Type$inboundSchema.default("regular"),
|
|
105
|
-
amount: z.number(),
|
|
106
|
-
unit: Unit$inboundSchema,
|
|
110
|
+
amount: z.number().optional(),
|
|
111
|
+
unit: Unit$inboundSchema.optional(),
|
|
112
|
+
cron: z.string().optional(),
|
|
107
113
|
});
|
|
108
114
|
|
|
109
115
|
/** @internal */
|
|
110
116
|
export type DelayControlDto$Outbound = {
|
|
111
117
|
skip?: { [k: string]: any } | undefined;
|
|
112
118
|
type: string;
|
|
113
|
-
amount
|
|
114
|
-
unit
|
|
119
|
+
amount?: number | undefined;
|
|
120
|
+
unit?: string | undefined;
|
|
121
|
+
cron?: string | undefined;
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
/** @internal */
|
|
@@ -122,8 +129,9 @@ export const DelayControlDto$outboundSchema: z.ZodType<
|
|
|
122
129
|
> = z.object({
|
|
123
130
|
skip: z.record(z.any()).optional(),
|
|
124
131
|
type: Type$outboundSchema.default("regular"),
|
|
125
|
-
amount: z.number(),
|
|
126
|
-
unit: Unit$outboundSchema,
|
|
132
|
+
amount: z.number().optional(),
|
|
133
|
+
unit: Unit$outboundSchema.optional(),
|
|
134
|
+
cron: z.string().optional(),
|
|
127
135
|
});
|
|
128
136
|
|
|
129
137
|
/**
|