Skip to content

Commit

Permalink
updating actions for invite links
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Nov 26, 2024
1 parent 56ef652 commit ab5c5a9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
20 changes: 19 additions & 1 deletion hasura-docker/metadata/actions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -456,6 +462,13 @@ type Mutation {
): updateGlobalSettingsOutput
}

type Mutation {
updateInviteLink(
code: String!
total: Int!
): updateInviteLinkOutput
}

type Mutation {
updateOperation(
operation_id: Int!
Expand Down Expand Up @@ -1110,3 +1123,8 @@ type updateOperatorPreferencesOutput {
error: String
}

type updateInviteLinkOutput {
status: String!
error: String
}

8 changes: 8 additions & 0 deletions hasura-docker/metadata/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -866,4 +873,5 @@ custom_types:
- name: eventingTestFileOutput
- name: getOperatorPreferencesOutput
- name: updateOperatorPreferencesOutput
- name: updateInviteLinkOutput
scalars: []

0 comments on commit ab5c5a9

Please sign in to comment.