Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions fourfour/amp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
specVersion: 1.0.0
integrations:
- name: fourFour-read
displayName: FourFour-integration
provider: fourFour
read:
objects:
- objectName: Chats
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL comment for the Chats object is less indented than the surrounding object properties, which makes the YAML harder to read and can look like it applies to a different level. Align the comment indentation with the other fields in the object block.

Suggested change
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get

Copilot uses AI. Check for mistakes.
requiredFields:
- fieldName: id
- fieldName: created_at
optionalFields:
- fieldName: filtered_at
- fieldName: user_id
backfill:
defaultPeriod:
fullHistory: true


- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
Comment on lines +28 to +30

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requiredFields sequence items under ChatMessages aren’t indented under requiredFields:. In YAML, list items must be more indented than the mapping key, otherwise the file may be invalid or the fields won’t be associated with requiredFields. Indent the - fieldName: ... lines to match the pattern used for Chats above.

Suggested change
- fieldName: content
- fieldName: created_at
- fieldName: id
- fieldName: content
- fieldName: created_at
- fieldName: id

Copilot uses AI. Check for mistakes.
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true


Comment on lines +22 to +36

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are trailing spaces on the - fieldName: id line, and there’s also inconsistent blank-line/whitespace usage in this block. Please trim trailing whitespace to avoid noisy diffs and formatter/linter issues.

Suggested change
- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true
- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true

Copilot uses AI. Check for mistakes.
- objectName: Labels
destination: fourFourWebhook
# https://fourfour.ai/developers/api#tag/Labels/paths/~1Labels/get
schedule: "*/10 * * * *"
requiredFields:
- fieldName: id
- fieldName: updated
optionalFieldsAuto: all

proxy:
enabled: true
Comment on lines +46 to +47

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxy is indented under read here, but in other samples it’s a sibling of read/write at the integration level. With the current indentation it will be parsed as read.proxy, which likely won’t be recognized by the amp schema. Outdent proxy: (and enabled:) to align with read:.

Suggested change
proxy:
enabled: true
proxy:
enabled: true

Copilot uses AI. Check for mistakes.