diff --git a/api/api.yaml b/api/api.yaml index 405656d..7c2921b 100644 --- a/api/api.yaml +++ b/api/api.yaml @@ -6572,6 +6572,7 @@ components: - "connection.created" - "connection.error" - "connection.refreshed" + - "connection.updated" - "connection.deleted" - "installation.created" - "installation.updated" diff --git a/api/generated/api.bundled.json b/api/generated/api.bundled.json index e9d81e5..4af3a03 100644 --- a/api/generated/api.bundled.json +++ b/api/generated/api.bundled.json @@ -9526,6 +9526,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -11606,6 +11607,12 @@ }, "accessTokenOpts": { "$ref": "#/components/schemas/AccessTokenOpts" + }, + "keepAliveIntervalHours": { + "type": "integer", + "description": "How many hours between proactive token keep-alive refreshes for this provider.\nToken-manager adds a random stagger offset on top. If absent, defaults to 24.\n", + "example": 120, + "x-go-type-skip-optional-pointer": true } } }, diff --git a/api/generated/api.json b/api/generated/api.json index 3462c62..79d9e5d 100644 --- a/api/generated/api.json +++ b/api/generated/api.json @@ -59517,6 +59517,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -59575,6 +59576,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -60245,6 +60247,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -60289,6 +60292,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -75052,6 +75056,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", @@ -75092,6 +75097,7 @@ "connection.created", "connection.error", "connection.refreshed", + "connection.updated", "connection.deleted", "installation.created", "installation.updated", diff --git a/notifications/generated/notifications.json b/notifications/generated/notifications.json index f0431cc..308936a 100644 --- a/notifications/generated/notifications.json +++ b/notifications/generated/notifications.json @@ -1006,7 +1006,7 @@ }, "ConnectionData": { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", @@ -1055,7 +1055,7 @@ "allOf": [ { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", @@ -2254,7 +2254,7 @@ }, "data": { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", @@ -2320,7 +2320,7 @@ "allOf": [ { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", @@ -2412,7 +2412,69 @@ }, "data": { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", + "type": "object", + "required": [ + "projectId", + "connectionId", + "provider", + "groupRef", + "consumerRef", + "consumerName" + ], + "properties": { + "projectId": { + "type": "string", + "description": "The Ampersand Project ID.", + "example": "550e8400-e29b-41d4-a716-446655440000" + }, + "connectionId": { + "type": "string", + "description": "The ID of the connection.", + "example": "550e8400-e29b-41d4-a716-446655440000" + }, + "provider": { + "type": "string", + "description": "The SaaS API that we are integrating with.", + "example": "salesforce" + }, + "groupRef": { + "type": "string", + "description": "The ID that your app uses to identify the group of users.", + "example": "customer-group-ref" + }, + "consumerRef": { + "type": "string", + "description": "The reference ID of the consumer.", + "example": "user-123" + }, + "consumerName": { + "type": "string", + "description": "The name of the consumer.", + "example": "John Doe" + } + } + } + } + }, + "ConnectionUpdatedNotificationPayload": { + "title": "Connection Updated Notification Payload", + "description": "Payload structure for connection.updated notifications sent to webhook destinations.\nFor Kinesis destinations, only the `data` object is sent.\n", + "type": "object", + "required": [ + "notificationType", + "data" + ], + "properties": { + "notificationType": { + "type": "string", + "enum": [ + "connection.updated" + ] + }, + "data": { + "title": "Connection Data", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", @@ -2474,7 +2536,7 @@ }, "data": { "title": "Connection Data", - "description": "Data payload for connection.created, connection.refreshed, and connection.deleted notifications.", + "description": "Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications.", "type": "object", "required": [ "projectId", diff --git a/notifications/notifications.yaml b/notifications/notifications.yaml index 83cf5e4..c8ff823 100644 --- a/notifications/notifications.yaml +++ b/notifications/notifications.yaml @@ -286,7 +286,7 @@ components: # Connection event data ConnectionData: title: Connection Data - description: Data payload for connection.created, connection.refreshed, and connection.deleted notifications. + description: Data payload for connection.created, connection.refreshed, connection.updated, and connection.deleted notifications. type: object required: - projectId @@ -567,6 +567,22 @@ components: data: $ref: '#/components/schemas/ConnectionData' + ConnectionUpdatedNotificationPayload: + title: Connection Updated Notification Payload + description: | + Payload structure for connection.updated notifications sent to webhook destinations. + For Kinesis destinations, only the `data` object is sent. + type: object + required: + - notificationType + - data + properties: + notificationType: + type: string + enum: [connection.updated] + data: + $ref: '#/components/schemas/ConnectionData' + ConnectionDeletedNotificationPayload: title: Connection Deleted Notification Payload description: |