@slates/proto 1.0.0-rc.23 → 1.0.0-rc.24

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/dist/index.d.ts CHANGED
@@ -2585,6 +2585,8 @@ declare let slatesMessageTriggerGroupsListResponse: z.ZodObject<{
2585
2585
  invocation: z.ZodUnion<readonly [z.ZodObject<{
2586
2586
  type: z.ZodLiteral<"polling">;
2587
2587
  intervalSeconds: z.ZodNumber;
2588
+ }, z.core.$strip>, z.ZodObject<{
2589
+ type: z.ZodLiteral<"gateway">;
2588
2590
  }, z.core.$strip>, z.ZodObject<{
2589
2591
  type: z.ZodLiteral<"webhook">;
2590
2592
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -2623,6 +2625,8 @@ declare let slatesMessageTriggerGroupGetResponse: z.ZodObject<{
2623
2625
  invocation: z.ZodUnion<readonly [z.ZodObject<{
2624
2626
  type: z.ZodLiteral<"polling">;
2625
2627
  intervalSeconds: z.ZodNumber;
2628
+ }, z.core.$strip>, z.ZodObject<{
2629
+ type: z.ZodLiteral<"gateway">;
2626
2630
  }, z.core.$strip>, z.ZodObject<{
2627
2631
  type: z.ZodLiteral<"webhook">;
2628
2632
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -3046,8 +3050,128 @@ declare let slatesMessageTriggerGroupPollingPollResponse: z.ZodObject<{
3046
3050
  }, z.core.$strip>;
3047
3051
  }, z.core.$strip>;
3048
3052
  type SlatesMessageTriggerGroupPollingPollResponse = z.infer<typeof slatesMessageTriggerGroupPollingPollResponse>;
3049
- type SlatesTriggerGroupRequests = SlatesMessageTriggerGroupsListRequest | SlatesMessageTriggerGroupGetRequest | SlatesMessageTriggerGroupWebhookTargetsListRequest | SlatesMessageTriggerGroupWebhookRegisterRequest | SlatesMessageTriggerGroupWebhookUnregisterRequest | SlatesMessageTriggerGroupWebhookManualSetupRequest | SlatesMessageTriggerGroupWebhookManualFinishRequest | SlatesMessageTriggerGroupWebhookProcessRequest | SlatesMessageTriggerGroupRoutingMatchersGetRequest | SlatesMessageTriggerGroupPollingPollRequest;
3050
- type SlatesTriggerGroupResponses = SlatesMessageTriggerGroupsListResponse | SlatesMessageTriggerGroupGetResponse | SlatesMessageTriggerGroupWebhookTargetsListResponse | SlatesMessageTriggerGroupWebhookRegisterResponse | SlatesMessageTriggerGroupWebhookUnregisterResponse | SlatesMessageTriggerGroupWebhookManualSetupResponse | SlatesMessageTriggerGroupWebhookManualFinishResponse | SlatesMessageTriggerGroupWebhookProcessResponse | SlatesMessageTriggerGroupRoutingMatchersGetResponse | SlatesMessageTriggerGroupPollingPollResponse;
3053
+ /**
3054
+ * Gateway connect
3055
+ */
3056
+ declare let slatesMessageTriggerGroupGatewayConnectRequest: z.ZodObject<{
3057
+ jsonrpc: z.ZodLiteral<"2.0">;
3058
+ method: z.ZodLiteral<"slates/trigger_group.gateway.connect">;
3059
+ id: z.ZodString;
3060
+ params: z.ZodObject<{
3061
+ triggerGroupId: z.ZodString;
3062
+ state: z.ZodNullable<z.ZodAny>;
3063
+ }, z.core.$strip>;
3064
+ }, z.core.$strip>;
3065
+ type SlatesMessageTriggerGroupGatewayConnectRequest = z.infer<typeof slatesMessageTriggerGroupGatewayConnectRequest>;
3066
+ declare let slatesMessageTriggerGroupGatewayConnectResponse: z.ZodObject<{
3067
+ jsonrpc: z.ZodLiteral<"2.0">;
3068
+ id: z.ZodString;
3069
+ result: z.ZodObject<{
3070
+ url: z.ZodString;
3071
+ state: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
3072
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3073
+ startedAt: z.ZodString;
3074
+ durationMs: z.ZodNumber;
3075
+ request: z.ZodObject<{
3076
+ method: z.ZodString;
3077
+ url: z.ZodString;
3078
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3079
+ body: z.ZodOptional<z.ZodObject<{
3080
+ contentType: z.ZodOptional<z.ZodString>;
3081
+ text: z.ZodString;
3082
+ truncated: z.ZodOptional<z.ZodBoolean>;
3083
+ }, z.core.$strip>>;
3084
+ }, z.core.$strip>;
3085
+ response: z.ZodOptional<z.ZodObject<{
3086
+ status: z.ZodNumber;
3087
+ statusText: z.ZodOptional<z.ZodString>;
3088
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3089
+ body: z.ZodOptional<z.ZodObject<{
3090
+ contentType: z.ZodOptional<z.ZodString>;
3091
+ text: z.ZodString;
3092
+ truncated: z.ZodOptional<z.ZodBoolean>;
3093
+ }, z.core.$strip>>;
3094
+ }, z.core.$strip>>;
3095
+ error: z.ZodOptional<z.ZodObject<{
3096
+ code: z.ZodOptional<z.ZodString>;
3097
+ message: z.ZodString;
3098
+ }, z.core.$strip>>;
3099
+ }, z.core.$strip>>>;
3100
+ }, z.core.$strip>;
3101
+ }, z.core.$strip>;
3102
+ type SlatesMessageTriggerGroupGatewayConnectResponse = z.infer<typeof slatesMessageTriggerGroupGatewayConnectResponse>;
3103
+ /**
3104
+ * Gateway receive
3105
+ */
3106
+ declare let slatesMessageTriggerGroupGatewayReceiveRequest: z.ZodObject<{
3107
+ jsonrpc: z.ZodLiteral<"2.0">;
3108
+ method: z.ZodLiteral<"slates/trigger_group.gateway.receive">;
3109
+ id: z.ZodString;
3110
+ params: z.ZodObject<{
3111
+ triggerGroupId: z.ZodString;
3112
+ state: z.ZodNullable<z.ZodAny>;
3113
+ frames: z.ZodArray<z.ZodString>;
3114
+ closed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3115
+ code: z.ZodNumber;
3116
+ reason: z.ZodString;
3117
+ }, z.core.$strip>>>;
3118
+ }, z.core.$strip>;
3119
+ }, z.core.$strip>;
3120
+ type SlatesMessageTriggerGroupGatewayReceiveRequest = z.infer<typeof slatesMessageTriggerGroupGatewayReceiveRequest>;
3121
+ declare let slatesMessageTriggerGroupGatewayReceiveResponse: z.ZodObject<{
3122
+ jsonrpc: z.ZodLiteral<"2.0">;
3123
+ id: z.ZodString;
3124
+ result: z.ZodObject<{
3125
+ state: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
3126
+ send: z.ZodArray<z.ZodString>;
3127
+ events: z.ZodArray<z.ZodObject<{
3128
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
3129
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3130
+ triggerIds: z.ZodArray<z.ZodString>;
3131
+ }, z.core.$strip>>;
3132
+ heartbeat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3133
+ intervalMs: z.ZodNumber;
3134
+ frame: z.ZodString;
3135
+ expectsAck: z.ZodOptional<z.ZodBoolean>;
3136
+ }, z.core.$strip>>>;
3137
+ heartbeatAcked: z.ZodOptional<z.ZodBoolean>;
3138
+ close: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3139
+ reconnect: z.ZodBoolean;
3140
+ reason: z.ZodOptional<z.ZodString>;
3141
+ }, z.core.$strip>>>;
3142
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3143
+ startedAt: z.ZodString;
3144
+ durationMs: z.ZodNumber;
3145
+ request: z.ZodObject<{
3146
+ method: z.ZodString;
3147
+ url: z.ZodString;
3148
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3149
+ body: z.ZodOptional<z.ZodObject<{
3150
+ contentType: z.ZodOptional<z.ZodString>;
3151
+ text: z.ZodString;
3152
+ truncated: z.ZodOptional<z.ZodBoolean>;
3153
+ }, z.core.$strip>>;
3154
+ }, z.core.$strip>;
3155
+ response: z.ZodOptional<z.ZodObject<{
3156
+ status: z.ZodNumber;
3157
+ statusText: z.ZodOptional<z.ZodString>;
3158
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3159
+ body: z.ZodOptional<z.ZodObject<{
3160
+ contentType: z.ZodOptional<z.ZodString>;
3161
+ text: z.ZodString;
3162
+ truncated: z.ZodOptional<z.ZodBoolean>;
3163
+ }, z.core.$strip>>;
3164
+ }, z.core.$strip>>;
3165
+ error: z.ZodOptional<z.ZodObject<{
3166
+ code: z.ZodOptional<z.ZodString>;
3167
+ message: z.ZodString;
3168
+ }, z.core.$strip>>;
3169
+ }, z.core.$strip>>>;
3170
+ }, z.core.$strip>;
3171
+ }, z.core.$strip>;
3172
+ type SlatesMessageTriggerGroupGatewayReceiveResponse = z.infer<typeof slatesMessageTriggerGroupGatewayReceiveResponse>;
3173
+ type SlatesTriggerGroupRequests = SlatesMessageTriggerGroupsListRequest | SlatesMessageTriggerGroupGetRequest | SlatesMessageTriggerGroupWebhookTargetsListRequest | SlatesMessageTriggerGroupWebhookRegisterRequest | SlatesMessageTriggerGroupWebhookUnregisterRequest | SlatesMessageTriggerGroupWebhookManualSetupRequest | SlatesMessageTriggerGroupWebhookManualFinishRequest | SlatesMessageTriggerGroupWebhookProcessRequest | SlatesMessageTriggerGroupRoutingMatchersGetRequest | SlatesMessageTriggerGroupPollingPollRequest | SlatesMessageTriggerGroupGatewayConnectRequest | SlatesMessageTriggerGroupGatewayReceiveRequest;
3174
+ type SlatesTriggerGroupResponses = SlatesMessageTriggerGroupsListResponse | SlatesMessageTriggerGroupGetResponse | SlatesMessageTriggerGroupWebhookTargetsListResponse | SlatesMessageTriggerGroupWebhookRegisterResponse | SlatesMessageTriggerGroupWebhookUnregisterResponse | SlatesMessageTriggerGroupWebhookManualSetupResponse | SlatesMessageTriggerGroupWebhookManualFinishResponse | SlatesMessageTriggerGroupWebhookProcessResponse | SlatesMessageTriggerGroupRoutingMatchersGetResponse | SlatesMessageTriggerGroupPollingPollResponse | SlatesMessageTriggerGroupGatewayConnectResponse | SlatesMessageTriggerGroupGatewayReceiveResponse;
3051
3175
  declare let slatesTriggerGroupResponsesByMethod: {
3052
3176
  'slates/trigger_groups.list': z.ZodObject<{
3053
3177
  jsonrpc: z.ZodLiteral<"2.0">;
@@ -3061,6 +3185,8 @@ declare let slatesTriggerGroupResponsesByMethod: {
3061
3185
  invocation: z.ZodUnion<readonly [z.ZodObject<{
3062
3186
  type: z.ZodLiteral<"polling">;
3063
3187
  intervalSeconds: z.ZodNumber;
3188
+ }, z.core.$strip>, z.ZodObject<{
3189
+ type: z.ZodLiteral<"gateway">;
3064
3190
  }, z.core.$strip>, z.ZodObject<{
3065
3191
  type: z.ZodLiteral<"webhook">;
3066
3192
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -3086,6 +3212,8 @@ declare let slatesTriggerGroupResponsesByMethod: {
3086
3212
  invocation: z.ZodUnion<readonly [z.ZodObject<{
3087
3213
  type: z.ZodLiteral<"polling">;
3088
3214
  intervalSeconds: z.ZodNumber;
3215
+ }, z.core.$strip>, z.ZodObject<{
3216
+ type: z.ZodLiteral<"gateway">;
3089
3217
  }, z.core.$strip>, z.ZodObject<{
3090
3218
  type: z.ZodLiteral<"webhook">;
3091
3219
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -3385,6 +3513,93 @@ declare let slatesTriggerGroupResponsesByMethod: {
3385
3513
  }, z.core.$strip>>>;
3386
3514
  }, z.core.$strip>;
3387
3515
  }, z.core.$strip>;
3516
+ 'slates/trigger_group.gateway.connect': z.ZodObject<{
3517
+ jsonrpc: z.ZodLiteral<"2.0">;
3518
+ id: z.ZodString;
3519
+ result: z.ZodObject<{
3520
+ url: z.ZodString;
3521
+ state: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
3522
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3523
+ startedAt: z.ZodString;
3524
+ durationMs: z.ZodNumber;
3525
+ request: z.ZodObject<{
3526
+ method: z.ZodString;
3527
+ url: z.ZodString;
3528
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3529
+ body: z.ZodOptional<z.ZodObject<{
3530
+ contentType: z.ZodOptional<z.ZodString>;
3531
+ text: z.ZodString;
3532
+ truncated: z.ZodOptional<z.ZodBoolean>;
3533
+ }, z.core.$strip>>;
3534
+ }, z.core.$strip>;
3535
+ response: z.ZodOptional<z.ZodObject<{
3536
+ status: z.ZodNumber;
3537
+ statusText: z.ZodOptional<z.ZodString>;
3538
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3539
+ body: z.ZodOptional<z.ZodObject<{
3540
+ contentType: z.ZodOptional<z.ZodString>;
3541
+ text: z.ZodString;
3542
+ truncated: z.ZodOptional<z.ZodBoolean>;
3543
+ }, z.core.$strip>>;
3544
+ }, z.core.$strip>>;
3545
+ error: z.ZodOptional<z.ZodObject<{
3546
+ code: z.ZodOptional<z.ZodString>;
3547
+ message: z.ZodString;
3548
+ }, z.core.$strip>>;
3549
+ }, z.core.$strip>>>;
3550
+ }, z.core.$strip>;
3551
+ }, z.core.$strip>;
3552
+ 'slates/trigger_group.gateway.receive': z.ZodObject<{
3553
+ jsonrpc: z.ZodLiteral<"2.0">;
3554
+ id: z.ZodString;
3555
+ result: z.ZodObject<{
3556
+ state: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
3557
+ send: z.ZodArray<z.ZodString>;
3558
+ events: z.ZodArray<z.ZodObject<{
3559
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
3560
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3561
+ triggerIds: z.ZodArray<z.ZodString>;
3562
+ }, z.core.$strip>>;
3563
+ heartbeat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3564
+ intervalMs: z.ZodNumber;
3565
+ frame: z.ZodString;
3566
+ expectsAck: z.ZodOptional<z.ZodBoolean>;
3567
+ }, z.core.$strip>>>;
3568
+ heartbeatAcked: z.ZodOptional<z.ZodBoolean>;
3569
+ close: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3570
+ reconnect: z.ZodBoolean;
3571
+ reason: z.ZodOptional<z.ZodString>;
3572
+ }, z.core.$strip>>>;
3573
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3574
+ startedAt: z.ZodString;
3575
+ durationMs: z.ZodNumber;
3576
+ request: z.ZodObject<{
3577
+ method: z.ZodString;
3578
+ url: z.ZodString;
3579
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3580
+ body: z.ZodOptional<z.ZodObject<{
3581
+ contentType: z.ZodOptional<z.ZodString>;
3582
+ text: z.ZodString;
3583
+ truncated: z.ZodOptional<z.ZodBoolean>;
3584
+ }, z.core.$strip>>;
3585
+ }, z.core.$strip>;
3586
+ response: z.ZodOptional<z.ZodObject<{
3587
+ status: z.ZodNumber;
3588
+ statusText: z.ZodOptional<z.ZodString>;
3589
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3590
+ body: z.ZodOptional<z.ZodObject<{
3591
+ contentType: z.ZodOptional<z.ZodString>;
3592
+ text: z.ZodString;
3593
+ truncated: z.ZodOptional<z.ZodBoolean>;
3594
+ }, z.core.$strip>>;
3595
+ }, z.core.$strip>>;
3596
+ error: z.ZodOptional<z.ZodObject<{
3597
+ code: z.ZodOptional<z.ZodString>;
3598
+ message: z.ZodString;
3599
+ }, z.core.$strip>>;
3600
+ }, z.core.$strip>>>;
3601
+ }, z.core.$strip>;
3602
+ }, z.core.$strip>;
3388
3603
  };
3389
3604
  declare let slatesTriggerGroupRequestsByMethod: {
3390
3605
  'slates/trigger_groups.list': z.ZodObject<{
@@ -3484,6 +3699,29 @@ declare let slatesTriggerGroupRequestsByMethod: {
3484
3699
  state: z.ZodNullable<z.ZodAny>;
3485
3700
  }, z.core.$strip>;
3486
3701
  }, z.core.$strip>;
3702
+ 'slates/trigger_group.gateway.connect': z.ZodObject<{
3703
+ jsonrpc: z.ZodLiteral<"2.0">;
3704
+ method: z.ZodLiteral<"slates/trigger_group.gateway.connect">;
3705
+ id: z.ZodString;
3706
+ params: z.ZodObject<{
3707
+ triggerGroupId: z.ZodString;
3708
+ state: z.ZodNullable<z.ZodAny>;
3709
+ }, z.core.$strip>;
3710
+ }, z.core.$strip>;
3711
+ 'slates/trigger_group.gateway.receive': z.ZodObject<{
3712
+ jsonrpc: z.ZodLiteral<"2.0">;
3713
+ method: z.ZodLiteral<"slates/trigger_group.gateway.receive">;
3714
+ id: z.ZodString;
3715
+ params: z.ZodObject<{
3716
+ triggerGroupId: z.ZodString;
3717
+ state: z.ZodNullable<z.ZodAny>;
3718
+ frames: z.ZodArray<z.ZodString>;
3719
+ closed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3720
+ code: z.ZodNumber;
3721
+ reason: z.ZodString;
3722
+ }, z.core.$strip>>>;
3723
+ }, z.core.$strip>;
3724
+ }, z.core.$strip>;
3487
3725
  };
