@automate.ax/api-contract 0.128.0 → 0.130.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3768,9 +3768,9 @@ export declare const contract: {
3768
3768
  };
3769
3769
  pageId: string;
3770
3770
  };
3771
+ subscriptionId: string;
3771
3772
  workspaceId: string;
3772
3773
  workspaceName: string;
3773
- subscriptionId: string;
3774
3774
  integrationId: string;
3775
3775
  attemptNumber: number;
3776
3776
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3787,7 +3787,7 @@ export declare const contract: {
3787
3787
  };
3788
3788
  authors: {
3789
3789
  id: string;
3790
- type: "agent" | "bot" | "person";
3790
+ type: "bot" | "agent" | "person";
3791
3791
  }[];
3792
3792
  } | {
3793
3793
  type: "comment.deleted";
@@ -3800,9 +3800,9 @@ export declare const contract: {
3800
3800
  };
3801
3801
  pageId: string;
3802
3802
  };
3803
+ subscriptionId: string;
3803
3804
  workspaceId: string;
3804
3805
  workspaceName: string;
3805
- subscriptionId: string;
3806
3806
  integrationId: string;
3807
3807
  attemptNumber: number;
3808
3808
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3819,7 +3819,7 @@ export declare const contract: {
3819
3819
  };
3820
3820
  authors: {
3821
3821
  id: string;
3822
- type: "agent" | "bot" | "person";
3822
+ type: "bot" | "agent" | "person";
3823
3823
  }[];
3824
3824
  } | {
3825
3825
  type: "comment.updated";
@@ -3832,9 +3832,9 @@ export declare const contract: {
3832
3832
  };
3833
3833
  pageId: string;
3834
3834
  };
3835
+ subscriptionId: string;
3835
3836
  workspaceId: string;
3836
3837
  workspaceName: string;
3837
- subscriptionId: string;
3838
3838
  integrationId: string;
3839
3839
  attemptNumber: number;
3840
3840
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3851,7 +3851,7 @@ export declare const contract: {
3851
3851
  };
3852
3852
  authors: {
3853
3853
  id: string;
3854
- type: "agent" | "bot" | "person";
3854
+ type: "bot" | "agent" | "person";
3855
3855
  }[];
3856
3856
  } | {
3857
3857
  type: "data_source.content_updated";
@@ -3868,9 +3868,9 @@ export declare const contract: {
3868
3868
  type: "page" | "block" | "database";
3869
3869
  }[];
3870
3870
  };
3871
+ subscriptionId: string;
3871
3872
  workspaceId: string;
3872
3873
  workspaceName: string;
3873
- subscriptionId: string;
3874
3874
  integrationId: string;
3875
3875
  attemptNumber: number;
3876
3876
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3887,7 +3887,7 @@ export declare const contract: {
3887
3887
  };
3888
3888
  authors: {
3889
3889
  id: string;
3890
- type: "agent" | "bot" | "person";
3890
+ type: "bot" | "agent" | "person";
3891
3891
  }[];
3892
3892
  } | {
3893
3893
  type: "data_source.created";
@@ -3900,9 +3900,9 @@ export declare const contract: {
3900
3900
  dataSourceId?: string | undefined;
3901
3901
  };
3902
3902
  };
3903
+ subscriptionId: string;
3903
3904
  workspaceId: string;
3904
3905
  workspaceName: string;
3905
- subscriptionId: string;
3906
3906
  integrationId: string;
3907
3907
  attemptNumber: number;
3908
3908
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3919,7 +3919,7 @@ export declare const contract: {
3919
3919
  };
3920
3920
  authors: {
3921
3921
  id: string;
3922
- type: "agent" | "bot" | "person";
3922
+ type: "bot" | "agent" | "person";
3923
3923
  }[];
3924
3924
  } | {
3925
3925
  type: "data_source.deleted";
@@ -3932,9 +3932,9 @@ export declare const contract: {
3932
3932
  dataSourceId?: string | undefined;
3933
3933
  };
3934
3934
  };
3935
+ subscriptionId: string;
3935
3936
  workspaceId: string;
3936
3937
  workspaceName: string;
3937
- subscriptionId: string;
3938
3938
  integrationId: string;
