@probelabs/visor 0.1.173 → 0.1.174-ee

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/docs/dashboards/README.md +73 -26
  2. package/dist/docs/dashboards/grafana-visor-overview.json +435 -15
  3. package/dist/docs/telemetry-reference.md +387 -0
  4. package/dist/docs/telemetry-setup.md +2 -0
  5. package/dist/generated/config-schema.d.ts +277 -7
  6. package/dist/generated/config-schema.d.ts.map +1 -1
  7. package/dist/generated/config-schema.json +3803 -0
  8. package/dist/index.js +2202 -51
  9. package/dist/sdk/{a2a-frontend-VHOQ45CR.mjs → a2a-frontend-FUJRKHJB.mjs} +3 -3
  10. package/dist/sdk/{check-provider-registry-65GO3SCO.mjs → check-provider-registry-53C2ZIXJ.mjs} +7 -7
  11. package/dist/sdk/{check-provider-registry-75O5XJMA.mjs → check-provider-registry-UPQNHHFF.mjs} +7 -7
  12. package/dist/sdk/{chunk-Y5MEQW2W.mjs → chunk-2PL2YH3B.mjs} +19 -19
  13. package/dist/sdk/{chunk-4TV2CVVI.mjs → chunk-34QX63WK.mjs} +16 -14
  14. package/dist/sdk/chunk-34QX63WK.mjs.map +1 -0
  15. package/dist/sdk/{chunk-2HXOGRAS.mjs → chunk-65SHRIQF.mjs} +3 -3
  16. package/dist/sdk/{chunk-2HXOGRAS.mjs.map → chunk-65SHRIQF.mjs.map} +1 -1
  17. package/dist/sdk/{chunk-VVHALCWV.mjs → chunk-EFNNJIMY.mjs} +3 -3
  18. package/dist/sdk/{chunk-7CWJNSL2.mjs → chunk-GKSSG5IM.mjs} +20 -20
  19. package/dist/sdk/{chunk-7CWJNSL2.mjs.map → chunk-GKSSG5IM.mjs.map} +1 -1
  20. package/dist/sdk/{chunk-HZEXCJGA.mjs → chunk-W4KCJM6J.mjs} +282 -8
  21. package/dist/sdk/chunk-W4KCJM6J.mjs.map +1 -0
  22. package/dist/sdk/{chunk-GVPMO6QD.mjs → chunk-WJIV7MKY.mjs} +3 -3
  23. package/dist/sdk/{config-UXRHADSE.mjs → config-BVL3KFMB.mjs} +2 -2
  24. package/dist/sdk/{failure-condition-evaluator-Q4KNMX6F.mjs → failure-condition-evaluator-DL6H57NX.mjs} +4 -4
  25. package/dist/sdk/{github-frontend-56UQTA47.mjs → github-frontend-F2YCPK6H.mjs} +4 -4
  26. package/dist/sdk/{host-QRGXXRDA.mjs → host-6TBS44ER.mjs} +3 -3
  27. package/dist/sdk/{host-VYPJ2UGQ.mjs → host-LRWIKURZ.mjs} +3 -3
  28. package/dist/sdk/knex-store-QCEW4I4R.mjs +527 -0
  29. package/dist/sdk/knex-store-QCEW4I4R.mjs.map +1 -0
  30. package/dist/sdk/loader-Q7K76ZIY.mjs +89 -0
  31. package/dist/sdk/loader-Q7K76ZIY.mjs.map +1 -0
  32. package/dist/sdk/{metrics-FU2G5SZ2.mjs → metrics-JTOG2HNO.mjs} +2 -2
  33. package/dist/sdk/opa-policy-engine-QCSSIMUF.mjs +655 -0
  34. package/dist/sdk/opa-policy-engine-QCSSIMUF.mjs.map +1 -0
  35. package/dist/sdk/{routing-DBQHPP2O.mjs → routing-GF2CF3JT.mjs} +5 -5
  36. package/dist/sdk/{schedule-tool-MHICRNCI.mjs → schedule-tool-5KDBDCFO.mjs} +7 -7
  37. package/dist/sdk/{schedule-tool-VRLX54J5.mjs → schedule-tool-UMDRCNO5.mjs} +7 -7
  38. package/dist/sdk/{schedule-tool-handler-3ES4WON7.mjs → schedule-tool-handler-5EPTHBLS.mjs} +7 -7
  39. package/dist/sdk/{schedule-tool-handler-FQGAWC5N.mjs → schedule-tool-handler-MUF5V36L.mjs} +7 -7
  40. package/dist/sdk/sdk.d.mts +137 -133
  41. package/dist/sdk/sdk.d.ts +137 -133
  42. package/dist/sdk/sdk.js +1952 -302
  43. package/dist/sdk/sdk.js.map +1 -1
  44. package/dist/sdk/sdk.mjs +6 -6
  45. package/dist/sdk/{trace-helpers-UKMYHQIK.mjs → trace-helpers-FKM2MEDW.mjs} +3 -3
  46. package/dist/sdk/validator-XTZJZZJH.mjs +134 -0
  47. package/dist/sdk/validator-XTZJZZJH.mjs.map +1 -0
  48. package/dist/sdk/{workflow-check-provider-F5DTEX6E.mjs → workflow-check-provider-EWMZEEES.mjs} +7 -7
  49. package/dist/sdk/{workflow-check-provider-VEOVTCVU.mjs → workflow-check-provider-RQUCBAYY.mjs} +7 -7
  50. package/dist/telemetry/metrics.d.ts.map +1 -1
  51. package/dist/types/config.d.ts +5 -4
  52. package/dist/types/config.d.ts.map +1 -1
  53. package/package.json +2 -2
  54. package/dist/output/traces/run-2026-03-09T15-21-25-122Z.ndjson +0 -138
  55. package/dist/output/traces/run-2026-03-09T15-22-05-255Z.ndjson +0 -2280
  56. package/dist/sdk/a2a-frontend-7CYN3X7M.mjs +0 -1658
  57. package/dist/sdk/a2a-frontend-VHOQ45CR.mjs.map +0 -1
  58. package/dist/sdk/check-provider-registry-DBTS7OXY.mjs +0 -30
  59. package/dist/sdk/chunk-4TV2CVVI.mjs.map +0 -1
  60. package/dist/sdk/chunk-AV6KML52.mjs +0 -45016
  61. package/dist/sdk/chunk-AV6KML52.mjs.map +0 -1
  62. package/dist/sdk/chunk-HZEXCJGA.mjs.map +0 -1
  63. package/dist/sdk/chunk-LTHHE6Z5.mjs +0 -516
  64. package/dist/sdk/chunk-LTHHE6Z5.mjs.map +0 -1
  65. package/dist/sdk/chunk-VK7FUBBU.mjs +0 -739
  66. package/dist/sdk/chunk-VVHALCWV.mjs.map +0 -1
  67. package/dist/sdk/chunk-WYFQQ445.mjs +0 -1502
  68. package/dist/sdk/chunk-WYFQQ445.mjs.map +0 -1
  69. package/dist/sdk/failure-condition-evaluator-SNR5XLGN.mjs +0 -18
  70. package/dist/sdk/github-frontend-OOP26667.mjs +0 -1386
  71. package/dist/sdk/github-frontend-OOP26667.mjs.map +0 -1
  72. package/dist/sdk/routing-ZAUCS3HJ.mjs +0 -26
  73. package/dist/sdk/schedule-tool-2FIVKPVJ.mjs +0 -36
  74. package/dist/sdk/schedule-tool-handler-FQGAWC5N.mjs.map +0 -1
  75. package/dist/sdk/schedule-tool-handler-KYUHU4JR.mjs +0 -40
  76. package/dist/sdk/schedule-tool-handler-KYUHU4JR.mjs.map +0 -1
  77. package/dist/sdk/trace-helpers-UKMYHQIK.mjs.map +0 -1
  78. package/dist/sdk/trace-helpers-ZFDJ55SH.mjs +0 -29
  79. package/dist/sdk/trace-helpers-ZFDJ55SH.mjs.map +0 -1
  80. package/dist/sdk/workflow-check-provider-5KQTXKWS.mjs +0 -30
  81. package/dist/sdk/workflow-check-provider-5KQTXKWS.mjs.map +0 -1
  82. package/dist/sdk/workflow-check-provider-F5DTEX6E.mjs.map +0 -1
  83. package/dist/sdk/workflow-check-provider-VEOVTCVU.mjs.map +0 -1
  84. package/dist/traces/run-2026-03-09T15-21-25-122Z.ndjson +0 -138
  85. package/dist/traces/run-2026-03-09T15-22-05-255Z.ndjson +0 -2280
  86. /package/dist/sdk/{a2a-frontend-7CYN3X7M.mjs.map → a2a-frontend-FUJRKHJB.mjs.map} +0 -0
  87. /package/dist/sdk/{check-provider-registry-65GO3SCO.mjs.map → check-provider-registry-53C2ZIXJ.mjs.map} +0 -0
  88. /package/dist/sdk/{check-provider-registry-75O5XJMA.mjs.map → check-provider-registry-UPQNHHFF.mjs.map} +0 -0
  89. /package/dist/sdk/{chunk-Y5MEQW2W.mjs.map → chunk-2PL2YH3B.mjs.map} +0 -0
  90. /package/dist/sdk/{chunk-VK7FUBBU.mjs.map → chunk-EFNNJIMY.mjs.map} +0 -0
  91. /package/dist/sdk/{chunk-GVPMO6QD.mjs.map → chunk-WJIV7MKY.mjs.map} +0 -0
  92. /package/dist/sdk/{check-provider-registry-DBTS7OXY.mjs.map → config-BVL3KFMB.mjs.map} +0 -0
  93. /package/dist/sdk/{config-UXRHADSE.mjs.map → failure-condition-evaluator-DL6H57NX.mjs.map} +0 -0
  94. /package/dist/sdk/{github-frontend-56UQTA47.mjs.map → github-frontend-F2YCPK6H.mjs.map} +0 -0
  95. /package/dist/sdk/{host-QRGXXRDA.mjs.map → host-6TBS44ER.mjs.map} +0 -0
  96. /package/dist/sdk/{host-VYPJ2UGQ.mjs.map → host-LRWIKURZ.mjs.map} +0 -0
  97. /package/dist/sdk/{failure-condition-evaluator-Q4KNMX6F.mjs.map → metrics-JTOG2HNO.mjs.map} +0 -0
  98. /package/dist/sdk/{failure-condition-evaluator-SNR5XLGN.mjs.map → routing-GF2CF3JT.mjs.map} +0 -0
  99. /package/dist/sdk/{metrics-FU2G5SZ2.mjs.map → schedule-tool-5KDBDCFO.mjs.map} +0 -0
  100. /package/dist/sdk/{routing-DBQHPP2O.mjs.map → schedule-tool-UMDRCNO5.mjs.map} +0 -0
  101. /package/dist/sdk/{routing-ZAUCS3HJ.mjs.map → schedule-tool-handler-5EPTHBLS.mjs.map} +0 -0
  102. /package/dist/sdk/{schedule-tool-2FIVKPVJ.mjs.map → schedule-tool-handler-MUF5V36L.mjs.map} +0 -0
  103. /package/dist/sdk/{schedule-tool-MHICRNCI.mjs.map → trace-helpers-FKM2MEDW.mjs.map} +0 -0
  104. /package/dist/sdk/{schedule-tool-VRLX54J5.mjs.map → workflow-check-provider-EWMZEEES.mjs.map} +0 -0
  105. /package/dist/sdk/{schedule-tool-handler-3ES4WON7.mjs.map → workflow-check-provider-RQUCBAYY.mjs.map} +0 -0