3488
3726
 
3489
3727
  declare let SLATES_WEBHOOK_ERROR_CODES: {
@@ -3548,6 +3786,8 @@ declare let slatesResponsesByMethod: {
3548
3786
  invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
3549
3787
  type: z$1.ZodLiteral<"polling">;
3550
3788
  intervalSeconds: z$1.ZodNumber;
3789
+ }, z$1.core.$strip>, z$1.ZodObject<{
3790
+ type: z$1.ZodLiteral<"gateway">;
3551
3791
  }, z$1.core.$strip>, z$1.ZodObject<{
3552
3792
  type: z$1.ZodLiteral<"webhook">;
3553
3793
  registration: z$1.ZodUnion<readonly [z$1.ZodObject<{
@@ -3573,6 +3813,8 @@ declare let slatesResponsesByMethod: {
3573
3813
  invocation: z$1.ZodUnion<readonly [z$1.ZodObject<{
3574
3814
  type: z$1.ZodLiteral<"polling">;
3575
3815
  intervalSeconds: z$1.ZodNumber;
3816
+ }, z$1.core.$strip>, z$1.ZodObject<{
3817
+ type: z$1.ZodLiteral<"gateway">;
3576
3818
  }, z$1.core.$strip>, z$1.ZodObject<{
3577
3819
  type: z$1.ZodLiteral<"webhook">;
3578
3820
  registration: z$1.ZodUnion<readonly [z$1.ZodObject<{
@@ -3872,6 +4114,93 @@ declare let slatesResponsesByMethod: {
3872
4114
  }, z$1.core.$strip>>>;
3873
4115
  }, z$1.core.$strip>;
3874
4116
  }, z$1.core.$strip>;
4117
+ 'slates/trigger_group.gateway.connect': z$1.ZodObject<{
4118
+ jsonrpc: z$1.ZodLiteral<"2.0">;
4119
+ id: z$1.ZodString;
4120
+ result: z$1.ZodObject<{
4121
+ url: z$1.ZodString;
4122
+ state: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodAny>>;
4123
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4124
+ startedAt: z$1.ZodString;
4125
+ durationMs: z$1.ZodNumber;
4126
+ request: z$1.ZodObject<{
4127
+ method: z$1.ZodString;
4128
+ url: z$1.ZodString;
4129
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4130
+ body: z$1.ZodOptional<z$1.ZodObject<{
4131
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4132
+ text: z$1.ZodString;
4133
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4134
+ }, z$1.core.$strip>>;
4135
+ }, z$1.core.$strip>;
4136
+ response: z$1.ZodOptional<z$1.ZodObject<{
4137
+ status: z$1.ZodNumber;
4138
+ statusText: z$1.ZodOptional<z$1.ZodString>;
4139
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4140
+ body: z$1.ZodOptional<z$1.ZodObject<{
4141
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4142
+ text: z$1.ZodString;
4143
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4144
+ }, z$1.core.$strip>>;
4145
+ }, z$1.core.$strip>>;
4146
+ error: z$1.ZodOptional<z$1.ZodObject<{
4147
+ code: z$1.ZodOptional<z$1.ZodString>;
4148
+ message: z$1.ZodString;
4149
+ }, z$1.core.$strip>>;
4150
+ }, z$1.core.$strip>>>;
4151
+ }, z$1.core.$strip>;
4152
+ }, z$1.core.$strip>;
4153
+ 'slates/trigger_group.gateway.receive': z$1.ZodObject<{
4154
+ jsonrpc: z$1.ZodLiteral<"2.0">;
4155
+ id: z$1.ZodString;
4156
+ result: z$1.ZodObject<{
4157
+ state: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodAny>>;
4158
+ send: z$1.ZodArray<z$1.ZodString>;
4159
+ events: z$1.ZodArray<z$1.ZodObject<{
4160
+ payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
4161
+ idempotencyKey: z$1.ZodOptional<z$1.ZodString>;
4162
+ triggerIds: z$1.ZodArray<z$1.ZodString>;
4163
+ }, z$1.core.$strip>>;
4164
+ heartbeat: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4165
+ intervalMs: z$1.ZodNumber;
4166
+ frame: z$1.ZodString;
4167
+ expectsAck: z$1.ZodOptional<z$1.ZodBoolean>;
4168
+ }, z$1.core.$strip>>>;
4169
+ heartbeatAcked: z$1.ZodOptional<z$1.ZodBoolean>;
4170
+ close: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4171
+ reconnect: z$1.ZodBoolean;
4172
+ reason: z$1.ZodOptional<z$1.ZodString>;
4173
+ }, z$1.core.$strip>>>;
4174
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4175
+ startedAt: z$1.ZodString;
4176
+ durationMs: z$1.ZodNumber;
4177
+ request: z$1.ZodObject<{
4178
+ method: z$1.ZodString;
4179
+ url: z$1.ZodString;
4180
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4181
+ body: z$1.ZodOptional<z$1.ZodObject<{
4182
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4183
+ text: z$1.ZodString;
4184
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4185
+ }, z$1.core.$strip>>;
4186
+ }, z$1.core.$strip>;
4187
+ response: z$1.ZodOptional<z$1.ZodObject<{
4188
+ status: z$1.ZodNumber;
4189
+ statusText: z$1.ZodOptional<z$1.ZodString>;
4190
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4191
+ body: z$1.ZodOptional<z$1.ZodObject<{
4192
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4193
+ text: z$1.ZodString;
4194
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4195
+ }, z$1.core.$strip>>;
4196
+ }, z$1.core.$strip>>;
4197
+ error: z$1.ZodOptional<z$1.ZodObject<{
4198
+ code: z$1.ZodOptional<z$1.ZodString>;
4199
+ message: z$1.ZodString;
4200
+ }, z$1.core.$strip>>;
4201
+ }, z$1.core.$strip>>>;
4202
+ }, z$1.core.$strip>;
4203
+ }, z$1.core.$strip>;
3875
4204
  'slates/action.trigger.poll_events': z$1.ZodObject<{
3876
4205
  jsonrpc: z$1.ZodLiteral<"2.0">;
3877
4206
  id: z$1.ZodString;
@@ -4798,6 +5127,29 @@ declare let slatesRequestsByMethod: {
4798
5127
  state: z$1.ZodNullable<z$1.ZodAny>;
4799
5128
  }, z$1.core.$strip>;
4800
5129
  }, z$1.core.$strip>;
5130
+ 'slates/trigger_group.gateway.connect': z$1.ZodObject<{
5131
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5132
+ method: z$1.ZodLiteral<"slates/trigger_group.gateway.connect">;
5133
+ id: z$1.ZodString;
5134
+ params: z$1.ZodObject<{
5135
+ triggerGroupId: z$1.ZodString;
5136
+ state: z$1.ZodNullable<z$1.ZodAny>;
5137
+ }, z$1.core.$strip>;
5138
+ }, z$1.core.$strip>;
5139
+ 'slates/trigger_group.gateway.receive': z$1.ZodObject<{
5140
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5141
+ method: z$1.ZodLiteral<"slates/trigger_group.gateway.receive">;
5142
+ id: z$1.ZodString;
5143
+ params: z$1.ZodObject<{
5144
+ triggerGroupId: z$1.ZodString;
5145
+ state: z$1.ZodNullable<z$1.ZodAny>;
5146
+ frames: z$1.ZodArray<z$1.ZodString>;
5147
+ closed: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
5148
+ code: z$1.ZodNumber;
5149
+ reason: z$1.ZodString;
5150
+ }, z$1.core.$strip>>>;
5151
+ }, z$1.core.$strip>;
5152
+ }, z$1.core.$strip>;
4801
5153
  'slates/action.trigger.poll_events': z$1.ZodObject<{
4802
5154
  jsonrpc: z$1.ZodLiteral<"2.0">;
4803
5155
  method: z$1.ZodLiteral<"slates/action.trigger.poll_events">;
@@ -5361,6 +5713,8 @@ declare let slatesTriggerRoutingMatcher: z.ZodRecord<z.ZodString, z.ZodAny>;
5361
5713
  declare let slatesTriggerGroupInvocation: z.ZodUnion<readonly [z.ZodObject<{
5362
5714
  type: z.ZodLiteral<"polling">;
5363
5715
  intervalSeconds: z.ZodNumber;
5716
+ }, z.core.$strip>, z.ZodObject<{
5717
+ type: z.ZodLiteral<"gateway">;
5364
5718
  }, z.core.$strip>, z.ZodObject<{
5365
5719
  type: z.ZodLiteral<"webhook">;
5366
5720
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -5379,6 +5733,8 @@ declare let slatesTriggerGroup: z.ZodObject<{
5379
5733
  invocation: z.ZodUnion<readonly [z.ZodObject<{
5380
5734
  type: z.ZodLiteral<"polling">;
5381
5735
  intervalSeconds: z.ZodNumber;
5736
+ }, z.core.$strip>, z.ZodObject<{
5737
+ type: z.ZodLiteral<"gateway">;
5382
5738
  }, z.core.$strip>, z.ZodObject<{
5383
5739
  type: z.ZodLiteral<"webhook">;
5384
5740
  registration: z.ZodUnion<readonly [z.ZodObject<{
@@ -5414,4 +5770,4 @@ type SlatesWebhookTarget = z.infer<typeof slatesWebhookTarget>;
5414
5770
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
5415
5771
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
5416
5772
 
5417
- export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesHubNotifications, type SlatesHubRequests, type SlatesHubResponses, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageHubCapabilitiesSetNotification, type SlatesMessageHubLiveInvocationSetNotification, type SlatesMessageProviderCapabilitiesGetRequest, type SlatesMessageProviderCapabilitiesGetResponse, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesHubNotificationsByMethod, slatesHubRequestsByMethod, slatesHubResponsesByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageHubCapabilitiesSetNotification, slatesMessageHubLiveInvocationSetNotification, slatesMessageProviderCapabilitiesGetRequest, slatesMessageProviderCapabilitiesGetResponse, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
5773
+ export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesHubNotifications, type SlatesHubRequests, type SlatesHubResponses, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageHubCapabilitiesSetNotification, type SlatesMessageHubLiveInvocationSetNotification, type SlatesMessageProviderCapabilitiesGetRequest, type SlatesMessageProviderCapabilitiesGetResponse, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesMessageTriggerGroupGatewayConnectRequest, type SlatesMessageTriggerGroupGatewayConnectResponse, type SlatesMessageTriggerGroupGatewayReceiveRequest, type SlatesMessageTriggerGroupGatewayReceiveResponse, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesHubNotificationsByMethod, slatesHubRequestsByMethod, slatesHubResponsesByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageHubCapabilitiesSetNotification, slatesMessageHubLiveInvocationSetNotification, slatesMessageProviderCapabilitiesGetRequest, slatesMessageProviderCapabilitiesGetResponse, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesMessageTriggerGroupGatewayConnectRequest, slatesMessageTriggerGroupGatewayConnectResponse, slatesMessageTriggerGroupGatewayReceiveRequest, slatesMessageTriggerGroupGatewayReceiveResponse, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
@@ -127,6 +127,9 @@ var slatesTriggerGroupInvocation = z5.union([
127
127
  type: z5.literal("polling"),
128
128
  intervalSeconds: z5.number().min(60 * 10)
129
129
  }),
130
+ z5.object({
131
+ type: z5.literal("gateway")
132
+ }),
130
133
  z5.object({
131
134
  type: z5.literal("webhook"),
132
135
  registration: z5.union([
@@ -1033,6 +1036,52 @@ var slatesMessageTriggerGroupPollingPollResponse = z15.object({
1033
1036
  events: z15.array(slatesTriggerGroupPollEvent)
1034
1037
  })
1035
1038
  });
1039
+ var slatesMessageTriggerGroupGatewayConnectRequest = z15.object({
1040
+ jsonrpc: z15.literal("2.0"),
1041
+ method: z15.literal("slates/trigger_group.gateway.connect"),
1042
+ id: z15.string(),
1043
+ params: z15.object({
1044
+ triggerGroupId: z15.string(),
1045
+ state: z15.any().nullable()
1046
+ })
1047
+ });
1048
+ var slatesMessageTriggerGroupGatewayConnectResponse = z15.object({
1049
+ jsonrpc: z15.literal("2.0"),
1050
+ id: z15.string(),
1051
+ result: withRequestTraces({
1052
+ url: z15.string(),
1053
+ state: z15.any().nullable().optional()
1054
+ })
1055
+ });
1056
+ var slatesMessageTriggerGroupGatewayReceiveRequest = z15.object({
1057
+ jsonrpc: z15.literal("2.0"),
1058
+ method: z15.literal("slates/trigger_group.gateway.receive"),
1059
+ id: z15.string(),
1060
+ params: z15.object({
1061
+ triggerGroupId: z15.string(),
1062
+ state: z15.any().nullable(),
1063
+ frames: z15.array(z15.string()),
1064
+ closed: z15.object({ code: z15.number(), reason: z15.string() }).nullable().optional()
1065
+ })
1066
+ });
1067
+ var slatesMessageTriggerGroupGatewayReceiveResponse = z15.object({
1068
+ jsonrpc: z15.literal("2.0"),
1069
+ id: z15.string(),
1070
+ result: withRequestTraces({
1071
+ state: z15.any().nullable().optional(),
1072
+ send: z15.array(z15.string()),
1073
+ events: z15.array(slatesTriggerGroupPollEvent),
1074
+ heartbeat: z15.object({
1075
+ intervalMs: z15.number().int().positive(),
1076
+ frame: z15.string(),
1077
+ // The hub requires `heartbeatAcked` between beats and reconnects otherwise.
1078
+ expectsAck: z15.boolean().optional()
1079
+ }).nullable().optional(),
1080
+ // Set when these frames included the provider's acknowledgement of a heartbeat.
1081
+ heartbeatAcked: z15.boolean().optional(),
1082
+ close: z15.object({ reconnect: z15.boolean(), reason: z15.string().optional() }).nullable().optional()
1083
+ })
1084
+ });
1036
1085
  var slatesTriggerGroupResponsesByMethod = {
1037
1086
  "slates/trigger_groups.list": slatesMessageTriggerGroupsListResponse,
1038
1087
  "slates/trigger_group.get": slatesMessageTriggerGroupGetResponse,
@@ -1043,7 +1092,9 @@ var slatesTriggerGroupResponsesByMethod = {
1043
1092
  "slates/trigger_group.webhook.manual_finish": slatesMessageTriggerGroupWebhookManualFinishResponse,
1044
1093
  "slates/trigger_group.webhook.process": slatesMessageTriggerGroupWebhookProcessResponse,
1045
1094
  "slates/trigger_group.routing_matchers.get": slatesMessageTriggerGroupRoutingMatchersGetResponse,
1046
- "slates/trigger_group.polling.poll": slatesMessageTriggerGroupPollingPollResponse
1095
+ "slates/trigger_group.polling.poll": slatesMessageTriggerGroupPollingPollResponse,
1096
+ "slates/trigger_group.gateway.connect": slatesMessageTriggerGroupGatewayConnectResponse,
1097
+ "slates/trigger_group.gateway.receive": slatesMessageTriggerGroupGatewayReceiveResponse
1047
1098
  };
1048
1099
  var slatesTriggerGroupRequestsByMethod = {
1049
1100
  "slates/trigger_groups.list": slatesMessageTriggerGroupsListRequest,
@@ -1055,7 +1106,9 @@ var slatesTriggerGroupRequestsByMethod = {
1055
1106
  "slates/trigger_group.webhook.manual_finish": slatesMessageTriggerGroupWebhookManualFinishRequest,
1056
1107
  "slates/trigger_group.webhook.process": slatesMessageTriggerGroupWebhookProcessRequest,
1057
1108
  "slates/trigger_group.routing_matchers.get": slatesMessageTriggerGroupRoutingMatchersGetRequest,
1058
- "slates/trigger_group.polling.poll": slatesMessageTriggerGroupPollingPollRequest
1109
+ "slates/trigger_group.polling.poll": slatesMessageTriggerGroupPollingPollRequest,
1110
+ "slates/trigger_group.gateway.connect": slatesMessageTriggerGroupGatewayConnectRequest,
1111
+ "slates/trigger_group.gateway.receive": slatesMessageTriggerGroupGatewayReceiveRequest
1059
1112
  };
1060
1113
 
1061
1114
  // src/messages/webhookErrors.ts
@@ -1447,6 +1500,10 @@ export {
1447
1500
  slatesMessageSetAuthNotification,
1448
1501
  slatesMessageSetConfigNotification,
1449
1502
  slatesMessageSetParticipantsNotification,
1503
+ slatesMessageTriggerGroupGatewayConnectRequest,
1504
+ slatesMessageTriggerGroupGatewayConnectResponse,
1505
+ slatesMessageTriggerGroupGatewayReceiveRequest,
1506
+ slatesMessageTriggerGroupGatewayReceiveResponse,
1450
1507
  slatesMessageTriggerGroupGetRequest,
1451
1508
  slatesMessageTriggerGroupGetResponse,
1452
1509
  slatesMessageTriggerGroupPollingPollRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slates/proto",
3
- "version": "1.0.0-rc.23",
3
+ "version": "1.0.0-rc.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },