diff --git a/.last-synced-sha b/.last-synced-sha index 1f80e86..35c3263 100644 --- a/.last-synced-sha +++ b/.last-synced-sha @@ -1 +1 @@ -47bcae12b5f6645e1a33184346e7e8d8df7b9ec8 +e4da019bddceb527499ab7c8c290aebfae300751 diff --git a/spec/open-api-spec.yaml b/spec/open-api-spec.yaml index ad1b4cf..8a55fc0 100644 --- a/spec/open-api-spec.yaml +++ b/spec/open-api-spec.yaml @@ -16164,6 +16164,8 @@ paths: config: instance_url: https://example.my.salesforce.com state: connected + established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': @@ -16372,6 +16374,8 @@ paths: config: instance_url: https://example.my.salesforce.com state: connected + established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '401': @@ -16633,6 +16637,8 @@ paths: config: instance_url: https://example.my.salesforce.com state: connected + established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': @@ -16802,6 +16808,8 @@ paths: config: instance_url: https://example.my.salesforce.com state: connected + established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' userlandUserId: null @@ -34920,6 +34928,29 @@ components: - needs_reauthorization description: The state of the connected account. example: connected + established_by_user_id: + type: + - string + - 'null' + description: >- + The ID of the User whose authorization established the connected + account, or null when it is developer-managed, its establisher is + unknown, or the establishing member left the organization. + Historical events may omit this field. + example: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: + description: >- + Why WorkOS put the connected account in its current state, or null + when there is no WorkOS-recorded reason. + `establishing_member_membership_ended` means the member who + established an organization-owned connection is no longer an active + member. Additional values may be added. Historical events may omit + this field. + example: null + oneOf: + - type: string + const: establishing_member_membership_ended + - type: 'null' created_at: format: date-time type: string @@ -47078,9 +47109,40 @@ components: - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. + `state_reason` explains why when WorkOS invalidated the connection + itself. - `disconnected`: The connection has been disconnected. example: connected + established_by_user_id: + type: + - string + - 'null' + description: >- + The [User](/reference/authkit/user) whose authorization established + this connection. `null` when the connection is developer-managed or + its establisher is unknown, and when the establishing member lost + access to the organization — in which case `state_reason` is + `establishing_member_membership_ended`. + example: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: + description: >- + Why WorkOS put the connection in its current `state`, or `null` when + there is no WorkOS-recorded reason: + + - `establishing_member_membership_ended`: The member who established + this organization-owned connection is no longer an active member of + the organization, so its credentials were cleared. An organization + admin must provide new credentials. + + + Additional values may be added; treat an unrecognized value as an + unknown reason. + example: null + oneOf: + - type: string + const: establishing_member_membership_ended + - type: 'null' created_at: type: string description: The timestamp when the connection was created. @@ -47372,11 +47434,44 @@ components: - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required - scopes have changed. + scopes have changed. `state_reason` explains why when + WorkOS invalidated the connection itself. - `disconnected`: The connection has been disconnected. example: connected + established_by_user_id: + type: + - string + - 'null' + description: >- + The [User](/reference/authkit/user) whose + authorization established this connection. `null` when + the connection is developer-managed or its establisher + is unknown, and when the establishing member lost + access to the organization — in which case + `state_reason` is + `establishing_member_membership_ended`. + example: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: + description: >- + Why WorkOS put the connection in its current `state`, + or `null` when there is no WorkOS-recorded reason: + + - `establishing_member_membership_ended`: The member + who established this organization-owned connection is + no longer an active member of the organization, so its + credentials were cleared. An organization admin must + provide new credentials. + + + Additional values may be added; treat an unrecognized + value as an unknown reason. + example: null + oneOf: + - type: string + const: establishing_member_membership_ended + - type: 'null' created_at: type: string description: The timestamp when the connection was created. @@ -47547,10 +47642,42 @@ components: - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have - changed. + changed. `state_reason` explains why when WorkOS + invalidated the connection itself. - `disconnected`: The connection has been disconnected. example: connected + established_by_user_id: + type: + - string + - 'null' + description: >- + The [User](/reference/authkit/user) whose authorization + established this connection. `null` when the connection + is developer-managed or its establisher is unknown, and + when the establishing member lost access to the + organization — in which case `state_reason` is + `establishing_member_membership_ended`. + example: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: + description: >- + Why WorkOS put the connection in its current `state`, or + `null` when there is no WorkOS-recorded reason: + + - `establishing_member_membership_ended`: The member who + established this organization-owned connection is no + longer an active member of the organization, so its + credentials were cleared. An organization admin must + provide new credentials. + + + Additional values may be added; treat an unrecognized + value as an unknown reason. + example: null + oneOf: + - type: string + const: establishing_member_membership_ended + - type: 'null' created_at: type: string description: The timestamp when the connection was created. @@ -47747,9 +47874,40 @@ components: - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. + `state_reason` explains why when WorkOS invalidated the connection + itself. - `disconnected`: The connection has been disconnected. example: connected + established_by_user_id: + type: + - string + - 'null' + description: >- + The [User](/reference/authkit/user) whose authorization established + this connection. `null` when the connection is developer-managed or + its establisher is unknown, and when the establishing member lost + access to the organization — in which case `state_reason` is + `establishing_member_membership_ended`. + example: user_01EHZNVPK3SFK441A1RGBFSHRT + state_reason: + description: >- + Why WorkOS put the connection in its current `state`, or `null` when + there is no WorkOS-recorded reason: + + - `establishing_member_membership_ended`: The member who established + this organization-owned connection is no longer an active member of + the organization, so its credentials were cleared. An organization + admin must provide new credentials. + + + Additional values may be added; treat an unrecognized value as an + unknown reason. + example: null + oneOf: + - type: string + const: establishing_member_membership_ended + - type: 'null' created_at: type: string description: The timestamp when the connection was created.