@@ -609,6 +609,22 @@ var init_config_schema = __esm({
609
609
  $ref: "#/definitions/SlackConfig",
610
610
  description: "Slack configuration"
611
611
  },
612
+ telegram: {
613
+ $ref: "#/definitions/TelegramConfig",
614
+ description: "Telegram bot configuration"
615
+ },
616
+ email: {
617
+ $ref: "#/definitions/EmailConfig",
618
+ description: "Email integration configuration"
619
+ },
620
+ whatsapp: {
621
+ $ref: "#/definitions/WhatsAppConfig",
622
+ description: "WhatsApp bot configuration"
623
+ },
624
+ teams: {
625
+ $ref: "#/definitions/TeamsConfig",
626
+ description: "Microsoft Teams bot configuration"
627
+ },
612
628
  scheduler: {
613
629
  $ref: "#/definitions/SchedulerConfig",
614
630
  description: "Scheduler configuration for scheduled workflow execution"
@@ -1382,7 +1398,7 @@ var init_config_schema = __esm({
1382
1398
  description: "Arguments/inputs for the workflow"
1383
1399
  },
1384
1400
  overrides: {
1385
- $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400%3E%3E",
1401
+ $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833%3E%3E",
1386
1402
  description: "Override specific step configurations in the workflow"
1387
1403
  },
1388
1404
  output_mapping: {
@@ -1398,7 +1414,7 @@ var init_config_schema = __esm({
1398
1414
  description: "Config file path - alternative to workflow ID (loads a Visor config file as workflow)"
1399
1415
  },
1400
1416
  workflow_overrides: {
1401
- $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400%3E%3E",
1417
+ $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833%3E%3E",
1402
1418
  description: "Alias for overrides - workflow step overrides (backward compatibility)"
1403
1419
  },
1404
1420
  ref: {
@@ -1582,7 +1598,11 @@ var init_config_schema = __esm({
1582
1598
  "manual",
1583
1599
  "schedule",
1584
1600
  "webhook_received",
1585
- "slack_message"
1601
+ "slack_message",
1602
+ "telegram_message",
1603
+ "email_message",
1604
+ "whatsapp_message",
1605
+ "teams_message"
1586
1606
  ],
1587
1607
  description: "Valid event triggers for checks"
1588
1608
  },
@@ -2096,7 +2116,7 @@ var init_config_schema = __esm({
2096
2116
  description: "Custom output name (defaults to workflow name)"
2097
2117
  },
2098
2118
  overrides: {
2099
- $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400%3E%3E",
2119
+ $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833%3E%3E",
2100
2120
  description: "Step overrides"
2101
2121
  },
2102
2122
  output_mapping: {
@@ -2111,13 +2131,13 @@ var init_config_schema = __esm({
2111
2131
  "^x-": {}
2112
2132
  }
2113
2133
  },
2114
- "Record<string,Partial<interface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400>>": {
2134
+ "Record<string,Partial<interface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833>>": {
2115
2135
  type: "object",
2116
2136
  additionalProperties: {
2117
- $ref: "#/definitions/Partial%3Cinterface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400%3E"
2137
+ $ref: "#/definitions/Partial%3Cinterface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833%3E"
2118
2138
  }
2119
2139
  },
2120
- "Partial<interface-src_types_config.ts-13844-28438-src_types_config.ts-0-56400>": {
2140
+ "Partial<interface-src_types_config.ts-14017-28611-src_types_config.ts-0-56833>": {
2121
2141
  type: "object",
2122
2142
  additionalProperties: false
2123
2143
  },
@@ -2976,6 +2996,260 @@ var init_config_schema = __esm({
2976
2996
  "^x-": {}
2977
2997
  }
2978
2998
  },
2999
+ TelegramConfig: {
3000
+ type: "object",
3001
+ properties: {
3002
+ bot_token: {
3003
+ type: "string",
3004
+ description: "Bot token from"
3005
+ },
3006
+ polling_timeout: {
3007
+ type: "number",
3008
+ description: "Polling timeout in seconds for getUpdates (default: 30)"
3009
+ },
3010
+ chat_allowlist: {
3011
+ type: "array",
3012
+ items: {
3013
+ type: ["string", "number"]
3014
+ },
3015
+ description: "Chat/group allowlist - numeric chat IDs that the bot responds in"
3016
+ },
3017
+ require_mention: {
3018
+ type: "boolean",
3019
+ description: "In groups, only respond when"
3020
+ },
3021
+ workflow: {
3022
+ type: "string",
3023
+ description: "Workflow to run when a message is received"
3024
+ }
3025
+ },
3026
+ additionalProperties: false,
3027
+ patternProperties: {
3028
+ "^x-": {}
3029
+ }
3030
+ },
3031
+ EmailConfig: {
3032
+ type: "object",
3033
+ properties: {
3034
+ receive: {
3035
+ type: "object",
3036
+ properties: {
3037
+ type: {
3038
+ type: "string",
3039
+ enum: ["imap", "resend"],
3040
+ description: "Backend type: 'imap' (universal) or 'resend' (managed webhook)"
3041
+ },
3042
+ host: {
3043
+ type: "string",
3044
+ description: "IMAP server hostname"
3045
+ },
3046
+ port: {
3047
+ type: "number",
3048
+ description: "IMAP server port (default: 993)"
3049
+ },
3050
+ auth: {
3051
+ type: "object",
3052
+ properties: {
3053
+ user: {
3054
+ type: "string"
3055
+ },
3056
+ pass: {
3057
+ type: "string"
3058
+ }
3059
+ },
3060
+ additionalProperties: false,
3061
+ description: "IMAP auth credentials",
3062
+ patternProperties: {
3063
+ "^x-": {}
3064
+ }
3065
+ },
3066
+ secure: {
3067
+ type: "boolean",
3068
+ description: "Use TLS (default: true)"
3069
+ },
3070
+ poll_interval: {
3071
+ type: "number",
3072
+ description: "Polling interval in seconds when IDLE not available (default: 30)"
3073
+ },
3074
+ folder: {
3075
+ type: "string",
3076
+ description: "IMAP folder to monitor (default: 'INBOX')"
3077
+ },
3078
+ mark_read: {
3079
+ type: "boolean",
3080
+ description: "Mark processed messages as read (default: true)"
3081
+ },
3082
+ api_key: {
3083
+ type: "string",
3084
+ description: "Resend API key (for type: 'resend')"
3085
+ },
3086
+ webhook_secret: {
3087
+ type: "string",
3088
+ description: "Resend webhook secret for signature verification"
3089
+ }
3090
+ },
3091
+ additionalProperties: false,
3092
+ description: "Receive backend configuration",
3093
+ patternProperties: {
3094
+ "^x-": {}
3095
+ }
3096
+ },
3097
+ send: {
3098
+ type: "object",
3099
+ properties: {
3100
+ type: {
3101
+ type: "string",
3102
+ enum: ["smtp", "resend"],
3103
+ description: "Backend type: 'smtp' (universal) or 'resend' (managed API)"
3104
+ },
3105
+ host: {
3106
+ type: "string",
3107
+ description: "SMTP server hostname"
3108
+ },
3109
+ port: {
3110
+ type: "number",
3111
+ description: "SMTP server port (default: 587)"
3112
+ },
3113
+ auth: {
3114
+ type: "object",
3115
+ properties: {
3116
+ user: {
3117
+ type: "string"
3118
+ },
3119
+ pass: {
3120
+ type: "string"
3121
+ }
3122
+ },
3123
+ additionalProperties: false,
3124
+ description: "SMTP auth credentials",
3125
+ patternProperties: {
3126
+ "^x-": {}
3127
+ }
3128
+ },
3129
+ secure: {
3130
+ type: "boolean",
3131
+ description: "Use TLS (default: true)"
3132
+ },
3133
+ from: {
3134
+ type: "string",
3135
+ description: 'Default sender address (e.g., "Bot <bot@example.com>")'
3136
+ },
3137
+ api_key: {
3138
+ type: "string",
3139
+ description: "Resend API key (for type: 'resend')"
3140
+ }
3141
+ },
3142
+ additionalProperties: false,
3143
+ description: "Send backend configuration",
3144
+ patternProperties: {
3145
+ "^x-": {}
3146
+ }
3147
+ },
3148
+ allowlist: {
3149
+ type: "array",
3150
+ items: {
3151
+ type: "string"
3152
+ },
3153
+ description: "Only process emails from these senders"
3154
+ },
3155
+ workflow: {
3156
+ type: "string",
3157
+ description: "Workflow to run when an email is received"
3158
+ }
3159
+ },
3160
+ additionalProperties: false,
3161
+ patternProperties: {
3162
+ "^x-": {}
3163
+ }
3164
+ },
3165
+ WhatsAppConfig: {
3166
+ type: "object",
3167
+ properties: {
3168
+ access_token: {
3169
+ type: "string",
3170
+ description: "WhatsApp Cloud API access token (or WHATSAPP_ACCESS_TOKEN env var)"
3171
+ },
3172
+ phone_number_id: {
3173
+ type: "string",
3174
+ description: "Phone Number ID from Meta Business Suite (or WHATSAPP_PHONE_NUMBER_ID env var)"
3175
+ },
3176
+ app_secret: {
3177
+ type: "string",
3178
+ description: "Meta App Secret for webhook signature verification (or WHATSAPP_APP_SECRET env var)"
3179
+ },
3180
+ verify_token: {
3181
+ type: "string",
3182
+ description: "Verify token for webhook subscription challenge (or WHATSAPP_VERIFY_TOKEN env var)"
3183
+ },
3184
+ api_version: {
3185
+ type: "string",
3186
+ description: "Graph API version (default: 'v21.0')"
3187
+ },
3188
+ port: {
3189
+ type: "number",
3190
+ description: "Port for webhook HTTP server (default: 8443)"
3191
+ },
3192
+ host: {
3193
+ type: "string",
3194
+ description: "Host for webhook HTTP server (default: '0.0.0.0')"
3195
+ },
3196
+ phone_allowlist: {
3197
+ type: "array",
3198
+ items: {
3199
+ type: "string"
3200
+ },
3201
+ description: "Phone number allowlist \u2014 only respond to these numbers"
3202
+ },
3203
+ workflow: {
3204
+ type: "string",
3205
+ description: "Workflow to run when a message is received"
3206
+ }
3207
+ },
3208
+ additionalProperties: false,
3209
+ patternProperties: {
3210
+ "^x-": {}
3211
+ }
3212
+ },
3213
+ TeamsConfig: {
3214
+ type: "object",
3215
+ properties: {
3216
+ app_id: {
3217
+ type: "string",
3218
+ description: "Azure AD App (client) ID (or TEAMS_APP_ID env var)"
3219
+ },
3220
+ app_password: {
3221
+ type: "string",
3222
+ description: "Azure AD App client secret (or TEAMS_APP_PASSWORD env var)"
3223
+ },
3224
+ tenant_id: {
3225
+ type: "string",
3226
+ description: "Azure AD Tenant ID for single-tenant apps (or TEAMS_TENANT_ID env var)"
3227
+ },
3228
+ port: {
3229
+ type: "number",
3230
+ description: "Port for webhook HTTP server (default: 3978)"
3231
+ },
3232
+ host: {
3233
+ type: "string",
3234
+ description: "Host for webhook HTTP server (default: '0.0.0.0')"
3235
+ },
3236
+ user_allowlist: {
3237
+ type: "array",
3238
+ items: {
3239
+ type: "string"
3240
+ },
3241
+ description: "User ID allowlist \u2014 only respond to these AAD user IDs"
3242
+ },
3243
+ workflow: {
3244
+ type: "string",
3245
+ description: "Workflow to run when a message is received"
3246
+ }
3247
+ },
3248
+ additionalProperties: false,
3249
+ patternProperties: {
3250
+ "^x-": {}
3251
+ }
3252
+ },
2979
3253
  SchedulerConfig: {
2980
3254
  type: "object",
2981
3255
  properties: {
@@ -5453,4 +5727,4 @@ export {
5453
5727
  config_exports,
5454
5728
  init_config
5455
5729
  };
5456
- //# sourceMappingURL=chunk-HZEXCJGA.mjs.map
5730
+ //# sourceMappingURL=chunk-W4KCJM6J.mjs.map