3939
3939
  attemptNumber: number;
3940
3940
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3951,7 +3951,7 @@ export declare const contract: {
3951
3951
  };
3952
3952
  authors: {
3953
3953
  id: string;
3954
- type: "agent" | "bot" | "person";
3954
+ type: "bot" | "agent" | "person";
3955
3955
  }[];
3956
3956
  } | {
3957
3957
  type: "data_source.moved";
@@ -3964,9 +3964,9 @@ export declare const contract: {
3964
3964
  dataSourceId?: string | undefined;
3965
3965
  };
3966
3966
  };
3967
+ subscriptionId: string;
3967
3968
  workspaceId: string;
3968
3969
  workspaceName: string;
3969
- subscriptionId: string;
3970
3970
  integrationId: string;
3971
3971
  attemptNumber: number;
3972
3972
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -3983,7 +3983,7 @@ export declare const contract: {
3983
3983
  };
3984
3984
  authors: {
3985
3985
  id: string;
3986
- type: "agent" | "bot" | "person";
3986
+ type: "bot" | "agent" | "person";
3987
3987
  }[];
3988
3988
  } | {
3989
3989
  type: "data_source.schema_updated";
@@ -4001,9 +4001,9 @@ export declare const contract: {
4001
4001
  action: "created" | "updated" | "deleted";
4002
4002
  }[] | undefined;
4003
4003
  };
4004
+ subscriptionId: string;
4004
4005
  workspaceId: string;
4005
4006
  workspaceName: string;
4006
- subscriptionId: string;
4007
4007
  integrationId: string;
4008
4008
  attemptNumber: number;
4009
4009
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4020,7 +4020,7 @@ export declare const contract: {
4020
4020
  };
4021
4021
  authors: {
4022
4022
  id: string;
4023
- type: "agent" | "bot" | "person";
4023
+ type: "bot" | "agent" | "person";
4024
4024
  }[];
4025
4025
  } | {
4026
4026
  type: "data_source.undeleted";
@@ -4033,9 +4033,9 @@ export declare const contract: {
4033
4033
  dataSourceId?: string | undefined;
4034
4034
  };
4035
4035
  };
4036
+ subscriptionId: string;
4036
4037
  workspaceId: string;
4037
4038
  workspaceName: string;
4038
- subscriptionId: string;
4039
4039
  integrationId: string;
4040
4040
  attemptNumber: number;
4041
4041
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4052,7 +4052,7 @@ export declare const contract: {
4052
4052
  };
4053
4053
  authors: {
4054
4054
  id: string;
4055
- type: "agent" | "bot" | "person";
4055
+ type: "bot" | "agent" | "person";
4056
4056
  }[];
4057
4057
  } | {
4058
4058
  type: "database.created";
@@ -4065,9 +4065,9 @@ export declare const contract: {
4065
4065
  dataSourceId?: string | undefined;
4066
4066
  };
4067
4067
  };
4068
+ subscriptionId: string;
4068
4069
  workspaceId: string;
4069
4070
  workspaceName: string;
4070
- subscriptionId: string;
4071
4071
  integrationId: string;
4072
4072
  attemptNumber: number;
4073
4073
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4084,7 +4084,7 @@ export declare const contract: {
4084
4084
  };
4085
4085
  authors: {
4086
4086
  id: string;
4087
- type: "agent" | "bot" | "person";
4087
+ type: "bot" | "agent" | "person";
4088
4088
  }[];
4089
4089
  } | {
4090
4090
  type: "database.deleted";
@@ -4097,9 +4097,9 @@ export declare const contract: {
4097
4097
  dataSourceId?: string | undefined;
4098
4098
  };
4099
4099
  };
4100
+ subscriptionId: string;
4100
4101
  workspaceId: string;
4101
4102
  workspaceName: string;
4102
- subscriptionId: string;
4103
4103
  integrationId: string;
4104
4104
  attemptNumber: number;
4105
4105
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4116,7 +4116,7 @@ export declare const contract: {
4116
4116
  };
4117
4117
  authors: {
4118
4118
  id: string;
4119
- type: "agent" | "bot" | "person";
4119
+ type: "bot" | "agent" | "person";
4120
4120
  }[];
