@linqapp/sdk 0.72.0 → 0.73.0

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.
@@ -4590,7 +4590,7 @@ export interface ZeroDayRetentionUpdatedWebhookEvent {
4590
4590
  * `phone_number`, `team_member`) identify what changed; on update events `change`
4591
4591
  * describes the transition. Created and deleted events carry only the object that
4592
4592
  * was created or deleted. Fields are absent when they don't apply; `null` appears
4593
- * only inside `change` and as Production's environment `id`.
4593
+ * only inside `change`.
4594
4594
  */
4595
4595
  data: ZeroDayRetentionUpdatedWebhookEvent.Data;
4596
4596
  /**
@@ -4621,7 +4621,7 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4621
4621
  * `phone_number`, `team_member`) identify what changed; on update events `change`
4622
4622
  * describes the transition. Created and deleted events carry only the object that
4623
4623
  * was created or deleted. Fields are absent when they don't apply; `null` appears
4624
- * only inside `change` and as Production's environment `id`.
4624
+ * only inside `change`.
4625
4625
  */
4626
4626
  interface Data {
4627
4627
  /**
@@ -4655,8 +4655,9 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4655
4655
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
4656
4656
  * expired and activated events never carry it. `null` means none: `to: null` means
4657
4657
  * cleared and `from: null` means first set. The value type depends on the event
4658
- * and is given in each event's description. `contact_card.updated` uses `name`
4659
- * instead of `from` and `to`.
4658
+ * and is given in each event's description. `contact_card.updated` uses
4659
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
4660
+ * present only when that field changed.
4660
4661
  */
4661
4662
  change?: Data.Change;
4662
4663
  /**
@@ -4664,9 +4665,9 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4664
4665
  */
4665
4666
  contact_card?: Data.ContactCard;
4666
4667
  /**
4667
- * An environment. Production is
4668
- * `{"id": null, "name": "Production", "type": "production"}`; every other
4669
- * environment has an `id` and type `environment`.
4668
+ * An environment, identified by name. Production is
4669
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
4670
+ * (e.g. "Staging") looks the same shape, just with its own name.
4670
4671
  */
4671
4672
  environment?: Data.Environment;
4672
4673
  /**
@@ -4743,19 +4744,30 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4743
4744
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
4744
4745
  * expired and activated events never carry it. `null` means none: `to: null` means
4745
4746
  * cleared and `from: null` means first set. The value type depends on the event
4746
- * and is given in each event's description. `contact_card.updated` uses `name`
4747
- * instead of `from` and `to`.
4747
+ * and is given in each event's description. `contact_card.updated` uses
4748
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
4749
+ * present only when that field changed.
4748
4750
  */
4749
4751
  interface Change {
4752
+ /**
4753
+ * A single field's change, on `contact_card.updated`. Present only for the field
4754
+ * that changed.
4755
+ */
4756
+ first_name?: Change.FirstName;
4750
4757
  /**
4751
4758
  * The value before the change; null when there was none.
4752
4759
  */
4753
4760
  from?: unknown;
4754
4761
  /**
4755
- * A contact card name change. Only on `contact_card.updated`, when the name
4756
- * changed.
4762
+ * A single field's change, on `contact_card.updated`. Present only for the field
4763
+ * that changed.
4764
+ */
4765
+ image_url?: Change.ImageURL;
4766
+ /**
4767
+ * A single field's change, on `contact_card.updated`. Present only for the field
4768
+ * that changed.
4757
4769
  */
4758
- name?: Change.Name;
4770
+ last_name?: Change.LastName;
4759
4771
  /**
4760
4772
  * The value after the change; null when it was cleared.
4761
4773
  */
@@ -4763,16 +4775,44 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4763
4775
  }
4764
4776
  namespace Change {
4765
4777
  /**
4766
- * A contact card name change. Only on `contact_card.updated`, when the name
4767
- * changed.
4778
+ * A single field's change, on `contact_card.updated`. Present only for the field
4779
+ * that changed.
4780
+ */
4781
+ interface FirstName {
4782
+ /**
4783
+ * The value before the change; null when the card had none.
4784
+ */
4785
+ from: string | null;
4786
+ /**
4787
+ * The value after the change; null when it was removed.
4788
+ */
4789
+ to: string | null;
4790
+ }
4791
+ /**
4792
+ * A single field's change, on `contact_card.updated`. Present only for the field
4793
+ * that changed.
4794
+ */
4795
+ interface ImageURL {
4796
+ /**
4797
+ * The value before the change; null when the card had none.
4798
+ */
4799
+ from: string | null;
4800
+ /**
4801
+ * The value after the change; null when it was removed.
4802
+ */
4803
+ to: string | null;
4804
+ }
4805
+ /**
4806
+ * A single field's change, on `contact_card.updated`. Present only for the field
4807
+ * that changed.
4768
4808
  */
4769
- interface Name {
4809
+ interface LastName {
4770
4810
  /**
4771
- * The name before the change; null when the card had no name.
4811
+ * The value before the change; null when the card had none.
4772
4812
  */
4773
4813
  from: string | null;
4774
4814
  /**
4775
- * The name after the change; null when it was removed.
4815
+ * The value after the change; null when it was removed.
4776
4816
  */
4777
4817
  to: string | null;
4778
4818
  }
@@ -4782,27 +4822,24 @@ export declare namespace ZeroDayRetentionUpdatedWebhookEvent {
4782
4822
  */
4783
4823
  interface ContactCard {
4784
4824
  id: string;
4825
+ first_name: string;
4785
4826
  /**
4786
- * Display name. Absent when the card has no name.
4827
+ * Null when the card has no photo.
4787
4828
  */
4788
- name?: string;
4829
+ image_url: string | null;
4789
4830
  /**
4790
- * True when the photo changed. Only on `contact_card.updated`.
4831
+ * Null when the card has no last name.
4791
4832
  */
4792
- photo_updated?: boolean;
4833
+ last_name: string | null;
4793
4834
  }
4794
4835
  /**
4795
- * An environment. Production is
4796
- * `{"id": null, "name": "Production", "type": "production"}`; every other
4797
- * environment has an `id` and type `environment`.
4836
+ * An environment, identified by name. Production is
4837
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
4838
+ * (e.g. "Staging") looks the same shape, just with its own name.
4798
4839
  */
4799
4840
  interface Environment {
4800
- /**
4801
- * Null for Production.
4802
- */
4803
- id: string | null;
4804
- type: 'production' | 'environment';
4805
- name?: string;
4841
+ name: string;
4842
+ type: 'environment';
4806
4843
  }
4807
4844
  /**
4808
4845
  * The team member the event is about.
@@ -4864,7 +4901,7 @@ export interface PhoneNumberForwardingUpdatedWebhookEvent {
4864
4901
  * `phone_number`, `team_member`) identify what changed; on update events `change`
4865
4902
  * describes the transition. Created and deleted events carry only the object that
4866
4903
  * was created or deleted. Fields are absent when they don't apply; `null` appears
4867
- * only inside `change` and as Production's environment `id`.
4904
+ * only inside `change`.
4868
4905
  */
4869
4906
  data: PhoneNumberForwardingUpdatedWebhookEvent.Data;
4870
4907
  /**
@@ -4895,7 +4932,7 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
4895
4932
  * `phone_number`, `team_member`) identify what changed; on update events `change`
4896
4933
  * describes the transition. Created and deleted events carry only the object that
4897
4934
  * was created or deleted. Fields are absent when they don't apply; `null` appears
4898
- * only inside `change` and as Production's environment `id`.
4935
+ * only inside `change`.
4899
4936
  */
4900
4937
  interface Data {
4901
4938
  /**
@@ -4929,8 +4966,9 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
4929
4966
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
4930
4967
  * expired and activated events never carry it. `null` means none: `to: null` means
4931
4968
  * cleared and `from: null` means first set. The value type depends on the event
4932
- * and is given in each event's description. `contact_card.updated` uses `name`
4933
- * instead of `from` and `to`.
4969
+ * and is given in each event's description. `contact_card.updated` uses
4970
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
4971
+ * present only when that field changed.
4934
4972
  */
4935
4973
  change?: Data.Change;
4936
4974
  /**
@@ -4938,9 +4976,9 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
4938
4976
  */
4939
4977
  contact_card?: Data.ContactCard;
4940
4978
  /**
4941
- * An environment. Production is
4942
- * `{"id": null, "name": "Production", "type": "production"}`; every other
4943
- * environment has an `id` and type `environment`.
4979
+ * An environment, identified by name. Production is
4980
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
4981
+ * (e.g. "Staging") looks the same shape, just with its own name.
4944
4982
  */
4945
4983
  environment?: Data.Environment;
4946
4984
  /**
@@ -5017,19 +5055,30 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
5017
5055
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5018
5056
  * expired and activated events never carry it. `null` means none: `to: null` means
5019
5057
  * cleared and `from: null` means first set. The value type depends on the event
5020
- * and is given in each event's description. `contact_card.updated` uses `name`
5021
- * instead of `from` and `to`.
5058
+ * and is given in each event's description. `contact_card.updated` uses
5059
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5060
+ * present only when that field changed.
5022
5061
  */
5023
5062
  interface Change {
5063
+ /**
5064
+ * A single field's change, on `contact_card.updated`. Present only for the field
5065
+ * that changed.
5066
+ */
5067
+ first_name?: Change.FirstName;
5024
5068
  /**
5025
5069
  * The value before the change; null when there was none.
5026
5070
  */
5027
5071
  from?: unknown;
5028
5072
  /**
5029
- * A contact card name change. Only on `contact_card.updated`, when the name
5030
- * changed.
5073
+ * A single field's change, on `contact_card.updated`. Present only for the field
5074
+ * that changed.
5075
+ */
5076
+ image_url?: Change.ImageURL;
5077
+ /**
5078
+ * A single field's change, on `contact_card.updated`. Present only for the field
5079
+ * that changed.
5031
5080
  */
5032
- name?: Change.Name;
5081
+ last_name?: Change.LastName;
5033
5082
  /**
5034
5083
  * The value after the change; null when it was cleared.
5035
5084
  */
@@ -5037,16 +5086,44 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
5037
5086
  }
5038
5087
  namespace Change {
5039
5088
  /**
5040
- * A contact card name change. Only on `contact_card.updated`, when the name
5041
- * changed.
5089
+ * A single field's change, on `contact_card.updated`. Present only for the field
5090
+ * that changed.
5091
+ */
5092
+ interface FirstName {
5093
+ /**
5094
+ * The value before the change; null when the card had none.
5095
+ */
5096
+ from: string | null;
5097
+ /**
5098
+ * The value after the change; null when it was removed.
5099
+ */
5100
+ to: string | null;
5101
+ }
5102
+ /**
5103
+ * A single field's change, on `contact_card.updated`. Present only for the field
5104
+ * that changed.
5105
+ */
5106
+ interface ImageURL {
5107
+ /**
5108
+ * The value before the change; null when the card had none.
5109
+ */
5110
+ from: string | null;
5111
+ /**
5112
+ * The value after the change; null when it was removed.
5113
+ */
5114
+ to: string | null;
5115
+ }
5116
+ /**
5117
+ * A single field's change, on `contact_card.updated`. Present only for the field
5118
+ * that changed.
5042
5119
  */
5043
- interface Name {
5120
+ interface LastName {
5044
5121
  /**
5045
- * The name before the change; null when the card had no name.
5122
+ * The value before the change; null when the card had none.
5046
5123
  */
5047
5124
  from: string | null;
5048
5125
  /**
5049
- * The name after the change; null when it was removed.
5126
+ * The value after the change; null when it was removed.
5050
5127
  */
5051
5128
  to: string | null;
5052
5129
  }
@@ -5056,27 +5133,24 @@ export declare namespace PhoneNumberForwardingUpdatedWebhookEvent {
5056
5133
  */
5057
5134
  interface ContactCard {
5058
5135
  id: string;
5136
+ first_name: string;
5059
5137
  /**
5060
- * Display name. Absent when the card has no name.
5138
+ * Null when the card has no photo.
5061
5139
  */
5062
- name?: string;
5140
+ image_url: string | null;
5063
5141
  /**
5064
- * True when the photo changed. Only on `contact_card.updated`.
5142
+ * Null when the card has no last name.
5065
5143
  */
5066
- photo_updated?: boolean;
5144
+ last_name: string | null;
5067
5145
  }
5068
5146
  /**
5069
- * An environment. Production is
5070
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5071
- * environment has an `id` and type `environment`.
5147
+ * An environment, identified by name. Production is
5148
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5149
+ * (e.g. "Staging") looks the same shape, just with its own name.
5072
5150
  */
5073
5151
  interface Environment {
5074
- /**
5075
- * Null for Production.
5076
- */
5077
- id: string | null;
5078
- type: 'production' | 'environment';
5079
- name?: string;
5152
+ name: string;
5153
+ type: 'environment';
5080
5154
  }
5081
5155
  /**
5082
5156
  * The team member the event is about.
@@ -5138,7 +5212,7 @@ export interface EnvironmentLineMovedWebhookEvent {
5138
5212
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5139
5213
  * describes the transition. Created and deleted events carry only the object that
5140
5214
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5141
- * only inside `change` and as Production's environment `id`.
5215
+ * only inside `change`.
5142
5216
  */
5143
5217
  data: EnvironmentLineMovedWebhookEvent.Data;
5144
5218
  /**
@@ -5169,7 +5243,7 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5169
5243
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5170
5244
  * describes the transition. Created and deleted events carry only the object that
5171
5245
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5172
- * only inside `change` and as Production's environment `id`.
5246
+ * only inside `change`.
5173
5247
  */
5174
5248
  interface Data {
5175
5249
  /**
@@ -5203,8 +5277,9 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5203
5277
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5204
5278
  * expired and activated events never carry it. `null` means none: `to: null` means
5205
5279
  * cleared and `from: null` means first set. The value type depends on the event
5206
- * and is given in each event's description. `contact_card.updated` uses `name`
5207
- * instead of `from` and `to`.
5280
+ * and is given in each event's description. `contact_card.updated` uses
5281
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5282
+ * present only when that field changed.
5208
5283
  */
5209
5284
  change?: Data.Change;
5210
5285
  /**
@@ -5212,9 +5287,9 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5212
5287
  */
5213
5288
  contact_card?: Data.ContactCard;
5214
5289
  /**
5215
- * An environment. Production is
5216
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5217
- * environment has an `id` and type `environment`.
5290
+ * An environment, identified by name. Production is
5291
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5292
+ * (e.g. "Staging") looks the same shape, just with its own name.
5218
5293
  */
5219
5294
  environment?: Data.Environment;
5220
5295
  /**
@@ -5291,19 +5366,30 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5291
5366
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5292
5367
  * expired and activated events never carry it. `null` means none: `to: null` means
5293
5368
  * cleared and `from: null` means first set. The value type depends on the event
5294
- * and is given in each event's description. `contact_card.updated` uses `name`
5295
- * instead of `from` and `to`.
5369
+ * and is given in each event's description. `contact_card.updated` uses
5370
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5371
+ * present only when that field changed.
5296
5372
  */
5297
5373
  interface Change {
5374
+ /**
5375
+ * A single field's change, on `contact_card.updated`. Present only for the field
5376
+ * that changed.
5377
+ */
5378
+ first_name?: Change.FirstName;
5298
5379
  /**
5299
5380
  * The value before the change; null when there was none.
5300
5381
  */
5301
5382
  from?: unknown;
5302
5383
  /**
5303
- * A contact card name change. Only on `contact_card.updated`, when the name
5304
- * changed.
5384
+ * A single field's change, on `contact_card.updated`. Present only for the field
5385
+ * that changed.
5305
5386
  */
5306
- name?: Change.Name;
5387
+ image_url?: Change.ImageURL;
5388
+ /**
5389
+ * A single field's change, on `contact_card.updated`. Present only for the field
5390
+ * that changed.
5391
+ */
5392
+ last_name?: Change.LastName;
5307
5393
  /**
5308
5394
  * The value after the change; null when it was cleared.
5309
5395
  */
@@ -5311,16 +5397,44 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5311
5397
  }
5312
5398
  namespace Change {
5313
5399
  /**
5314
- * A contact card name change. Only on `contact_card.updated`, when the name
5315
- * changed.
5400
+ * A single field's change, on `contact_card.updated`. Present only for the field
5401
+ * that changed.
5316
5402
  */
5317
- interface Name {
5403
+ interface FirstName {
5318
5404
  /**
5319
- * The name before the change; null when the card had no name.
5405
+ * The value before the change; null when the card had none.
5320
5406
  */
5321
5407
  from: string | null;
5322
5408
  /**
5323
- * The name after the change; null when it was removed.
5409
+ * The value after the change; null when it was removed.
5410
+ */
5411
+ to: string | null;
5412
+ }
5413
+ /**
5414
+ * A single field's change, on `contact_card.updated`. Present only for the field
5415
+ * that changed.
5416
+ */
5417
+ interface ImageURL {
5418
+ /**
5419
+ * The value before the change; null when the card had none.
5420
+ */
5421
+ from: string | null;
5422
+ /**
5423
+ * The value after the change; null when it was removed.
5424
+ */
5425
+ to: string | null;
5426
+ }
5427
+ /**
5428
+ * A single field's change, on `contact_card.updated`. Present only for the field
5429
+ * that changed.
5430
+ */
5431
+ interface LastName {
5432
+ /**
5433
+ * The value before the change; null when the card had none.
5434
+ */
5435
+ from: string | null;
5436
+ /**
5437
+ * The value after the change; null when it was removed.
5324
5438
  */
5325
5439
  to: string | null;
5326
5440
  }
@@ -5330,27 +5444,24 @@ export declare namespace EnvironmentLineMovedWebhookEvent {
5330
5444
  */
5331
5445
  interface ContactCard {
5332
5446
  id: string;
5447
+ first_name: string;
5333
5448
  /**
5334
- * Display name. Absent when the card has no name.
5449
+ * Null when the card has no photo.
5335
5450
  */
5336
- name?: string;
5451
+ image_url: string | null;
5337
5452
  /**
5338
- * True when the photo changed. Only on `contact_card.updated`.
5453
+ * Null when the card has no last name.
5339
5454
  */
5340
- photo_updated?: boolean;
5455
+ last_name: string | null;
5341
5456
  }
5342
5457
  /**
5343
- * An environment. Production is
5344
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5345
- * environment has an `id` and type `environment`.
5458
+ * An environment, identified by name. Production is
5459
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5460
+ * (e.g. "Staging") looks the same shape, just with its own name.
5346
5461
  */
5347
5462
  interface Environment {
5348
- /**
5349
- * Null for Production.
5350
- */
5351
- id: string | null;
5352
- type: 'production' | 'environment';
5353
- name?: string;
5463
+ name: string;
5464
+ type: 'environment';
5354
5465
  }
5355
5466
  /**
5356
5467
  * The team member the event is about.
@@ -5412,7 +5523,7 @@ export interface ContactCardCreatedWebhookEvent {
5412
5523
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5413
5524
  * describes the transition. Created and deleted events carry only the object that
5414
5525
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5415
- * only inside `change` and as Production's environment `id`.
5526
+ * only inside `change`.
5416
5527
  */
5417
5528
  data: ContactCardCreatedWebhookEvent.Data;
5418
5529
  /**
@@ -5443,7 +5554,7 @@ export declare namespace ContactCardCreatedWebhookEvent {
5443
5554
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5444
5555
  * describes the transition. Created and deleted events carry only the object that
5445
5556
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5446
- * only inside `change` and as Production's environment `id`.
5557
+ * only inside `change`.
5447
5558
  */
5448
5559
  interface Data {
5449
5560
  /**
@@ -5477,8 +5588,9 @@ export declare namespace ContactCardCreatedWebhookEvent {
5477
5588
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5478
5589
  * expired and activated events never carry it. `null` means none: `to: null` means
5479
5590
  * cleared and `from: null` means first set. The value type depends on the event
5480
- * and is given in each event's description. `contact_card.updated` uses `name`
5481
- * instead of `from` and `to`.
5591
+ * and is given in each event's description. `contact_card.updated` uses
5592
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5593
+ * present only when that field changed.
5482
5594
  */
5483
5595
  change?: Data.Change;
5484
5596
  /**
@@ -5486,9 +5598,9 @@ export declare namespace ContactCardCreatedWebhookEvent {
5486
5598
  */
5487
5599
  contact_card?: Data.ContactCard;
5488
5600
  /**
5489
- * An environment. Production is
5490
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5491
- * environment has an `id` and type `environment`.
5601
+ * An environment, identified by name. Production is
5602
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5603
+ * (e.g. "Staging") looks the same shape, just with its own name.
5492
5604
  */
5493
5605
  environment?: Data.Environment;
5494
5606
  /**
@@ -5565,19 +5677,30 @@ export declare namespace ContactCardCreatedWebhookEvent {
5565
5677
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5566
5678
  * expired and activated events never carry it. `null` means none: `to: null` means
5567
5679
  * cleared and `from: null` means first set. The value type depends on the event
5568
- * and is given in each event's description. `contact_card.updated` uses `name`
5569
- * instead of `from` and `to`.
5680
+ * and is given in each event's description. `contact_card.updated` uses
5681
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5682
+ * present only when that field changed.
5570
5683
  */
5571
5684
  interface Change {
5685
+ /**
5686
+ * A single field's change, on `contact_card.updated`. Present only for the field
5687
+ * that changed.
5688
+ */
5689
+ first_name?: Change.FirstName;
5572
5690
  /**
5573
5691
  * The value before the change; null when there was none.
5574
5692
  */
5575
5693
  from?: unknown;
5576
5694
  /**
5577
- * A contact card name change. Only on `contact_card.updated`, when the name
5578
- * changed.
5695
+ * A single field's change, on `contact_card.updated`. Present only for the field
5696
+ * that changed.
5579
5697
  */
5580
- name?: Change.Name;
5698
+ image_url?: Change.ImageURL;
5699
+ /**
5700
+ * A single field's change, on `contact_card.updated`. Present only for the field
5701
+ * that changed.
5702
+ */
5703
+ last_name?: Change.LastName;
5581
5704
  /**
5582
5705
  * The value after the change; null when it was cleared.
5583
5706
  */
@@ -5585,16 +5708,44 @@ export declare namespace ContactCardCreatedWebhookEvent {
5585
5708
  }
5586
5709
  namespace Change {
5587
5710
  /**
5588
- * A contact card name change. Only on `contact_card.updated`, when the name
5589
- * changed.
5711
+ * A single field's change, on `contact_card.updated`. Present only for the field
5712
+ * that changed.
5590
5713
  */
5591
- interface Name {
5714
+ interface FirstName {
5592
5715
  /**
5593
- * The name before the change; null when the card had no name.
5716
+ * The value before the change; null when the card had none.
5594
5717
  */
5595
5718
  from: string | null;
5596
5719
  /**
5597
- * The name after the change; null when it was removed.
5720
+ * The value after the change; null when it was removed.
5721
+ */
5722
+ to: string | null;
5723
+ }
5724
+ /**
5725
+ * A single field's change, on `contact_card.updated`. Present only for the field
5726
+ * that changed.
5727
+ */
5728
+ interface ImageURL {
5729
+ /**
5730
+ * The value before the change; null when the card had none.
5731
+ */
5732
+ from: string | null;
5733
+ /**
5734
+ * The value after the change; null when it was removed.
5735
+ */
5736
+ to: string | null;
5737
+ }
5738
+ /**
5739
+ * A single field's change, on `contact_card.updated`. Present only for the field
5740
+ * that changed.
5741
+ */
5742
+ interface LastName {
5743
+ /**
5744
+ * The value before the change; null when the card had none.
5745
+ */
5746
+ from: string | null;
5747
+ /**
5748
+ * The value after the change; null when it was removed.
5598
5749
  */
5599
5750
  to: string | null;
5600
5751
  }
@@ -5604,27 +5755,24 @@ export declare namespace ContactCardCreatedWebhookEvent {
5604
5755
  */
5605
5756
  interface ContactCard {
5606
5757
  id: string;
5758
+ first_name: string;
5607
5759
  /**
5608
- * Display name. Absent when the card has no name.
5760
+ * Null when the card has no photo.
5609
5761
  */
5610
- name?: string;
5762
+ image_url: string | null;
5611
5763
  /**
5612
- * True when the photo changed. Only on `contact_card.updated`.
5764
+ * Null when the card has no last name.
5613
5765
  */
5614
- photo_updated?: boolean;
5766
+ last_name: string | null;
5615
5767
  }
5616
5768
  /**
5617
- * An environment. Production is
5618
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5619
- * environment has an `id` and type `environment`.
5769
+ * An environment, identified by name. Production is
5770
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5771
+ * (e.g. "Staging") looks the same shape, just with its own name.
5620
5772
  */
5621
5773
  interface Environment {
5622
- /**
5623
- * Null for Production.
5624
- */
5625
- id: string | null;
5626
- type: 'production' | 'environment';
5627
- name?: string;
5774
+ name: string;
5775
+ type: 'environment';
5628
5776
  }
5629
5777
  /**
5630
5778
  * The team member the event is about.
@@ -5686,7 +5834,7 @@ export interface ContactCardUpdatedWebhookEvent {
5686
5834
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5687
5835
  * describes the transition. Created and deleted events carry only the object that
5688
5836
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5689
- * only inside `change` and as Production's environment `id`.
5837
+ * only inside `change`.
5690
5838
  */
5691
5839
  data: ContactCardUpdatedWebhookEvent.Data;
5692
5840
  /**
@@ -5717,7 +5865,7 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5717
5865
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5718
5866
  * describes the transition. Created and deleted events carry only the object that
5719
5867
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5720
- * only inside `change` and as Production's environment `id`.
5868
+ * only inside `change`.
5721
5869
  */
5722
5870
  interface Data {
5723
5871
  /**
@@ -5751,8 +5899,9 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5751
5899
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5752
5900
  * expired and activated events never carry it. `null` means none: `to: null` means
5753
5901
  * cleared and `from: null` means first set. The value type depends on the event
5754
- * and is given in each event's description. `contact_card.updated` uses `name`
5755
- * instead of `from` and `to`.
5902
+ * and is given in each event's description. `contact_card.updated` uses
5903
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5904
+ * present only when that field changed.
5756
5905
  */
5757
5906
  change?: Data.Change;
5758
5907
  /**
@@ -5760,9 +5909,9 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5760
5909
  */
5761
5910
  contact_card?: Data.ContactCard;
5762
5911
  /**
5763
- * An environment. Production is
5764
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5765
- * environment has an `id` and type `environment`.
5912
+ * An environment, identified by name. Production is
5913
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
5914
+ * (e.g. "Staging") looks the same shape, just with its own name.
5766
5915
  */
5767
5916
  environment?: Data.Environment;
5768
5917
  /**
@@ -5839,19 +5988,30 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5839
5988
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
5840
5989
  * expired and activated events never carry it. `null` means none: `to: null` means
5841
5990
  * cleared and `from: null` means first set. The value type depends on the event
5842
- * and is given in each event's description. `contact_card.updated` uses `name`
5843
- * instead of `from` and `to`.
5991
+ * and is given in each event's description. `contact_card.updated` uses
5992
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
5993
+ * present only when that field changed.
5844
5994
  */
5845
5995
  interface Change {
5996
+ /**
5997
+ * A single field's change, on `contact_card.updated`. Present only for the field
5998
+ * that changed.
5999
+ */
6000
+ first_name?: Change.FirstName;
5846
6001
  /**
5847
6002
  * The value before the change; null when there was none.
5848
6003
  */
5849
6004
  from?: unknown;
5850
6005
  /**
5851
- * A contact card name change. Only on `contact_card.updated`, when the name
5852
- * changed.
6006
+ * A single field's change, on `contact_card.updated`. Present only for the field
6007
+ * that changed.
6008
+ */
6009
+ image_url?: Change.ImageURL;
6010
+ /**
6011
+ * A single field's change, on `contact_card.updated`. Present only for the field
6012
+ * that changed.
5853
6013
  */
5854
- name?: Change.Name;
6014
+ last_name?: Change.LastName;
5855
6015
  /**
5856
6016
  * The value after the change; null when it was cleared.
5857
6017
  */
@@ -5859,16 +6019,44 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5859
6019
  }
5860
6020
  namespace Change {
5861
6021
  /**
5862
- * A contact card name change. Only on `contact_card.updated`, when the name
5863
- * changed.
6022
+ * A single field's change, on `contact_card.updated`. Present only for the field
6023
+ * that changed.
5864
6024
  */
5865
- interface Name {
6025
+ interface FirstName {
5866
6026
  /**
5867
- * The name before the change; null when the card had no name.
6027
+ * The value before the change; null when the card had none.
5868
6028
  */
5869
6029
  from: string | null;
5870
6030
  /**
5871
- * The name after the change; null when it was removed.
6031
+ * The value after the change; null when it was removed.
6032
+ */
6033
+ to: string | null;
6034
+ }
6035
+ /**
6036
+ * A single field's change, on `contact_card.updated`. Present only for the field
6037
+ * that changed.
6038
+ */
6039
+ interface ImageURL {
6040
+ /**
6041
+ * The value before the change; null when the card had none.
6042
+ */
6043
+ from: string | null;
6044
+ /**
6045
+ * The value after the change; null when it was removed.
6046
+ */
6047
+ to: string | null;
6048
+ }
6049
+ /**
6050
+ * A single field's change, on `contact_card.updated`. Present only for the field
6051
+ * that changed.
6052
+ */
6053
+ interface LastName {
6054
+ /**
6055
+ * The value before the change; null when the card had none.
6056
+ */
6057
+ from: string | null;
6058
+ /**
6059
+ * The value after the change; null when it was removed.
5872
6060
  */
5873
6061
  to: string | null;
5874
6062
  }
@@ -5878,27 +6066,24 @@ export declare namespace ContactCardUpdatedWebhookEvent {
5878
6066
  */
5879
6067
  interface ContactCard {
5880
6068
  id: string;
6069
+ first_name: string;
5881
6070
  /**
5882
- * Display name. Absent when the card has no name.
6071
+ * Null when the card has no photo.
5883
6072
  */
5884
- name?: string;
6073
+ image_url: string | null;
5885
6074
  /**
5886
- * True when the photo changed. Only on `contact_card.updated`.
6075
+ * Null when the card has no last name.
5887
6076
  */
5888
- photo_updated?: boolean;
6077
+ last_name: string | null;
5889
6078
  }
5890
6079
  /**
5891
- * An environment. Production is
5892
- * `{"id": null, "name": "Production", "type": "production"}`; every other
5893
- * environment has an `id` and type `environment`.
6080
+ * An environment, identified by name. Production is
6081
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6082
+ * (e.g. "Staging") looks the same shape, just with its own name.
5894
6083
  */
5895
6084
  interface Environment {
5896
- /**
5897
- * Null for Production.
5898
- */
5899
- id: string | null;
5900
- type: 'production' | 'environment';
5901
- name?: string;
6085
+ name: string;
6086
+ type: 'environment';
5902
6087
  }
5903
6088
  /**
5904
6089
  * The team member the event is about.
@@ -5960,7 +6145,7 @@ export interface ContactCardDeletedWebhookEvent {
5960
6145
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5961
6146
  * describes the transition. Created and deleted events carry only the object that
5962
6147
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5963
- * only inside `change` and as Production's environment `id`.
6148
+ * only inside `change`.
5964
6149
  */
5965
6150
  data: ContactCardDeletedWebhookEvent.Data;
5966
6151
  /**
@@ -5991,7 +6176,7 @@ export declare namespace ContactCardDeletedWebhookEvent {
5991
6176
  * `phone_number`, `team_member`) identify what changed; on update events `change`
5992
6177
  * describes the transition. Created and deleted events carry only the object that
5993
6178
  * was created or deleted. Fields are absent when they don't apply; `null` appears
5994
- * only inside `change` and as Production's environment `id`.
6179
+ * only inside `change`.
5995
6180
  */
5996
6181
  interface Data {
5997
6182
  /**
@@ -6025,8 +6210,9 @@ export declare namespace ContactCardDeletedWebhookEvent {
6025
6210
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6026
6211
  * expired and activated events never carry it. `null` means none: `to: null` means
6027
6212
  * cleared and `from: null` means first set. The value type depends on the event
6028
- * and is given in each event's description. `contact_card.updated` uses `name`
6029
- * instead of `from` and `to`.
6213
+ * and is given in each event's description. `contact_card.updated` uses
6214
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6215
+ * present only when that field changed.
6030
6216
  */
6031
6217
  change?: Data.Change;
6032
6218
  /**
@@ -6034,9 +6220,9 @@ export declare namespace ContactCardDeletedWebhookEvent {
6034
6220
  */
6035
6221
  contact_card?: Data.ContactCard;
6036
6222
  /**
6037
- * An environment. Production is
6038
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6039
- * environment has an `id` and type `environment`.
6223
+ * An environment, identified by name. Production is
6224
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6225
+ * (e.g. "Staging") looks the same shape, just with its own name.
6040
6226
  */
6041
6227
  environment?: Data.Environment;
6042
6228
  /**
@@ -6113,19 +6299,30 @@ export declare namespace ContactCardDeletedWebhookEvent {
6113
6299
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6114
6300
  * expired and activated events never carry it. `null` means none: `to: null` means
6115
6301
  * cleared and `from: null` means first set. The value type depends on the event
6116
- * and is given in each event's description. `contact_card.updated` uses `name`
6117
- * instead of `from` and `to`.
6302
+ * and is given in each event's description. `contact_card.updated` uses
6303
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6304
+ * present only when that field changed.
6118
6305
  */
6119
6306
  interface Change {
6307
+ /**
6308
+ * A single field's change, on `contact_card.updated`. Present only for the field
6309
+ * that changed.
6310
+ */
6311
+ first_name?: Change.FirstName;
6120
6312
  /**
6121
6313
  * The value before the change; null when there was none.
6122
6314
  */
6123
6315
  from?: unknown;
6124
6316
  /**
6125
- * A contact card name change. Only on `contact_card.updated`, when the name
6126
- * changed.
6317
+ * A single field's change, on `contact_card.updated`. Present only for the field
6318
+ * that changed.
6319
+ */
6320
+ image_url?: Change.ImageURL;
6321
+ /**
6322
+ * A single field's change, on `contact_card.updated`. Present only for the field
6323
+ * that changed.
6127
6324
  */
6128
- name?: Change.Name;
6325
+ last_name?: Change.LastName;
6129
6326
  /**
6130
6327
  * The value after the change; null when it was cleared.
6131
6328
  */
@@ -6133,16 +6330,44 @@ export declare namespace ContactCardDeletedWebhookEvent {
6133
6330
  }
6134
6331
  namespace Change {
6135
6332
  /**
6136
- * A contact card name change. Only on `contact_card.updated`, when the name
6137
- * changed.
6333
+ * A single field's change, on `contact_card.updated`. Present only for the field
6334
+ * that changed.
6138
6335
  */
6139
- interface Name {
6336
+ interface FirstName {
6140
6337
  /**
6141
- * The name before the change; null when the card had no name.
6338
+ * The value before the change; null when the card had none.
6142
6339
  */
6143
6340
  from: string | null;
6144
6341
  /**
6145
- * The name after the change; null when it was removed.
6342
+ * The value after the change; null when it was removed.
6343
+ */
6344
+ to: string | null;
6345
+ }
6346
+ /**
6347
+ * A single field's change, on `contact_card.updated`. Present only for the field
6348
+ * that changed.
6349
+ */
6350
+ interface ImageURL {
6351
+ /**
6352
+ * The value before the change; null when the card had none.
6353
+ */
6354
+ from: string | null;
6355
+ /**
6356
+ * The value after the change; null when it was removed.
6357
+ */
6358
+ to: string | null;
6359
+ }
6360
+ /**
6361
+ * A single field's change, on `contact_card.updated`. Present only for the field
6362
+ * that changed.
6363
+ */
6364
+ interface LastName {
6365
+ /**
6366
+ * The value before the change; null when the card had none.
6367
+ */
6368
+ from: string | null;
6369
+ /**
6370
+ * The value after the change; null when it was removed.
6146
6371
  */
6147
6372
  to: string | null;
6148
6373
  }
@@ -6152,27 +6377,24 @@ export declare namespace ContactCardDeletedWebhookEvent {
6152
6377
  */
6153
6378
  interface ContactCard {
6154
6379
  id: string;
6380
+ first_name: string;
6155
6381
  /**
6156
- * Display name. Absent when the card has no name.
6382
+ * Null when the card has no photo.
6157
6383
  */
6158
- name?: string;
6384
+ image_url: string | null;
6159
6385
  /**
6160
- * True when the photo changed. Only on `contact_card.updated`.
6386
+ * Null when the card has no last name.
6161
6387
  */
6162
- photo_updated?: boolean;
6388
+ last_name: string | null;
6163
6389
  }
6164
6390
  /**
6165
- * An environment. Production is
6166
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6167
- * environment has an `id` and type `environment`.
6391
+ * An environment, identified by name. Production is
6392
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6393
+ * (e.g. "Staging") looks the same shape, just with its own name.
6168
6394
  */
6169
6395
  interface Environment {
6170
- /**
6171
- * Null for Production.
6172
- */
6173
- id: string | null;
6174
- type: 'production' | 'environment';
6175
- name?: string;
6396
+ name: string;
6397
+ type: 'environment';
6176
6398
  }
6177
6399
  /**
6178
6400
  * The team member the event is about.
@@ -6234,7 +6456,7 @@ export interface APITokenCreatedWebhookEvent {
6234
6456
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6235
6457
  * describes the transition. Created and deleted events carry only the object that
6236
6458
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6237
- * only inside `change` and as Production's environment `id`.
6459
+ * only inside `change`.
6238
6460
  */
6239
6461
  data: APITokenCreatedWebhookEvent.Data;
6240
6462
  /**
@@ -6265,7 +6487,7 @@ export declare namespace APITokenCreatedWebhookEvent {
6265
6487
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6266
6488
  * describes the transition. Created and deleted events carry only the object that
6267
6489
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6268
- * only inside `change` and as Production's environment `id`.
6490
+ * only inside `change`.
6269
6491
  */
6270
6492
  interface Data {
6271
6493
  /**
@@ -6299,8 +6521,9 @@ export declare namespace APITokenCreatedWebhookEvent {
6299
6521
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6300
6522
  * expired and activated events never carry it. `null` means none: `to: null` means
6301
6523
  * cleared and `from: null` means first set. The value type depends on the event
6302
- * and is given in each event's description. `contact_card.updated` uses `name`
6303
- * instead of `from` and `to`.
6524
+ * and is given in each event's description. `contact_card.updated` uses
6525
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6526
+ * present only when that field changed.
6304
6527
  */
6305
6528
  change?: Data.Change;
6306
6529
  /**
@@ -6308,9 +6531,9 @@ export declare namespace APITokenCreatedWebhookEvent {
6308
6531
  */
6309
6532
  contact_card?: Data.ContactCard;
6310
6533
  /**
6311
- * An environment. Production is
6312
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6313
- * environment has an `id` and type `environment`.
6534
+ * An environment, identified by name. Production is
6535
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6536
+ * (e.g. "Staging") looks the same shape, just with its own name.
6314
6537
  */
6315
6538
  environment?: Data.Environment;
6316
6539
  /**
@@ -6387,19 +6610,30 @@ export declare namespace APITokenCreatedWebhookEvent {
6387
6610
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6388
6611
  * expired and activated events never carry it. `null` means none: `to: null` means
6389
6612
  * cleared and `from: null` means first set. The value type depends on the event
6390
- * and is given in each event's description. `contact_card.updated` uses `name`
6391
- * instead of `from` and `to`.
6613
+ * and is given in each event's description. `contact_card.updated` uses
6614
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6615
+ * present only when that field changed.
6392
6616
  */
6393
6617
  interface Change {
6618
+ /**
6619
+ * A single field's change, on `contact_card.updated`. Present only for the field
6620
+ * that changed.
6621
+ */
6622
+ first_name?: Change.FirstName;
6394
6623
  /**
6395
6624
  * The value before the change; null when there was none.
6396
6625
  */
6397
6626
  from?: unknown;
6398
6627
  /**
6399
- * A contact card name change. Only on `contact_card.updated`, when the name
6400
- * changed.
6628
+ * A single field's change, on `contact_card.updated`. Present only for the field
6629
+ * that changed.
6401
6630
  */
6402
- name?: Change.Name;
6631
+ image_url?: Change.ImageURL;
6632
+ /**
6633
+ * A single field's change, on `contact_card.updated`. Present only for the field
6634
+ * that changed.
6635
+ */
6636
+ last_name?: Change.LastName;
6403
6637
  /**
6404
6638
  * The value after the change; null when it was cleared.
6405
6639
  */
@@ -6407,16 +6641,44 @@ export declare namespace APITokenCreatedWebhookEvent {
6407
6641
  }
6408
6642
  namespace Change {
6409
6643
  /**
6410
- * A contact card name change. Only on `contact_card.updated`, when the name
6411
- * changed.
6644
+ * A single field's change, on `contact_card.updated`. Present only for the field
6645
+ * that changed.
6646
+ */
6647
+ interface FirstName {
6648
+ /**
6649
+ * The value before the change; null when the card had none.
6650
+ */
6651
+ from: string | null;
6652
+ /**
6653
+ * The value after the change; null when it was removed.
6654
+ */
6655
+ to: string | null;
6656
+ }
6657
+ /**
6658
+ * A single field's change, on `contact_card.updated`. Present only for the field
6659
+ * that changed.
6660
+ */
6661
+ interface ImageURL {
6662
+ /**
6663
+ * The value before the change; null when the card had none.
6664
+ */
6665
+ from: string | null;
6666
+ /**
6667
+ * The value after the change; null when it was removed.
6668
+ */
6669
+ to: string | null;
6670
+ }
6671
+ /**
6672
+ * A single field's change, on `contact_card.updated`. Present only for the field
6673
+ * that changed.
6412
6674
  */
6413
- interface Name {
6675
+ interface LastName {
6414
6676
  /**
6415
- * The name before the change; null when the card had no name.
6677
+ * The value before the change; null when the card had none.
6416
6678
  */
6417
6679
  from: string | null;
6418
6680
  /**
6419
- * The name after the change; null when it was removed.
6681
+ * The value after the change; null when it was removed.
6420
6682
  */
6421
6683
  to: string | null;
6422
6684
  }
@@ -6426,27 +6688,24 @@ export declare namespace APITokenCreatedWebhookEvent {
6426
6688
  */
6427
6689
  interface ContactCard {
6428
6690
  id: string;
6691
+ first_name: string;
6429
6692
  /**
6430
- * Display name. Absent when the card has no name.
6693
+ * Null when the card has no photo.
6431
6694
  */
6432
- name?: string;
6695
+ image_url: string | null;
6433
6696
  /**
6434
- * True when the photo changed. Only on `contact_card.updated`.
6697
+ * Null when the card has no last name.
6435
6698
  */
6436
- photo_updated?: boolean;
6699
+ last_name: string | null;
6437
6700
  }
6438
6701
  /**
6439
- * An environment. Production is
6440
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6441
- * environment has an `id` and type `environment`.
6702
+ * An environment, identified by name. Production is
6703
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6704
+ * (e.g. "Staging") looks the same shape, just with its own name.
6442
6705
  */
6443
6706
  interface Environment {
6444
- /**
6445
- * Null for Production.
6446
- */
6447
- id: string | null;
6448
- type: 'production' | 'environment';
6449
- name?: string;
6707
+ name: string;
6708
+ type: 'environment';
6450
6709
  }
6451
6710
  /**
6452
6711
  * The team member the event is about.
@@ -6508,7 +6767,7 @@ export interface APITokenRenamedWebhookEvent {
6508
6767
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6509
6768
  * describes the transition. Created and deleted events carry only the object that
6510
6769
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6511
- * only inside `change` and as Production's environment `id`.
6770
+ * only inside `change`.
6512
6771
  */
6513
6772
  data: APITokenRenamedWebhookEvent.Data;
6514
6773
  /**
@@ -6539,7 +6798,7 @@ export declare namespace APITokenRenamedWebhookEvent {
6539
6798
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6540
6799
  * describes the transition. Created and deleted events carry only the object that
6541
6800
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6542
- * only inside `change` and as Production's environment `id`.
6801
+ * only inside `change`.
6543
6802
  */
6544
6803
  interface Data {
6545
6804
  /**
@@ -6573,8 +6832,9 @@ export declare namespace APITokenRenamedWebhookEvent {
6573
6832
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6574
6833
  * expired and activated events never carry it. `null` means none: `to: null` means
6575
6834
  * cleared and `from: null` means first set. The value type depends on the event
6576
- * and is given in each event's description. `contact_card.updated` uses `name`
6577
- * instead of `from` and `to`.
6835
+ * and is given in each event's description. `contact_card.updated` uses
6836
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6837
+ * present only when that field changed.
6578
6838
  */
6579
6839
  change?: Data.Change;
6580
6840
  /**
@@ -6582,9 +6842,9 @@ export declare namespace APITokenRenamedWebhookEvent {
6582
6842
  */
6583
6843
  contact_card?: Data.ContactCard;
6584
6844
  /**
6585
- * An environment. Production is
6586
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6587
- * environment has an `id` and type `environment`.
6845
+ * An environment, identified by name. Production is
6846
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
6847
+ * (e.g. "Staging") looks the same shape, just with its own name.
6588
6848
  */
6589
6849
  environment?: Data.Environment;
6590
6850
  /**
@@ -6661,19 +6921,30 @@ export declare namespace APITokenRenamedWebhookEvent {
6661
6921
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6662
6922
  * expired and activated events never carry it. `null` means none: `to: null` means
6663
6923
  * cleared and `from: null` means first set. The value type depends on the event
6664
- * and is given in each event's description. `contact_card.updated` uses `name`
6665
- * instead of `from` and `to`.
6924
+ * and is given in each event's description. `contact_card.updated` uses
6925
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
6926
+ * present only when that field changed.
6666
6927
  */
6667
6928
  interface Change {
6929
+ /**
6930
+ * A single field's change, on `contact_card.updated`. Present only for the field
6931
+ * that changed.
6932
+ */
6933
+ first_name?: Change.FirstName;
6668
6934
  /**
6669
6935
  * The value before the change; null when there was none.
6670
6936
  */
6671
6937
  from?: unknown;
6672
6938
  /**
6673
- * A contact card name change. Only on `contact_card.updated`, when the name
6674
- * changed.
6939
+ * A single field's change, on `contact_card.updated`. Present only for the field
6940
+ * that changed.
6941
+ */
6942
+ image_url?: Change.ImageURL;
6943
+ /**
6944
+ * A single field's change, on `contact_card.updated`. Present only for the field
6945
+ * that changed.
6675
6946
  */
6676
- name?: Change.Name;
6947
+ last_name?: Change.LastName;
6677
6948
  /**
6678
6949
  * The value after the change; null when it was cleared.
6679
6950
  */
@@ -6681,16 +6952,44 @@ export declare namespace APITokenRenamedWebhookEvent {
6681
6952
  }
6682
6953
  namespace Change {
6683
6954
  /**
6684
- * A contact card name change. Only on `contact_card.updated`, when the name
6685
- * changed.
6955
+ * A single field's change, on `contact_card.updated`. Present only for the field
6956
+ * that changed.
6686
6957
  */
6687
- interface Name {
6958
+ interface FirstName {
6688
6959
  /**
6689
- * The name before the change; null when the card had no name.
6960
+ * The value before the change; null when the card had none.
6690
6961
  */
6691
6962
  from: string | null;
6692
6963
  /**
6693
- * The name after the change; null when it was removed.
6964
+ * The value after the change; null when it was removed.
6965
+ */
6966
+ to: string | null;
6967
+ }
6968
+ /**
6969
+ * A single field's change, on `contact_card.updated`. Present only for the field
6970
+ * that changed.
6971
+ */
6972
+ interface ImageURL {
6973
+ /**
6974
+ * The value before the change; null when the card had none.
6975
+ */
6976
+ from: string | null;
6977
+ /**
6978
+ * The value after the change; null when it was removed.
6979
+ */
6980
+ to: string | null;
6981
+ }
6982
+ /**
6983
+ * A single field's change, on `contact_card.updated`. Present only for the field
6984
+ * that changed.
6985
+ */
6986
+ interface LastName {
6987
+ /**
6988
+ * The value before the change; null when the card had none.
6989
+ */
6990
+ from: string | null;
6991
+ /**
6992
+ * The value after the change; null when it was removed.
6694
6993
  */
6695
6994
  to: string | null;
6696
6995
  }
@@ -6700,27 +6999,24 @@ export declare namespace APITokenRenamedWebhookEvent {
6700
6999
  */
6701
7000
  interface ContactCard {
6702
7001
  id: string;
7002
+ first_name: string;
6703
7003
  /**
6704
- * Display name. Absent when the card has no name.
7004
+ * Null when the card has no photo.
6705
7005
  */
6706
- name?: string;
7006
+ image_url: string | null;
6707
7007
  /**
6708
- * True when the photo changed. Only on `contact_card.updated`.
7008
+ * Null when the card has no last name.
6709
7009
  */
6710
- photo_updated?: boolean;
7010
+ last_name: string | null;
6711
7011
  }
6712
7012
  /**
6713
- * An environment. Production is
6714
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6715
- * environment has an `id` and type `environment`.
7013
+ * An environment, identified by name. Production is
7014
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7015
+ * (e.g. "Staging") looks the same shape, just with its own name.
6716
7016
  */
6717
7017
  interface Environment {
6718
- /**
6719
- * Null for Production.
6720
- */
6721
- id: string | null;
6722
- type: 'production' | 'environment';
6723
- name?: string;
7018
+ name: string;
7019
+ type: 'environment';
6724
7020
  }
6725
7021
  /**
6726
7022
  * The team member the event is about.
@@ -6782,7 +7078,7 @@ export interface APITokenExpiryScheduledWebhookEvent {
6782
7078
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6783
7079
  * describes the transition. Created and deleted events carry only the object that
6784
7080
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6785
- * only inside `change` and as Production's environment `id`.
7081
+ * only inside `change`.
6786
7082
  */
6787
7083
  data: APITokenExpiryScheduledWebhookEvent.Data;
6788
7084
  /**
@@ -6813,7 +7109,7 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6813
7109
  * `phone_number`, `team_member`) identify what changed; on update events `change`
6814
7110
  * describes the transition. Created and deleted events carry only the object that
6815
7111
  * was created or deleted. Fields are absent when they don't apply; `null` appears
6816
- * only inside `change` and as Production's environment `id`.
7112
+ * only inside `change`.
6817
7113
  */
6818
7114
  interface Data {
6819
7115
  /**
@@ -6847,8 +7143,9 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6847
7143
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6848
7144
  * expired and activated events never carry it. `null` means none: `to: null` means
6849
7145
  * cleared and `from: null` means first set. The value type depends on the event
6850
- * and is given in each event's description. `contact_card.updated` uses `name`
6851
- * instead of `from` and `to`.
7146
+ * and is given in each event's description. `contact_card.updated` uses
7147
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7148
+ * present only when that field changed.
6852
7149
  */
6853
7150
  change?: Data.Change;
6854
7151
  /**
@@ -6856,9 +7153,9 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6856
7153
  */
6857
7154
  contact_card?: Data.ContactCard;
6858
7155
  /**
6859
- * An environment. Production is
6860
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6861
- * environment has an `id` and type `environment`.
7156
+ * An environment, identified by name. Production is
7157
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7158
+ * (e.g. "Staging") looks the same shape, just with its own name.
6862
7159
  */
6863
7160
  environment?: Data.Environment;
6864
7161
  /**
@@ -6935,19 +7232,30 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6935
7232
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
6936
7233
  * expired and activated events never carry it. `null` means none: `to: null` means
6937
7234
  * cleared and `from: null` means first set. The value type depends on the event
6938
- * and is given in each event's description. `contact_card.updated` uses `name`
6939
- * instead of `from` and `to`.
7235
+ * and is given in each event's description. `contact_card.updated` uses
7236
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7237
+ * present only when that field changed.
6940
7238
  */
6941
7239
  interface Change {
7240
+ /**
7241
+ * A single field's change, on `contact_card.updated`. Present only for the field
7242
+ * that changed.
7243
+ */
7244
+ first_name?: Change.FirstName;
6942
7245
  /**
6943
7246
  * The value before the change; null when there was none.
6944
7247
  */
6945
7248
  from?: unknown;
6946
7249
  /**
6947
- * A contact card name change. Only on `contact_card.updated`, when the name
6948
- * changed.
7250
+ * A single field's change, on `contact_card.updated`. Present only for the field
7251
+ * that changed.
7252
+ */
7253
+ image_url?: Change.ImageURL;
7254
+ /**
7255
+ * A single field's change, on `contact_card.updated`. Present only for the field
7256
+ * that changed.
6949
7257
  */
6950
- name?: Change.Name;
7258
+ last_name?: Change.LastName;
6951
7259
  /**
6952
7260
  * The value after the change; null when it was cleared.
6953
7261
  */
@@ -6955,16 +7263,44 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6955
7263
  }
6956
7264
  namespace Change {
6957
7265
  /**
6958
- * A contact card name change. Only on `contact_card.updated`, when the name
6959
- * changed.
7266
+ * A single field's change, on `contact_card.updated`. Present only for the field
7267
+ * that changed.
6960
7268
  */
6961
- interface Name {
7269
+ interface FirstName {
6962
7270
  /**
6963
- * The name before the change; null when the card had no name.
7271
+ * The value before the change; null when the card had none.
6964
7272
  */
6965
7273
  from: string | null;
6966
7274
  /**
6967
- * The name after the change; null when it was removed.
7275
+ * The value after the change; null when it was removed.
7276
+ */
7277
+ to: string | null;
7278
+ }
7279
+ /**
7280
+ * A single field's change, on `contact_card.updated`. Present only for the field
7281
+ * that changed.
7282
+ */
7283
+ interface ImageURL {
7284
+ /**
7285
+ * The value before the change; null when the card had none.
7286
+ */
7287
+ from: string | null;
7288
+ /**
7289
+ * The value after the change; null when it was removed.
7290
+ */
7291
+ to: string | null;
7292
+ }
7293
+ /**
7294
+ * A single field's change, on `contact_card.updated`. Present only for the field
7295
+ * that changed.
7296
+ */
7297
+ interface LastName {
7298
+ /**
7299
+ * The value before the change; null when the card had none.
7300
+ */
7301
+ from: string | null;
7302
+ /**
7303
+ * The value after the change; null when it was removed.
6968
7304
  */
6969
7305
  to: string | null;
6970
7306
  }
@@ -6974,27 +7310,24 @@ export declare namespace APITokenExpiryScheduledWebhookEvent {
6974
7310
  */
6975
7311
  interface ContactCard {
6976
7312
  id: string;
7313
+ first_name: string;
6977
7314
  /**
6978
- * Display name. Absent when the card has no name.
7315
+ * Null when the card has no photo.
6979
7316
  */
6980
- name?: string;
7317
+ image_url: string | null;
6981
7318
  /**
6982
- * True when the photo changed. Only on `contact_card.updated`.
7319
+ * Null when the card has no last name.
6983
7320
  */
6984
- photo_updated?: boolean;
7321
+ last_name: string | null;
6985
7322
  }
6986
7323
  /**
6987
- * An environment. Production is
6988
- * `{"id": null, "name": "Production", "type": "production"}`; every other
6989
- * environment has an `id` and type `environment`.
7324
+ * An environment, identified by name. Production is
7325
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7326
+ * (e.g. "Staging") looks the same shape, just with its own name.
6990
7327
  */
6991
7328
  interface Environment {
6992
- /**
6993
- * Null for Production.
6994
- */
6995
- id: string | null;
6996
- type: 'production' | 'environment';
6997
- name?: string;
7329
+ name: string;
7330
+ type: 'environment';
6998
7331
  }
6999
7332
  /**
7000
7333
  * The team member the event is about.
@@ -7056,7 +7389,7 @@ export interface APITokenExpiredWebhookEvent {
7056
7389
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7057
7390
  * describes the transition. Created and deleted events carry only the object that
7058
7391
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7059
- * only inside `change` and as Production's environment `id`.
7392
+ * only inside `change`.
7060
7393
  */
7061
7394
  data: APITokenExpiredWebhookEvent.Data;
7062
7395
  /**
@@ -7087,7 +7420,7 @@ export declare namespace APITokenExpiredWebhookEvent {
7087
7420
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7088
7421
  * describes the transition. Created and deleted events carry only the object that
7089
7422
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7090
- * only inside `change` and as Production's environment `id`.
7423
+ * only inside `change`.
7091
7424
  */
7092
7425
  interface Data {
7093
7426
  /**
@@ -7121,8 +7454,9 @@ export declare namespace APITokenExpiredWebhookEvent {
7121
7454
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7122
7455
  * expired and activated events never carry it. `null` means none: `to: null` means
7123
7456
  * cleared and `from: null` means first set. The value type depends on the event
7124
- * and is given in each event's description. `contact_card.updated` uses `name`
7125
- * instead of `from` and `to`.
7457
+ * and is given in each event's description. `contact_card.updated` uses
7458
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7459
+ * present only when that field changed.
7126
7460
  */
7127
7461
  change?: Data.Change;
7128
7462
  /**
@@ -7130,9 +7464,9 @@ export declare namespace APITokenExpiredWebhookEvent {
7130
7464
  */
7131
7465
  contact_card?: Data.ContactCard;
7132
7466
  /**
7133
- * An environment. Production is
7134
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7135
- * environment has an `id` and type `environment`.
7467
+ * An environment, identified by name. Production is
7468
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7469
+ * (e.g. "Staging") looks the same shape, just with its own name.
7136
7470
  */
7137
7471
  environment?: Data.Environment;
7138
7472
  /**
@@ -7209,19 +7543,30 @@ export declare namespace APITokenExpiredWebhookEvent {
7209
7543
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7210
7544
  * expired and activated events never carry it. `null` means none: `to: null` means
7211
7545
  * cleared and `from: null` means first set. The value type depends on the event
7212
- * and is given in each event's description. `contact_card.updated` uses `name`
7213
- * instead of `from` and `to`.
7546
+ * and is given in each event's description. `contact_card.updated` uses
7547
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7548
+ * present only when that field changed.
7214
7549
  */
7215
7550
  interface Change {
7551
+ /**
7552
+ * A single field's change, on `contact_card.updated`. Present only for the field
7553
+ * that changed.
7554
+ */
7555
+ first_name?: Change.FirstName;
7216
7556
  /**
7217
7557
  * The value before the change; null when there was none.
7218
7558
  */
7219
7559
  from?: unknown;
7220
7560
  /**
7221
- * A contact card name change. Only on `contact_card.updated`, when the name
7222
- * changed.
7561
+ * A single field's change, on `contact_card.updated`. Present only for the field
7562
+ * that changed.
7223
7563
  */
7224
- name?: Change.Name;
7564
+ image_url?: Change.ImageURL;
7565
+ /**
7566
+ * A single field's change, on `contact_card.updated`. Present only for the field
7567
+ * that changed.
7568
+ */
7569
+ last_name?: Change.LastName;
7225
7570
  /**
7226
7571
  * The value after the change; null when it was cleared.
7227
7572
  */
@@ -7229,16 +7574,44 @@ export declare namespace APITokenExpiredWebhookEvent {
7229
7574
  }
7230
7575
  namespace Change {
7231
7576
  /**
7232
- * A contact card name change. Only on `contact_card.updated`, when the name
7233
- * changed.
7577
+ * A single field's change, on `contact_card.updated`. Present only for the field
7578
+ * that changed.
7579
+ */
7580
+ interface FirstName {
7581
+ /**
7582
+ * The value before the change; null when the card had none.
7583
+ */
7584
+ from: string | null;
7585
+ /**
7586
+ * The value after the change; null when it was removed.
7587
+ */
7588
+ to: string | null;
7589
+ }
7590
+ /**
7591
+ * A single field's change, on `contact_card.updated`. Present only for the field
7592
+ * that changed.
7234
7593
  */
7235
- interface Name {
7594
+ interface ImageURL {
7236
7595
  /**
7237
- * The name before the change; null when the card had no name.
7596
+ * The value before the change; null when the card had none.
7238
7597
  */
7239
7598
  from: string | null;
7240
7599
  /**
7241
- * The name after the change; null when it was removed.
7600
+ * The value after the change; null when it was removed.
7601
+ */
7602
+ to: string | null;
7603
+ }
7604
+ /**
7605
+ * A single field's change, on `contact_card.updated`. Present only for the field
7606
+ * that changed.
7607
+ */
7608
+ interface LastName {
7609
+ /**
7610
+ * The value before the change; null when the card had none.
7611
+ */
7612
+ from: string | null;
7613
+ /**
7614
+ * The value after the change; null when it was removed.
7242
7615
  */
7243
7616
  to: string | null;
7244
7617
  }
@@ -7248,27 +7621,24 @@ export declare namespace APITokenExpiredWebhookEvent {
7248
7621
  */
7249
7622
  interface ContactCard {
7250
7623
  id: string;
7624
+ first_name: string;
7251
7625
  /**
7252
- * Display name. Absent when the card has no name.
7626
+ * Null when the card has no photo.
7253
7627
  */
7254
- name?: string;
7628
+ image_url: string | null;
7255
7629
  /**
7256
- * True when the photo changed. Only on `contact_card.updated`.
7630
+ * Null when the card has no last name.
7257
7631
  */
7258
- photo_updated?: boolean;
7632
+ last_name: string | null;
7259
7633
  }
7260
7634
  /**
7261
- * An environment. Production is
7262
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7263
- * environment has an `id` and type `environment`.
7635
+ * An environment, identified by name. Production is
7636
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7637
+ * (e.g. "Staging") looks the same shape, just with its own name.
7264
7638
  */
7265
7639
  interface Environment {
7266
- /**
7267
- * Null for Production.
7268
- */
7269
- id: string | null;
7270
- type: 'production' | 'environment';
7271
- name?: string;
7640
+ name: string;
7641
+ type: 'environment';
7272
7642
  }
7273
7643
  /**
7274
7644
  * The team member the event is about.
@@ -7330,7 +7700,7 @@ export interface APITokenActivatedWebhookEvent {
7330
7700
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7331
7701
  * describes the transition. Created and deleted events carry only the object that
7332
7702
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7333
- * only inside `change` and as Production's environment `id`.
7703
+ * only inside `change`.
7334
7704
  */
7335
7705
  data: APITokenActivatedWebhookEvent.Data;
7336
7706
  /**
@@ -7361,7 +7731,7 @@ export declare namespace APITokenActivatedWebhookEvent {
7361
7731
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7362
7732
  * describes the transition. Created and deleted events carry only the object that
7363
7733
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7364
- * only inside `change` and as Production's environment `id`.
7734
+ * only inside `change`.
7365
7735
  */
7366
7736
  interface Data {
7367
7737
  /**
@@ -7395,8 +7765,9 @@ export declare namespace APITokenActivatedWebhookEvent {
7395
7765
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7396
7766
  * expired and activated events never carry it. `null` means none: `to: null` means
7397
7767
  * cleared and `from: null` means first set. The value type depends on the event
7398
- * and is given in each event's description. `contact_card.updated` uses `name`
7399
- * instead of `from` and `to`.
7768
+ * and is given in each event's description. `contact_card.updated` uses
7769
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7770
+ * present only when that field changed.
7400
7771
  */
7401
7772
  change?: Data.Change;
7402
7773
  /**
@@ -7404,9 +7775,9 @@ export declare namespace APITokenActivatedWebhookEvent {
7404
7775
  */
7405
7776
  contact_card?: Data.ContactCard;
7406
7777
  /**
7407
- * An environment. Production is
7408
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7409
- * environment has an `id` and type `environment`.
7778
+ * An environment, identified by name. Production is
7779
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7780
+ * (e.g. "Staging") looks the same shape, just with its own name.
7410
7781
  */
7411
7782
  environment?: Data.Environment;
7412
7783
  /**
@@ -7483,19 +7854,30 @@ export declare namespace APITokenActivatedWebhookEvent {
7483
7854
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7484
7855
  * expired and activated events never carry it. `null` means none: `to: null` means
7485
7856
  * cleared and `from: null` means first set. The value type depends on the event
7486
- * and is given in each event's description. `contact_card.updated` uses `name`
7487
- * instead of `from` and `to`.
7857
+ * and is given in each event's description. `contact_card.updated` uses
7858
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
7859
+ * present only when that field changed.
7488
7860
  */
7489
7861
  interface Change {
7862
+ /**
7863
+ * A single field's change, on `contact_card.updated`. Present only for the field
7864
+ * that changed.
7865
+ */
7866
+ first_name?: Change.FirstName;
7490
7867
  /**
7491
7868
  * The value before the change; null when there was none.
7492
7869
  */
7493
7870
  from?: unknown;
7494
7871
  /**
7495
- * A contact card name change. Only on `contact_card.updated`, when the name
7496
- * changed.
7872
+ * A single field's change, on `contact_card.updated`. Present only for the field
7873
+ * that changed.
7874
+ */
7875
+ image_url?: Change.ImageURL;
7876
+ /**
7877
+ * A single field's change, on `contact_card.updated`. Present only for the field
7878
+ * that changed.
7497
7879
  */
7498
- name?: Change.Name;
7880
+ last_name?: Change.LastName;
7499
7881
  /**
7500
7882
  * The value after the change; null when it was cleared.
7501
7883
  */
@@ -7503,16 +7885,44 @@ export declare namespace APITokenActivatedWebhookEvent {
7503
7885
  }
7504
7886
  namespace Change {
7505
7887
  /**
7506
- * A contact card name change. Only on `contact_card.updated`, when the name
7507
- * changed.
7888
+ * A single field's change, on `contact_card.updated`. Present only for the field
7889
+ * that changed.
7508
7890
  */
7509
- interface Name {
7891
+ interface FirstName {
7510
7892
  /**
7511
- * The name before the change; null when the card had no name.
7893
+ * The value before the change; null when the card had none.
7512
7894
  */
7513
7895
  from: string | null;
7514
7896
  /**
7515
- * The name after the change; null when it was removed.
7897
+ * The value after the change; null when it was removed.
7898
+ */
7899
+ to: string | null;
7900
+ }
7901
+ /**
7902
+ * A single field's change, on `contact_card.updated`. Present only for the field
7903
+ * that changed.
7904
+ */
7905
+ interface ImageURL {
7906
+ /**
7907
+ * The value before the change; null when the card had none.
7908
+ */
7909
+ from: string | null;
7910
+ /**
7911
+ * The value after the change; null when it was removed.
7912
+ */
7913
+ to: string | null;
7914
+ }
7915
+ /**
7916
+ * A single field's change, on `contact_card.updated`. Present only for the field
7917
+ * that changed.
7918
+ */
7919
+ interface LastName {
7920
+ /**
7921
+ * The value before the change; null when the card had none.
7922
+ */
7923
+ from: string | null;
7924
+ /**
7925
+ * The value after the change; null when it was removed.
7516
7926
  */
7517
7927
  to: string | null;
7518
7928
  }
@@ -7522,27 +7932,24 @@ export declare namespace APITokenActivatedWebhookEvent {
7522
7932
  */
7523
7933
  interface ContactCard {
7524
7934
  id: string;
7935
+ first_name: string;
7525
7936
  /**
7526
- * Display name. Absent when the card has no name.
7937
+ * Null when the card has no photo.
7527
7938
  */
7528
- name?: string;
7939
+ image_url: string | null;
7529
7940
  /**
7530
- * True when the photo changed. Only on `contact_card.updated`.
7941
+ * Null when the card has no last name.
7531
7942
  */
7532
- photo_updated?: boolean;
7943
+ last_name: string | null;
7533
7944
  }
7534
7945
  /**
7535
- * An environment. Production is
7536
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7537
- * environment has an `id` and type `environment`.
7946
+ * An environment, identified by name. Production is
7947
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
7948
+ * (e.g. "Staging") looks the same shape, just with its own name.
7538
7949
  */
7539
7950
  interface Environment {
7540
- /**
7541
- * Null for Production.
7542
- */
7543
- id: string | null;
7544
- type: 'production' | 'environment';
7545
- name?: string;
7951
+ name: string;
7952
+ type: 'environment';
7546
7953
  }
7547
7954
  /**
7548
7955
  * The team member the event is about.
@@ -7604,7 +8011,7 @@ export interface APITokenDeletedWebhookEvent {
7604
8011
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7605
8012
  * describes the transition. Created and deleted events carry only the object that
7606
8013
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7607
- * only inside `change` and as Production's environment `id`.
8014
+ * only inside `change`.
7608
8015
  */
7609
8016
  data: APITokenDeletedWebhookEvent.Data;
7610
8017
  /**
@@ -7635,7 +8042,7 @@ export declare namespace APITokenDeletedWebhookEvent {
7635
8042
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7636
8043
  * describes the transition. Created and deleted events carry only the object that
7637
8044
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7638
- * only inside `change` and as Production's environment `id`.
8045
+ * only inside `change`.
7639
8046
  */
7640
8047
  interface Data {
7641
8048
  /**
@@ -7669,8 +8076,9 @@ export declare namespace APITokenDeletedWebhookEvent {
7669
8076
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7670
8077
  * expired and activated events never carry it. `null` means none: `to: null` means
7671
8078
  * cleared and `from: null` means first set. The value type depends on the event
7672
- * and is given in each event's description. `contact_card.updated` uses `name`
7673
- * instead of `from` and `to`.
8079
+ * and is given in each event's description. `contact_card.updated` uses
8080
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8081
+ * present only when that field changed.
7674
8082
  */
7675
8083
  change?: Data.Change;
7676
8084
  /**
@@ -7678,9 +8086,9 @@ export declare namespace APITokenDeletedWebhookEvent {
7678
8086
  */
7679
8087
  contact_card?: Data.ContactCard;
7680
8088
  /**
7681
- * An environment. Production is
7682
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7683
- * environment has an `id` and type `environment`.
8089
+ * An environment, identified by name. Production is
8090
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8091
+ * (e.g. "Staging") looks the same shape, just with its own name.
7684
8092
  */
7685
8093
  environment?: Data.Environment;
7686
8094
  /**
@@ -7757,19 +8165,30 @@ export declare namespace APITokenDeletedWebhookEvent {
7757
8165
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7758
8166
  * expired and activated events never carry it. `null` means none: `to: null` means
7759
8167
  * cleared and `from: null` means first set. The value type depends on the event
7760
- * and is given in each event's description. `contact_card.updated` uses `name`
7761
- * instead of `from` and `to`.
8168
+ * and is given in each event's description. `contact_card.updated` uses
8169
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8170
+ * present only when that field changed.
7762
8171
  */
7763
8172
  interface Change {
8173
+ /**
8174
+ * A single field's change, on `contact_card.updated`. Present only for the field
8175
+ * that changed.
8176
+ */
8177
+ first_name?: Change.FirstName;
7764
8178
  /**
7765
8179
  * The value before the change; null when there was none.
7766
8180
  */
7767
8181
  from?: unknown;
7768
8182
  /**
7769
- * A contact card name change. Only on `contact_card.updated`, when the name
7770
- * changed.
8183
+ * A single field's change, on `contact_card.updated`. Present only for the field
8184
+ * that changed.
8185
+ */
8186
+ image_url?: Change.ImageURL;
8187
+ /**
8188
+ * A single field's change, on `contact_card.updated`. Present only for the field
8189
+ * that changed.
7771
8190
  */
7772
- name?: Change.Name;
8191
+ last_name?: Change.LastName;
7773
8192
  /**
7774
8193
  * The value after the change; null when it was cleared.
7775
8194
  */
@@ -7777,16 +8196,44 @@ export declare namespace APITokenDeletedWebhookEvent {
7777
8196
  }
7778
8197
  namespace Change {
7779
8198
  /**
7780
- * A contact card name change. Only on `contact_card.updated`, when the name
7781
- * changed.
8199
+ * A single field's change, on `contact_card.updated`. Present only for the field
8200
+ * that changed.
8201
+ */
8202
+ interface FirstName {
8203
+ /**
8204
+ * The value before the change; null when the card had none.
8205
+ */
8206
+ from: string | null;
8207
+ /**
8208
+ * The value after the change; null when it was removed.
8209
+ */
8210
+ to: string | null;
8211
+ }
8212
+ /**
8213
+ * A single field's change, on `contact_card.updated`. Present only for the field
8214
+ * that changed.
8215
+ */
8216
+ interface ImageURL {
8217
+ /**
8218
+ * The value before the change; null when the card had none.
8219
+ */
8220
+ from: string | null;
8221
+ /**
8222
+ * The value after the change; null when it was removed.
8223
+ */
8224
+ to: string | null;
8225
+ }
8226
+ /**
8227
+ * A single field's change, on `contact_card.updated`. Present only for the field
8228
+ * that changed.
7782
8229
  */
7783
- interface Name {
8230
+ interface LastName {
7784
8231
  /**
7785
- * The name before the change; null when the card had no name.
8232
+ * The value before the change; null when the card had none.
7786
8233
  */
7787
8234
  from: string | null;
7788
8235
  /**
7789
- * The name after the change; null when it was removed.
8236
+ * The value after the change; null when it was removed.
7790
8237
  */
7791
8238
  to: string | null;
7792
8239
  }
@@ -7796,27 +8243,24 @@ export declare namespace APITokenDeletedWebhookEvent {
7796
8243
  */
7797
8244
  interface ContactCard {
7798
8245
  id: string;
8246
+ first_name: string;
7799
8247
  /**
7800
- * Display name. Absent when the card has no name.
8248
+ * Null when the card has no photo.
7801
8249
  */
7802
- name?: string;
8250
+ image_url: string | null;
7803
8251
  /**
7804
- * True when the photo changed. Only on `contact_card.updated`.
8252
+ * Null when the card has no last name.
7805
8253
  */
7806
- photo_updated?: boolean;
8254
+ last_name: string | null;
7807
8255
  }
7808
8256
  /**
7809
- * An environment. Production is
7810
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7811
- * environment has an `id` and type `environment`.
8257
+ * An environment, identified by name. Production is
8258
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8259
+ * (e.g. "Staging") looks the same shape, just with its own name.
7812
8260
  */
7813
8261
  interface Environment {
7814
- /**
7815
- * Null for Production.
7816
- */
7817
- id: string | null;
7818
- type: 'production' | 'environment';
7819
- name?: string;
8262
+ name: string;
8263
+ type: 'environment';
7820
8264
  }
7821
8265
  /**
7822
8266
  * The team member the event is about.
@@ -7878,7 +8322,7 @@ export interface EnvironmentCreatedWebhookEvent {
7878
8322
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7879
8323
  * describes the transition. Created and deleted events carry only the object that
7880
8324
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7881
- * only inside `change` and as Production's environment `id`.
8325
+ * only inside `change`.
7882
8326
  */
7883
8327
  data: EnvironmentCreatedWebhookEvent.Data;
7884
8328
  /**
@@ -7909,7 +8353,7 @@ export declare namespace EnvironmentCreatedWebhookEvent {
7909
8353
  * `phone_number`, `team_member`) identify what changed; on update events `change`
7910
8354
  * describes the transition. Created and deleted events carry only the object that
7911
8355
  * was created or deleted. Fields are absent when they don't apply; `null` appears
7912
- * only inside `change` and as Production's environment `id`.
8356
+ * only inside `change`.
7913
8357
  */
7914
8358
  interface Data {
7915
8359
  /**
@@ -7943,8 +8387,9 @@ export declare namespace EnvironmentCreatedWebhookEvent {
7943
8387
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
7944
8388
  * expired and activated events never carry it. `null` means none: `to: null` means
7945
8389
  * cleared and `from: null` means first set. The value type depends on the event
7946
- * and is given in each event's description. `contact_card.updated` uses `name`
7947
- * instead of `from` and `to`.
8390
+ * and is given in each event's description. `contact_card.updated` uses
8391
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8392
+ * present only when that field changed.
7948
8393
  */
7949
8394
  change?: Data.Change;
7950
8395
  /**
@@ -7952,9 +8397,9 @@ export declare namespace EnvironmentCreatedWebhookEvent {
7952
8397
  */
7953
8398
  contact_card?: Data.ContactCard;
7954
8399
  /**
7955
- * An environment. Production is
7956
- * `{"id": null, "name": "Production", "type": "production"}`; every other
7957
- * environment has an `id` and type `environment`.
8400
+ * An environment, identified by name. Production is
8401
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8402
+ * (e.g. "Staging") looks the same shape, just with its own name.
7958
8403
  */
7959
8404
  environment?: Data.Environment;
7960
8405
  /**
@@ -8031,19 +8476,30 @@ export declare namespace EnvironmentCreatedWebhookEvent {
8031
8476
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8032
8477
  * expired and activated events never carry it. `null` means none: `to: null` means
8033
8478
  * cleared and `from: null` means first set. The value type depends on the event
8034
- * and is given in each event's description. `contact_card.updated` uses `name`
8035
- * instead of `from` and `to`.
8479
+ * and is given in each event's description. `contact_card.updated` uses
8480
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8481
+ * present only when that field changed.
8036
8482
  */
8037
8483
  interface Change {
8484
+ /**
8485
+ * A single field's change, on `contact_card.updated`. Present only for the field
8486
+ * that changed.
8487
+ */
8488
+ first_name?: Change.FirstName;
8038
8489
  /**
8039
8490
  * The value before the change; null when there was none.
8040
8491
  */
8041
8492
  from?: unknown;
8042
8493
  /**
8043
- * A contact card name change. Only on `contact_card.updated`, when the name
8044
- * changed.
8494
+ * A single field's change, on `contact_card.updated`. Present only for the field
8495
+ * that changed.
8045
8496
  */
8046
- name?: Change.Name;
8497
+ image_url?: Change.ImageURL;
8498
+ /**
8499
+ * A single field's change, on `contact_card.updated`. Present only for the field
8500
+ * that changed.
8501
+ */
8502
+ last_name?: Change.LastName;
8047
8503
  /**
8048
8504
  * The value after the change; null when it was cleared.
8049
8505
  */
@@ -8051,16 +8507,44 @@ export declare namespace EnvironmentCreatedWebhookEvent {
8051
8507
  }
8052
8508
  namespace Change {
8053
8509
  /**
8054
- * A contact card name change. Only on `contact_card.updated`, when the name
8055
- * changed.
8510
+ * A single field's change, on `contact_card.updated`. Present only for the field
8511
+ * that changed.
8056
8512
  */
8057
- interface Name {
8513
+ interface FirstName {
8058
8514
  /**
8059
- * The name before the change; null when the card had no name.
8515
+ * The value before the change; null when the card had none.
8060
8516
  */
8061
8517
  from: string | null;
8062
8518
  /**
8063
- * The name after the change; null when it was removed.
8519
+ * The value after the change; null when it was removed.
8520
+ */
8521
+ to: string | null;
8522
+ }
8523
+ /**
8524
+ * A single field's change, on `contact_card.updated`. Present only for the field
8525
+ * that changed.
8526
+ */
8527
+ interface ImageURL {
8528
+ /**
8529
+ * The value before the change; null when the card had none.
8530
+ */
8531
+ from: string | null;
8532
+ /**
8533
+ * The value after the change; null when it was removed.
8534
+ */
8535
+ to: string | null;
8536
+ }
8537
+ /**
8538
+ * A single field's change, on `contact_card.updated`. Present only for the field
8539
+ * that changed.
8540
+ */
8541
+ interface LastName {
8542
+ /**
8543
+ * The value before the change; null when the card had none.
8544
+ */
8545
+ from: string | null;
8546
+ /**
8547
+ * The value after the change; null when it was removed.
8064
8548
  */
8065
8549
  to: string | null;
8066
8550
  }
@@ -8070,27 +8554,24 @@ export declare namespace EnvironmentCreatedWebhookEvent {
8070
8554
  */
8071
8555
  interface ContactCard {
8072
8556
  id: string;
8557
+ first_name: string;
8073
8558
  /**
8074
- * Display name. Absent when the card has no name.
8559
+ * Null when the card has no photo.
8075
8560
  */
8076
- name?: string;
8561
+ image_url: string | null;
8077
8562
  /**
8078
- * True when the photo changed. Only on `contact_card.updated`.
8563
+ * Null when the card has no last name.
8079
8564
  */
8080
- photo_updated?: boolean;
8565
+ last_name: string | null;
8081
8566
  }
8082
8567
  /**
8083
- * An environment. Production is
8084
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8085
- * environment has an `id` and type `environment`.
8568
+ * An environment, identified by name. Production is
8569
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8570
+ * (e.g. "Staging") looks the same shape, just with its own name.
8086
8571
  */
8087
8572
  interface Environment {
8088
- /**
8089
- * Null for Production.
8090
- */
8091
- id: string | null;
8092
- type: 'production' | 'environment';
8093
- name?: string;
8573
+ name: string;
8574
+ type: 'environment';
8094
8575
  }
8095
8576
  /**
8096
8577
  * The team member the event is about.
@@ -8152,7 +8633,7 @@ export interface EnvironmentRenamedWebhookEvent {
8152
8633
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8153
8634
  * describes the transition. Created and deleted events carry only the object that
8154
8635
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8155
- * only inside `change` and as Production's environment `id`.
8636
+ * only inside `change`.
8156
8637
  */
8157
8638
  data: EnvironmentRenamedWebhookEvent.Data;
8158
8639
  /**
@@ -8183,7 +8664,7 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8183
8664
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8184
8665
  * describes the transition. Created and deleted events carry only the object that
8185
8666
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8186
- * only inside `change` and as Production's environment `id`.
8667
+ * only inside `change`.
8187
8668
  */
8188
8669
  interface Data {
8189
8670
  /**
@@ -8217,8 +8698,9 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8217
8698
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8218
8699
  * expired and activated events never carry it. `null` means none: `to: null` means
8219
8700
  * cleared and `from: null` means first set. The value type depends on the event
8220
- * and is given in each event's description. `contact_card.updated` uses `name`
8221
- * instead of `from` and `to`.
8701
+ * and is given in each event's description. `contact_card.updated` uses
8702
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8703
+ * present only when that field changed.
8222
8704
  */
8223
8705
  change?: Data.Change;
8224
8706
  /**
@@ -8226,9 +8708,9 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8226
8708
  */
8227
8709
  contact_card?: Data.ContactCard;
8228
8710
  /**
8229
- * An environment. Production is
8230
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8231
- * environment has an `id` and type `environment`.
8711
+ * An environment, identified by name. Production is
8712
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8713
+ * (e.g. "Staging") looks the same shape, just with its own name.
8232
8714
  */
8233
8715
  environment?: Data.Environment;
8234
8716
  /**
@@ -8305,19 +8787,30 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8305
8787
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8306
8788
  * expired and activated events never carry it. `null` means none: `to: null` means
8307
8789
  * cleared and `from: null` means first set. The value type depends on the event
8308
- * and is given in each event's description. `contact_card.updated` uses `name`
8309
- * instead of `from` and `to`.
8790
+ * and is given in each event's description. `contact_card.updated` uses
8791
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
8792
+ * present only when that field changed.
8310
8793
  */
8311
8794
  interface Change {
8795
+ /**
8796
+ * A single field's change, on `contact_card.updated`. Present only for the field
8797
+ * that changed.
8798
+ */
8799
+ first_name?: Change.FirstName;
8312
8800
  /**
8313
8801
  * The value before the change; null when there was none.
8314
8802
  */
8315
8803
  from?: unknown;
8316
8804
  /**
8317
- * A contact card name change. Only on `contact_card.updated`, when the name
8318
- * changed.
8805
+ * A single field's change, on `contact_card.updated`. Present only for the field
8806
+ * that changed.
8807
+ */
8808
+ image_url?: Change.ImageURL;
8809
+ /**
8810
+ * A single field's change, on `contact_card.updated`. Present only for the field
8811
+ * that changed.
8319
8812
  */
8320
- name?: Change.Name;
8813
+ last_name?: Change.LastName;
8321
8814
  /**
8322
8815
  * The value after the change; null when it was cleared.
8323
8816
  */
@@ -8325,16 +8818,44 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8325
8818
  }
8326
8819
  namespace Change {
8327
8820
  /**
8328
- * A contact card name change. Only on `contact_card.updated`, when the name
8329
- * changed.
8821
+ * A single field's change, on `contact_card.updated`. Present only for the field
8822
+ * that changed.
8330
8823
  */
8331
- interface Name {
8824
+ interface FirstName {
8332
8825
  /**
8333
- * The name before the change; null when the card had no name.
8826
+ * The value before the change; null when the card had none.
8334
8827
  */
8335
8828
  from: string | null;
8336
8829
  /**
8337
- * The name after the change; null when it was removed.
8830
+ * The value after the change; null when it was removed.
8831
+ */
8832
+ to: string | null;
8833
+ }
8834
+ /**
8835
+ * A single field's change, on `contact_card.updated`. Present only for the field
8836
+ * that changed.
8837
+ */
8838
+ interface ImageURL {
8839
+ /**
8840
+ * The value before the change; null when the card had none.
8841
+ */
8842
+ from: string | null;
8843
+ /**
8844
+ * The value after the change; null when it was removed.
8845
+ */
8846
+ to: string | null;
8847
+ }
8848
+ /**
8849
+ * A single field's change, on `contact_card.updated`. Present only for the field
8850
+ * that changed.
8851
+ */
8852
+ interface LastName {
8853
+ /**
8854
+ * The value before the change; null when the card had none.
8855
+ */
8856
+ from: string | null;
8857
+ /**
8858
+ * The value after the change; null when it was removed.
8338
8859
  */
8339
8860
  to: string | null;
8340
8861
  }
@@ -8344,27 +8865,24 @@ export declare namespace EnvironmentRenamedWebhookEvent {
8344
8865
  */
8345
8866
  interface ContactCard {
8346
8867
  id: string;
8868
+ first_name: string;
8347
8869
  /**
8348
- * Display name. Absent when the card has no name.
8870
+ * Null when the card has no photo.
8349
8871
  */
8350
- name?: string;
8872
+ image_url: string | null;
8351
8873
  /**
8352
- * True when the photo changed. Only on `contact_card.updated`.
8874
+ * Null when the card has no last name.
8353
8875
  */
8354
- photo_updated?: boolean;
8876
+ last_name: string | null;
8355
8877
  }
8356
8878
  /**
8357
- * An environment. Production is
8358
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8359
- * environment has an `id` and type `environment`.
8879
+ * An environment, identified by name. Production is
8880
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
8881
+ * (e.g. "Staging") looks the same shape, just with its own name.
8360
8882
  */
8361
8883
  interface Environment {
8362
- /**
8363
- * Null for Production.
8364
- */
8365
- id: string | null;
8366
- type: 'production' | 'environment';
8367
- name?: string;
8884
+ name: string;
8885
+ type: 'environment';
8368
8886
  }
8369
8887
  /**
8370
8888
  * The team member the event is about.
@@ -8426,7 +8944,7 @@ export interface EnvironmentDeletedWebhookEvent {
8426
8944
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8427
8945
  * describes the transition. Created and deleted events carry only the object that
8428
8946
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8429
- * only inside `change` and as Production's environment `id`.
8947
+ * only inside `change`.
8430
8948
  */
8431
8949
  data: EnvironmentDeletedWebhookEvent.Data;
8432
8950
  /**
@@ -8457,7 +8975,7 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8457
8975
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8458
8976
  * describes the transition. Created and deleted events carry only the object that
8459
8977
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8460
- * only inside `change` and as Production's environment `id`.
8978
+ * only inside `change`.
8461
8979
  */
8462
8980
  interface Data {
8463
8981
  /**
@@ -8491,8 +9009,9 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8491
9009
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8492
9010
  * expired and activated events never carry it. `null` means none: `to: null` means
8493
9011
  * cleared and `from: null` means first set. The value type depends on the event
8494
- * and is given in each event's description. `contact_card.updated` uses `name`
8495
- * instead of `from` and `to`.
9012
+ * and is given in each event's description. `contact_card.updated` uses
9013
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9014
+ * present only when that field changed.
8496
9015
  */
8497
9016
  change?: Data.Change;
8498
9017
  /**
@@ -8500,9 +9019,9 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8500
9019
  */
8501
9020
  contact_card?: Data.ContactCard;
8502
9021
  /**
8503
- * An environment. Production is
8504
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8505
- * environment has an `id` and type `environment`.
9022
+ * An environment, identified by name. Production is
9023
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9024
+ * (e.g. "Staging") looks the same shape, just with its own name.
8506
9025
  */
8507
9026
  environment?: Data.Environment;
8508
9027
  /**
@@ -8579,19 +9098,30 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8579
9098
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8580
9099
  * expired and activated events never carry it. `null` means none: `to: null` means
8581
9100
  * cleared and `from: null` means first set. The value type depends on the event
8582
- * and is given in each event's description. `contact_card.updated` uses `name`
8583
- * instead of `from` and `to`.
9101
+ * and is given in each event's description. `contact_card.updated` uses
9102
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9103
+ * present only when that field changed.
8584
9104
  */
8585
9105
  interface Change {
9106
+ /**
9107
+ * A single field's change, on `contact_card.updated`. Present only for the field
9108
+ * that changed.
9109
+ */
9110
+ first_name?: Change.FirstName;
8586
9111
  /**
8587
9112
  * The value before the change; null when there was none.
8588
9113
  */
8589
9114
  from?: unknown;
8590
9115
  /**
8591
- * A contact card name change. Only on `contact_card.updated`, when the name
8592
- * changed.
9116
+ * A single field's change, on `contact_card.updated`. Present only for the field
9117
+ * that changed.
9118
+ */
9119
+ image_url?: Change.ImageURL;
9120
+ /**
9121
+ * A single field's change, on `contact_card.updated`. Present only for the field
9122
+ * that changed.
8593
9123
  */
8594
- name?: Change.Name;
9124
+ last_name?: Change.LastName;
8595
9125
  /**
8596
9126
  * The value after the change; null when it was cleared.
8597
9127
  */
@@ -8599,16 +9129,44 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8599
9129
  }
8600
9130
  namespace Change {
8601
9131
  /**
8602
- * A contact card name change. Only on `contact_card.updated`, when the name
8603
- * changed.
9132
+ * A single field's change, on `contact_card.updated`. Present only for the field
9133
+ * that changed.
8604
9134
  */
8605
- interface Name {
9135
+ interface FirstName {
8606
9136
  /**
8607
- * The name before the change; null when the card had no name.
9137
+ * The value before the change; null when the card had none.
8608
9138
  */
8609
9139
  from: string | null;
8610
9140
  /**
8611
- * The name after the change; null when it was removed.
9141
+ * The value after the change; null when it was removed.
9142
+ */
9143
+ to: string | null;
9144
+ }
9145
+ /**
9146
+ * A single field's change, on `contact_card.updated`. Present only for the field
9147
+ * that changed.
9148
+ */
9149
+ interface ImageURL {
9150
+ /**
9151
+ * The value before the change; null when the card had none.
9152
+ */
9153
+ from: string | null;
9154
+ /**
9155
+ * The value after the change; null when it was removed.
9156
+ */
9157
+ to: string | null;
9158
+ }
9159
+ /**
9160
+ * A single field's change, on `contact_card.updated`. Present only for the field
9161
+ * that changed.
9162
+ */
9163
+ interface LastName {
9164
+ /**
9165
+ * The value before the change; null when the card had none.
9166
+ */
9167
+ from: string | null;
9168
+ /**
9169
+ * The value after the change; null when it was removed.
8612
9170
  */
8613
9171
  to: string | null;
8614
9172
  }
@@ -8618,27 +9176,24 @@ export declare namespace EnvironmentDeletedWebhookEvent {
8618
9176
  */
8619
9177
  interface ContactCard {
8620
9178
  id: string;
9179
+ first_name: string;
8621
9180
  /**
8622
- * Display name. Absent when the card has no name.
9181
+ * Null when the card has no photo.
8623
9182
  */
8624
- name?: string;
9183
+ image_url: string | null;
8625
9184
  /**
8626
- * True when the photo changed. Only on `contact_card.updated`.
9185
+ * Null when the card has no last name.
8627
9186
  */
8628
- photo_updated?: boolean;
9187
+ last_name: string | null;
8629
9188
  }
8630
9189
  /**
8631
- * An environment. Production is
8632
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8633
- * environment has an `id` and type `environment`.
9190
+ * An environment, identified by name. Production is
9191
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9192
+ * (e.g. "Staging") looks the same shape, just with its own name.
8634
9193
  */
8635
9194
  interface Environment {
8636
- /**
8637
- * Null for Production.
8638
- */
8639
- id: string | null;
8640
- type: 'production' | 'environment';
8641
- name?: string;
9195
+ name: string;
9196
+ type: 'environment';
8642
9197
  }
8643
9198
  /**
8644
9199
  * The team member the event is about.
@@ -8700,7 +9255,7 @@ export interface WebhookSubscriptionCreatedWebhookEvent {
8700
9255
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8701
9256
  * describes the transition. Created and deleted events carry only the object that
8702
9257
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8703
- * only inside `change` and as Production's environment `id`.
9258
+ * only inside `change`.
8704
9259
  */
8705
9260
  data: WebhookSubscriptionCreatedWebhookEvent.Data;
8706
9261
  /**
@@ -8731,7 +9286,7 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8731
9286
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8732
9287
  * describes the transition. Created and deleted events carry only the object that
8733
9288
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8734
- * only inside `change` and as Production's environment `id`.
9289
+ * only inside `change`.
8735
9290
  */
8736
9291
  interface Data {
8737
9292
  /**
@@ -8765,8 +9320,9 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8765
9320
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8766
9321
  * expired and activated events never carry it. `null` means none: `to: null` means
8767
9322
  * cleared and `from: null` means first set. The value type depends on the event
8768
- * and is given in each event's description. `contact_card.updated` uses `name`
8769
- * instead of `from` and `to`.
9323
+ * and is given in each event's description. `contact_card.updated` uses
9324
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9325
+ * present only when that field changed.
8770
9326
  */
8771
9327
  change?: Data.Change;
8772
9328
  /**
@@ -8774,9 +9330,9 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8774
9330
  */
8775
9331
  contact_card?: Data.ContactCard;
8776
9332
  /**
8777
- * An environment. Production is
8778
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8779
- * environment has an `id` and type `environment`.
9333
+ * An environment, identified by name. Production is
9334
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9335
+ * (e.g. "Staging") looks the same shape, just with its own name.
8780
9336
  */
8781
9337
  environment?: Data.Environment;
8782
9338
  /**
@@ -8853,19 +9409,30 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8853
9409
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
8854
9410
  * expired and activated events never carry it. `null` means none: `to: null` means
8855
9411
  * cleared and `from: null` means first set. The value type depends on the event
8856
- * and is given in each event's description. `contact_card.updated` uses `name`
8857
- * instead of `from` and `to`.
9412
+ * and is given in each event's description. `contact_card.updated` uses
9413
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9414
+ * present only when that field changed.
8858
9415
  */
8859
9416
  interface Change {
9417
+ /**
9418
+ * A single field's change, on `contact_card.updated`. Present only for the field
9419
+ * that changed.
9420
+ */
9421
+ first_name?: Change.FirstName;
8860
9422
  /**
8861
9423
  * The value before the change; null when there was none.
8862
9424
  */
8863
9425
  from?: unknown;
8864
9426
  /**
8865
- * A contact card name change. Only on `contact_card.updated`, when the name
8866
- * changed.
9427
+ * A single field's change, on `contact_card.updated`. Present only for the field
9428
+ * that changed.
8867
9429
  */
8868
- name?: Change.Name;
9430
+ image_url?: Change.ImageURL;
9431
+ /**
9432
+ * A single field's change, on `contact_card.updated`. Present only for the field
9433
+ * that changed.
9434
+ */
9435
+ last_name?: Change.LastName;
8869
9436
  /**
8870
9437
  * The value after the change; null when it was cleared.
8871
9438
  */
@@ -8873,16 +9440,44 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8873
9440
  }
8874
9441
  namespace Change {
8875
9442
  /**
8876
- * A contact card name change. Only on `contact_card.updated`, when the name
8877
- * changed.
9443
+ * A single field's change, on `contact_card.updated`. Present only for the field
9444
+ * that changed.
9445
+ */
9446
+ interface FirstName {
9447
+ /**
9448
+ * The value before the change; null when the card had none.
9449
+ */
9450
+ from: string | null;
9451
+ /**
9452
+ * The value after the change; null when it was removed.
9453
+ */
9454
+ to: string | null;
9455
+ }
9456
+ /**
9457
+ * A single field's change, on `contact_card.updated`. Present only for the field
9458
+ * that changed.
8878
9459
  */
8879
- interface Name {
9460
+ interface ImageURL {
8880
9461
  /**
8881
- * The name before the change; null when the card had no name.
9462
+ * The value before the change; null when the card had none.
8882
9463
  */
8883
9464
  from: string | null;
8884
9465
  /**
8885
- * The name after the change; null when it was removed.
9466
+ * The value after the change; null when it was removed.
9467
+ */
9468
+ to: string | null;
9469
+ }
9470
+ /**
9471
+ * A single field's change, on `contact_card.updated`. Present only for the field
9472
+ * that changed.
9473
+ */
9474
+ interface LastName {
9475
+ /**
9476
+ * The value before the change; null when the card had none.
9477
+ */
9478
+ from: string | null;
9479
+ /**
9480
+ * The value after the change; null when it was removed.
8886
9481
  */
8887
9482
  to: string | null;
8888
9483
  }
@@ -8892,27 +9487,24 @@ export declare namespace WebhookSubscriptionCreatedWebhookEvent {
8892
9487
  */
8893
9488
  interface ContactCard {
8894
9489
  id: string;
9490
+ first_name: string;
8895
9491
  /**
8896
- * Display name. Absent when the card has no name.
9492
+ * Null when the card has no photo.
8897
9493
  */
8898
- name?: string;
9494
+ image_url: string | null;
8899
9495
  /**
8900
- * True when the photo changed. Only on `contact_card.updated`.
9496
+ * Null when the card has no last name.
8901
9497
  */
8902
- photo_updated?: boolean;
9498
+ last_name: string | null;
8903
9499
  }
8904
9500
  /**
8905
- * An environment. Production is
8906
- * `{"id": null, "name": "Production", "type": "production"}`; every other
8907
- * environment has an `id` and type `environment`.
9501
+ * An environment, identified by name. Production is
9502
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9503
+ * (e.g. "Staging") looks the same shape, just with its own name.
8908
9504
  */
8909
9505
  interface Environment {
8910
- /**
8911
- * Null for Production.
8912
- */
8913
- id: string | null;
8914
- type: 'production' | 'environment';
8915
- name?: string;
9506
+ name: string;
9507
+ type: 'environment';
8916
9508
  }
8917
9509
  /**
8918
9510
  * The team member the event is about.
@@ -8974,7 +9566,7 @@ export interface WebhookSubscriptionDeletedWebhookEvent {
8974
9566
  * `phone_number`, `team_member`) identify what changed; on update events `change`
8975
9567
  * describes the transition. Created and deleted events carry only the object that
8976
9568
  * was created or deleted. Fields are absent when they don't apply; `null` appears
8977
- * only inside `change` and as Production's environment `id`.
9569
+ * only inside `change`.
8978
9570
  */
8979
9571
  data: WebhookSubscriptionDeletedWebhookEvent.Data;
8980
9572
  /**
@@ -9005,7 +9597,7 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9005
9597
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9006
9598
  * describes the transition. Created and deleted events carry only the object that
9007
9599
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9008
- * only inside `change` and as Production's environment `id`.
9600
+ * only inside `change`.
9009
9601
  */
9010
9602
  interface Data {
9011
9603
  /**
@@ -9039,8 +9631,9 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9039
9631
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9040
9632
  * expired and activated events never carry it. `null` means none: `to: null` means
9041
9633
  * cleared and `from: null` means first set. The value type depends on the event
9042
- * and is given in each event's description. `contact_card.updated` uses `name`
9043
- * instead of `from` and `to`.
9634
+ * and is given in each event's description. `contact_card.updated` uses
9635
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9636
+ * present only when that field changed.
9044
9637
  */
9045
9638
  change?: Data.Change;
9046
9639
  /**
@@ -9048,9 +9641,9 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9048
9641
  */
9049
9642
  contact_card?: Data.ContactCard;
9050
9643
  /**
9051
- * An environment. Production is
9052
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9053
- * environment has an `id` and type `environment`.
9644
+ * An environment, identified by name. Production is
9645
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9646
+ * (e.g. "Staging") looks the same shape, just with its own name.
9054
9647
  */
9055
9648
  environment?: Data.Environment;
9056
9649
  /**
@@ -9127,19 +9720,30 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9127
9720
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9128
9721
  * expired and activated events never carry it. `null` means none: `to: null` means
9129
9722
  * cleared and `from: null` means first set. The value type depends on the event
9130
- * and is given in each event's description. `contact_card.updated` uses `name`
9131
- * instead of `from` and `to`.
9723
+ * and is given in each event's description. `contact_card.updated` uses
9724
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9725
+ * present only when that field changed.
9132
9726
  */
9133
9727
  interface Change {
9728
+ /**
9729
+ * A single field's change, on `contact_card.updated`. Present only for the field
9730
+ * that changed.
9731
+ */
9732
+ first_name?: Change.FirstName;
9134
9733
  /**
9135
9734
  * The value before the change; null when there was none.
9136
9735
  */
9137
9736
  from?: unknown;
9138
9737
  /**
9139
- * A contact card name change. Only on `contact_card.updated`, when the name
9140
- * changed.
9738
+ * A single field's change, on `contact_card.updated`. Present only for the field
9739
+ * that changed.
9740
+ */
9741
+ image_url?: Change.ImageURL;
9742
+ /**
9743
+ * A single field's change, on `contact_card.updated`. Present only for the field
9744
+ * that changed.
9141
9745
  */
9142
- name?: Change.Name;
9746
+ last_name?: Change.LastName;
9143
9747
  /**
9144
9748
  * The value after the change; null when it was cleared.
9145
9749
  */
@@ -9147,16 +9751,44 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9147
9751
  }
9148
9752
  namespace Change {
9149
9753
  /**
9150
- * A contact card name change. Only on `contact_card.updated`, when the name
9151
- * changed.
9754
+ * A single field's change, on `contact_card.updated`. Present only for the field
9755
+ * that changed.
9152
9756
  */
9153
- interface Name {
9757
+ interface FirstName {
9154
9758
  /**
9155
- * The name before the change; null when the card had no name.
9759
+ * The value before the change; null when the card had none.
9156
9760
  */
9157
9761
  from: string | null;
9158
9762
  /**
9159
- * The name after the change; null when it was removed.
9763
+ * The value after the change; null when it was removed.
9764
+ */
9765
+ to: string | null;
9766
+ }
9767
+ /**
9768
+ * A single field's change, on `contact_card.updated`. Present only for the field
9769
+ * that changed.
9770
+ */
9771
+ interface ImageURL {
9772
+ /**
9773
+ * The value before the change; null when the card had none.
9774
+ */
9775
+ from: string | null;
9776
+ /**
9777
+ * The value after the change; null when it was removed.
9778
+ */
9779
+ to: string | null;
9780
+ }
9781
+ /**
9782
+ * A single field's change, on `contact_card.updated`. Present only for the field
9783
+ * that changed.
9784
+ */
9785
+ interface LastName {
9786
+ /**
9787
+ * The value before the change; null when the card had none.
9788
+ */
9789
+ from: string | null;
9790
+ /**
9791
+ * The value after the change; null when it was removed.
9160
9792
  */
9161
9793
  to: string | null;
9162
9794
  }
@@ -9166,27 +9798,24 @@ export declare namespace WebhookSubscriptionDeletedWebhookEvent {
9166
9798
  */
9167
9799
  interface ContactCard {
9168
9800
  id: string;
9801
+ first_name: string;
9169
9802
  /**
9170
- * Display name. Absent when the card has no name.
9803
+ * Null when the card has no photo.
9171
9804
  */
9172
- name?: string;
9805
+ image_url: string | null;
9173
9806
  /**
9174
- * True when the photo changed. Only on `contact_card.updated`.
9807
+ * Null when the card has no last name.
9175
9808
  */
9176
- photo_updated?: boolean;
9809
+ last_name: string | null;
9177
9810
  }
9178
9811
  /**
9179
- * An environment. Production is
9180
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9181
- * environment has an `id` and type `environment`.
9812
+ * An environment, identified by name. Production is
9813
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9814
+ * (e.g. "Staging") looks the same shape, just with its own name.
9182
9815
  */
9183
9816
  interface Environment {
9184
- /**
9185
- * Null for Production.
9186
- */
9187
- id: string | null;
9188
- type: 'production' | 'environment';
9189
- name?: string;
9817
+ name: string;
9818
+ type: 'environment';
9190
9819
  }
9191
9820
  /**
9192
9821
  * The team member the event is about.
@@ -9248,7 +9877,7 @@ export interface WebhookSubscriptionTargetURLChangedWebhookEvent {
9248
9877
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9249
9878
  * describes the transition. Created and deleted events carry only the object that
9250
9879
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9251
- * only inside `change` and as Production's environment `id`.
9880
+ * only inside `change`.
9252
9881
  */
9253
9882
  data: WebhookSubscriptionTargetURLChangedWebhookEvent.Data;
9254
9883
  /**
@@ -9279,7 +9908,7 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9279
9908
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9280
9909
  * describes the transition. Created and deleted events carry only the object that
9281
9910
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9282
- * only inside `change` and as Production's environment `id`.
9911
+ * only inside `change`.
9283
9912
  */
9284
9913
  interface Data {
9285
9914
  /**
@@ -9313,8 +9942,9 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9313
9942
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9314
9943
  * expired and activated events never carry it. `null` means none: `to: null` means
9315
9944
  * cleared and `from: null` means first set. The value type depends on the event
9316
- * and is given in each event's description. `contact_card.updated` uses `name`
9317
- * instead of `from` and `to`.
9945
+ * and is given in each event's description. `contact_card.updated` uses
9946
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
9947
+ * present only when that field changed.
9318
9948
  */
9319
9949
  change?: Data.Change;
9320
9950
  /**
@@ -9322,9 +9952,9 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9322
9952
  */
9323
9953
  contact_card?: Data.ContactCard;
9324
9954
  /**
9325
- * An environment. Production is
9326
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9327
- * environment has an `id` and type `environment`.
9955
+ * An environment, identified by name. Production is
9956
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
9957
+ * (e.g. "Staging") looks the same shape, just with its own name.
9328
9958
  */
9329
9959
  environment?: Data.Environment;
9330
9960
  /**
@@ -9401,19 +10031,30 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9401
10031
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9402
10032
  * expired and activated events never carry it. `null` means none: `to: null` means
9403
10033
  * cleared and `from: null` means first set. The value type depends on the event
9404
- * and is given in each event's description. `contact_card.updated` uses `name`
9405
- * instead of `from` and `to`.
10034
+ * and is given in each event's description. `contact_card.updated` uses
10035
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10036
+ * present only when that field changed.
9406
10037
  */
9407
10038
  interface Change {
10039
+ /**
10040
+ * A single field's change, on `contact_card.updated`. Present only for the field
10041
+ * that changed.
10042
+ */
10043
+ first_name?: Change.FirstName;
9408
10044
  /**
9409
10045
  * The value before the change; null when there was none.
9410
10046
  */
9411
10047
  from?: unknown;
9412
10048
  /**
9413
- * A contact card name change. Only on `contact_card.updated`, when the name
9414
- * changed.
10049
+ * A single field's change, on `contact_card.updated`. Present only for the field
10050
+ * that changed.
10051
+ */
10052
+ image_url?: Change.ImageURL;
10053
+ /**
10054
+ * A single field's change, on `contact_card.updated`. Present only for the field
10055
+ * that changed.
9415
10056
  */
9416
- name?: Change.Name;
10057
+ last_name?: Change.LastName;
9417
10058
  /**
9418
10059
  * The value after the change; null when it was cleared.
9419
10060
  */
@@ -9421,16 +10062,44 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9421
10062
  }
9422
10063
  namespace Change {
9423
10064
  /**
9424
- * A contact card name change. Only on `contact_card.updated`, when the name
9425
- * changed.
10065
+ * A single field's change, on `contact_card.updated`. Present only for the field
10066
+ * that changed.
10067
+ */
10068
+ interface FirstName {
10069
+ /**
10070
+ * The value before the change; null when the card had none.
10071
+ */
10072
+ from: string | null;
10073
+ /**
10074
+ * The value after the change; null when it was removed.
10075
+ */
10076
+ to: string | null;
10077
+ }
10078
+ /**
10079
+ * A single field's change, on `contact_card.updated`. Present only for the field
10080
+ * that changed.
10081
+ */
10082
+ interface ImageURL {
10083
+ /**
10084
+ * The value before the change; null when the card had none.
10085
+ */
10086
+ from: string | null;
10087
+ /**
10088
+ * The value after the change; null when it was removed.
10089
+ */
10090
+ to: string | null;
10091
+ }
10092
+ /**
10093
+ * A single field's change, on `contact_card.updated`. Present only for the field
10094
+ * that changed.
9426
10095
  */
9427
- interface Name {
10096
+ interface LastName {
9428
10097
  /**
9429
- * The name before the change; null when the card had no name.
10098
+ * The value before the change; null when the card had none.
9430
10099
  */
9431
10100
  from: string | null;
9432
10101
  /**
9433
- * The name after the change; null when it was removed.
10102
+ * The value after the change; null when it was removed.
9434
10103
  */
9435
10104
  to: string | null;
9436
10105
  }
@@ -9440,27 +10109,24 @@ export declare namespace WebhookSubscriptionTargetURLChangedWebhookEvent {
9440
10109
  */
9441
10110
  interface ContactCard {
9442
10111
  id: string;
10112
+ first_name: string;
9443
10113
  /**
9444
- * Display name. Absent when the card has no name.
10114
+ * Null when the card has no photo.
9445
10115
  */
9446
- name?: string;
10116
+ image_url: string | null;
9447
10117
  /**
9448
- * True when the photo changed. Only on `contact_card.updated`.
10118
+ * Null when the card has no last name.
9449
10119
  */
9450
- photo_updated?: boolean;
10120
+ last_name: string | null;
9451
10121
  }
9452
10122
  /**
9453
- * An environment. Production is
9454
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9455
- * environment has an `id` and type `environment`.
10123
+ * An environment, identified by name. Production is
10124
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10125
+ * (e.g. "Staging") looks the same shape, just with its own name.
9456
10126
  */
9457
10127
  interface Environment {
9458
- /**
9459
- * Null for Production.
9460
- */
9461
- id: string | null;
9462
- type: 'production' | 'environment';
9463
- name?: string;
10128
+ name: string;
10129
+ type: 'environment';
9464
10130
  }
9465
10131
  /**
9466
10132
  * The team member the event is about.
@@ -9522,7 +10188,7 @@ export interface WebhookSubscriptionEnabledWebhookEvent {
9522
10188
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9523
10189
  * describes the transition. Created and deleted events carry only the object that
9524
10190
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9525
- * only inside `change` and as Production's environment `id`.
10191
+ * only inside `change`.
9526
10192
  */
9527
10193
  data: WebhookSubscriptionEnabledWebhookEvent.Data;
9528
10194
  /**
@@ -9553,7 +10219,7 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9553
10219
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9554
10220
  * describes the transition. Created and deleted events carry only the object that
9555
10221
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9556
- * only inside `change` and as Production's environment `id`.
10222
+ * only inside `change`.
9557
10223
  */
9558
10224
  interface Data {
9559
10225
  /**
@@ -9587,8 +10253,9 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9587
10253
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9588
10254
  * expired and activated events never carry it. `null` means none: `to: null` means
9589
10255
  * cleared and `from: null` means first set. The value type depends on the event
9590
- * and is given in each event's description. `contact_card.updated` uses `name`
9591
- * instead of `from` and `to`.
10256
+ * and is given in each event's description. `contact_card.updated` uses
10257
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10258
+ * present only when that field changed.
9592
10259
  */
9593
10260
  change?: Data.Change;
9594
10261
  /**
@@ -9596,9 +10263,9 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9596
10263
  */
9597
10264
  contact_card?: Data.ContactCard;
9598
10265
  /**
9599
- * An environment. Production is
9600
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9601
- * environment has an `id` and type `environment`.
10266
+ * An environment, identified by name. Production is
10267
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10268
+ * (e.g. "Staging") looks the same shape, just with its own name.
9602
10269
  */
9603
10270
  environment?: Data.Environment;
9604
10271
  /**
@@ -9675,19 +10342,30 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9675
10342
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9676
10343
  * expired and activated events never carry it. `null` means none: `to: null` means
9677
10344
  * cleared and `from: null` means first set. The value type depends on the event
9678
- * and is given in each event's description. `contact_card.updated` uses `name`
9679
- * instead of `from` and `to`.
10345
+ * and is given in each event's description. `contact_card.updated` uses
10346
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10347
+ * present only when that field changed.
9680
10348
  */
9681
10349
  interface Change {
10350
+ /**
10351
+ * A single field's change, on `contact_card.updated`. Present only for the field
10352
+ * that changed.
10353
+ */
10354
+ first_name?: Change.FirstName;
9682
10355
  /**
9683
10356
  * The value before the change; null when there was none.
9684
10357
  */
9685
10358
  from?: unknown;
9686
10359
  /**
9687
- * A contact card name change. Only on `contact_card.updated`, when the name
9688
- * changed.
10360
+ * A single field's change, on `contact_card.updated`. Present only for the field
10361
+ * that changed.
10362
+ */
10363
+ image_url?: Change.ImageURL;
10364
+ /**
10365
+ * A single field's change, on `contact_card.updated`. Present only for the field
10366
+ * that changed.
9689
10367
  */
9690
- name?: Change.Name;
10368
+ last_name?: Change.LastName;
9691
10369
  /**
9692
10370
  * The value after the change; null when it was cleared.
9693
10371
  */
@@ -9695,16 +10373,44 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9695
10373
  }
9696
10374
  namespace Change {
9697
10375
  /**
9698
- * A contact card name change. Only on `contact_card.updated`, when the name
9699
- * changed.
10376
+ * A single field's change, on `contact_card.updated`. Present only for the field
10377
+ * that changed.
10378
+ */
10379
+ interface FirstName {
10380
+ /**
10381
+ * The value before the change; null when the card had none.
10382
+ */
10383
+ from: string | null;
10384
+ /**
10385
+ * The value after the change; null when it was removed.
10386
+ */
10387
+ to: string | null;
10388
+ }
10389
+ /**
10390
+ * A single field's change, on `contact_card.updated`. Present only for the field
10391
+ * that changed.
10392
+ */
10393
+ interface ImageURL {
10394
+ /**
10395
+ * The value before the change; null when the card had none.
10396
+ */
10397
+ from: string | null;
10398
+ /**
10399
+ * The value after the change; null when it was removed.
10400
+ */
10401
+ to: string | null;
10402
+ }
10403
+ /**
10404
+ * A single field's change, on `contact_card.updated`. Present only for the field
10405
+ * that changed.
9700
10406
  */
9701
- interface Name {
10407
+ interface LastName {
9702
10408
  /**
9703
- * The name before the change; null when the card had no name.
10409
+ * The value before the change; null when the card had none.
9704
10410
  */
9705
10411
  from: string | null;
9706
10412
  /**
9707
- * The name after the change; null when it was removed.
10413
+ * The value after the change; null when it was removed.
9708
10414
  */
9709
10415
  to: string | null;
9710
10416
  }
@@ -9714,27 +10420,24 @@ export declare namespace WebhookSubscriptionEnabledWebhookEvent {
9714
10420
  */
9715
10421
  interface ContactCard {
9716
10422
  id: string;
10423
+ first_name: string;
9717
10424
  /**
9718
- * Display name. Absent when the card has no name.
10425
+ * Null when the card has no photo.
9719
10426
  */
9720
- name?: string;
10427
+ image_url: string | null;
9721
10428
  /**
9722
- * True when the photo changed. Only on `contact_card.updated`.
10429
+ * Null when the card has no last name.
9723
10430
  */
9724
- photo_updated?: boolean;
10431
+ last_name: string | null;
9725
10432
  }
9726
10433
  /**
9727
- * An environment. Production is
9728
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9729
- * environment has an `id` and type `environment`.
10434
+ * An environment, identified by name. Production is
10435
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10436
+ * (e.g. "Staging") looks the same shape, just with its own name.
9730
10437
  */
9731
10438
  interface Environment {
9732
- /**
9733
- * Null for Production.
9734
- */
9735
- id: string | null;
9736
- type: 'production' | 'environment';
9737
- name?: string;
10439
+ name: string;
10440
+ type: 'environment';
9738
10441
  }
9739
10442
  /**
9740
10443
  * The team member the event is about.
@@ -9796,7 +10499,7 @@ export interface WebhookSubscriptionDisabledWebhookEvent {
9796
10499
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9797
10500
  * describes the transition. Created and deleted events carry only the object that
9798
10501
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9799
- * only inside `change` and as Production's environment `id`.
10502
+ * only inside `change`.
9800
10503
  */
9801
10504
  data: WebhookSubscriptionDisabledWebhookEvent.Data;
9802
10505
  /**
@@ -9827,7 +10530,7 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9827
10530
  * `phone_number`, `team_member`) identify what changed; on update events `change`
9828
10531
  * describes the transition. Created and deleted events carry only the object that
9829
10532
  * was created or deleted. Fields are absent when they don't apply; `null` appears
9830
- * only inside `change` and as Production's environment `id`.
10533
+ * only inside `change`.
9831
10534
  */
9832
10535
  interface Data {
9833
10536
  /**
@@ -9861,8 +10564,9 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9861
10564
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9862
10565
  * expired and activated events never carry it. `null` means none: `to: null` means
9863
10566
  * cleared and `from: null` means first set. The value type depends on the event
9864
- * and is given in each event's description. `contact_card.updated` uses `name`
9865
- * instead of `from` and `to`.
10567
+ * and is given in each event's description. `contact_card.updated` uses
10568
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10569
+ * present only when that field changed.
9866
10570
  */
9867
10571
  change?: Data.Change;
9868
10572
  /**
@@ -9870,9 +10574,9 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9870
10574
  */
9871
10575
  contact_card?: Data.ContactCard;
9872
10576
  /**
9873
- * An environment. Production is
9874
- * `{"id": null, "name": "Production", "type": "production"}`; every other
9875
- * environment has an `id` and type `environment`.
10577
+ * An environment, identified by name. Production is
10578
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10579
+ * (e.g. "Staging") looks the same shape, just with its own name.
9876
10580
  */
9877
10581
  environment?: Data.Environment;
9878
10582
  /**
@@ -9949,19 +10653,30 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9949
10653
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
9950
10654
  * expired and activated events never carry it. `null` means none: `to: null` means
9951
10655
  * cleared and `from: null` means first set. The value type depends on the event
9952
- * and is given in each event's description. `contact_card.updated` uses `name`
9953
- * instead of `from` and `to`.
10656
+ * and is given in each event's description. `contact_card.updated` uses
10657
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10658
+ * present only when that field changed.
9954
10659
  */
9955
10660
  interface Change {
10661
+ /**
10662
+ * A single field's change, on `contact_card.updated`. Present only for the field
10663
+ * that changed.
10664
+ */
10665
+ first_name?: Change.FirstName;
9956
10666
  /**
9957
10667
  * The value before the change; null when there was none.
9958
10668
  */
9959
10669
  from?: unknown;
9960
10670
  /**
9961
- * A contact card name change. Only on `contact_card.updated`, when the name
9962
- * changed.
10671
+ * A single field's change, on `contact_card.updated`. Present only for the field
10672
+ * that changed.
10673
+ */
10674
+ image_url?: Change.ImageURL;
10675
+ /**
10676
+ * A single field's change, on `contact_card.updated`. Present only for the field
10677
+ * that changed.
9963
10678
  */
9964
- name?: Change.Name;
10679
+ last_name?: Change.LastName;
9965
10680
  /**
9966
10681
  * The value after the change; null when it was cleared.
9967
10682
  */
@@ -9969,16 +10684,44 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9969
10684
  }
9970
10685
  namespace Change {
9971
10686
  /**
9972
- * A contact card name change. Only on `contact_card.updated`, when the name
9973
- * changed.
10687
+ * A single field's change, on `contact_card.updated`. Present only for the field
10688
+ * that changed.
10689
+ */
10690
+ interface FirstName {
10691
+ /**
10692
+ * The value before the change; null when the card had none.
10693
+ */
10694
+ from: string | null;
10695
+ /**
10696
+ * The value after the change; null when it was removed.
10697
+ */
10698
+ to: string | null;
10699
+ }
10700
+ /**
10701
+ * A single field's change, on `contact_card.updated`. Present only for the field
10702
+ * that changed.
10703
+ */
10704
+ interface ImageURL {
10705
+ /**
10706
+ * The value before the change; null when the card had none.
10707
+ */
10708
+ from: string | null;
10709
+ /**
10710
+ * The value after the change; null when it was removed.
10711
+ */
10712
+ to: string | null;
10713
+ }
10714
+ /**
10715
+ * A single field's change, on `contact_card.updated`. Present only for the field
10716
+ * that changed.
9974
10717
  */
9975
- interface Name {
10718
+ interface LastName {
9976
10719
  /**
9977
- * The name before the change; null when the card had no name.
10720
+ * The value before the change; null when the card had none.
9978
10721
  */
9979
10722
  from: string | null;
9980
10723
  /**
9981
- * The name after the change; null when it was removed.
10724
+ * The value after the change; null when it was removed.
9982
10725
  */
9983
10726
  to: string | null;
9984
10727
  }
@@ -9988,27 +10731,24 @@ export declare namespace WebhookSubscriptionDisabledWebhookEvent {
9988
10731
  */
9989
10732
  interface ContactCard {
9990
10733
  id: string;
10734
+ first_name: string;
9991
10735
  /**
9992
- * Display name. Absent when the card has no name.
10736
+ * Null when the card has no photo.
9993
10737
  */
9994
- name?: string;
10738
+ image_url: string | null;
9995
10739
  /**
9996
- * True when the photo changed. Only on `contact_card.updated`.
10740
+ * Null when the card has no last name.
9997
10741
  */
9998
- photo_updated?: boolean;
10742
+ last_name: string | null;
9999
10743
  }
10000
10744
  /**
10001
- * An environment. Production is
10002
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10003
- * environment has an `id` and type `environment`.
10745
+ * An environment, identified by name. Production is
10746
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10747
+ * (e.g. "Staging") looks the same shape, just with its own name.
10004
10748
  */
10005
10749
  interface Environment {
10006
- /**
10007
- * Null for Production.
10008
- */
10009
- id: string | null;
10010
- type: 'production' | 'environment';
10011
- name?: string;
10750
+ name: string;
10751
+ type: 'environment';
10012
10752
  }
10013
10753
  /**
10014
10754
  * The team member the event is about.
@@ -10070,7 +10810,7 @@ export interface WebhookSubscriptionEventsUpdatedWebhookEvent {
10070
10810
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10071
10811
  * describes the transition. Created and deleted events carry only the object that
10072
10812
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10073
- * only inside `change` and as Production's environment `id`.
10813
+ * only inside `change`.
10074
10814
  */
10075
10815
  data: WebhookSubscriptionEventsUpdatedWebhookEvent.Data;
10076
10816
  /**
@@ -10101,7 +10841,7 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10101
10841
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10102
10842
  * describes the transition. Created and deleted events carry only the object that
10103
10843
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10104
- * only inside `change` and as Production's environment `id`.
10844
+ * only inside `change`.
10105
10845
  */
10106
10846
  interface Data {
10107
10847
  /**
@@ -10135,8 +10875,9 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10135
10875
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10136
10876
  * expired and activated events never carry it. `null` means none: `to: null` means
10137
10877
  * cleared and `from: null` means first set. The value type depends on the event
10138
- * and is given in each event's description. `contact_card.updated` uses `name`
10139
- * instead of `from` and `to`.
10878
+ * and is given in each event's description. `contact_card.updated` uses
10879
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10880
+ * present only when that field changed.
10140
10881
  */
10141
10882
  change?: Data.Change;
10142
10883
  /**
@@ -10144,9 +10885,9 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10144
10885
  */
10145
10886
  contact_card?: Data.ContactCard;
10146
10887
  /**
10147
- * An environment. Production is
10148
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10149
- * environment has an `id` and type `environment`.
10888
+ * An environment, identified by name. Production is
10889
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
10890
+ * (e.g. "Staging") looks the same shape, just with its own name.
10150
10891
  */
10151
10892
  environment?: Data.Environment;
10152
10893
  /**
@@ -10223,19 +10964,30 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10223
10964
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10224
10965
  * expired and activated events never carry it. `null` means none: `to: null` means
10225
10966
  * cleared and `from: null` means first set. The value type depends on the event
10226
- * and is given in each event's description. `contact_card.updated` uses `name`
10227
- * instead of `from` and `to`.
10967
+ * and is given in each event's description. `contact_card.updated` uses
10968
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
10969
+ * present only when that field changed.
10228
10970
  */
10229
10971
  interface Change {
10972
+ /**
10973
+ * A single field's change, on `contact_card.updated`. Present only for the field
10974
+ * that changed.
10975
+ */
10976
+ first_name?: Change.FirstName;
10230
10977
  /**
10231
10978
  * The value before the change; null when there was none.
10232
10979
  */
10233
10980
  from?: unknown;
10234
10981
  /**
10235
- * A contact card name change. Only on `contact_card.updated`, when the name
10236
- * changed.
10982
+ * A single field's change, on `contact_card.updated`. Present only for the field
10983
+ * that changed.
10984
+ */
10985
+ image_url?: Change.ImageURL;
10986
+ /**
10987
+ * A single field's change, on `contact_card.updated`. Present only for the field
10988
+ * that changed.
10237
10989
  */
10238
- name?: Change.Name;
10990
+ last_name?: Change.LastName;
10239
10991
  /**
10240
10992
  * The value after the change; null when it was cleared.
10241
10993
  */
@@ -10243,16 +10995,44 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10243
10995
  }
10244
10996
  namespace Change {
10245
10997
  /**
10246
- * A contact card name change. Only on `contact_card.updated`, when the name
10247
- * changed.
10998
+ * A single field's change, on `contact_card.updated`. Present only for the field
10999
+ * that changed.
11000
+ */
11001
+ interface FirstName {
11002
+ /**
11003
+ * The value before the change; null when the card had none.
11004
+ */
11005
+ from: string | null;
11006
+ /**
11007
+ * The value after the change; null when it was removed.
11008
+ */
11009
+ to: string | null;
11010
+ }
11011
+ /**
11012
+ * A single field's change, on `contact_card.updated`. Present only for the field
11013
+ * that changed.
10248
11014
  */
10249
- interface Name {
11015
+ interface ImageURL {
10250
11016
  /**
10251
- * The name before the change; null when the card had no name.
11017
+ * The value before the change; null when the card had none.
10252
11018
  */
10253
11019
  from: string | null;
10254
11020
  /**
10255
- * The name after the change; null when it was removed.
11021
+ * The value after the change; null when it was removed.
11022
+ */
11023
+ to: string | null;
11024
+ }
11025
+ /**
11026
+ * A single field's change, on `contact_card.updated`. Present only for the field
11027
+ * that changed.
11028
+ */
11029
+ interface LastName {
11030
+ /**
11031
+ * The value before the change; null when the card had none.
11032
+ */
11033
+ from: string | null;
11034
+ /**
11035
+ * The value after the change; null when it was removed.
10256
11036
  */
10257
11037
  to: string | null;
10258
11038
  }
@@ -10262,27 +11042,24 @@ export declare namespace WebhookSubscriptionEventsUpdatedWebhookEvent {
10262
11042
  */
10263
11043
  interface ContactCard {
10264
11044
  id: string;
11045
+ first_name: string;
10265
11046
  /**
10266
- * Display name. Absent when the card has no name.
11047
+ * Null when the card has no photo.
10267
11048
  */
10268
- name?: string;
11049
+ image_url: string | null;
10269
11050
  /**
10270
- * True when the photo changed. Only on `contact_card.updated`.
11051
+ * Null when the card has no last name.
10271
11052
  */
10272
- photo_updated?: boolean;
11053
+ last_name: string | null;
10273
11054
  }
10274
11055
  /**
10275
- * An environment. Production is
10276
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10277
- * environment has an `id` and type `environment`.
11056
+ * An environment, identified by name. Production is
11057
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11058
+ * (e.g. "Staging") looks the same shape, just with its own name.
10278
11059
  */
10279
11060
  interface Environment {
10280
- /**
10281
- * Null for Production.
10282
- */
10283
- id: string | null;
10284
- type: 'production' | 'environment';
10285
- name?: string;
11061
+ name: string;
11062
+ type: 'environment';
10286
11063
  }
10287
11064
  /**
10288
11065
  * The team member the event is about.
@@ -10344,7 +11121,7 @@ export interface WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10344
11121
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10345
11122
  * describes the transition. Created and deleted events carry only the object that
10346
11123
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10347
- * only inside `change` and as Production's environment `id`.
11124
+ * only inside `change`.
10348
11125
  */
10349
11126
  data: WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent.Data;
10350
11127
  /**
@@ -10375,7 +11152,7 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10375
11152
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10376
11153
  * describes the transition. Created and deleted events carry only the object that
10377
11154
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10378
- * only inside `change` and as Production's environment `id`.
11155
+ * only inside `change`.
10379
11156
  */
10380
11157
  interface Data {
10381
11158
  /**
@@ -10409,8 +11186,9 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10409
11186
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10410
11187
  * expired and activated events never carry it. `null` means none: `to: null` means
10411
11188
  * cleared and `from: null` means first set. The value type depends on the event
10412
- * and is given in each event's description. `contact_card.updated` uses `name`
10413
- * instead of `from` and `to`.
11189
+ * and is given in each event's description. `contact_card.updated` uses
11190
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11191
+ * present only when that field changed.
10414
11192
  */
10415
11193
  change?: Data.Change;
10416
11194
  /**
@@ -10418,9 +11196,9 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10418
11196
  */
10419
11197
  contact_card?: Data.ContactCard;
10420
11198
  /**
10421
- * An environment. Production is
10422
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10423
- * environment has an `id` and type `environment`.
11199
+ * An environment, identified by name. Production is
11200
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11201
+ * (e.g. "Staging") looks the same shape, just with its own name.
10424
11202
  */
10425
11203
  environment?: Data.Environment;
10426
11204
  /**
@@ -10497,19 +11275,30 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10497
11275
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10498
11276
  * expired and activated events never carry it. `null` means none: `to: null` means
10499
11277
  * cleared and `from: null` means first set. The value type depends on the event
10500
- * and is given in each event's description. `contact_card.updated` uses `name`
10501
- * instead of `from` and `to`.
11278
+ * and is given in each event's description. `contact_card.updated` uses
11279
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11280
+ * present only when that field changed.
10502
11281
  */
10503
11282
  interface Change {
11283
+ /**
11284
+ * A single field's change, on `contact_card.updated`. Present only for the field
11285
+ * that changed.
11286
+ */
11287
+ first_name?: Change.FirstName;
10504
11288
  /**
10505
11289
  * The value before the change; null when there was none.
10506
11290
  */
10507
11291
  from?: unknown;
10508
11292
  /**
10509
- * A contact card name change. Only on `contact_card.updated`, when the name
10510
- * changed.
11293
+ * A single field's change, on `contact_card.updated`. Present only for the field
11294
+ * that changed.
10511
11295
  */
10512
- name?: Change.Name;
11296
+ image_url?: Change.ImageURL;
11297
+ /**
11298
+ * A single field's change, on `contact_card.updated`. Present only for the field
11299
+ * that changed.
11300
+ */
11301
+ last_name?: Change.LastName;
10513
11302
  /**
10514
11303
  * The value after the change; null when it was cleared.
10515
11304
  */
@@ -10517,16 +11306,44 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10517
11306
  }
10518
11307
  namespace Change {
10519
11308
  /**
10520
- * A contact card name change. Only on `contact_card.updated`, when the name
10521
- * changed.
11309
+ * A single field's change, on `contact_card.updated`. Present only for the field
11310
+ * that changed.
11311
+ */
11312
+ interface FirstName {
11313
+ /**
11314
+ * The value before the change; null when the card had none.
11315
+ */
11316
+ from: string | null;
11317
+ /**
11318
+ * The value after the change; null when it was removed.
11319
+ */
11320
+ to: string | null;
11321
+ }
11322
+ /**
11323
+ * A single field's change, on `contact_card.updated`. Present only for the field
11324
+ * that changed.
11325
+ */
11326
+ interface ImageURL {
11327
+ /**
11328
+ * The value before the change; null when the card had none.
11329
+ */
11330
+ from: string | null;
11331
+ /**
11332
+ * The value after the change; null when it was removed.
11333
+ */
11334
+ to: string | null;
11335
+ }
11336
+ /**
11337
+ * A single field's change, on `contact_card.updated`. Present only for the field
11338
+ * that changed.
10522
11339
  */
10523
- interface Name {
11340
+ interface LastName {
10524
11341
  /**
10525
- * The name before the change; null when the card had no name.
11342
+ * The value before the change; null when the card had none.
10526
11343
  */
10527
11344
  from: string | null;
10528
11345
  /**
10529
- * The name after the change; null when it was removed.
11346
+ * The value after the change; null when it was removed.
10530
11347
  */
10531
11348
  to: string | null;
10532
11349
  }
@@ -10536,27 +11353,24 @@ export declare namespace WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
10536
11353
  */
10537
11354
  interface ContactCard {
10538
11355
  id: string;
11356
+ first_name: string;
10539
11357
  /**
10540
- * Display name. Absent when the card has no name.
11358
+ * Null when the card has no photo.
10541
11359
  */
10542
- name?: string;
11360
+ image_url: string | null;
10543
11361
  /**
10544
- * True when the photo changed. Only on `contact_card.updated`.
11362
+ * Null when the card has no last name.
10545
11363
  */
10546
- photo_updated?: boolean;
11364
+ last_name: string | null;
10547
11365
  }
10548
11366
  /**
10549
- * An environment. Production is
10550
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10551
- * environment has an `id` and type `environment`.
11367
+ * An environment, identified by name. Production is
11368
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11369
+ * (e.g. "Staging") looks the same shape, just with its own name.
10552
11370
  */
10553
11371
  interface Environment {
10554
- /**
10555
- * Null for Production.
10556
- */
10557
- id: string | null;
10558
- type: 'production' | 'environment';
10559
- name?: string;
11372
+ name: string;
11373
+ type: 'environment';
10560
11374
  }
10561
11375
  /**
10562
11376
  * The team member the event is about.
@@ -10618,7 +11432,7 @@ export interface WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10618
11432
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10619
11433
  * describes the transition. Created and deleted events carry only the object that
10620
11434
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10621
- * only inside `change` and as Production's environment `id`.
11435
+ * only inside `change`.
10622
11436
  */
10623
11437
  data: WebhookSubscriptionRoutingHeadersSetWebhookEvent.Data;
10624
11438
  /**
@@ -10649,7 +11463,7 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10649
11463
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10650
11464
  * describes the transition. Created and deleted events carry only the object that
10651
11465
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10652
- * only inside `change` and as Production's environment `id`.
11466
+ * only inside `change`.
10653
11467
  */
10654
11468
  interface Data {
10655
11469
  /**
@@ -10683,8 +11497,9 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10683
11497
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10684
11498
  * expired and activated events never carry it. `null` means none: `to: null` means
10685
11499
  * cleared and `from: null` means first set. The value type depends on the event
10686
- * and is given in each event's description. `contact_card.updated` uses `name`
10687
- * instead of `from` and `to`.
11500
+ * and is given in each event's description. `contact_card.updated` uses
11501
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11502
+ * present only when that field changed.
10688
11503
  */
10689
11504
  change?: Data.Change;
10690
11505
  /**
@@ -10692,9 +11507,9 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10692
11507
  */
10693
11508
  contact_card?: Data.ContactCard;
10694
11509
  /**
10695
- * An environment. Production is
10696
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10697
- * environment has an `id` and type `environment`.
11510
+ * An environment, identified by name. Production is
11511
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11512
+ * (e.g. "Staging") looks the same shape, just with its own name.
10698
11513
  */
10699
11514
  environment?: Data.Environment;
10700
11515
  /**
@@ -10771,19 +11586,30 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10771
11586
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10772
11587
  * expired and activated events never carry it. `null` means none: `to: null` means
10773
11588
  * cleared and `from: null` means first set. The value type depends on the event
10774
- * and is given in each event's description. `contact_card.updated` uses `name`
10775
- * instead of `from` and `to`.
11589
+ * and is given in each event's description. `contact_card.updated` uses
11590
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11591
+ * present only when that field changed.
10776
11592
  */
10777
11593
  interface Change {
11594
+ /**
11595
+ * A single field's change, on `contact_card.updated`. Present only for the field
11596
+ * that changed.
11597
+ */
11598
+ first_name?: Change.FirstName;
10778
11599
  /**
10779
11600
  * The value before the change; null when there was none.
10780
11601
  */
10781
11602
  from?: unknown;
10782
11603
  /**
10783
- * A contact card name change. Only on `contact_card.updated`, when the name
10784
- * changed.
11604
+ * A single field's change, on `contact_card.updated`. Present only for the field
11605
+ * that changed.
11606
+ */
11607
+ image_url?: Change.ImageURL;
11608
+ /**
11609
+ * A single field's change, on `contact_card.updated`. Present only for the field
11610
+ * that changed.
10785
11611
  */
10786
- name?: Change.Name;
11612
+ last_name?: Change.LastName;
10787
11613
  /**
10788
11614
  * The value after the change; null when it was cleared.
10789
11615
  */
@@ -10791,16 +11617,44 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10791
11617
  }
10792
11618
  namespace Change {
10793
11619
  /**
10794
- * A contact card name change. Only on `contact_card.updated`, when the name
10795
- * changed.
11620
+ * A single field's change, on `contact_card.updated`. Present only for the field
11621
+ * that changed.
11622
+ */
11623
+ interface FirstName {
11624
+ /**
11625
+ * The value before the change; null when the card had none.
11626
+ */
11627
+ from: string | null;
11628
+ /**
11629
+ * The value after the change; null when it was removed.
11630
+ */
11631
+ to: string | null;
11632
+ }
11633
+ /**
11634
+ * A single field's change, on `contact_card.updated`. Present only for the field
11635
+ * that changed.
11636
+ */
11637
+ interface ImageURL {
11638
+ /**
11639
+ * The value before the change; null when the card had none.
11640
+ */
11641
+ from: string | null;
11642
+ /**
11643
+ * The value after the change; null when it was removed.
11644
+ */
11645
+ to: string | null;
11646
+ }
11647
+ /**
11648
+ * A single field's change, on `contact_card.updated`. Present only for the field
11649
+ * that changed.
10796
11650
  */
10797
- interface Name {
11651
+ interface LastName {
10798
11652
  /**
10799
- * The name before the change; null when the card had no name.
11653
+ * The value before the change; null when the card had none.
10800
11654
  */
10801
11655
  from: string | null;
10802
11656
  /**
10803
- * The name after the change; null when it was removed.
11657
+ * The value after the change; null when it was removed.
10804
11658
  */
10805
11659
  to: string | null;
10806
11660
  }
@@ -10810,27 +11664,24 @@ export declare namespace WebhookSubscriptionRoutingHeadersSetWebhookEvent {
10810
11664
  */
10811
11665
  interface ContactCard {
10812
11666
  id: string;
11667
+ first_name: string;
10813
11668
  /**
10814
- * Display name. Absent when the card has no name.
11669
+ * Null when the card has no photo.
10815
11670
  */
10816
- name?: string;
11671
+ image_url: string | null;
10817
11672
  /**
10818
- * True when the photo changed. Only on `contact_card.updated`.
11673
+ * Null when the card has no last name.
10819
11674
  */
10820
- photo_updated?: boolean;
11675
+ last_name: string | null;
10821
11676
  }
10822
11677
  /**
10823
- * An environment. Production is
10824
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10825
- * environment has an `id` and type `environment`.
11678
+ * An environment, identified by name. Production is
11679
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11680
+ * (e.g. "Staging") looks the same shape, just with its own name.
10826
11681
  */
10827
11682
  interface Environment {
10828
- /**
10829
- * Null for Production.
10830
- */
10831
- id: string | null;
10832
- type: 'production' | 'environment';
10833
- name?: string;
11683
+ name: string;
11684
+ type: 'environment';
10834
11685
  }
10835
11686
  /**
10836
11687
  * The team member the event is about.
@@ -10892,7 +11743,7 @@ export interface WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
10892
11743
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10893
11744
  * describes the transition. Created and deleted events carry only the object that
10894
11745
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10895
- * only inside `change` and as Production's environment `id`.
11746
+ * only inside `change`.
10896
11747
  */
10897
11748
  data: WebhookSubscriptionRoutingHeadersClearedWebhookEvent.Data;
10898
11749
  /**
@@ -10923,7 +11774,7 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
10923
11774
  * `phone_number`, `team_member`) identify what changed; on update events `change`
10924
11775
  * describes the transition. Created and deleted events carry only the object that
10925
11776
  * was created or deleted. Fields are absent when they don't apply; `null` appears
10926
- * only inside `change` and as Production's environment `id`.
11777
+ * only inside `change`.
10927
11778
  */
10928
11779
  interface Data {
10929
11780
  /**
@@ -10957,8 +11808,9 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
10957
11808
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
10958
11809
  * expired and activated events never carry it. `null` means none: `to: null` means
10959
11810
  * cleared and `from: null` means first set. The value type depends on the event
10960
- * and is given in each event's description. `contact_card.updated` uses `name`
10961
- * instead of `from` and `to`.
11811
+ * and is given in each event's description. `contact_card.updated` uses
11812
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11813
+ * present only when that field changed.
10962
11814
  */
10963
11815
  change?: Data.Change;
10964
11816
  /**
@@ -10966,9 +11818,9 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
10966
11818
  */
10967
11819
  contact_card?: Data.ContactCard;
10968
11820
  /**
10969
- * An environment. Production is
10970
- * `{"id": null, "name": "Production", "type": "production"}`; every other
10971
- * environment has an `id` and type `environment`.
11821
+ * An environment, identified by name. Production is
11822
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11823
+ * (e.g. "Staging") looks the same shape, just with its own name.
10972
11824
  */
10973
11825
  environment?: Data.Environment;
10974
11826
  /**
@@ -11045,19 +11897,30 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
11045
11897
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11046
11898
  * expired and activated events never carry it. `null` means none: `to: null` means
11047
11899
  * cleared and `from: null` means first set. The value type depends on the event
11048
- * and is given in each event's description. `contact_card.updated` uses `name`
11049
- * instead of `from` and `to`.
11900
+ * and is given in each event's description. `contact_card.updated` uses
11901
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
11902
+ * present only when that field changed.
11050
11903
  */
11051
11904
  interface Change {
11905
+ /**
11906
+ * A single field's change, on `contact_card.updated`. Present only for the field
11907
+ * that changed.
11908
+ */
11909
+ first_name?: Change.FirstName;
11052
11910
  /**
11053
11911
  * The value before the change; null when there was none.
11054
11912
  */
11055
11913
  from?: unknown;
11056
11914
  /**
11057
- * A contact card name change. Only on `contact_card.updated`, when the name
11058
- * changed.
11915
+ * A single field's change, on `contact_card.updated`. Present only for the field
11916
+ * that changed.
11917
+ */
11918
+ image_url?: Change.ImageURL;
11919
+ /**
11920
+ * A single field's change, on `contact_card.updated`. Present only for the field
11921
+ * that changed.
11059
11922
  */
11060
- name?: Change.Name;
11923
+ last_name?: Change.LastName;
11061
11924
  /**
11062
11925
  * The value after the change; null when it was cleared.
11063
11926
  */
@@ -11065,16 +11928,44 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
11065
11928
  }
11066
11929
  namespace Change {
11067
11930
  /**
11068
- * A contact card name change. Only on `contact_card.updated`, when the name
11069
- * changed.
11931
+ * A single field's change, on `contact_card.updated`. Present only for the field
11932
+ * that changed.
11933
+ */
11934
+ interface FirstName {
11935
+ /**
11936
+ * The value before the change; null when the card had none.
11937
+ */
11938
+ from: string | null;
11939
+ /**
11940
+ * The value after the change; null when it was removed.
11941
+ */
11942
+ to: string | null;
11943
+ }
11944
+ /**
11945
+ * A single field's change, on `contact_card.updated`. Present only for the field
11946
+ * that changed.
11947
+ */
11948
+ interface ImageURL {
11949
+ /**
11950
+ * The value before the change; null when the card had none.
11951
+ */
11952
+ from: string | null;
11953
+ /**
11954
+ * The value after the change; null when it was removed.
11955
+ */
11956
+ to: string | null;
11957
+ }
11958
+ /**
11959
+ * A single field's change, on `contact_card.updated`. Present only for the field
11960
+ * that changed.
11070
11961
  */
11071
- interface Name {
11962
+ interface LastName {
11072
11963
  /**
11073
- * The name before the change; null when the card had no name.
11964
+ * The value before the change; null when the card had none.
11074
11965
  */
11075
11966
  from: string | null;
11076
11967
  /**
11077
- * The name after the change; null when it was removed.
11968
+ * The value after the change; null when it was removed.
11078
11969
  */
11079
11970
  to: string | null;
11080
11971
  }
@@ -11084,27 +11975,24 @@ export declare namespace WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
11084
11975
  */
11085
11976
  interface ContactCard {
11086
11977
  id: string;
11978
+ first_name: string;
11087
11979
  /**
11088
- * Display name. Absent when the card has no name.
11980
+ * Null when the card has no photo.
11089
11981
  */
11090
- name?: string;
11982
+ image_url: string | null;
11091
11983
  /**
11092
- * True when the photo changed. Only on `contact_card.updated`.
11984
+ * Null when the card has no last name.
11093
11985
  */
11094
- photo_updated?: boolean;
11986
+ last_name: string | null;
11095
11987
  }
11096
11988
  /**
11097
- * An environment. Production is
11098
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11099
- * environment has an `id` and type `environment`.
11989
+ * An environment, identified by name. Production is
11990
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
11991
+ * (e.g. "Staging") looks the same shape, just with its own name.
11100
11992
  */
11101
11993
  interface Environment {
11102
- /**
11103
- * Null for Production.
11104
- */
11105
- id: string | null;
11106
- type: 'production' | 'environment';
11107
- name?: string;
11994
+ name: string;
11995
+ type: 'environment';
11108
11996
  }
11109
11997
  /**
11110
11998
  * The team member the event is about.
@@ -11166,7 +12054,7 @@ export interface TeamMemberAddedWebhookEvent {
11166
12054
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11167
12055
  * describes the transition. Created and deleted events carry only the object that
11168
12056
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11169
- * only inside `change` and as Production's environment `id`.
12057
+ * only inside `change`.
11170
12058
  */
11171
12059
  data: TeamMemberAddedWebhookEvent.Data;
11172
12060
  /**
@@ -11197,7 +12085,7 @@ export declare namespace TeamMemberAddedWebhookEvent {
11197
12085
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11198
12086
  * describes the transition. Created and deleted events carry only the object that
11199
12087
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11200
- * only inside `change` and as Production's environment `id`.
12088
+ * only inside `change`.
11201
12089
  */
11202
12090
  interface Data {
11203
12091
  /**
@@ -11231,8 +12119,9 @@ export declare namespace TeamMemberAddedWebhookEvent {
11231
12119
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11232
12120
  * expired and activated events never carry it. `null` means none: `to: null` means
11233
12121
  * cleared and `from: null` means first set. The value type depends on the event
11234
- * and is given in each event's description. `contact_card.updated` uses `name`
11235
- * instead of `from` and `to`.
12122
+ * and is given in each event's description. `contact_card.updated` uses
12123
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12124
+ * present only when that field changed.
11236
12125
  */
11237
12126
  change?: Data.Change;
11238
12127
  /**
@@ -11240,9 +12129,9 @@ export declare namespace TeamMemberAddedWebhookEvent {
11240
12129
  */
11241
12130
  contact_card?: Data.ContactCard;
11242
12131
  /**
11243
- * An environment. Production is
11244
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11245
- * environment has an `id` and type `environment`.
12132
+ * An environment, identified by name. Production is
12133
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12134
+ * (e.g. "Staging") looks the same shape, just with its own name.
11246
12135
  */
11247
12136
  environment?: Data.Environment;
11248
12137
  /**
@@ -11319,19 +12208,30 @@ export declare namespace TeamMemberAddedWebhookEvent {
11319
12208
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11320
12209
  * expired and activated events never carry it. `null` means none: `to: null` means
11321
12210
  * cleared and `from: null` means first set. The value type depends on the event
11322
- * and is given in each event's description. `contact_card.updated` uses `name`
11323
- * instead of `from` and `to`.
12211
+ * and is given in each event's description. `contact_card.updated` uses
12212
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12213
+ * present only when that field changed.
11324
12214
  */
11325
12215
  interface Change {
12216
+ /**
12217
+ * A single field's change, on `contact_card.updated`. Present only for the field
12218
+ * that changed.
12219
+ */
12220
+ first_name?: Change.FirstName;
11326
12221
  /**
11327
12222
  * The value before the change; null when there was none.
11328
12223
  */
11329
12224
  from?: unknown;
11330
12225
  /**
11331
- * A contact card name change. Only on `contact_card.updated`, when the name
11332
- * changed.
12226
+ * A single field's change, on `contact_card.updated`. Present only for the field
12227
+ * that changed.
12228
+ */
12229
+ image_url?: Change.ImageURL;
12230
+ /**
12231
+ * A single field's change, on `contact_card.updated`. Present only for the field
12232
+ * that changed.
11333
12233
  */
11334
- name?: Change.Name;
12234
+ last_name?: Change.LastName;
11335
12235
  /**
11336
12236
  * The value after the change; null when it was cleared.
11337
12237
  */
@@ -11339,16 +12239,44 @@ export declare namespace TeamMemberAddedWebhookEvent {
11339
12239
  }
11340
12240
  namespace Change {
11341
12241
  /**
11342
- * A contact card name change. Only on `contact_card.updated`, when the name
11343
- * changed.
12242
+ * A single field's change, on `contact_card.updated`. Present only for the field
12243
+ * that changed.
12244
+ */
12245
+ interface FirstName {
12246
+ /**
12247
+ * The value before the change; null when the card had none.
12248
+ */
12249
+ from: string | null;
12250
+ /**
12251
+ * The value after the change; null when it was removed.
12252
+ */
12253
+ to: string | null;
12254
+ }
12255
+ /**
12256
+ * A single field's change, on `contact_card.updated`. Present only for the field
12257
+ * that changed.
12258
+ */
12259
+ interface ImageURL {
12260
+ /**
12261
+ * The value before the change; null when the card had none.
12262
+ */
12263
+ from: string | null;
12264
+ /**
12265
+ * The value after the change; null when it was removed.
12266
+ */
12267
+ to: string | null;
12268
+ }
12269
+ /**
12270
+ * A single field's change, on `contact_card.updated`. Present only for the field
12271
+ * that changed.
11344
12272
  */
11345
- interface Name {
12273
+ interface LastName {
11346
12274
  /**
11347
- * The name before the change; null when the card had no name.
12275
+ * The value before the change; null when the card had none.
11348
12276
  */
11349
12277
  from: string | null;
11350
12278
  /**
11351
- * The name after the change; null when it was removed.
12279
+ * The value after the change; null when it was removed.
11352
12280
  */
11353
12281
  to: string | null;
11354
12282
  }
@@ -11358,27 +12286,24 @@ export declare namespace TeamMemberAddedWebhookEvent {
11358
12286
  */
11359
12287
  interface ContactCard {
11360
12288
  id: string;
12289
+ first_name: string;
11361
12290
  /**
11362
- * Display name. Absent when the card has no name.
12291
+ * Null when the card has no photo.
11363
12292
  */
11364
- name?: string;
12293
+ image_url: string | null;
11365
12294
  /**
11366
- * True when the photo changed. Only on `contact_card.updated`.
12295
+ * Null when the card has no last name.
11367
12296
  */
11368
- photo_updated?: boolean;
12297
+ last_name: string | null;
11369
12298
  }
11370
12299
  /**
11371
- * An environment. Production is
11372
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11373
- * environment has an `id` and type `environment`.
12300
+ * An environment, identified by name. Production is
12301
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12302
+ * (e.g. "Staging") looks the same shape, just with its own name.
11374
12303
  */
11375
12304
  interface Environment {
11376
- /**
11377
- * Null for Production.
11378
- */
11379
- id: string | null;
11380
- type: 'production' | 'environment';
11381
- name?: string;
12305
+ name: string;
12306
+ type: 'environment';
11382
12307
  }
11383
12308
  /**
11384
12309
  * The team member the event is about.
@@ -11440,7 +12365,7 @@ export interface TeamMemberSignedInWebhookEvent {
11440
12365
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11441
12366
  * describes the transition. Created and deleted events carry only the object that
11442
12367
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11443
- * only inside `change` and as Production's environment `id`.
12368
+ * only inside `change`.
11444
12369
  */
11445
12370
  data: TeamMemberSignedInWebhookEvent.Data;
11446
12371
  /**
@@ -11471,7 +12396,7 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11471
12396
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11472
12397
  * describes the transition. Created and deleted events carry only the object that
11473
12398
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11474
- * only inside `change` and as Production's environment `id`.
12399
+ * only inside `change`.
11475
12400
  */
11476
12401
  interface Data {
11477
12402
  /**
@@ -11505,8 +12430,9 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11505
12430
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11506
12431
  * expired and activated events never carry it. `null` means none: `to: null` means
11507
12432
  * cleared and `from: null` means first set. The value type depends on the event
11508
- * and is given in each event's description. `contact_card.updated` uses `name`
11509
- * instead of `from` and `to`.
12433
+ * and is given in each event's description. `contact_card.updated` uses
12434
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12435
+ * present only when that field changed.
11510
12436
  */
11511
12437
  change?: Data.Change;
11512
12438
  /**
@@ -11514,9 +12440,9 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11514
12440
  */
11515
12441
  contact_card?: Data.ContactCard;
11516
12442
  /**
11517
- * An environment. Production is
11518
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11519
- * environment has an `id` and type `environment`.
12443
+ * An environment, identified by name. Production is
12444
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12445
+ * (e.g. "Staging") looks the same shape, just with its own name.
11520
12446
  */
11521
12447
  environment?: Data.Environment;
11522
12448
  /**
@@ -11593,19 +12519,30 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11593
12519
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11594
12520
  * expired and activated events never carry it. `null` means none: `to: null` means
11595
12521
  * cleared and `from: null` means first set. The value type depends on the event
11596
- * and is given in each event's description. `contact_card.updated` uses `name`
11597
- * instead of `from` and `to`.
12522
+ * and is given in each event's description. `contact_card.updated` uses
12523
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12524
+ * present only when that field changed.
11598
12525
  */
11599
12526
  interface Change {
12527
+ /**
12528
+ * A single field's change, on `contact_card.updated`. Present only for the field
12529
+ * that changed.
12530
+ */
12531
+ first_name?: Change.FirstName;
11600
12532
  /**
11601
12533
  * The value before the change; null when there was none.
11602
12534
  */
11603
12535
  from?: unknown;
11604
12536
  /**
11605
- * A contact card name change. Only on `contact_card.updated`, when the name
11606
- * changed.
12537
+ * A single field's change, on `contact_card.updated`. Present only for the field
12538
+ * that changed.
11607
12539
  */
11608
- name?: Change.Name;
12540
+ image_url?: Change.ImageURL;
12541
+ /**
12542
+ * A single field's change, on `contact_card.updated`. Present only for the field
12543
+ * that changed.
12544
+ */
12545
+ last_name?: Change.LastName;
11609
12546
  /**
11610
12547
  * The value after the change; null when it was cleared.
11611
12548
  */
@@ -11613,16 +12550,44 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11613
12550
  }
11614
12551
  namespace Change {
11615
12552
  /**
11616
- * A contact card name change. Only on `contact_card.updated`, when the name
11617
- * changed.
12553
+ * A single field's change, on `contact_card.updated`. Present only for the field
12554
+ * that changed.
12555
+ */
12556
+ interface FirstName {
12557
+ /**
12558
+ * The value before the change; null when the card had none.
12559
+ */
12560
+ from: string | null;
12561
+ /**
12562
+ * The value after the change; null when it was removed.
12563
+ */
12564
+ to: string | null;
12565
+ }
12566
+ /**
12567
+ * A single field's change, on `contact_card.updated`. Present only for the field
12568
+ * that changed.
12569
+ */
12570
+ interface ImageURL {
12571
+ /**
12572
+ * The value before the change; null when the card had none.
12573
+ */
12574
+ from: string | null;
12575
+ /**
12576
+ * The value after the change; null when it was removed.
12577
+ */
12578
+ to: string | null;
12579
+ }
12580
+ /**
12581
+ * A single field's change, on `contact_card.updated`. Present only for the field
12582
+ * that changed.
11618
12583
  */
11619
- interface Name {
12584
+ interface LastName {
11620
12585
  /**
11621
- * The name before the change; null when the card had no name.
12586
+ * The value before the change; null when the card had none.
11622
12587
  */
11623
12588
  from: string | null;
11624
12589
  /**
11625
- * The name after the change; null when it was removed.
12590
+ * The value after the change; null when it was removed.
11626
12591
  */
11627
12592
  to: string | null;
11628
12593
  }
@@ -11632,27 +12597,24 @@ export declare namespace TeamMemberSignedInWebhookEvent {
11632
12597
  */
11633
12598
  interface ContactCard {
11634
12599
  id: string;
12600
+ first_name: string;
11635
12601
  /**
11636
- * Display name. Absent when the card has no name.
12602
+ * Null when the card has no photo.
11637
12603
  */
11638
- name?: string;
12604
+ image_url: string | null;
11639
12605
  /**
11640
- * True when the photo changed. Only on `contact_card.updated`.
12606
+ * Null when the card has no last name.
11641
12607
  */
11642
- photo_updated?: boolean;
12608
+ last_name: string | null;
11643
12609
  }
11644
12610
  /**
11645
- * An environment. Production is
11646
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11647
- * environment has an `id` and type `environment`.
12611
+ * An environment, identified by name. Production is
12612
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12613
+ * (e.g. "Staging") looks the same shape, just with its own name.
11648
12614
  */
11649
12615
  interface Environment {
11650
- /**
11651
- * Null for Production.
11652
- */
11653
- id: string | null;
11654
- type: 'production' | 'environment';
11655
- name?: string;
12616
+ name: string;
12617
+ type: 'environment';
11656
12618
  }
11657
12619
  /**
11658
12620
  * The team member the event is about.
@@ -11714,7 +12676,7 @@ export interface TeamMemberSignedOutWebhookEvent {
11714
12676
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11715
12677
  * describes the transition. Created and deleted events carry only the object that
11716
12678
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11717
- * only inside `change` and as Production's environment `id`.
12679
+ * only inside `change`.
11718
12680
  */
11719
12681
  data: TeamMemberSignedOutWebhookEvent.Data;
11720
12682
  /**
@@ -11745,7 +12707,7 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11745
12707
  * `phone_number`, `team_member`) identify what changed; on update events `change`
11746
12708
  * describes the transition. Created and deleted events carry only the object that
11747
12709
  * was created or deleted. Fields are absent when they don't apply; `null` appears
11748
- * only inside `change` and as Production's environment `id`.
12710
+ * only inside `change`.
11749
12711
  */
11750
12712
  interface Data {
11751
12713
  /**
@@ -11779,8 +12741,9 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11779
12741
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11780
12742
  * expired and activated events never carry it. `null` means none: `to: null` means
11781
12743
  * cleared and `from: null` means first set. The value type depends on the event
11782
- * and is given in each event's description. `contact_card.updated` uses `name`
11783
- * instead of `from` and `to`.
12744
+ * and is given in each event's description. `contact_card.updated` uses
12745
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12746
+ * present only when that field changed.
11784
12747
  */
11785
12748
  change?: Data.Change;
11786
12749
  /**
@@ -11788,9 +12751,9 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11788
12751
  */
11789
12752
  contact_card?: Data.ContactCard;
11790
12753
  /**
11791
- * An environment. Production is
11792
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11793
- * environment has an `id` and type `environment`.
12754
+ * An environment, identified by name. Production is
12755
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12756
+ * (e.g. "Staging") looks the same shape, just with its own name.
11794
12757
  */
11795
12758
  environment?: Data.Environment;
11796
12759
  /**
@@ -11867,19 +12830,30 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11867
12830
  * `webhook_subscription.routing_headers_*`); created, deleted, enabled, disabled,
11868
12831
  * expired and activated events never carry it. `null` means none: `to: null` means
11869
12832
  * cleared and `from: null` means first set. The value type depends on the event
11870
- * and is given in each event's description. `contact_card.updated` uses `name`
11871
- * instead of `from` and `to`.
12833
+ * and is given in each event's description. `contact_card.updated` uses
12834
+ * `first_name`, `last_name` and `image_url` instead of `from` and `to`, each
12835
+ * present only when that field changed.
11872
12836
  */
11873
12837
  interface Change {
12838
+ /**
12839
+ * A single field's change, on `contact_card.updated`. Present only for the field
12840
+ * that changed.
12841
+ */
12842
+ first_name?: Change.FirstName;
11874
12843
  /**
11875
12844
  * The value before the change; null when there was none.
11876
12845
  */
11877
12846
  from?: unknown;
11878
12847
  /**
11879
- * A contact card name change. Only on `contact_card.updated`, when the name
11880
- * changed.
12848
+ * A single field's change, on `contact_card.updated`. Present only for the field
12849
+ * that changed.
12850
+ */
12851
+ image_url?: Change.ImageURL;
12852
+ /**
12853
+ * A single field's change, on `contact_card.updated`. Present only for the field
12854
+ * that changed.
11881
12855
  */
11882
- name?: Change.Name;
12856
+ last_name?: Change.LastName;
11883
12857
  /**
11884
12858
  * The value after the change; null when it was cleared.
11885
12859
  */
@@ -11887,16 +12861,44 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11887
12861
  }
11888
12862
  namespace Change {
11889
12863
  /**
11890
- * A contact card name change. Only on `contact_card.updated`, when the name
11891
- * changed.
12864
+ * A single field's change, on `contact_card.updated`. Present only for the field
12865
+ * that changed.
12866
+ */
12867
+ interface FirstName {
12868
+ /**
12869
+ * The value before the change; null when the card had none.
12870
+ */
12871
+ from: string | null;
12872
+ /**
12873
+ * The value after the change; null when it was removed.
12874
+ */
12875
+ to: string | null;
12876
+ }
12877
+ /**
12878
+ * A single field's change, on `contact_card.updated`. Present only for the field
12879
+ * that changed.
12880
+ */
12881
+ interface ImageURL {
12882
+ /**
12883
+ * The value before the change; null when the card had none.
12884
+ */
12885
+ from: string | null;
12886
+ /**
12887
+ * The value after the change; null when it was removed.
12888
+ */
12889
+ to: string | null;
12890
+ }
12891
+ /**
12892
+ * A single field's change, on `contact_card.updated`. Present only for the field
12893
+ * that changed.
11892
12894
  */
11893
- interface Name {
12895
+ interface LastName {
11894
12896
  /**
11895
- * The name before the change; null when the card had no name.
12897
+ * The value before the change; null when the card had none.
11896
12898
  */
11897
12899
  from: string | null;
11898
12900
  /**
11899
- * The name after the change; null when it was removed.
12901
+ * The value after the change; null when it was removed.
11900
12902
  */
11901
12903
  to: string | null;
11902
12904
  }
@@ -11906,27 +12908,24 @@ export declare namespace TeamMemberSignedOutWebhookEvent {
11906
12908
  */
11907
12909
  interface ContactCard {
11908
12910
  id: string;
12911
+ first_name: string;
11909
12912
  /**
11910
- * Display name. Absent when the card has no name.
12913
+ * Null when the card has no photo.
11911
12914
  */
11912
- name?: string;
12915
+ image_url: string | null;
11913
12916
  /**
11914
- * True when the photo changed. Only on `contact_card.updated`.
12917
+ * Null when the card has no last name.
11915
12918
  */
11916
- photo_updated?: boolean;
12919
+ last_name: string | null;
11917
12920
  }
11918
12921
  /**
11919
- * An environment. Production is
11920
- * `{"id": null, "name": "Production", "type": "production"}`; every other
11921
- * environment has an `id` and type `environment`.
12922
+ * An environment, identified by name. Production is
12923
+ * `{"name": "Production", "type": "environment"}`; a named environment you created
12924
+ * (e.g. "Staging") looks the same shape, just with its own name.
11922
12925
  */
11923
12926
  interface Environment {
11924
- /**
11925
- * Null for Production.
11926
- */
11927
- id: string | null;
11928
- type: 'production' | 'environment';
11929
- name?: string;
12927
+ name: string;
12928
+ type: 'environment';
11930
12929
  }
11931
12930
  /**
11932
12931
  * The team member the event is about.