Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const EXPECTED_ACTIVITY_TYPES = [
"azureOcr.extract",
"mistralOcr.process",
"mistralAzureOcr.process",
"azureContentUnderstanding.deployAnalyzer",
"azureContentUnderstanding.analyze",
"ocr.cleanup",
"ocr.enrich",
"ocr.checkConfidence",
Expand Down
8 changes: 8 additions & 0 deletions apps/backend-services/src/workflow/activity-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export const REGISTERED_ACTIVITY_TYPES: Record<string, RegisteredActivityType> =
description:
"Mistral Document AI on Azure AI Foundry (sync) with optional document annotation",
},
"azureContentUnderstanding.deployAnalyzer": {
description:
"Deploy (idempotent PUT) an Azure Content Understanding analyzer derived from a TemplateModel field schema",
},
"azureContentUnderstanding.analyze": {
description:
"Azure Content Understanding analyze (async; polls until terminal); deploys analyzer first if a template schema is supplied",
},
"ocr.cleanup": { description: "Post-OCR text normalization" },
"ocr.enrich": {
description: "Enrich OCR results using field schema and optional LLM",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"model": "mistral-document-ai-2512",
"pages": [
{
"index": 0,
"footer": null,
"header": null,
"images": [],
"tables": [],
"markdown": "5th\n\nMonthly Report\n\nAvoid delays, submit by the 5th\n\nBRITISH\n\nCOLUMBIA\n\nMinistry of\n\nSocial Development\n\nand Poverty Reduction\n\nThe personal information requested on this form is collected by the Ministry of Social Development and Poverty Reduction pursuant to sections 26(c) of the Freedom of Information and Protection of Privacy Act for the purpose of administering the Employment and Assistance Act and Employment and Assistance for Persons with Disabilities Act. If you have any questions about the collection, use or disclosure of this information, please contact the Ministry of Social Development and Poverty Reduction at 1-866-866-0800.\n\n# 1. Since your last declaration:\n\nAre you still in need of assistance? \u2611 Yes \u2610 No\n\nHas your family unit received or disposed of any assets? \u2610 Yes \u2611 No\n\nAny changes to your shelter costs? \u2610 Yes \u2611 No\n\nAny changes in Dependants or Persons living in the home? \u2610 Yes \u2611 No\n\nApplicant\n\nSpouse\n\nAny employment changes? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAre you attending / enrolled in school or training? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAre you looking for work? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nHave you moved or entered a facility? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAny outstanding warrants for your arrest? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nPlease explain all changes including income and submit proof:\n\n# 2. Declare all income and submit proof. Enter \"0\" if none.\n\n| | Applicant | Spouse |\n| --- | --- | --- |\n| Net Employment Income | $ 0 | $ |\n| Employment Insurance | $ 700.00 | $ |\n| Spousal Support / Alimony | $ 0 | $ |\n| Child Support | $ 0 | $ |\n| WorkBC Financial Support | $ 0 | $ |\n| Student Funding (eg: Loans, Bursaries) | $ 0 | $ |\n| Rental Income | $ 0 | $ |\n| Room / Board Income | $ 0 | $ |\n| Worker's Compensation | $ 0 | $ |\n| Private Pensions (eg: Retirement, Disability) | $ 0 | $ |\n| OAS / GIS | $ 0 | $ |\n| Trust Income | $ 0 | $ |\n| Canada Pension Plan (CPP) | $ 0 | $ |\n| Tax Credits (eg: GST Credit) | $ 0 | $ |\n| Child Tax Benefits | $ 0 | $ |\n| Income Tax Refund | $ 60.00 | $ |\n| All other income / money received | $ 0 | $ |\n| Income of Dependent Children | $ 0 | $ |\n\n# 3. Declaration: I understand that the ministry may disclose this information to verify continuing eligibility for assistance under the above Acts and Regulations. I declare that all of the information provided on this form to the Ministry of Social Development and Poverty Reduction is true and complete.\n\n| Applicant Signature\nKEY PLAYER MISSING | | Date (yyyy-mmm-dd)\n2026-25-07 | | Spouse Signature | | Date (yyyy-mmm-dd) |\n| --- | --- | --- | --- | --- | --- | --- |\n| Applicant Print Name\nX | | | | Spouse Print Name | | |\n| Applicant Telephone | Social Insurance Number\n967-89-954 | | | Spouse Telephone | Social Insurance Number | |\n\nNEXT CHEQUE\n\nISSUE\n\nBENEFIT MONTH\n\nTOTAL ALLOWANCE\n\nSHELTER PORTION\n\nINCOME DECLARED\n\nINCOME DEDUCTED\n\nOTHER DEDUCTIONS\n\nTOTAL CHEQUE\n\nAPR 22 2026\n\nCASE ID\n\nCASELOAD",
"dimensions": {
"dpi": 200,
"width": 2200,
"height": 1700
},
"hyperlinks": []
}
],
"usage_info": {
"doc_size_bytes": 592042,
"pages_processed": 0,
"pages_processed_annotation": 1
"model": "mistral-document-ai-2512",
"pages": [
{
"index": 0,
"footer": null,
"header": null,
"images": [],
"tables": [],
"markdown": "5th\n\nMonthly Report\n\nAvoid delays, submit by the 5th\n\nBRITISH\n\nCOLUMBIA\n\nMinistry of\n\nSocial Development\n\nand Poverty Reduction\n\nThe personal information requested on this form is collected by the Ministry of Social Development and Poverty Reduction pursuant to sections 26(c) of the Freedom of Information and Protection of Privacy Act for the purpose of administering the Employment and Assistance Act and Employment and Assistance for Persons with Disabilities Act. If you have any questions about the collection, use or disclosure of this information, please contact the Ministry of Social Development and Poverty Reduction at 1-866-866-0800.\n\n# 1. Since your last declaration:\n\nAre you still in need of assistance? \u2611 Yes \u2610 No\n\nHas your family unit received or disposed of any assets? \u2610 Yes \u2611 No\n\nAny changes to your shelter costs? \u2610 Yes \u2611 No\n\nAny changes in Dependants or Persons living in the home? \u2610 Yes \u2611 No\n\nApplicant\n\nSpouse\n\nAny employment changes? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAre you attending / enrolled in school or training? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAre you looking for work? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nHave you moved or entered a facility? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nAny outstanding warrants for your arrest? \u2610 Yes \u2610 No \u2610 Yes \u2611 No\n\nPlease explain all changes including income and submit proof:\n\n# 2. Declare all income and submit proof. Enter \"0\" if none.\n\n| | Applicant | Spouse |\n| --- | --- | --- |\n| Net Employment Income | $ 0 | $ |\n| Employment Insurance | $ 700.00 | $ |\n| Spousal Support / Alimony | $ 0 | $ |\n| Child Support | $ 0 | $ |\n| WorkBC Financial Support | $ 0 | $ |\n| Student Funding (eg: Loans, Bursaries) | $ 0 | $ |\n| Rental Income | $ 0 | $ |\n| Room / Board Income | $ 0 | $ |\n| Worker's Compensation | $ 0 | $ |\n| Private Pensions (eg: Retirement, Disability) | $ 0 | $ |\n| OAS / GIS | $ 0 | $ |\n| Trust Income | $ 0 | $ |\n| Canada Pension Plan (CPP) | $ 0 | $ |\n| Tax Credits (eg: GST Credit) | $ 0 | $ |\n| Child Tax Benefits | $ 0 | $ |\n| Income Tax Refund | $ 60.00 | $ |\n| All other income / money received | $ 0 | $ |\n| Income of Dependent Children | $ 0 | $ |\n\n# 3. Declaration: I understand that the ministry may disclose this information to verify continuing eligibility for assistance under the above Acts and Regulations. I declare that all of the information provided on this form to the Ministry of Social Development and Poverty Reduction is true and complete.\n\n| Applicant Signature\nKEY PLAYER MISSING | | Date (yyyy-mmm-dd)\n2026-25-07 | | Spouse Signature | | Date (yyyy-mmm-dd) |\n| --- | --- | --- | --- | --- | --- | --- |\n| Applicant Print Name\nX | | | | Spouse Print Name | | |\n| Applicant Telephone | Social Insurance Number\n967-89-954 | | | Spouse Telephone | Social Insurance Number | |\n\nNEXT CHEQUE\n\nISSUE\n\nBENEFIT MONTH\n\nTOTAL ALLOWANCE\n\nSHELTER PORTION\n\nINCOME DECLARED\n\nINCOME DEDUCTED\n\nOTHER DEDUCTIONS\n\nTOTAL CHEQUE\n\nAPR 22 2026\n\nCASE ID\n\nCASELOAD",
"dimensions": {
"dpi": 200,
"width": 2200,
"height": 1700
},
"hyperlinks": []
}
],
"usage_info": {
"doc_size_bytes": 592042,
"pages_processed": 0,
"pages_processed_annotation": 1
},
"document_annotation": "{\n \"checkbox_need_assistance_yes\": \"selected\",\n \"checkbox_need_assistance_no\": \"unselected\",\n \"checkbox_family_assets_yes\": \"unselected\",\n \"checkbox_family_assets_no\": \"selected\",\n \"checkbox_shelter_yes\": \"unselected\",\n \"checkbox_shelter_no\": \"selected\",\n \"checkbox_dependants_yes\": \"unselected\",\n \"checkbox_dependants_no\": \"selected\",\n \"checkbox_employment_changes_yes\": \"unselected\",\n \"checkbox_employment_changes_no\": \"selected\",\n \"checkbox_employment_changes_spouse_yes\": \"unselected\",\n \"checkbox_employment_changes_spouse_no\": \"selected\",\n \"checkbox_school_yes\": \"unselected\",\n \"checkbox_school_no\": \"selected\",\n \"checkbox_school_spouse_yes\": \"unselected\",\n \"checkbox_school_spouse_no\": \"selected\",\n \"checkbox_work_yes\": \"unselected\",\n \"checkbox_work_no\": \"selected\",\n \"checkbox_work_spouse_yes\": \"unselected\",\n \"checkbox_work_spouse_no\": \"selected\",\n \"checkbox_moved_yes\": \"unselected\",\n \"checkbox_moved_no\": \"selected\",\n \"checkbox_moved_spouse_yes\": \"unselected\",\n \"checkbox_moved_spouse_no\": \"selected\",\n \"checkbox_warrant_yes\": \"unselected\",\n \"checkbox_warrant_no\": \"selected\",\n \"checkbox_warrant_spouse_yes\": \"unselected\",\n \"checkbox_warrant_spouse_no\": \"selected\",\n \"explain_changes\": \"\",\n \"signature\": \"KEY PLAYER MISSING\",\n \"spouse_signature\": \"\",\n \"date\": \"2026-07-25\",\n \"spouse_date\": \"\",\n \"name\": \"X\",\n \"spouse_name\": \"\",\n \"phone\": \"\",\n \"spouse_phone\": \"\",\n \"sin\": \"96789954\",\n \"spouse_sin\": \"\",\n \"applicant_net_employment_income\": 0,\n \"applicant_employment_insurance\": 700,\n \"applicant_spousal_support_alimony\": 0,\n \"applicant_child_support\": 0,\n \"applicant_workbc_financial_support\": 0,\n \"applicant_student_funding_loans_bursaries\": 0,\n \"applicant_rental_income\": 0,\n \"applicant_room_board_income\": 0,\n \"applicant_workers_compensation\": 0,\n \"applicant_private_pensions_retirement_disability\": 0,\n \"applicant_oas_gis\": 0,\n \"applicant_trust_income\": 0,\n \"applicant_canada_pension_plan_cpp\": 0,\n \"applicant_tax_credits_gst_credit\": 0,\n \"applicant_child_tax_benefits\": 0,\n \"applicant_income_tax_refund\": 60,\n \"applicant_other_income_money_received\": 0,\n \"applicant_income_of_dependent_children\": 0,\n \"spouse_net_employment_income\": null,\n \"spouse_employment_insurance\": null,\n \"spouse_spousal_support_alimony\": null,\n \"spouse_child_support\": null,\n \"spouse_workbc_financial_support\": null,\n \"spouse_student_funding_loans_bursaries\": null,\n \"spouse_rental_income\": null,\n \"spouse_room_board_income\": null,\n \"spouse_workers_compensation\": null,\n \"spouse_private_pensions_retirement_disability\": null,\n \"spouse_oas_gis\": null,\n \"spouse_trust_income\": null,\n \"spouse_canada_pension_plan_cpp\": null,\n \"spouse_tax_credits_gst_credit\": null,\n \"spouse_child_tax_benefits\": null,\n \"spouse_income_tax_refund\": null,\n \"spouse_other_income_money_received\": null\n}",
"content_filter_results": {
"hate": {
"filtered": false,
"severity": "safe"
},
"sexual": {
"filtered": false,
"severity": "safe"
},
"violence": {
"filtered": false,
"severity": "safe"
},
"document_annotation": "{\n \"checkbox_need_assistance_yes\": \"selected\",\n \"checkbox_need_assistance_no\": \"unselected\",\n \"checkbox_family_assets_yes\": \"unselected\",\n \"checkbox_family_assets_no\": \"selected\",\n \"checkbox_shelter_yes\": \"unselected\",\n \"checkbox_shelter_no\": \"selected\",\n \"checkbox_dependants_yes\": \"unselected\",\n \"checkbox_dependants_no\": \"selected\",\n \"checkbox_employment_changes_yes\": \"unselected\",\n \"checkbox_employment_changes_no\": \"selected\",\n \"checkbox_employment_changes_spouse_yes\": \"unselected\",\n \"checkbox_employment_changes_spouse_no\": \"selected\",\n \"checkbox_school_yes\": \"unselected\",\n \"checkbox_school_no\": \"selected\",\n \"checkbox_school_spouse_yes\": \"unselected\",\n \"checkbox_school_spouse_no\": \"selected\",\n \"checkbox_work_yes\": \"unselected\",\n \"checkbox_work_no\": \"selected\",\n \"checkbox_work_spouse_yes\": \"unselected\",\n \"checkbox_work_spouse_no\": \"selected\",\n \"checkbox_moved_yes\": \"unselected\",\n \"checkbox_moved_no\": \"selected\",\n \"checkbox_moved_spouse_yes\": \"unselected\",\n \"checkbox_moved_spouse_no\": \"selected\",\n \"checkbox_warrant_yes\": \"unselected\",\n \"checkbox_warrant_no\": \"selected\",\n \"checkbox_warrant_spouse_yes\": \"unselected\",\n \"checkbox_warrant_spouse_no\": \"selected\",\n \"explain_changes\": \"\",\n \"signature\": \"KEY PLAYER MISSING\",\n \"spouse_signature\": \"\",\n \"date\": \"2026-07-25\",\n \"spouse_date\": \"\",\n \"name\": \"X\",\n \"spouse_name\": \"\",\n \"phone\": \"\",\n \"spouse_phone\": \"\",\n \"sin\": \"96789954\",\n \"spouse_sin\": \"\",\n \"applicant_net_employment_income\": 0,\n \"applicant_employment_insurance\": 700,\n \"applicant_spousal_support_alimony\": 0,\n \"applicant_child_support\": 0,\n \"applicant_workbc_financial_support\": 0,\n \"applicant_student_funding_loans_bursaries\": 0,\n \"applicant_rental_income\": 0,\n \"applicant_room_board_income\": 0,\n \"applicant_workers_compensation\": 0,\n \"applicant_private_pensions_retirement_disability\": 0,\n \"applicant_oas_gis\": 0,\n \"applicant_trust_income\": 0,\n \"applicant_canada_pension_plan_cpp\": 0,\n \"applicant_tax_credits_gst_credit\": 0,\n \"applicant_child_tax_benefits\": 0,\n \"applicant_income_tax_refund\": 60,\n \"applicant_other_income_money_received\": 0,\n \"applicant_income_of_dependent_children\": 0,\n \"spouse_net_employment_income\": null,\n \"spouse_employment_insurance\": null,\n \"spouse_spousal_support_alimony\": null,\n \"spouse_child_support\": null,\n \"spouse_workbc_financial_support\": null,\n \"spouse_student_funding_loans_bursaries\": null,\n \"spouse_rental_income\": null,\n \"spouse_room_board_income\": null,\n \"spouse_workers_compensation\": null,\n \"spouse_private_pensions_retirement_disability\": null,\n \"spouse_oas_gis\": null,\n \"spouse_trust_income\": null,\n \"spouse_canada_pension_plan_cpp\": null,\n \"spouse_tax_credits_gst_credit\": null,\n \"spouse_child_tax_benefits\": null,\n \"spouse_income_tax_refund\": null,\n \"spouse_other_income_money_received\": null\n}",
"content_filter_results": {
"hate": {
"filtered": false,
"severity": "safe"
},
"sexual": {
"filtered": false,
"severity": "safe"
},
"violence": {
"filtered": false,
"severity": "safe"
},
"self_harm": {
"filtered": false,
"severity": "safe"
}
"self_harm": {
"filtered": false,
"severity": "safe"
}
}
}
Loading