# _collections

id: _pb_users_auth_
type: auth
name: users
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
updateRule: id = @request.auth.id
deleteRule: id = @request.auth.id
created: 2025-02-02 11:55:45.310Z
updated: 2025-02-02 11:55:45.355Z
schema:
  [{"system":false,"id":"users_name","name":"name","type":"text","required":false,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"users_avatar","name":"avatar","type":"file","required":false,"presentable":false,"unique":false,"options":{"mimeTypes":["image/jpeg","image/png","image/svg+xml","image/gif","image/webp"],"thumbs":null,"maxSelect":1,"maxSize":5242880,"protected":false}}]

options:
  {"allowEmailAuth":true,"allowOAuth2Auth":true,"allowUsernameAuth":true,"exceptEmailDomains":null,"manageRule":null,"minPasswordLength":8,"onlyEmailDomains":null,"onlyVerified":false,"requireEmail":false}


id: ks77vcbczvc1yrw
type: base
name: webhooks
indexes: []
options: {}
created: 2025-02-02 11:55:45.328Z
updated: 2025-02-02 11:55:45.328Z
schema:
  [{"system":false,"id":"g8ihy0al","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"odnju935","name":"collection","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"icgcxuek","name":"destination","type":"url","required":true,"presentable":false,"unique":false,"options":{"exceptDomains":null,"onlyDomains":null}}]