4121
4121
  } | {
4122
4122
  type: "database.moved";
@@ -4129,9 +4129,9 @@ export declare const contract: {
4129
4129
  dataSourceId?: string | undefined;
4130
4130
  };
4131
4131
  };
4132
+ subscriptionId: string;
4132
4133
  workspaceId: string;
4133
4134
  workspaceName: string;
4134
- subscriptionId: string;
4135
4135
  integrationId: string;
4136
4136
  attemptNumber: number;
4137
4137
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4148,7 +4148,7 @@ export declare const contract: {
4148
4148
  };
4149
4149
  authors: {
4150
4150
  id: string;
4151
- type: "agent" | "bot" | "person";
4151
+ type: "bot" | "agent" | "person";
4152
4152
  }[];
4153
4153
  } | {
4154
4154
  type: "database.undeleted";
@@ -4161,9 +4161,9 @@ export declare const contract: {
4161
4161
  dataSourceId?: string | undefined;
4162
4162
  };
4163
4163
  };
4164
+ subscriptionId: string;
4164
4165
  workspaceId: string;
4165
4166
  workspaceName: string;
4166
- subscriptionId: string;
4167
4167
  integrationId: string;
4168
4168
  attemptNumber: number;
4169
4169
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4180,15 +4180,15 @@ export declare const contract: {
4180
4180
  };
4181
4181
  authors: {
4182
4182
  id: string;
4183
- type: "agent" | "bot" | "person";
4183
+ type: "bot" | "agent" | "person";
4184
4184
  }[];
4185
4185
  } | {
4186
4186
  type: "file_upload.completed";
4187
4187
  id: string;
4188
4188
  timestamp: string;
4189
+ subscriptionId: string;
4189
4190
  workspaceId: string;
4190
4191
  workspaceName: string;
4191
- subscriptionId: string;
4192
4192
  integrationId: string;
4193
4193
  attemptNumber: number;
4194
4194
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4205,15 +4205,15 @@ export declare const contract: {
4205
4205
  };
4206
4206
  authors: {
4207
4207
  id: string;
4208
- type: "agent" | "bot" | "person";
4208
+ type: "bot" | "agent" | "person";
4209
4209
  }[];
4210
4210
  } | {
4211
4211
  type: "file_upload.created";
4212
4212
  id: string;
4213
4213
  timestamp: string;
4214
+ subscriptionId: string;
4214
4215
  workspaceId: string;
4215
4216
  workspaceName: string;
4216
- subscriptionId: string;
4217
4217
  integrationId: string;
4218
4218
  attemptNumber: number;
4219
4219
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4230,15 +4230,15 @@ export declare const contract: {
4230
4230
  };
4231
4231
  authors: {
4232
4232
  id: string;
4233
- type: "agent" | "bot" | "person";
4233
+ type: "bot" | "agent" | "person";
4234
4234
  }[];
4235
4235
  } | {
4236
4236
  type: "file_upload.expired";
4237
4237
  id: string;
4238
4238
  timestamp: string;
4239
+ subscriptionId: string;
4239
4240
  workspaceId: string;
4240
4241
  workspaceName: string;
4241
- subscriptionId: string;
4242
4242
  integrationId: string;
4243
4243
  attemptNumber: number;
4244
4244
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4255,7 +4255,7 @@ export declare const contract: {
4255
4255
  };
4256
4256
  authors: {
4257
4257
  id: string;
4258
- type: "agent" | "bot" | "person";
4258
+ type: "bot" | "agent" | "person";
4259
4259
  }[];
4260
4260
  } | {
4261
4261
  type: "file_upload.upload_failed";
@@ -4280,9 +4280,9 @@ export declare const contract: {
4280
4280
  };
4281
4281
  };
4282
4282
  };
4283
+ subscriptionId: string;
4283
4284
  workspaceId: string;
4284
4285
  workspaceName: string;
4285
- subscriptionId: string;
4286
4286
  integrationId: string;
4287
4287
  attemptNumber: number;
4288
4288
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4299,7 +4299,7 @@ export declare const contract: {
4299
4299
  };
4300
4300
  authors: {
4301
4301
  id: string;
4302
- type: "agent" | "bot" | "person";
4302
+ type: "bot" | "agent" | "person";
4303
4303
  }[];
