@seamapi/types 1.1074.0 → 1.1075.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.
|
@@ -59709,6 +59709,209 @@ const openapi = {
|
|
|
59709
59709
|
'x-undocumented': 'Internal endpoint for inbound provider webhooks',
|
|
59710
59710
|
},
|
|
59711
59711
|
},
|
|
59712
|
+
'/seam/webhooks/v1/preview_event': {
|
|
59713
|
+
post: {
|
|
59714
|
+
description: 'Returns the event payload that `/seam/webhooks/v1/simulate_event` would send for a specified event type, without creating an event or delivering a [webhook](https://docs.seam.co/developer-tools/webhooks). Only applicable within [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).\n\nSeam fills in the payload the same way that `simulate_event` does, using real resources from the workspace where it can and placeholder values otherwise, and reports which fields it filled in each way. Provide `payload` to set any field explicitly.',
|
|
59715
|
+
operationId: 'seamWebhooksV1PreviewEventPost',
|
|
59716
|
+
requestBody: {
|
|
59717
|
+
content: {
|
|
59718
|
+
'application/json': {
|
|
59719
|
+
schema: {
|
|
59720
|
+
properties: {
|
|
59721
|
+
event_type: {
|
|
59722
|
+
description: 'Type of the event that you want to preview.',
|
|
59723
|
+
enum: [
|
|
59724
|
+
'access_code.created',
|
|
59725
|
+
'access_code.changed',
|
|
59726
|
+
'access_code.name_changed',
|
|
59727
|
+
'access_code.code_changed',
|
|
59728
|
+
'access_code.time_frame_changed',
|
|
59729
|
+
'access_code.mutations_requested',
|
|
59730
|
+
'access_code.scheduled_on_device',
|
|
59731
|
+
'access_code.set_on_device',
|
|
59732
|
+
'access_code.removed_from_device',
|
|
59733
|
+
'access_code.delay_in_setting_on_device',
|
|
59734
|
+
'access_code.failed_to_set_on_device',
|
|
59735
|
+
'access_code.issued',
|
|
59736
|
+
'access_code.delay_in_issuing',
|
|
59737
|
+
'access_code.failed_to_issue',
|
|
59738
|
+
'access_code.failed_to_update',
|
|
59739
|
+
'access_code.failed_to_expire',
|
|
59740
|
+
'access_code.deleted',
|
|
59741
|
+
'access_code.delay_in_removing_from_device',
|
|
59742
|
+
'access_code.failed_to_remove_from_device',
|
|
59743
|
+
'access_code.modified_external_to_seam',
|
|
59744
|
+
'access_code.deleted_external_to_seam',
|
|
59745
|
+
'access_code.backup_access_code_pulled',
|
|
59746
|
+
'access_code.unmanaged.converted_to_managed',
|
|
59747
|
+
'access_code.unmanaged.failed_to_convert_to_managed',
|
|
59748
|
+
'access_code.unmanaged.created',
|
|
59749
|
+
'access_code.unmanaged.removed',
|
|
59750
|
+
'access_grant.created',
|
|
59751
|
+
'access_grant.deleted',
|
|
59752
|
+
'access_grant.access_granted_to_all_doors',
|
|
59753
|
+
'access_grant.access_granted_to_door',
|
|
59754
|
+
'access_grant.access_to_door_lost',
|
|
59755
|
+
'access_grant.access_times_changed',
|
|
59756
|
+
'access_grant.could_not_create_requested_access_methods',
|
|
59757
|
+
'access_method.issued',
|
|
59758
|
+
'access_method.revoked',
|
|
59759
|
+
'access_method.card_encoding_required',
|
|
59760
|
+
'access_method.deleted',
|
|
59761
|
+
'access_method.reissued',
|
|
59762
|
+
'access_method.created',
|
|
59763
|
+
'access_method.delay_in_issuing',
|
|
59764
|
+
'access_method.failed_to_issue',
|
|
59765
|
+
'acs_system.connected',
|
|
59766
|
+
'acs_system.added',
|
|
59767
|
+
'acs_system.disconnected',
|
|
59768
|
+
'acs_credential.deleted',
|
|
59769
|
+
'acs_credential.issued',
|
|
59770
|
+
'acs_credential.reissued',
|
|
59771
|
+
'acs_credential.invalidated',
|
|
59772
|
+
'acs_user.created',
|
|
59773
|
+
'acs_user.deleted',
|
|
59774
|
+
'acs_encoder.added',
|
|
59775
|
+
'acs_encoder.removed',
|
|
59776
|
+
'acs_access_group.deleted',
|
|
59777
|
+
'acs_entrance.added',
|
|
59778
|
+
'acs_entrance.removed',
|
|
59779
|
+
'client_session.deleted',
|
|
59780
|
+
'connected_account.connected',
|
|
59781
|
+
'connected_account.created',
|
|
59782
|
+
'connected_account.successful_login',
|
|
59783
|
+
'connected_account.disconnected',
|
|
59784
|
+
'connected_account.completed_first_sync',
|
|
59785
|
+
'connected_account.deleted',
|
|
59786
|
+
'connected_account.completed_first_sync_after_reconnection',
|
|
59787
|
+
'connected_account.reauthorization_requested',
|
|
59788
|
+
'action_attempt.lock_door.succeeded',
|
|
59789
|
+
'action_attempt.lock_door.failed',
|
|
59790
|
+
'action_attempt.unlock_door.succeeded',
|
|
59791
|
+
'action_attempt.unlock_door.failed',
|
|
59792
|
+
'action_attempt.simulate_keypad_code_entry.succeeded',
|
|
59793
|
+
'action_attempt.simulate_keypad_code_entry.failed',
|
|
59794
|
+
'action_attempt.simulate_manual_lock_via_keypad.succeeded',
|
|
59795
|
+
'action_attempt.simulate_manual_lock_via_keypad.failed',
|
|
59796
|
+
'connect_webview.login_succeeded',
|
|
59797
|
+
'connect_webview.login_failed',
|
|
59798
|
+
'device.connected',
|
|
59799
|
+
'device.added',
|
|
59800
|
+
'device.converted_to_unmanaged',
|
|
59801
|
+
'device.unmanaged.converted_to_managed',
|
|
59802
|
+
'device.unmanaged.connected',
|
|
59803
|
+
'device.disconnected',
|
|
59804
|
+
'device.unmanaged.disconnected',
|
|
59805
|
+
'device.tampered',
|
|
59806
|
+
'device.low_battery',
|
|
59807
|
+
'device.battery_status_changed',
|
|
59808
|
+
'device.removed',
|
|
59809
|
+
'device.deleted',
|
|
59810
|
+
'device.third_party_integration_detected',
|
|
59811
|
+
'device.third_party_integration_no_longer_detected',
|
|
59812
|
+
'device.salto.privacy_mode_activated',
|
|
59813
|
+
'device.salto.privacy_mode_deactivated',
|
|
59814
|
+
'device.connection_became_flaky',
|
|
59815
|
+
'device.connection_stabilized',
|
|
59816
|
+
'device.error.subscription_required',
|
|
59817
|
+
'device.error.subscription_required.resolved',
|
|
59818
|
+
'device.accessory_keypad_connected',
|
|
59819
|
+
'device.accessory_keypad_disconnected',
|
|
59820
|
+
'noise_sensor.noise_threshold_triggered',
|
|
59821
|
+
'lock.locked',
|
|
59822
|
+
'lock.unlocked',
|
|
59823
|
+
'lock.access_denied',
|
|
59824
|
+
'thermostat.climate_preset_activated',
|
|
59825
|
+
'thermostat.manually_adjusted',
|
|
59826
|
+
'thermostat.temperature_threshold_exceeded',
|
|
59827
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
59828
|
+
'thermostat.temperature_reached_set_point',
|
|
59829
|
+
'thermostat.temperature_changed',
|
|
59830
|
+
'device.name_changed',
|
|
59831
|
+
'camera.activated',
|
|
59832
|
+
'device.doorbell_rang',
|
|
59833
|
+
'enrollment_automation.deleted',
|
|
59834
|
+
'phone.deactivated',
|
|
59835
|
+
'space.device_membership_changed',
|
|
59836
|
+
'space.created',
|
|
59837
|
+
'space.deleted',
|
|
59838
|
+
],
|
|
59839
|
+
type: 'string',
|
|
59840
|
+
},
|
|
59841
|
+
payload: {
|
|
59842
|
+
additionalProperties: {},
|
|
59843
|
+
default: {},
|
|
59844
|
+
description: 'Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in.',
|
|
59845
|
+
type: 'object',
|
|
59846
|
+
},
|
|
59847
|
+
},
|
|
59848
|
+
required: ['event_type'],
|
|
59849
|
+
type: 'object',
|
|
59850
|
+
},
|
|
59851
|
+
},
|
|
59852
|
+
},
|
|
59853
|
+
},
|
|
59854
|
+
responses: {
|
|
59855
|
+
'200': {
|
|
59856
|
+
content: {
|
|
59857
|
+
'application/json': {
|
|
59858
|
+
schema: {
|
|
59859
|
+
properties: {
|
|
59860
|
+
ok: { type: 'boolean' },
|
|
59861
|
+
payload: {
|
|
59862
|
+
additionalProperties: {
|
|
59863
|
+
$ref: '#/components/schemas/access_code',
|
|
59864
|
+
},
|
|
59865
|
+
description: 'Event payload that `simulate_event` would send for this event type.',
|
|
59866
|
+
type: 'object',
|
|
59867
|
+
},
|
|
59868
|
+
resolved_fields: {
|
|
59869
|
+
description: 'Payload fields that Seam set to a real resource in your workspace.',
|
|
59870
|
+
items: { type: 'string' },
|
|
59871
|
+
type: 'array',
|
|
59872
|
+
},
|
|
59873
|
+
subscribed_webhook_count: {
|
|
59874
|
+
description: 'Number of webhooks in your workspace that are subscribed to this event type and would therefore receive this event. If this is `0`, no webhook receives the event. `null` if Seam could not determine the count.',
|
|
59875
|
+
format: 'float',
|
|
59876
|
+
nullable: true,
|
|
59877
|
+
type: 'number',
|
|
59878
|
+
},
|
|
59879
|
+
synthesized_fields: {
|
|
59880
|
+
description: 'Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one.',
|
|
59881
|
+
items: { type: 'string' },
|
|
59882
|
+
type: 'array',
|
|
59883
|
+
},
|
|
59884
|
+
},
|
|
59885
|
+
required: [
|
|
59886
|
+
'payload',
|
|
59887
|
+
'resolved_fields',
|
|
59888
|
+
'subscribed_webhook_count',
|
|
59889
|
+
'synthesized_fields',
|
|
59890
|
+
'ok',
|
|
59891
|
+
],
|
|
59892
|
+
type: 'object',
|
|
59893
|
+
},
|
|
59894
|
+
},
|
|
59895
|
+
},
|
|
59896
|
+
description: 'OK',
|
|
59897
|
+
},
|
|
59898
|
+
'400': { description: 'Bad Request' },
|
|
59899
|
+
'401': { description: 'Unauthorized' },
|
|
59900
|
+
},
|
|
59901
|
+
security: [
|
|
59902
|
+
{ api_key: [] },
|
|
59903
|
+
{ pat_with_workspace: [] },
|
|
59904
|
+
{ console_session_with_workspace: [] },
|
|
59905
|
+
],
|
|
59906
|
+
summary: '/seam/webhooks/v1/preview_event',
|
|
59907
|
+
tags: ['/webhooks'],
|
|
59908
|
+
'x-fern-sdk-group-name': ['seam', 'webhooks', 'v1'],
|
|
59909
|
+
'x-fern-sdk-method-name': 'preview_event',
|
|
59910
|
+
'x-response-key': null,
|
|
59911
|
+
'x-title': 'Preview a Simulated Event',
|
|
59912
|
+
'x-undocumented': 'Unreleased. Seam Wizard and internal webhook testing only.',
|
|
59913
|
+
},
|
|
59914
|
+
},
|
|
59712
59915
|
'/seam/webhooks/v1/simulate_event': {
|
|
59713
59916
|
post: {
|
|
59714
59917
|
description: 'Creates an event of a specified type and delivers it to every [webhook](https://docs.seam.co/developer-tools/webhooks) in the workspace that is subscribed to that event type, so that a developer can test their webhook endpoint against any event Seam can send. Only applicable within [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).\n\nSeam fills in the event payload, using real resources from the workspace where it can and placeholder values otherwise. Provide `payload` to set any field explicitly.\n\nThis creates a real event and delivers a real webhook, but does not change the state of any device or other resource. For example, simulating a `lock.unlocked` event does not unlock the lock.',
|