@novu/framework 2.13.1-rc.72c80d5b17 → 2.13.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.
Files changed (79) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/{agent.types-B5VnP69G.d.cts → agent.types-crcJBtCy.d.cts} +154 -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-CtWQ_YSy.d.cts → health-check.types-C2XZ-Tpt.d.cts} +70 -65
  8. package/dist/cjs/{index-vgb88C84.d.cts → index-DVSB455a.d.cts} +18 -6
  9. package/dist/cjs/index.cjs +111 -111
  10. package/dist/cjs/index.d.cts +5 -5
  11. package/dist/cjs/internal/index.cjs +42 -39
  12. package/dist/cjs/internal/index.d.cts +324 -27
  13. package/dist/cjs/langchain/index.cjs +4 -1
  14. package/dist/cjs/langchain/index.d.cts +24 -6
  15. package/dist/cjs/servers/express.cjs +109 -109
  16. package/dist/cjs/servers/express.d.cts +6 -6
  17. package/dist/cjs/servers/h3.cjs +110 -110
  18. package/dist/cjs/servers/h3.d.cts +6 -6
  19. package/dist/cjs/servers/hono.cjs +109 -109
  20. package/dist/cjs/servers/hono.d.cts +6 -6
  21. package/dist/cjs/servers/lambda.cjs +109 -109
  22. package/dist/cjs/servers/lambda.d.cts +6 -6
  23. package/dist/cjs/servers/nest.cjs +120 -120
  24. package/dist/cjs/servers/nest.d.cts +8 -8
  25. package/dist/cjs/servers/next.cjs +109 -109
  26. package/dist/cjs/servers/next.d.cts +6 -6
  27. package/dist/cjs/servers/nuxt.cjs +110 -110
  28. package/dist/cjs/servers/nuxt.d.cts +6 -6
  29. package/dist/cjs/servers/remix.cjs +109 -109
  30. package/dist/cjs/servers/remix.d.cts +6 -6
  31. package/dist/cjs/servers/sveltekit.cjs +109 -109
  32. package/dist/cjs/servers/sveltekit.d.cts +6 -6
  33. package/dist/cjs/step-resolver.cjs +4 -4
  34. package/dist/cjs/step-resolver.d.cts +3 -2
  35. package/dist/cjs/{subscriber.types-CyNKT0nZ.d.cts → subscriber.types-BanvmGul.d.cts} +680 -27
  36. package/dist/esm/{agent.types-HUDhyXrV.d.ts → agent.types-DFLG1_vb.d.ts} +154 -3
  37. package/dist/esm/ai-sdk/index.d.ts +16 -5
  38. package/dist/esm/ai-sdk/index.js +1 -1
  39. package/dist/esm/cards.d.ts +1 -1
  40. package/dist/esm/cards.js +1 -1
  41. package/dist/esm/chunk-4ETX7FIT.js +1 -0
  42. package/dist/esm/{chunk-SPS3KBKF.js → chunk-IREH6K2M.js} +4 -4
  43. package/dist/esm/chunk-PBC7WR2R.js +98 -0
  44. package/dist/esm/chunk-PU74XQ2P.js +1 -0
  45. package/dist/esm/chunk-QZ6TSYCK.js +4 -0
  46. package/dist/esm/chunk-YZ3P3MMZ.js +1 -0
  47. package/dist/esm/{health-check.types-0Rv-l8yD.d.ts → health-check.types-DORn4djx.d.ts} +70 -65
  48. package/dist/esm/{index-C0oUWDlb.d.ts → index-BvRGmHFw.d.ts} +18 -6
  49. package/dist/esm/index.d.ts +5 -5
  50. package/dist/esm/index.js +1 -1
  51. package/dist/esm/internal/index.d.ts +317 -20
  52. package/dist/esm/internal/index.js +1 -1
  53. package/dist/esm/langchain/index.d.ts +24 -6
  54. package/dist/esm/langchain/index.js +1 -1
  55. package/dist/esm/servers/express.d.ts +6 -6
  56. package/dist/esm/servers/express.js +1 -1
  57. package/dist/esm/servers/h3.d.ts +6 -6
  58. package/dist/esm/servers/h3.js +1 -1
  59. package/dist/esm/servers/hono.d.ts +6 -6
  60. package/dist/esm/servers/hono.js +1 -1
  61. package/dist/esm/servers/lambda.d.ts +6 -6
  62. package/dist/esm/servers/lambda.js +1 -1
  63. package/dist/esm/servers/nest.d.ts +8 -8
  64. package/dist/esm/servers/nest.js +1 -1
  65. package/dist/esm/servers/next.d.ts +6 -6
  66. package/dist/esm/servers/next.js +1 -1
  67. package/dist/esm/servers/nuxt.d.ts +6 -6
  68. package/dist/esm/servers/nuxt.js +1 -1
  69. package/dist/esm/servers/remix.d.ts +6 -6
  70. package/dist/esm/servers/remix.js +1 -1
  71. package/dist/esm/servers/sveltekit.d.ts +6 -6
  72. package/dist/esm/servers/sveltekit.js +1 -1
  73. package/dist/esm/step-resolver.d.ts +3 -2
  74. package/dist/esm/step-resolver.js +1 -1
  75. package/dist/esm/{subscriber.types-g7VnI_ZQ.d.ts → subscriber.types-Drf26WPA.d.ts} +680 -27
  76. package/package.json +3 -2
  77. package/dist/esm/chunk-CGZ5P44A.js +0 -98
  78. package/dist/esm/chunk-FMKD6TON.js +0 -1
  79. package/dist/esm/chunk-W6DIBD4Z.js +0 -1
