@novu/framework 2.13.0 → 2.13.1-rc.852194fa77

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.
Files changed (92) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/{agent.types-Dqm2VBTO.d.cts → agent.types-CQKSD7NC.d.cts} +84 -3
  3. package/dist/cjs/ai-sdk/index.cjs +4 -1
  4. package/dist/cjs/ai-sdk/index.d.cts +16 -5
  5. package/dist/cjs/cards.cjs +28 -28
  6. package/dist/cjs/cards.d.cts +1 -1
  7. package/dist/cjs/{health-check.types-B9FbzRbm.d.cts → health-check.types-B6RuXNc8.d.cts} +72 -66
  8. package/dist/cjs/{index-CLZZRnNV.d.cts → index-phn3kJ9H.d.cts} +18 -6
  9. package/dist/cjs/index.cjs +112 -112
  10. package/dist/cjs/index.d.cts +6 -6
  11. package/dist/cjs/internal/index.cjs +46 -43
  12. package/dist/cjs/internal/index.d.cts +314 -28
  13. package/dist/cjs/langchain/index.cjs +4 -1
  14. package/dist/cjs/langchain/index.d.cts +38 -6
  15. package/dist/cjs/servers/express.cjs +102 -102
  16. package/dist/cjs/servers/express.d.cts +7 -7
  17. package/dist/cjs/servers/h3.cjs +106 -106
  18. package/dist/cjs/servers/h3.d.cts +7 -7
  19. package/dist/cjs/servers/hono.cjs +106 -106
  20. package/dist/cjs/servers/hono.d.cts +7 -7
  21. package/dist/cjs/servers/lambda.cjs +102 -102
  22. package/dist/cjs/servers/lambda.d.cts +7 -7
  23. package/dist/cjs/servers/nest.cjs +115 -115
  24. package/dist/cjs/servers/nest.d.cts +9 -9
  25. package/dist/cjs/servers/next.cjs +124 -124
  26. package/dist/cjs/servers/next.d.cts +7 -7
  27. package/dist/cjs/servers/nuxt.cjs +106 -106
  28. package/dist/cjs/servers/nuxt.d.cts +7 -7
  29. package/dist/cjs/servers/remix.cjs +117 -117
  30. package/dist/cjs/servers/remix.d.cts +7 -7
  31. package/dist/cjs/servers/sveltekit.cjs +114 -114
  32. package/dist/cjs/servers/sveltekit.d.cts +7 -7
  33. package/dist/cjs/step-resolver.cjs +4 -4
  34. package/dist/cjs/step-resolver.d.cts +18 -4
  35. package/dist/cjs/{subscriber.types-DubxcL8q.d.cts → subscriber.types-_eHz1E0m.d.cts} +738 -20
  36. package/dist/cjs/validators.cjs +1 -1
  37. package/dist/esm/{agent.types-E3sxq6xr.d.ts → agent.types-C17NUGxY.d.ts} +84 -3
  38. package/dist/esm/ai-sdk/index.d.ts +16 -5
  39. package/dist/esm/ai-sdk/index.js +1 -1
  40. package/dist/esm/cards.d.ts +1 -1
  41. package/dist/esm/cards.js +1 -1
  42. package/dist/esm/chunk-PU74XQ2P.js +1 -0
  43. package/dist/esm/chunk-Q3ALQWIF.js +1 -0
  44. package/dist/esm/chunk-QZ6TSYCK.js +4 -0
  45. package/dist/esm/{chunk-CANJPWLT.js → chunk-UXO4RWZV.js} +4 -4
  46. package/dist/esm/{chunk-FRWG7YTE.js → chunk-VY27ZAO7.js} +1 -1
  47. package/dist/esm/chunk-WJUYDVXH.js +98 -0
  48. package/dist/esm/{chunk-46AHJTS7.js → chunk-X5AZIKIR.js} +8 -8
  49. package/dist/esm/{chunk-22DBAEUX.js → chunk-XIVU4VDS.js} +1 -1
  50. package/dist/esm/{chunk-2M25EATE.js → chunk-YLCLZVYS.js} +1 -1
  51. package/dist/esm/chunk-YZ3P3MMZ.js +1 -0
  52. package/dist/esm/{health-check.types-BNocZ4Wk.d.ts → health-check.types-CL5-B_D4.d.ts} +72 -66
  53. package/dist/esm/{index-CWldA6G5.d.ts → index-CYtGHJJu.d.ts} +18 -6
  54. package/dist/esm/index.d.ts +6 -6
  55. package/dist/esm/index.js +1 -1
  56. package/dist/esm/internal/index.d.ts +306 -20
  57. package/dist/esm/internal/index.js +1 -1
  58. package/dist/esm/jsx-dev-runtime.js +1 -1
  59. package/dist/esm/{jsx-runtime-P2HN3TPO.js → jsx-runtime-5ZWEWA4A.js} +1 -1
  60. package/dist/esm/jsx-runtime.js +1 -1
  61. package/dist/esm/langchain/index.d.ts +38 -6
  62. package/dist/esm/langchain/index.js +1 -1
  63. package/dist/esm/servers/express.d.ts +7 -7
  64. package/dist/esm/servers/express.js +1 -1
  65. package/dist/esm/servers/h3.d.ts +7 -7
  66. package/dist/esm/servers/h3.js +1 -1
  67. package/dist/esm/servers/hono.d.ts +7 -7
  68. package/dist/esm/servers/hono.js +1 -1
  69. package/dist/esm/servers/lambda.d.ts +7 -7
  70. package/dist/esm/servers/lambda.js +1 -1
  71. package/dist/esm/servers/nest.d.ts +9 -9
  72. package/dist/esm/servers/nest.js +1 -1
  73. package/dist/esm/servers/next.d.ts +7 -7
  74. package/dist/esm/servers/next.js +1 -1
  75. package/dist/esm/servers/nuxt.d.ts +7 -7
  76. package/dist/esm/servers/nuxt.js +1 -1
  77. package/dist/esm/servers/remix.d.ts +7 -7
  78. package/dist/esm/servers/remix.js +1 -1
  79. package/dist/esm/servers/sveltekit.d.ts +7 -7
  80. package/dist/esm/servers/sveltekit.js +1 -1
  81. package/dist/esm/step-resolver.d.ts +18 -4
  82. package/dist/esm/step-resolver.js +1 -1
  83. package/dist/esm/{subscriber.types-CmybpXhA.d.ts → subscriber.types-D4PvRIKR.d.ts} +738 -20
  84. package/dist/esm/validators.js +1 -1
  85. package/langchain/package.json +4 -0
  86. package/nest/package.json +2 -1
  87. package/package.json +4 -3
  88. package/dist/esm/chunk-LHU5A7DI.js +0 -1
  89. package/dist/esm/chunk-W6DIBD4Z.js +0 -1
  90. package/dist/esm/chunk-WDBIT4NK.js +0 -98
  91. /package/dist/esm/{chunk-3ZWME5KT.js → chunk-7C3QBYLB.js} +0 -0
  92. /package/dist/esm/{chunk-XEHQJMMQ.js → chunk-RBTQQ5IZ.js} +0 -0