4304
4304
  } | {
4305
4305
  type: "page.content_updated";
@@ -4316,9 +4316,9 @@ export declare const contract: {
4316
4316
  type: "page" | "block" | "database";
4317
4317
  }[];
4318
4318
  };
4319
+ subscriptionId: string;
4319
4320
  workspaceId: string;
4320
4321
  workspaceName: string;
4321
- subscriptionId: string;
4322
4322
  integrationId: string;
4323
4323
  attemptNumber: number;
4324
4324
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4335,7 +4335,7 @@ export declare const contract: {
4335
4335
  };
4336
4336
  authors: {
4337
4337
  id: string;
4338
- type: "agent" | "bot" | "person";
4338
+ type: "bot" | "agent" | "person";
4339
4339
  }[];
4340
4340
  } | {
4341
4341
  type: "page.created";
@@ -4348,9 +4348,9 @@ export declare const contract: {
4348
4348
  dataSourceId?: string | undefined;
4349
4349
  };
4350
4350
  };
4351
+ subscriptionId: string;
4351
4352
  workspaceId: string;
4352
4353
  workspaceName: string;
4353
- subscriptionId: string;
4354
4354
  integrationId: string;
4355
4355
  attemptNumber: number;
4356
4356
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4367,7 +4367,7 @@ export declare const contract: {
4367
4367
  };
4368
4368
  authors: {
4369
4369
  id: string;
4370
- type: "agent" | "bot" | "person";
4370
+ type: "bot" | "agent" | "person";
4371
4371
  }[];
4372
4372
  } | {
4373
4373
  type: "page.deleted";
@@ -4380,9 +4380,9 @@ export declare const contract: {
4380
4380
  dataSourceId?: string | undefined;
4381
4381
  };
4382
4382
  };
4383
+ subscriptionId: string;
4383
4384
  workspaceId: string;
4384
4385
  workspaceName: string;
4385
- subscriptionId: string;
4386
4386
  integrationId: string;
4387
4387
  attemptNumber: number;
4388
4388
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4399,7 +4399,7 @@ export declare const contract: {
4399
4399
  };
4400
4400
  authors: {
4401
4401
  id: string;
4402
- type: "agent" | "bot" | "person";
4402
+ type: "bot" | "agent" | "person";
4403
4403
  }[];
4404
4404
  } | {
4405
4405
  type: "page.locked";
@@ -4412,9 +4412,9 @@ export declare const contract: {
4412
4412
  dataSourceId?: string | undefined;
4413
4413
  };
4414
4414
  };
4415
+ subscriptionId: string;
4415
4416
  workspaceId: string;
4416
4417
  workspaceName: string;
4417
- subscriptionId: string;
4418
4418
  integrationId: string;
4419
4419
  attemptNumber: number;
4420
4420
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4431,7 +4431,7 @@ export declare const contract: {
4431
4431
  };
4432
4432
  authors: {
4433
4433
  id: string;
4434
- type: "agent" | "bot" | "person";
4434
+ type: "bot" | "agent" | "person";
4435
4435
  }[];
4436
4436
  } | {
4437
4437
  type: "page.moved";
@@ -4444,9 +4444,9 @@ export declare const contract: {
4444
4444
  dataSourceId?: string | undefined;
4445
4445
  };
4446
4446
  };
4447
+ subscriptionId: string;
4447
4448
  workspaceId: string;
4448
4449
  workspaceName: string;
4449
- subscriptionId: string;
4450
4450
  integrationId: string;
4451
4451
  attemptNumber: number;
4452
4452
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4463,7 +4463,7 @@ export declare const contract: {
4463
4463
  };
4464
4464
  authors: {
4465
4465
  id: string;
4466
- type: "agent" | "bot" | "person";
4466
+ type: "bot" | "agent" | "person";
4467
4467
  }[];
4468
4468
  } | {
4469
4469
  type: "page.properties_updated";
@@ -4477,9 +4477,9 @@ export declare const contract: {
4477
4477
  };
4478
4478
  updatedProperties: string[];
4479
4479
  };
4480
+ subscriptionId: string;
4480
4481
  workspaceId: string;