id: types
type: base
name: types
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.364Z
updated: 2025-02-02 11:55:45.403Z
schema:
  [{"system":false,"id":"j9kdqjz6","name":"singular","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"mwgq82gk","name":"plural","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"edle1tfu","name":"icon","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"cihok0d9","name":"schema","type":"json","required":true,"presentable":false,"unique":false,"options":{"maxSize":2000000}}]


id: tickets
type: base
name: tickets
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.368Z
updated: 2025-02-02 11:55:45.403Z
schema:
  [{"system":false,"id":"fajg9ajv","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"42f7t3er","name":"type","type":"relation","required":false,"presentable":false,"unique":false,"options":{"collectionId":"types","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"3bngtgfx","name":"description","type":"text","required":false,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"rgozirif","name":"open","type":"bool","required":false,"presentable":false,"unique":false,"options":{}},{"system":false,"id":"dd0ijlei","name":"resolution","type":"text","required":false,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"fsydq5t2","name":"schema","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"qer6qav7","name":"state","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"zuqoc7v9","name":"owner","type":"relation","required":false,"presentable":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}}]


id: tasks
type: base
name: tasks
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.371Z
updated: 2025-02-02 11:55:45.371Z
schema:
  [{"system":false,"id":"xdfmerv7","name":"ticket","type":"relation","required":true,"presentable":false,"unique":false,"options":{"collectionId":"tickets","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"flx35jnh","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"wbjpk0dn","name":"open","type":"bool","required":false,"presentable":false,"unique":false,"options":{}},{"system":false,"id":"tkfgncth","name":"owner","type":"relation","required":false,"presentable":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}}]


id: comments
type: base
name: comments
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.372Z
updated: 2025-02-02 11:55:45.372Z
schema:
  [{"system":false,"id":"zxrfp9g8","name":"ticket","type":"relation","required":true,"presentable":false,"unique":false,"options":{"collectionId":"tickets","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"kqb3fsgo","name":"author","type":"relation","required":false,"presentable":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"ip3u5gft","name":"message","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}}]


id: timeline
type: base
name: timeline
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.373Z
updated: 2025-02-02 11:55:45.373Z
schema:
  [{"system":false,"id":"zoqenuzx","name":"ticket","type":"relation","required":true,"presentable":false,"unique":false,"options":{"collectionId":"tickets","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"4kxlqidv","name":"time","type":"date","required":true,"presentable":false,"unique":false,"options":{"min":"","max":""}},{"system":false,"id":"lgfatgwm","name":"message","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}}]


id: links
type: base
name: links
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.374Z
updated: 2025-02-02 11:55:45.374Z
schema:
  [{"system":false,"id":"rs3oh3gp","name":"ticket","type":"relation","required":true,"presentable":false,"unique":false,"options":{"collectionId":"tickets","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"zzrmgg0c","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"sdilea19","name":"url","type":"url","required":true,"presentable":false,"unique":false,"options":{"exceptDomains":null,"onlyDomains":null}}]


id: files
type: base
name: files
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.375Z
updated: 2025-02-02 11:55:45.375Z
schema:
  [{"system":false,"id":"gt0tvwpn","name":"ticket","type":"relation","required":true,"presentable":false,"unique":false,"options":{"collectionId":"tickets","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"gmwpjy9o","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"y7m3yqr3","name":"size","type":"number","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"noDecimal":false}},{"system":false,"id":"4zivevpd","name":"blob","type":"file","required":true,"presentable":false,"unique":false,"options":{"mimeTypes":null,"thumbs":null,"maxSelect":1,"maxSize":104857600,"protected":false}}]


id: features
type: base
name: features
indexes: ["CREATE UNIQUE INDEX `unique_name` ON `features` (`name`)"]
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.376Z
updated: 2025-02-02 11:55:45.376Z
schema:
  [{"system":false,"id":"pyomtpqk","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}}]


id: gqf77s1iwg4b21q
type: view
name: dashboard_counts
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
created: 2025-02-02 11:55:45.378Z
updated: 2025-02-02 11:55:45.404Z
schema:
  [{"system":false,"id":"je6urwzd","name":"count","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}}]

options:
  {"query":"SELECT id, count FROM (\n  SELECT 'users' as id, COUNT(users.id) as count FROM users\n  UNION\n  SELECT 'tickets' as id, COUNT(tickets.id) as count FROM tickets\n  UNION\n  SELECT 'tasks' as id, COUNT(tasks.id) as count FROM tasks\n  UNION \n  SELECT 'reactions' as id, COUNT(reactions.id) as count FROM reactions\n) as counts;"}


id: w3wvvx9r9ed4tos
type: view
name: sidebar
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
created: 2025-02-02 11:55:45.380Z
updated: 2025-02-02 11:55:45.405Z
schema:
  [{"system":false,"id":"wboboumx","name":"singular","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"a7ufovyj","name":"plural","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"wluuiap1","name":"icon","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"obv8z3kg","name":"count","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}}]

options:
  {"query":"SELECT types.id as id, types.singular as singular, types.plural as plural, types.icon as icon, (SELECT COUNT(tickets.id) FROM tickets WHERE tickets.type = types.id AND tickets.open = true) as count\nFROM types\nORDER BY types.plural;"}


id: reactions
type: base
name: reactions
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
createRule: @request.auth.id != ''
updateRule: @request.auth.id != ''
deleteRule: @request.auth.id != ''
options: {}
created: 2025-02-02 11:55:45.382Z
updated: 2025-02-02 11:55:45.406Z
schema:
  [{"system":false,"id":"qcwnobuy","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"virzov3h","name":"trigger","type":"select","required":true,"presentable":false,"unique":false,"options":{"maxSelect":1,"values":["webhook","hook","schedule"]}},{"system":false,"id":"ddmaftde","name":"triggerdata","type":"json","required":true,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"fsqks1xi","name":"action","type":"select","required":true,"presentable":false,"unique":false,"options":{"maxSelect":1,"values":["python","webhook"]}},{"system":false,"id":"r72oeosa","name":"actiondata","type":"json","required":true,"presentable":false,"unique":false,"options":{"maxSize":2000000}}]


id: t8oz0xnwo74hlm5
type: view
name: ticket_search
indexes: []
listRule: @request.auth.id != ''
viewRule: @request.auth.id != ''
created: 2025-02-02 11:55:45.390Z
updated: 2025-02-02 11:55:45.410Z
schema:
  [{"system":false,"id":"fu8pze2u","name":"name","type":"text","required":true,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"dxoto1xc","name":"description","type":"text","required":false,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"fyjozvd2","name":"open","type":"bool","required":false,"presentable":false,"unique":false,"options":{}},{"system":false,"id":"4oojfbaj","name":"type","type":"relation","required":false,"presentable":false,"unique":false,"options":{"collectionId":"types","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"9fk3v4vn","name":"state","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"ya4xvrsb","name":"owner_name","type":"text","required":false,"presentable":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"raudjqro","name":"comment_messages","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"t7wtclnq","name":"file_names","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"at4pqqlm","name":"link_names","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"qxn4zvig","name":"link_urls","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"noceuvlq","name":"task_names","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}},{"system":false,"id":"1bjnqno0","name":"timeline_messages","type":"json","required":false,"presentable":false,"unique":false,"options":{"maxSize":2000000}}]

options:
  {"query":"\nSELECT \n    tickets.id, \n    tickets.name,\n    tickets.created,\n    tickets.description,\n    tickets.open,\n    tickets.type,\n    tickets.state,\n    users.name as owner_name,\n    group_concat(comments.message) as comment_messages,\n    group_concat(files.name) as file_names,\n    group_concat(links.name) as link_names,\n    group_concat(links.url) as link_urls,\n    group_concat(tasks.name) as task_names,\n    group_concat(timeline.message) as timeline_messages\nFROM tickets\nLEFT JOIN comments ON comments.ticket = tickets.id\nLEFT JOIN files ON files.ticket = tickets.id\nLEFT JOIN links ON links.ticket = tickets.id\nLEFT JOIN tasks ON tasks.ticket = tickets.id\nLEFT JOIN timeline ON timeline.ticket = tickets.id\nLEFT JOIN users ON users.id = tickets.owner\nGROUP BY tickets.id\n"}


# _params

id: 59gswl2jrzi96ak
key: settings
created: 2025-02-02 11:55:45.267Z
updated: 2025-02-02 11:55:45.333Z
value:
  {"meta":{"appName":"Catalyst","appUrl":"http://localhost:8090","hideControls":false,"senderName":"Support","senderAddress":"support@example.com","verificationTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eThank you for joining us at {APP_NAME}.\u003c/p\u003e\n\u003cp\u003eClick on the button below to verify your email address.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eVerify\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Verify your {APP_NAME} email","actionUrl":"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}","hidden":false},"resetPasswordTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to reset your password.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eReset password\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to reset your password, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Reset your {APP_NAME} password","actionUrl":"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}","hidden":false},"confirmEmailChangeTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to confirm your new email address.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eConfirm new email\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to change your email address, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Confirm your {APP_NAME} new email address","actionUrl":"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}","hidden":false}},"logs":{"maxDays":5,"minLevel":0,"logIp":true},"smtp":{"enabled":false,"host":"smtp.example.com","port":587,"username":"","password":"","authMethod":"","tls":false,"localName":""},"s3":{"enabled":false,"bucket":"","region":"","endpoint":"","accessKey":"","secret":"","forcePathStyle":false},"backups":{"cron":"","cronMaxKeep":3,"s3":{"enabled":false,"bucket":"","region":"","endpoint":"","accessKey":"","secret":"","forcePathStyle":false}},"adminAuthToken":{"secret":"CcKG6Dc4MkVGtoIjmDGWq1OJUSiVM04EQV9PTNNHIFHKttQ1iH","duration":1209600},"adminPasswordResetToken":{"secret":"fdNGstueOJuVnDTmFQIf8nqtVtSYweZugYpgrpG4ucWwhRKeWY","duration":1800},"adminFileToken":{"secret":"NSSpb58IAkraVx1WibuUVY0d3SX7Z0D8fG6hxxzMJdbEN2uDYG","duration":120},"recordAuthToken":{"secret":"06gTaJUEWagavrHKFVoNGSa6uT0ET5WJBZgrARkf47U0J8Xoe4","duration":1209600},"recordPasswordResetToken":{"secret":"R6AVYhkOQYIAsvUCdM6Tf8E53lfkM8cHcVoAmv19wrx0tiN72r","duration":1800},"recordEmailChangeToken":{"secret":"Q9cbEH6u8TuVDkgld1EId3EDnPOQUYa88o200V0PgzWr1u9BHY","duration":1800},"recordVerificationToken":{"secret":"tLu9Qvd9t94D8GDUCqKIpFktNsyI6Jl1ntkVGHLGVbnFreYmJb","duration":604800},"recordFileToken":{"secret":"PZ8rbxlRugUaDhr3wzTAh1kw7SALsswfVkvnl7aPujSb6FDROi","duration":120},"emailAuth":{"enabled":false,"exceptDomains":null,"onlyDomains":null,"minPasswordLength":0},"googleAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"facebookAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"githubAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"gitlabAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"discordAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"twitterAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"microsoftAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"spotifyAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"kakaoAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"twitchAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"stravaAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"giteeAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"livechatAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"giteaAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"oidcAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"oidc2Auth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"oidc3Auth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"appleAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"instagramAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"vkAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"yandexAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"patreonAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"mailcowAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"bitbucketAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null},"planningcenterAuth":{"enabled":false,"clientId":"","clientSecret":"","authUrl":"","tokenUrl":"","userApiUrl":"","displayName":"","pkce":null}}


# types

created: 2025-02-02 11:55:45.377Z
icon: Flame
id: incident
plural: Incidents
singular: Incident
updated: 2025-02-02 11:55:45.377Z
schema:
  {"properties":{"severity":{"enum":["Low","Medium","High"],"title":"Severity"}},"required":["severity"],"type":"object"}


# reactions

action: python
created: 2025-02-01 11:30:00.000Z
id: w_0
name: Create New Ticket
trigger: schedule
triggerdata: {"expression":"12 * * * *"}
updated: 2025-02-01 11:35:00.000Z
actiondata:
  {"requirements":"pocketbase","script":"import sys\nimport json\nimport random\nimport os\n\nfrom pocketbase import PocketBase\n\n# Connect to the PocketBase server\nclient = PocketBase(os.environ[\"CATALYST_APP_URL\"])\nclient.auth_store.save(token=os.environ[\"CATALYST_TOKEN\"])\n\nnewtickets = client.collection(\"tickets\").get_list(1, 200, {\"filter\": 'name = \"New Ticket\"'})\nfor ticket in newtickets.items:\n\tclient.collection(\"tickets\").delete(ticket.id)\n\n# Create a new ticket\nclient.collection(\"tickets\").create({\n\t\"name\": \"New Ticket\",\n\t\"type\": \"alert\",\n\t\"open\": True,\n})"}