@@ -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,22 +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
- TOOL = "tool"
108
- }
109
- declare enum ActionStepEnum {
110
- DIGEST = "digest",
111
- DELAY = "delay",
112
- THROTTLE = "throttle",
113
- CUSTOM = "custom",
114
- HTTP_REQUEST = "http_request"
115
- }
116
-
117
118
  declare const providerSchemas: {
118
119
  readonly chat: {
119
120
  readonly 'chat-webhook': {
@@ -148,6 +149,14 @@ declare const providerSchemas: {
148
149
  readonly additionalProperties: true;
149
150
  };
150
151
  };
152
+ readonly line: {
153
+ output: {
154
+ readonly type: "object";
155
+ readonly properties: {};
156
+ readonly required: readonly [];
157
+ readonly additionalProperties: true;
158
+ };
159
+ };
151
160
  readonly mattermost: {
152
161
  output: {
153
162
  readonly type: "object";
@@ -164,6 +173,22 @@ declare const providerSchemas: {
164
173
  readonly additionalProperties: true;
165
174
  };
166
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-web-chat': {
185
+ output: {
186
+ readonly type: "object";
187
+ readonly properties: {};
188
+ readonly required: readonly [];
189
+ readonly additionalProperties: true;
190
+ };
191
+ };
167
192
  readonly 'rocket-chat': {
168
193
  output: {
169
194
  readonly type: "object";
@@ -205,7 +230,7 @@ declare const providerSchemas: {
205
230
  readonly type: "object";
206
231
  readonly properties: {
207
232
  readonly type: {
208
- readonly enum: readonly ["image", "context", "actions", "divider", "section", "input", "file", "header", "video", "rich_text"];
233
+ readonly type: "string";
209
234
  };
210
235
  };
211
236
  readonly required: readonly ["type"];
@@ -216,6 +241,14 @@ declare const providerSchemas: {
216
241
  readonly additionalProperties: true;
217
242
  };
218
243
  };
244
+ readonly 'webex-messaging': {
245
+ output: {
246
+ readonly type: "object";
247
+ readonly properties: {};
248
+ readonly required: readonly [];
249
+ readonly additionalProperties: true;
250
+ };
251
+ };
219
252
  readonly 'whatsapp-business': {
220
253
  output: {
221
254
  readonly type: "object";
@@ -3705,6 +3738,14 @@ declare const providerSchemas: {
3705
3738
  readonly additionalProperties: true;
3706
3739
  };
3707
3740
  };
3741
+ readonly grafana: {
3742
+ output: {
3743
+ readonly type: "object";
3744
+ readonly properties: {};
3745
+ readonly required: readonly [];
3746
+ readonly additionalProperties: true;
3747
+ };
3748
+ };
3708
3749
  readonly 'tool-webhook': {
3709
3750
  output: {
3710
3751
  readonly type: "object";
@@ -4063,8 +4104,596 @@ declare const channelStepSchemas: {
4063
4104
  readonly body: {
4064
4105
  readonly type: "string";
4065
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
+ };
4066
4691
  };
4067
- readonly required: readonly ["body"];
4692
+ readonly anyOf: [{
4693
+ readonly required: readonly ["body"];
4694
+ }, {
4695
+ readonly required: readonly ["card"];
4696
+ }];
4068
4697
  readonly additionalProperties: false;
4069
4698
  };
4070
4699
  result: {
@@ -4136,6 +4765,15 @@ declare const channelStepSchemas: {
4136
4765
  };
4137
4766
  readonly additionalProperties: false;
4138
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
+ };
4139
4777
  };
4140
4778
  readonly required: readonly ["subject", "body"];
4141
4779
  readonly additionalProperties: false;
@@ -4340,13 +4978,6 @@ declare const channelStepSchemas: {
4340
4978
  readonly body: {
4341
4979
  readonly type: "string";
4342
4980
  };
4343
- readonly providerOverrides: {
4344
- readonly type: "object";
4345
- readonly additionalProperties: {
4346
- readonly type: "object";
4347
- readonly additionalProperties: true;
4348
- };
4349
- };
4350
4981
  };
4351
4982
  readonly required: readonly ["body"];
4352
4983
  readonly additionalProperties: false;
@@ -4518,8 +5149,30 @@ type SmsResult = FromSchema<(typeof channelStepSchemas)['sms']['result']>;
4518
5149
  type PushOutput = FromSchema<(typeof channelStepSchemas)['push']['output']>;
4519
5150
  type PushOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['push']['output']>;
4520
5151
  type PushResult = FromSchema<(typeof channelStepSchemas)['push']['result']>;
4521
- type ChatOutput = FromSchema<(typeof channelStepSchemas)['chat']['output']>;
4522
- 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']>>;
4523
5176
  type ChatResult = FromSchema<(typeof channelStepSchemas)['chat']['result']>;
4524
5177
  type InAppOutput = FromSchema<(typeof channelStepSchemas)['in_app']['output']>;
4525
5178
  type InAppOutputUnvalidated = FromSchemaUnvalidated<(typeof channelStepSchemas)['in_app']['output']>;