4481
4482
  workspaceName: string;
4482
- subscriptionId: string;
4483
4483
  integrationId: string;
4484
4484
  attemptNumber: number;
4485
4485
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4496,7 +4496,7 @@ export declare const contract: {
4496
4496
  };
4497
4497
  authors: {
4498
4498
  id: string;
4499
- type: "agent" | "bot" | "person";
4499
+ type: "bot" | "agent" | "person";
4500
4500
  }[];
4501
4501
  } | {
4502
4502
  type: "page.transcription_block.transcript_deleted";
@@ -4509,9 +4509,9 @@ export declare const contract: {
4509
4509
  };
4510
4510
  transcriptId: string | null;
4511
4511
  };
4512
+ subscriptionId: string;
4512
4513
  workspaceId: string;
4513
4514
  workspaceName: string;
4514
- subscriptionId: string;
4515
4515
  integrationId: string;
4516
4516
  attemptNumber: number;
4517
4517
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4528,7 +4528,7 @@ export declare const contract: {
4528
4528
  };
4529
4529
  authors: {
4530
4530
  id: string;
4531
- type: "agent" | "bot" | "person";
4531
+ type: "bot" | "agent" | "person";
4532
4532
  }[];
4533
4533
  } | {
4534
4534
  type: "page.undeleted";
@@ -4541,9 +4541,9 @@ export declare const contract: {
4541
4541
  dataSourceId?: string | undefined;
4542
4542
  };
4543
4543
  };
4544
+ subscriptionId: string;
4544
4545
  workspaceId: string;
4545
4546
  workspaceName: string;
4546
- subscriptionId: string;
4547
4547
  integrationId: string;
4548
4548
  attemptNumber: number;
4549
4549
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4560,7 +4560,7 @@ export declare const contract: {
4560
4560
  };
4561
4561
  authors: {
4562
4562
  id: string;
4563
- type: "agent" | "bot" | "person";
4563
+ type: "bot" | "agent" | "person";
4564
4564
  }[];
4565
4565
  } | {
4566
4566
  type: "page.unlocked";
@@ -4573,9 +4573,9 @@ export declare const contract: {
4573
4573
  dataSourceId?: string | undefined;
4574
4574
  };
4575
4575
  };
4576
+ subscriptionId: string;
4576
4577
  workspaceId: string;
4577
4578
  workspaceName: string;
4578
- subscriptionId: string;
4579
4579
  integrationId: string;
4580
4580
  attemptNumber: number;
4581
4581
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4592,7 +4592,7 @@ export declare const contract: {
4592
4592
  };
4593
4593
  authors: {
4594
4594
  id: string;
4595
- type: "agent" | "bot" | "person";
4595
+ type: "bot" | "agent" | "person";
4596
4596
  }[];
4597
4597
  } | {
4598
4598
  type: "view.created";
@@ -4606,9 +4606,9 @@ export declare const contract: {
4606
4606
  };
4607
4607
  viewType: string;
4608
4608
  };
4609
+ subscriptionId: string;
4609
4610
  workspaceId: string;
4610
4611
  workspaceName: string;
4611
- subscriptionId: string;
4612
4612
  integrationId: string;
4613
4613
  attemptNumber: number;
4614
4614
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4625,7 +4625,7 @@ export declare const contract: {
4625
4625
  };
4626
4626
  authors: {
4627
4627
  id: string;
4628
- type: "agent" | "bot" | "person";
4628
+ type: "bot" | "agent" | "person";
4629
4629
  }[];
4630
4630
  } | {
4631
4631
  type: "view.deleted";
@@ -4638,9 +4638,9 @@ export declare const contract: {
4638
4638
  dataSourceId?: string | undefined;
4639
4639
  };
4640
4640
  };
4641
+ subscriptionId: string;
4641
4642
  workspaceId: string;
4642
4643
  workspaceName: string;
4643
- subscriptionId: string;
4644
4644
  integrationId: string;
4645
4645
  attemptNumber: number;
4646
4646
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4657,7 +4657,7 @@ export declare const contract: {
4657
4657
  };
4658
4658
  authors: {
4659
4659
  id: string;
4660
- type: "agent" | "bot" | "person";
4660
+ type: "bot" | "agent" | "person";
4661
4661
  }[];
