diff --git a/hasura-docker/metadata/actions.graphql b/hasura-docker/metadata/actions.graphql index e3ae224c..64e1c685 100644 --- a/hasura-docker/metadata/actions.graphql +++ b/hasura-docker/metadata/actions.graphql @@ -113,7 +113,13 @@ type Mutation { } type Mutation { - createInviteLink: createInviteLinkOutput + createInviteLink( + operation_id: Int + operation_role: String + total: Int + name: String + short_code: String + ): createInviteLinkOutput } type Mutation { @@ -456,6 +462,13 @@ type Mutation { ): updateGlobalSettingsOutput } +type Mutation { + updateInviteLink( + code: String! + total: Int! + ): updateInviteLinkOutput +} + type Mutation { updateOperation( operation_id: Int! @@ -1110,3 +1123,8 @@ type updateOperatorPreferencesOutput { error: String } +type updateInviteLinkOutput { + status: String! + error: String +} + diff --git a/hasura-docker/metadata/actions.yaml b/hasura-docker/metadata/actions.yaml index c42abbb8..add8bea6 100644 --- a/hasura-docker/metadata/actions.yaml +++ b/hasura-docker/metadata/actions.yaml @@ -684,6 +684,13 @@ actions: forward_client_headers: true permissions: - role: mythic_admin + - name: updateInviteLink + definition: + kind: synchronous + handler: '{{MYTHIC_ACTIONS_URL_BASE}}/update_invite_link_webhook' + forward_client_headers: true + permissions: + - role: mythic_admin - name: updateOperation definition: kind: synchronous @@ -866,4 +873,5 @@ custom_types: - name: eventingTestFileOutput - name: getOperatorPreferencesOutput - name: updateOperatorPreferencesOutput + - name: updateInviteLinkOutput scalars: []