@@ -1,6 +1,23 @@
1
+ import { CardElement } from 'chat';
1
2
  import { F as FromSchemaUnvalidated, S as Schema, a as FromSchema } from './base.schema.types-BApIn9jr.cjs';
2
3
  import { a as Prettify, A as Awaitable } from './util.types-DaFfsxgy.cjs';
3
4
 
5
+ declare enum ChannelStepEnum {
6
+ EMAIL = "email",
7
+ SMS = "sms",
8
+ PUSH = "push",
9
+ CHAT = "chat",
10
+ IN_APP = "in_app",
11
+ TOOL = "tool"
12
+ }
13
+ declare enum ActionStepEnum {
14
+ DIGEST = "digest",
15
+ DELAY = "delay",
16
+ THROTTLE = "throttle",
17
+ CUSTOM = "custom",
18
+ HTTP_REQUEST = "http_request"
19
+ }
20
+
4
21
  type ContextType = string;
5
22
  type ContextId = string;
6
23
  type ContextData = Record<string, unknown>;
@@ -98,21 +115,6 @@ type ContextResolved = Record<ContextType, {
98
115
  data: ContextData;
99
116
  }>;
100
117
 
101
- declare enum ChannelStepEnum {
102
- EMAIL = "email",
103
- SMS = "sms",
104
- PUSH = "push",
105
- CHAT = "chat",
106
- IN_APP = "in_app"
107
- }
108
- declare enum ActionStepEnum {
109
- DIGEST = "digest",
110
- DELAY = "delay",
111
- THROTTLE = "throttle",
112
- CUSTOM = "custom",
113
- HTTP_REQUEST = "http_request"
114
- }
115
-
116
118
  declare const providerSchemas: {
117
119
  readonly chat: {
118
120
  readonly 'chat-webhook': {
@@ -147,6 +149,14 @@ declare const providerSchemas: {
147
149
  readonly additionalProperties: true;
148
150
  };
149
151
  };
152
+ readonly line: {
153
+ output: {
154
+ readonly type: "object";
155
+ readonly properties: {};
156
+ readonly required: readonly [];
157
+ readonly additionalProperties: true;
158
+ };
159
+ };
150
160
  readonly mattermost: {
151
161
  output: {
152
162
  readonly type: "object";
@@ -163,6 +173,22 @@ declare const providerSchemas: {
163
173
  readonly additionalProperties: true;
164
174
  };
165
175
  };
176
+ readonly 'novu-slack': {
177
+ output: {
178
+ readonly type: "object";
179
+ readonly properties: {};
180
+ readonly required: readonly [];
181
+ readonly additionalProperties: true;
182
+ };
183
+ };
184
+ readonly 'novu-agent-chat': {
185
+ output: {
186
+ readonly type: "object";
187
+ readonly properties: {};
188
+ readonly required: readonly [];
189
+ readonly additionalProperties: true;
190
+ };
191
+ };
166
192
  readonly 'rocket-chat': {
167
193
  output: {
168
194
  readonly type: "object";
@@ -204,7 +230,7 @@ declare const providerSchemas: {
204
230
  readonly type: "object";
205
231
  readonly properties: {
206
232
  readonly type: {
207
- readonly enum: readonly ["image", "context", "actions", "divider", "section", "input", "file", "header", "video", "rich_text"];
233
+ readonly type: "string";
208
234
  };
209
235
  };
210
236
  readonly required: readonly ["type"];
@@ -215,6 +241,14 @@ declare const providerSchemas: {
215
241
  readonly additionalProperties: true;
216
242
  };
217
243
  };
244
+ readonly 'webex-messaging': {
245
+ output: {
246
+ readonly type: "object";
247
+ readonly properties: {};
248
+ readonly required: readonly [];
249
+ readonly additionalProperties: true;
250
+ };
251
+ };
218
252
  readonly 'whatsapp-business': {
219
253
  output: {
220
254
  readonly type: "object";
@@ -654,6 +688,14 @@ declare const providerSchemas: {
654
688
  readonly additionalProperties: true;
655
689
  };
656
690
  };
691
+ readonly 'ruach-sms': {
692
+ output: {
693
+ readonly type: "object";
694
+ readonly properties: {};
695
+ readonly required: readonly [];
696
+ readonly additionalProperties: true;
697
+ };
698
+ };
657
699
  };
658
700
  readonly email: {
659
701
  readonly anypost: {
@@ -3679,6 +3721,40 @@ declare const providerSchemas: {
3679
3721
  };
3680
3722
  };
3681
3723
  };
3724
+ readonly tool: {
3725
+ readonly pagerduty: {
3726
+ output: {
3727
+ readonly type: "object";
3728
+ readonly properties: {};
3729
+ readonly required: readonly [];
3730
+ readonly additionalProperties: true;
3731
+ };
3732
+ };
3733
+ readonly opsgenie: {
3734
+ output: {
3735
+ readonly type: "object";
3736
+ readonly properties: {};
3737
+ readonly required: readonly [];
3738
+ readonly additionalProperties: true;
3739
+ };
3740
+ };
3741
+ readonly grafana: {
3742
+ output: {
3743
+ readonly type: "object";
3744
+ readonly properties: {};
3745
+ readonly required: readonly [];
3746
+ readonly additionalProperties: true;
3747
+ };
3748
+ };
3749
+ readonly 'tool-webhook': {
3750
+ output: {
3751
+ readonly type: "object";
3752
+ readonly properties: {};
3753
+ readonly required: readonly [];
3754
+ readonly additionalProperties: true;
3755
+ };
3756
+ };
3757
+ };
3682
3758
  };
3683
3759
 
3684
3760
  type Passthrough = {
@@ -4028,8 +4104,596 @@ declare const channelStepSchemas: {
4028
4104
  readonly body: {
4029
4105
  readonly type: "string";
4030
4106
  };
4107
+ readonly card: {
4108
+ readonly type: "object";
4109
+ readonly properties: {
4110
+ readonly type: {
4111
+ readonly type: "string";
4112
+ readonly const: "card";
4113
+ };
4114
+ readonly title: {
4115
+ readonly type: "string";
4116
+ };
4117
+ readonly subtitle: {
4118
+ readonly type: "string";
4119
+ };
4120
+ readonly imageUrl: {
4121
+ readonly type: "string";
4122
+ };
4123
+ readonly children: {
4124
+ readonly type: "array";
4125
+ readonly items: {
4126
+ readonly anyOf: readonly [{
4127
+ readonly type: "object";
4128
+ readonly properties: {
4129
+ readonly type: {
4130
+ readonly type: "string";
4131
+ readonly const: "text";
4132
+ };
4133
+ readonly content: {
4134
+ readonly type: "string";
4135
+ };
4136
+ readonly style: {
4137
+ readonly type: "string";
4138
+ readonly enum: readonly ["plain", "bold", "muted"];
4139
+ };
4140
+ };
4141
+ readonly required: readonly ["type", "content"];
4142
+ }, {
4143
+ readonly type: "object";
4144
+ readonly properties: {
4145
+ readonly type: {
4146
+ readonly type: "string";
4147
+ readonly const: "image";
4148
+ };
4149
+ readonly url: {
4150
+ readonly type: "string";
4151
+ };
4152
+ readonly alt: {
4153
+ readonly type: "string";
4154
+ };
4155
+ };
4156
+ readonly required: readonly ["type", "url"];
4157
+ }, {
4158
+ readonly type: "object";
4159
+ readonly properties: {
4160
+ readonly type: {
4161
+ readonly type: "string";
4162
+ readonly const: "divider";
4163
+ };
4164
+ };
4165
+ readonly required: readonly ["type"];
4166
+ }, {
4167
+ readonly type: "object";
4168
+ readonly properties: {
4169
+ readonly type: {
4170
+ readonly type: "string";
4171
+ readonly const: "link";
4172
+ };
4173
+ readonly label: {
4174
+ readonly type: "string";
4175
+ };
4176
+ readonly url: {
4177
+ readonly type: "string";
4178
+ };
4179
+ };
4180
+ readonly required: readonly ["type", "label", "url"];
4181
+ }, {
4182
+ readonly type: "object";
4183
+ readonly properties: {
4184
+ readonly type: {
4185
+ readonly type: "string";
4186
+ readonly const: "actions";
4187
+ };
4188
+ readonly children: {
4189
+ readonly type: "array";
4190
+ readonly items: {
4191
+ readonly anyOf: readonly [{
4192
+ readonly type: "object";
4193
+ readonly properties: {
4194
+ readonly type: {
4195
+ readonly type: "string";
4196
+ readonly const: "link-button";
4197
+ };
4198
+ readonly label: {
4199
+ readonly type: "string";
4200
+ };
4201
+ readonly url: {
4202
+ readonly type: "string";
4203
+ };
4204
+ readonly style: {
4205
+ readonly type: "string";
4206
+ readonly enum: readonly ["primary", "danger", "default"];
4207
+ };
4208
+ readonly id: {
4209
+ readonly type: "string";
4210
+ };
4211
+ };
4212
+ readonly required: readonly ["type", "label", "url"];
4213
+ }, {
4214
+ readonly type: "object";
4215
+ readonly properties: {
4216
+ readonly type: {
4217
+ readonly type: "string";
4218
+ readonly const: "button";
4219
+ };
4220
+ readonly id: {
4221
+ readonly type: "string";
4222
+ };
4223
+ readonly label: {
4224
+ readonly type: "string";
4225
+ };
4226
+ readonly style: {
4227
+ readonly type: "string";
4228
+ readonly enum: readonly ["primary", "danger", "default"];
4229
+ };
4230
+ readonly actionType: {
4231
+ readonly type: "string";
4232
+ readonly enum: readonly ["action", "modal"];
4233
+ };
4234
+ readonly callbackUrl: {
4235
+ readonly type: "string";
4236
+ };
4237
+ readonly value: {
4238
+ readonly type: "string";
4239
+ };
4240
+ readonly disabled: {
4241
+ readonly type: "boolean";
4242
+ };
4243
+ };
4244
+ readonly required: readonly ["type", "id", "label"];
4245
+ }, {
4246
+ readonly type: "object";
4247
+ readonly properties: {
4248
+ readonly type: {
4249
+ readonly type: "string";
4250
+ readonly const: "select";
4251
+ };
4252
+ readonly id: {
4253
+ readonly type: "string";
4254
+ };
4255
+ readonly label: {
4256
+ readonly type: "string";
4257
+ };
4258
+ readonly options: {
4259
+ readonly type: "array";
4260
+ readonly items: {
4261
+ readonly type: "object";
4262
+ readonly properties: {
4263
+ readonly label: {
4264
+ readonly type: "string";
4265
+ };
4266
+ readonly value: {
4267
+ readonly type: "string";
4268
+ };
4269
+ readonly description: {
4270
+ readonly type: "string";
4271
+ };
4272
+ };
4273
+ readonly required: readonly ["label", "value"];
4274
+ };
4275
+ };
4276
+ readonly initialOption: {
4277
+ readonly type: "string";
4278
+ };
4279
+ readonly optional: {
4280
+ readonly type: "boolean";
4281
+ };
4282
+ readonly placeholder: {
4283
+ readonly type: "string";
4284
+ };
4285
+ };
4286
+ readonly required: readonly ["type", "id", "label", "options"];
4287
+ }, {
4288
+ readonly type: "object";
4289
+ readonly properties: {
4290
+ readonly type: {
4291
+ readonly type: "string";
4292
+ readonly const: "radio_select";
4293
+ };
4294
+ readonly id: {
4295
+ readonly type: "string";
4296
+ };
4297
+ readonly label: {
4298
+ readonly type: "string";
4299
+ };
4300
+ readonly options: {
4301
+ readonly type: "array";
4302
+ readonly items: {
4303
+ readonly type: "object";
4304
+ readonly properties: {
4305
+ readonly label: {
4306
+ readonly type: "string";
4307
+ };
4308
+ readonly value: {
4309
+ readonly type: "string";
4310
+ };
4311
+ readonly description: {
4312
+ readonly type: "string";
4313
+ };
4314
+ };
4315
+ readonly required: readonly ["label", "value"];
4316
+ };
4317
+ };
4318
+ readonly initialOption: {
4319
+ readonly type: "string";
4320
+ };
4321
+ readonly optional: {
4322
+ readonly type: "boolean";
4323
+ };
4324
+ };
4325
+ readonly required: readonly ["type", "id", "label", "options"];
4326
+ }];
4327
+ };
4328
+ };
4329
+ };
4330
+ readonly required: readonly ["type", "children"];
4331
+ }, {
4332
+ readonly type: "object";
4333
+ readonly properties: {
4334
+ readonly type: {
4335
+ readonly type: "string";
4336
+ readonly const: "fields";
4337
+ };
4338
+ readonly children: {
4339
+ readonly type: "array";
4340
+ readonly items: {
4341
+ readonly type: "object";
4342
+ readonly properties: {
4343
+ readonly type: {
4344
+ readonly type: "string";
4345
+ readonly const: "field";
4346
+ };
4347
+ readonly label: {
4348
+ readonly type: "string";
4349
+ };
4350
+ readonly value: {
4351
+ readonly type: "string";
4352
+ };
4353
+ };
4354
+ readonly required: readonly ["type", "label", "value"];
4355
+ };
4356
+ };
4357
+ };
4358
+ readonly required: readonly ["type", "children"];
4359
+ }, {
4360
+ readonly type: "object";
4361
+ readonly properties: {
4362
+ readonly type: {
4363
+ readonly type: "string";
4364
+ readonly const: "table";
4365
+ };
4366
+ readonly headers: {
4367
+ readonly type: "array";
4368
+ readonly items: {
4369
+ readonly type: "string";
4370
+ };
4371
+ };
4372
+ readonly rows: {
4373
+ readonly type: "array";
4374
+ readonly items: {
4375
+ readonly type: "array";
4376
+ readonly items: {
4377
+ readonly type: "string";
4378
+ };
4379
+ };
4380
+ };
4381
+ readonly align: {
4382
+ readonly type: "array";
4383
+ readonly items: {
4384
+ readonly type: "string";
4385
+ readonly enum: readonly ["left", "center", "right"];
4386
+ };
4387
+ };
4388
+ };
4389
+ readonly required: readonly ["type", "headers", "rows"];
4390
+ }, {
4391
+ readonly type: "object";
4392
+ readonly properties: {
4393
+ readonly type: {
4394
+ readonly type: "string";
4395
+ readonly const: "section";
4396
+ };
4397
+ readonly children: {
4398
+ readonly type: "array";
4399
+ readonly items: {
4400
+ readonly anyOf: readonly [{
4401
+ readonly type: "object";
4402
+ readonly properties: {
4403
+ readonly type: {
4404
+ readonly type: "string";
4405
+ readonly const: "text";
4406
+ };
4407
+ readonly content: {
4408
+ readonly type: "string";
4409
+ };
4410
+ readonly style: {
4411
+ readonly type: "string";
4412
+ readonly enum: readonly ["plain", "bold", "muted"];
4413
+ };
4414
+ };
4415
+ readonly required: readonly ["type", "content"];
4416
+ }, {
4417
+ readonly type: "object";
4418
+ readonly properties: {
4419
+ readonly type: {
4420
+ readonly type: "string";
4421
+ readonly const: "image";
4422
+ };
4423
+ readonly url: {
4424
+ readonly type: "string";
4425
+ };
4426
+ readonly alt: {
4427
+ readonly type: "string";
4428
+ };
4429
+ };
4430
+ readonly required: readonly ["type", "url"];
4431
+ }, {
4432
+ readonly type: "object";
4433
+ readonly properties: {
4434
+ readonly type: {
4435
+ readonly type: "string";
4436
+ readonly const: "divider";
4437
+ };
4438
+ };
4439
+ readonly required: readonly ["type"];
4440
+ }, {
4441
+ readonly type: "object";
4442
+ readonly properties: {
4443
+ readonly type: {
4444
+ readonly type: "string";
4445
+ readonly const: "link";
4446
+ };
4447
+ readonly label: {
4448
+ readonly type: "string";
4449
+ };
4450
+ readonly url: {
4451
+ readonly type: "string";
4452
+ };
4453
+ };
4454
+ readonly required: readonly ["type", "label", "url"];
4455
+ }, {
4456
+ readonly type: "object";
4457
+ readonly properties: {
4458
+ readonly type: {
4459
+ readonly type: "string";
4460
+ readonly const: "actions";
4461
+ };
4462
+ readonly children: {
4463
+ readonly type: "array";
4464
+ readonly items: {
4465
+ readonly anyOf: readonly [{
4466
+ readonly type: "object";
4467
+ readonly properties: {
4468
+ readonly type: {
4469
+ readonly type: "string";
4470
+ readonly const: "link-button";
4471
+ };
4472
+ readonly label: {
4473
+ readonly type: "string";
4474
+ };
4475
+ readonly url: {
4476
+ readonly type: "string";
4477
+ };
4478
+ readonly style: {
4479
+ readonly type: "string";
4480
+ readonly enum: readonly ["primary", "danger", "default"];
4481
+ };
4482
+ readonly id: {
4483
+ readonly type: "string";
4484
+ };
4485
+ };
4486
+ readonly required: readonly ["type", "label", "url"];
4487
+ }, {
4488
+ readonly type: "object";
4489
+ readonly properties: {
4490
+ readonly type: {
4491
+ readonly type: "string";
4492
+ readonly const: "button";
4493
+ };
4494
+ readonly id: {
4495
+ readonly type: "string";
4496
+ };
4497
+ readonly label: {
4498
+ readonly type: "string";
4499
+ };
4500
+ readonly style: {
4501
+ readonly type: "string";
4502
+ readonly enum: readonly ["primary", "danger", "default"];
4503
+ };
4504
+ readonly actionType: {
4505
+ readonly type: "string";
4506
+ readonly enum: readonly ["action", "modal"];
4507
+ };
4508
+ readonly callbackUrl: {
4509
+ readonly type: "string";
4510
+ };
4511
+ readonly value: {
4512
+ readonly type: "string";
4513
+ };
4514
+ readonly disabled: {
4515
+ readonly type: "boolean";
4516
+ };
4517
+ };
4518
+ readonly required: readonly ["type", "id", "label"];
4519
+ }, {
4520
+ readonly type: "object";
4521
+ readonly properties: {
4522
+ readonly type: {
4523
+ readonly type: "string";
4524
+ readonly const: "select";
4525
+ };
4526
+ readonly id: {
4527
+ readonly type: "string";
4528
+ };
4529
+ readonly label: {
4530
+ readonly type: "string";
4531
+ };
4532
+ readonly options: {
4533
+ readonly type: "array";
4534
+ readonly items: {
4535
+ readonly type: "object";
4536
+ readonly properties: {
4537
+ readonly label: {
4538
+ readonly type: "string";
4539
+ };
4540
+ readonly value: {
4541
+ readonly type: "string";
4542
+ };
4543
+ readonly description: {
4544
+ readonly type: "string";
4545
+ };
4546
+ };
4547
+ readonly required: readonly ["label", "value"];
4548
+ };
4549
+ };
4550
+ readonly initialOption: {
4551
+ readonly type: "string";
4552
+ };
4553
+ readonly optional: {
4554
+ readonly type: "boolean";
4555
+ };
4556
+ readonly placeholder: {
4557
+ readonly type: "string";
4558
+ };
4559
+ };
4560
+ readonly required: readonly ["type", "id", "label", "options"];
4561
+ }, {
4562
+ readonly type: "object";
4563
+ readonly properties: {
4564
+ readonly type: {
4565
+ readonly type: "string";
4566
+ readonly const: "radio_select";
4567
+ };
4568
+ readonly id: {
4569
+ readonly type: "string";
4570
+ };
4571
+ readonly label: {
4572
+ readonly type: "string";
4573
+ };
4574
+ readonly options: {
4575
+ readonly type: "array";
4576
+ readonly items: {
4577
+ readonly type: "object";
4578
+ readonly properties: {
4579
+ readonly label: {
4580
+ readonly type: "string";
4581
+ };
4582
+ readonly value: {
4583
+ readonly type: "string";
4584
+ };
4585
+ readonly description: {
4586
+ readonly type: "string";
4587
+ };
4588
+ };
4589
+ readonly required: readonly ["label", "value"];
4590
+ };
4591
+ };
4592
+ readonly initialOption: {
4593
+ readonly type: "string";
4594
+ };
4595
+ readonly optional: {
4596
+ readonly type: "boolean";
4597
+ };
4598
+ };
4599
+ readonly required: readonly ["type", "id", "label", "options"];
4600
+ }];
4601
+ };
4602
+ };
4603
+ };
4604
+ readonly required: readonly ["type", "children"];
4605
+ }, {
4606
+ readonly type: "object";
4607
+ readonly properties: {
4608
+ readonly type: {
4609
+ readonly type: "string";
4610
+ readonly const: "fields";
4611
+ };
4612
+ readonly children: {
4613
+ readonly type: "array";
4614
+ readonly items: {
4615
+ readonly type: "object";
4616
+ readonly properties: {
4617
+ readonly type: {
4618
+ readonly type: "string";
4619
+ readonly const: "field";
4620
+ };
4621
+ readonly label: {
4622
+ readonly type: "string";
4623
+ };
4624
+ readonly value: {
4625
+ readonly type: "string";
4626
+ };
4627
+ };
4628
+ readonly required: readonly ["type", "label", "value"];
4629
+ };
4630
+ };
4631
+ };
4632
+ readonly required: readonly ["type", "children"];
4633
+ }, {
4634
+ readonly type: "object";
4635
+ readonly properties: {
4636
+ readonly type: {
4637
+ readonly type: "string";
4638
+ readonly const: "table";
4639
+ };
4640
+ readonly headers: {
4641
+ readonly type: "array";
4642
+ readonly items: {
4643
+ readonly type: "string";
4644
+ };
4645
+ };
4646
+ readonly rows: {
4647
+ readonly type: "array";
4648
+ readonly items: {
4649
+ readonly type: "array";
4650
+ readonly items: {
4651
+ readonly type: "string";
4652
+ };
4653
+ };
4654
+ };
4655
+ readonly align: {
4656
+ readonly type: "array";
4657
+ readonly items: {
4658
+ readonly type: "string";
4659
+ readonly enum: readonly ["left", "center", "right"];
4660
+ };
4661
+ };
4662
+ };
4663
+ readonly required: readonly ["type", "headers", "rows"];
4664
+ }, {
4665
+ readonly type: "object";
4666
+ readonly properties: {
4667
+ readonly type: {
4668
+ readonly type: "string";
4669
+ readonly const: "section";
4670
+ };
4671
+ readonly children: {
4672
+ readonly type: "array";
4673
+ readonly items: {
4674
+ readonly type: "object";
4675
+ };
4676
+ };
4677
+ };
4678
+ readonly required: readonly ["type", "children"];
4679
+ }];
4680
+ };
4681
+ };
4682
+ };
4683
+ readonly required: readonly ["type", "children"];
4684
+ }];
4685
+ };
4686
+ };
4687
+ };
4688
+ readonly required: readonly ["type", "children"];
4689
+ readonly additionalProperties: false;
4690
+ };
4031
4691
  };
4032
- readonly required: readonly ["body"];
4692
+ readonly anyOf: [{
4693
+ readonly required: readonly ["body"];
4694
+ }, {
4695
+ readonly required: readonly ["card"];
4696
+ }];
4033
4697
  readonly additionalProperties: false;
4034
4698
  };
4035
4699
  result: {
@@ -4101,6 +4765,15 @@ declare const channelStepSchemas: {
4101
4765
  };
4102
4766
  readonly additionalProperties: false;
4103
4767
  };
4768
+ readonly replyTo: {
4769
+ readonly type: "string";
4770
+ };
4771
+ readonly preheader: {
4772
+ readonly type: "string";
4773
+ };
4774
+ readonly useProviderDefaults: {
4775
+ readonly type: "boolean";
4776
+ };
4104
4777
  };
4105
4778
  readonly required: readonly ["subject", "body"];
4106
4779
  readonly additionalProperties: false;
@@ -4298,6 +4971,24 @@ declare const channelStepSchemas: {
4298
4971
  readonly additionalProperties: false;
4299
4972
  };
4300
4973
  };
4974
+ readonly tool: {
4975
+ output: {
4976
+ readonly type: "object";
4977
+ readonly properties: {
4978
+ readonly body: {
4979
+ readonly type: "string";
4980
+ };
4981
+ };
4982
+ readonly required: readonly ["body"];
4983
+ readonly additionalProperties: false;
4984
+ };
4985
+ result: {
4986
+ readonly type: "object";
4987
+ readonly properties: {};
4988
+ readonly required: readonly [];
4989
+ readonly additionalProperties: false;
4990
+ };
4991
+ };
4301
4992
  };
4302
4993
 
4303
4994
  type Skip<T> = (controls: T) => Awaitable<boolean>;
@@ -4458,12 +5149,37 @@ type SmsResult = FromSchema<(typeof channelStepSchemas)['sms']['result']>;
4458
5149
  type PushOutput = FromSchema<(typeof channelStepSchemas)['push']['output']>;
4459
5150
  type PushOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['push']['output']>;
4460
5151
  type PushResult = FromSchema<(typeof channelStepSchemas)['push']['result']>;
4461
- type ChatOutput = FromSchema<(typeof channelStepSchemas)['chat']['output']>;
4462
- type ChatOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['chat']['output']>;
5152
+ /**
5153
+ * Re-maps the `card` field to the Chat SDK `CardElement`.
5154
+ *
5155
+ * The chat step's `card` schema (see `chat.schema.ts`) intentionally omits
5156
+ * `additionalProperties: false` on its child-element variants, so `json-schema-to-ts`
5157
+ * adds `[x: string]: unknown` index signatures. The Chat SDK models cards as
5158
+ * `interface`s (no implicit index signature), so `Card()` isn't assignable to the
5159
+ * inferred type. Swapping `card` for the SDK `CardElement` lets `Card` / `Actions`
5160
+ * / etc. be used on `step.chat` without changing those builders (agents keep the
5161
+ * unmodified Chat SDK types). The runtime schema accepts the Chat SDK card kit
5162
+ * (section/fields/table + interactive button/select/radio_select); interactive
5163
+ * elements render on Slack/Teams but have no callback wiring on classic `step.chat`.
5164
+ */
5165
+ type WithChatCard<T_Output> = T_Output extends {
5166
+ card: unknown;
5167
+ } ? Prettify<Omit<T_Output, 'card'> & {
5168
+ card: CardElement;
5169
+ }> : T_Output extends {
5170
+ card?: unknown;
5171
+ } ? Prettify<Omit<T_Output, 'card'> & {
5172
+ card?: CardElement;
5173
+ }> : T_Output;
5174
+ type ChatOutput = WithChatCard<FromSchema<(typeof channelStepSchemas)['chat']['output']>>;
5175
+ type ChatOutputUnvalidated = WithChatCard<FromSchemaUnvalidated<(typeof channelStepSchemas)['chat']['output']>>;
4463
5176
  type ChatResult = FromSchema<(typeof channelStepSchemas)['chat']['result']>;
4464
5177
  type InAppOutput = FromSchema<(typeof channelStepSchemas)['in_app']['output']>;
4465
5178
  type InAppOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['in_app']['output']>;
4466
5179
  type InAppResult = FromSchema<(typeof channelStepSchemas)['in_app']['result']>;
5180
+ type ToolOutput = FromSchema<(typeof channelStepSchemas)['tool']['output']>;
5181
+ type ToolOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['tool']['output']>;
5182
+ type ToolResult = FromSchema<(typeof channelStepSchemas)['tool']['result']>;
4467
5183
  type DelayRegularOutput = FromSchema<typeof delayRegularOutputSchema>;
4468
5184
  type DelayRegularOutputUnvalidated = FromSchemaUnvalidated<typeof delayRegularOutputSchema>;
4469
5185
  type DelayTimedOutput = FromSchema<typeof delayTimedOutputSchema>;
@@ -4497,6 +5213,8 @@ type Step = {
4497
5213
  chat: ChannelStep<ChannelStepEnum.CHAT, ChatOutputUnvalidated, ChatResult>;
4498
5214
  /** Send an in-app notification. */
4499
5215
  inApp: ChannelStep<ChannelStepEnum.IN_APP, InAppOutputUnvalidated, InAppResult>;
5216
+ /** Deliver a tool payload to an external system (e.g. PagerDuty, Opsgenie, webhook). */
5217
+ tool: ChannelStep<ChannelStepEnum.TOOL, ToolOutputUnvalidated, ToolResult>;
4500
5218
  /** Aggregate events for a period of time. */
4501
5219
  digest: ActionStep<DigestOutputUnvalidated, DigestResult>;
4502
5220
  /** Delay the workflow for a period of time. */
@@ -4529,4 +5247,4 @@ type Subscriber = {
4529
5247
  data?: Record<string, unknown> | null;
4530
5248
  };
4531
5249
 
4532
- export { channelStepSchemas as $, ActionStepEnum as A, type DigestTimedOutputUnvalidated as B, type ContextResolved as C, type DelayDynamicOutput as D, type EnvironmentSystemVariables as E, type EmailOutput as F, type EmailOutputUnvalidated as G, type EmailResult as H, type InAppOutput as I, type InAppOutputUnvalidated as J, type InAppResult as K, JobStatusEnum as L, type PushOutputUnvalidated as M, type PushResult as N, type Skip as O, type PushOutput as P, type SmsOutput as Q, type SmsOutputUnvalidated as R, type Subscriber as S, type SmsResult as T, type StepContext as U, type StepOutput as V, type WithPassthrough as W, type ThrottleOutput as X, type ThrottleOutputUnvalidated as Y, type ThrottleResult as Z, actionStepSchemas as _, type ContextPayload as a, type Step as b, ChannelStepEnum as c, type StepOptions as d, type ActionStep as e, type ChannelStep as f, type ChatOutput as g, type ChatOutputUnvalidated as h, type ChatResult as i, type ContextValue as j, type CustomStep as k, type DelayDynamicOutputUnvalidated as l, type DelayOutput as m, type DelayOutputUnvalidated as n, type DelayRegularOutput as o, providerSchemas as p, type DelayRegularOutputUnvalidated as q, type DelayResult as r, type DelayTimedOutput as s, type DelayTimedOutputUnvalidated as t, type DigestOutput as u, type DigestOutputUnvalidated as v, type DigestRegularOutput as w, type DigestRegularOutputUnvalidated as x, type DigestResult as y, type DigestTimedOutput as z };
5250
+ export { type ToolOutputUnvalidated as $, ActionStepEnum as A, type DigestTimedOutputUnvalidated as B, type ContextResolved as C, type DelayDynamicOutput as D, type EnvironmentSystemVariables as E, type EmailOutput as F, type EmailOutputUnvalidated as G, type EmailResult as H, type InAppOutput as I, type InAppOutputUnvalidated as J, type InAppResult as K, JobStatusEnum as L, type PushOutputUnvalidated as M, type PushResult as N, type Skip as O, type PushOutput as P, type SmsOutput as Q, type SmsOutputUnvalidated as R, type Subscriber as S, type SmsResult as T, type StepContext as U, type StepOutput as V, type WithPassthrough as W, type ThrottleOutput as X, type ThrottleOutputUnvalidated as Y, type ThrottleResult as Z, type ToolOutput as _, type ContextPayload as a, actionStepSchemas as a0, channelStepSchemas as a1, type Step as b, ChannelStepEnum as c, type StepOptions as d, type ActionStep as e, type ChannelStep as f, type ChatOutput as g, type ChatOutputUnvalidated as h, type ChatResult as i, type ContextValue as j, type CustomStep as k, type DelayDynamicOutputUnvalidated as l, type DelayOutput as m, type DelayOutputUnvalidated as n, type DelayRegularOutput as o, providerSchemas as p, type DelayRegularOutputUnvalidated as q, type DelayResult as r, type DelayTimedOutput as s, type DelayTimedOutputUnvalidated as t, type DigestOutput as u, type DigestOutputUnvalidated as v, type DigestRegularOutput as w, type DigestRegularOutputUnvalidated as x, type DigestResult as y, type DigestTimedOutput as z };