4662
4662
  } | {
4663
4663
  type: "view.updated";
@@ -4671,9 +4671,9 @@ export declare const contract: {
4671
4671
  };
4672
4672
  updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
4673
4673
  };
4674
+ subscriptionId: string;
4674
4675
  workspaceId: string;
4675
4676
  workspaceName: string;
4676
- subscriptionId: string;
4677
4677
  integrationId: string;
4678
4678
  attemptNumber: number;
4679
4679
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -4690,7 +4690,7 @@ export declare const contract: {
4690
4690
  };
4691
4691
  authors: {
4692
4692
  id: string;
4693
- type: "agent" | "bot" | "person";
4693
+ type: "bot" | "agent" | "person";
4694
4694
  }[];
4695
4695
  }, {
4696
4696
  [x: string]: import("zod").JSONType;
@@ -5932,6 +5932,17 @@ export declare const contract: {
5932
5932
  closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
5933
5933
  sourceId: import("zod").ZodString;
5934
5934
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
5935
+ discordEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
5936
+ applicationId: import("zod").ZodString;
5937
+ application_id: import("zod").ZodString;
5938
+ event: import("zod").ZodOptional<import("zod").ZodObject<{
5939
+ data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>;
5940
+ timestamp: import("zod").ZodString;
5941
+ type: import("zod").ZodString;
5942
+ }, import("zod/v4/core").$loose>>;
5943
+ type: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>]>;
5944
+ version: import("zod").ZodLiteral<1>;
5945
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
5935
5946
  convexEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
5936
5947
  emittedAt: import("zod").ZodISODateTime;
5937
5948
  endpointKey: import("zod").ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.128.0",
3
+ "version": "0.130.1",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.46",
34
- "@automate.ax/codec": "0.128.0",
35
- "@automate.ax/integration-contracts": "0.128.0",
34
+ "@automate.ax/codec": "0.130.1",
35
+ "@automate.ax/integration-contracts": "0.130.1",
36
36
  "@orpc/contract": "1.15.0",
37
37
  "fast-json-stable-stringify": "^2.1.0",
38
38
  "zod": "^4.3.6"
@@ -0,0 +1,32 @@
1
+ import { oc } from "@orpc/contract"
2
+ import * as z from "zod"
3
+
4
+ export const discordEventsContract = {
5
+ discordEvent: oc
6
+ .route({
7
+ description:
8
+ "Receives and authenticates callbacks delivered by Discord Event Webhooks.",
9
+ method: "POST",
10
+ operationId: "receiveDiscordEvent",
11
+ path: "/events/discord/{applicationId}",
12
+ successStatus: 204,
13
+ summary: "Receive a Discord webhook event",
14
+ tags: ["Events"],
15
+ })
16
+ .input(
17
+ z.looseObject({
18
+ applicationId: z.string(),
19
+ application_id: z.string(),
20
+ event: z
21
+ .looseObject({
22
+ data: z.record(z.string(), z.json()).optional(),
23
+ timestamp: z.string(),
24
+ type: z.string(),
25
+ })
26
+ .optional(),
27
+ type: z.union([z.literal(0), z.literal(1)]),
28
+ version: z.literal(1),
29
+ }),
30
+ )
31
+ .output(z.void()),
32
+ }
@@ -4,6 +4,7 @@ import { axiomEventsContract } from "./axiom"
4
4
  import { asanaEventsContract } from "./asana"
5
5
  import { brevoEventsContract } from "./brevo"
6
6
  import { convexEventsContract } from "./convex"
7
+ import { discordEventsContract } from "./discord"
7
8
  import { closeEventsContract } from "./close"
8
9
  import { cloudflareEventsContract } from "./cloudflare"
9
10
  import { googleCalendarEventsContract } from "./google-calendar"
@@ -32,6 +33,7 @@ export const eventsContract = {
32
33
  ...asanaEventsContract,
33
34
  ...brevoEventsContract,
34
35
  ...convexEventsContract,
36
+ ...discordEventsContract,
35
37
  ...closeEventsContract,
36
38
  ...cloudflareEventsContract,
37
39
  ...googleCalendarEventsContract,