autotouch-cli 0.2.123__tar.gz → 0.2.126__tar.gz
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.
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/PKG-INFO +62 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/README.md +61 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/cli.py +23 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/cli_contracts.py +1 -0
- autotouch_cli-0.2.126/autotouch_cli/commands/signals.py +261 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/data/CLI_REFERENCE.md +268 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/data/cli-manifest.json +2067 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/parser.py +11 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/PKG-INFO +62 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/SOURCES.txt +3 -0
- autotouch_cli-0.2.126/autotouch_shared/contact_channels.py +47 -0
- autotouch_cli-0.2.126/autotouch_shared/lead_identity.py +34 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/lookup_outcomes.py +1 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/person_lookup_inputs.py +5 -2
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/person_relationship.py +14 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/product_use_cases.py +58 -7
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/pyproject.toml +1 -1
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/MANIFEST.in +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/README.md +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/__init__.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/__init__.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/auth.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/capacity.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/cells.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/columns.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/companies.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/crm.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/event_streams.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/integrations.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/jobs.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/leads.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/linkedin.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/list_build.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/notes.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/outreach.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/product_http.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/prompts.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/rows.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/search.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/sender_accounts.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/sequences.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/tables.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/tasks.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/webhooks.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/workspace_secrets.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/workspace_views.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/commands/workspaces.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/__init__.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/auth.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/config.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/csv_import.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/http.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/io.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/output.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/polling.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/receipts.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/run.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/core/validation.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/exceptions.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/mongo_status.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/parser_groups.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/sequence_support.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli/templates.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/dependency_links.txt +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/entry_points.txt +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/requires.txt +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_cli.egg-info/top_level.txt +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/__init__.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/add_to_crm_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/automation_predicates.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/business_email.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/classification.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/classification_config.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_catalog.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_classification_v3_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_domain_value.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_enrichment_policy.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_revenue.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/company_scoring_subject.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/email_finder_inputs.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/email_patterns.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/field_mapping.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_company_profile.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_company_size.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_company_subject.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_component_receipts.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_headline_title_parser.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_scoring.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_title_intelligence.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_title_seniority.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/fit_title_taxonomy.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/http_retry.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/jev_headline_title.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/lead_company_identity.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/lead_finder_inputs.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/lead_source_lineage.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/linkedin_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/linkedin_filters.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/linkedin_identity.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/list_build_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/logging_filters.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/outreach_company_fit.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/people_discovery_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/people_employment_screening.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/person_names.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/personal_email_domains.json +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/phone_finder_inputs.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/pipeline_patterns.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/product_lifecycle.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/provider_registry.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/realtime_events.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_cell_references.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_column_sources.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_company_inheritance.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_context.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_execution.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_field_selection.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_json_filtering.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_llm.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/research_rows.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/score_lifecycle.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/search_contract.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/source_selection.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/task_plan.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/title_attribute_cascade.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/title_org_context.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/typesafe_system_one.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/workflow_field_changes.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/workflow_plans.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/autotouch_shared/workflow_score_fields.py +0 -0
- {autotouch_cli-0.2.123 → autotouch_cli-0.2.126}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: autotouch-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.126
|
|
4
4
|
Summary: Autotouch Smart Table CLI
|
|
5
5
|
Project-URL: Homepage, https://app.autotouch.ai
|
|
6
6
|
Project-URL: Documentation, https://github.com/nicolonic/autotouch_main/tree/main/docs/research-table/reference
|
|
@@ -215,9 +215,70 @@ autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
|
|
|
215
215
|
- Create/activate sequences: `autotouch sequences recipe`, `autotouch sequences create`, `autotouch sequences activate`
|
|
216
216
|
- Choose Instantly/Smartlead sender pools for bulk sequences: `autotouch sequences sync-accounts`
|
|
217
217
|
- Query leads: `autotouch leads query`
|
|
218
|
+
- Search saved Signals: `autotouch signals query --search hiring --window-days 30 --limit 20`
|
|
218
219
|
- Find a lead by email or phone: `autotouch leads query --search '<email-or-phone>' --limit 10`
|
|
219
220
|
- Create table webhook ingest tokens: `autotouch webhooks rotate`, `autotouch webhooks configure-ingest`, `autotouch webhooks ingest`
|
|
220
221
|
|
|
222
|
+
## Search Saved Signals
|
|
223
|
+
|
|
224
|
+
`autotouch signals query` reads the same organization-visible event feed as the
|
|
225
|
+
Signals workspace. Developer API keys need both `companies:read` and `leads:read`.
|
|
226
|
+
This read uses retained events; external post/job discovery and recurring company
|
|
227
|
+
monitoring use their own commands.
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
autotouch signals query --entity people --signal-type linkedin_posts \
|
|
231
|
+
--content-category industry_commentary --topic outbound_sales --limit 20
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Use `--search` for literal case-insensitive text matching, `--company-id` for one
|
|
235
|
+
company, and repeat `--signal-type` or pass comma-separated families. The default
|
|
236
|
+
window is seven days; `--window-days 0` includes all time. Content categories and
|
|
237
|
+
topics describe social posts and do not establish buying intent.
|
|
238
|
+
|
|
239
|
+
The command returns one JSON page with `items`, `has_more`, `next_cursor`, `limit`,
|
|
240
|
+
and `as_of`. When `has_more` is true, pass `next_cursor` as `--cursor` with the same
|
|
241
|
+
filters and limit. A page with `has_more=true` is incomplete; an empty result
|
|
242
|
+
describes only the selected filters and time window. The command does not start
|
|
243
|
+
a scan, save a subscription, or create a run.
|
|
244
|
+
|
|
245
|
+
## Manage Discovery Monitors
|
|
246
|
+
|
|
247
|
+
CLI source 0.2.126 supports creating and editing recurring discovery monitors,
|
|
248
|
+
including pause and resume. Inspect the installed version and selected server's
|
|
249
|
+
capabilities; package publication and backend deployment are separate.
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
autotouch signals catalog --output json
|
|
253
|
+
autotouch signals list-discovery-monitors --output json
|
|
254
|
+
autotouch signals create-discovery-monitor --name 'Revenue leadership' \
|
|
255
|
+
--source job_changes --criteria-json '{"roles":["CRO","VP Sales","Head of Sales"]}' \
|
|
256
|
+
--frequency weekly --no-enabled --no-run-now --output json
|
|
257
|
+
autotouch signals update-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
258
|
+
--expected-revision 1 --name 'Revenue leaders' --output json
|
|
259
|
+
autotouch signals resume-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
260
|
+
--expected-revision 2 --output json
|
|
261
|
+
autotouch signals pause-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
262
|
+
--expected-revision 3 --output json
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Create/update also accept complete `--data-json` or `--data-file` request bodies.
|
|
266
|
+
Supplied criteria replace the whole criteria object; retain every desired
|
|
267
|
+
filter. Job-change roles are custom phrases, independent of the separate
|
|
268
|
+
bounded role-change search's fixed positions. Read the catalog for source
|
|
269
|
+
criteria, supported cadences and current billing.
|
|
270
|
+
|
|
271
|
+
Update, pause and resume require the exact monitor ID and current revision;
|
|
272
|
+
conflicts return without automatic rereading or retry. Pause/resume sends only
|
|
273
|
+
`expectedRevision` and `enabled`, preserving omitted criteria. Pause cancels
|
|
274
|
+
owned queued/running work, clears scheduling and keeps saved Signals and
|
|
275
|
+
unchanged-criteria checkpoints. A provider request already in flight cannot be
|
|
276
|
+
recalled. Enabled creation and resuming checks can schedule paid collection;
|
|
277
|
+
a saved configuration or queued run does not confirm delivery. Poll the monitor
|
|
278
|
+
list, then query saved evidence using `signals query --monitor-id <MONITOR_ID>`.
|
|
279
|
+
Developer keys require `companies:read`, `leads:read`, `companies:write` and
|
|
280
|
+
`search:run`. Preview, explicit Run and Save person remain API-only mutations.
|
|
281
|
+
|
|
221
282
|
## Sequence Automation Choices
|
|
222
283
|
|
|
223
284
|
When a user asks to create a campaign sequence, distinguish these separate decisions:
|
|
@@ -190,9 +190,70 @@ autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
|
|
|
190
190
|
- Create/activate sequences: `autotouch sequences recipe`, `autotouch sequences create`, `autotouch sequences activate`
|
|
191
191
|
- Choose Instantly/Smartlead sender pools for bulk sequences: `autotouch sequences sync-accounts`
|
|
192
192
|
- Query leads: `autotouch leads query`
|
|
193
|
+
- Search saved Signals: `autotouch signals query --search hiring --window-days 30 --limit 20`
|
|
193
194
|
- Find a lead by email or phone: `autotouch leads query --search '<email-or-phone>' --limit 10`
|
|
194
195
|
- Create table webhook ingest tokens: `autotouch webhooks rotate`, `autotouch webhooks configure-ingest`, `autotouch webhooks ingest`
|
|
195
196
|
|
|
197
|
+
## Search Saved Signals
|
|
198
|
+
|
|
199
|
+
`autotouch signals query` reads the same organization-visible event feed as the
|
|
200
|
+
Signals workspace. Developer API keys need both `companies:read` and `leads:read`.
|
|
201
|
+
This read uses retained events; external post/job discovery and recurring company
|
|
202
|
+
monitoring use their own commands.
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
autotouch signals query --entity people --signal-type linkedin_posts \
|
|
206
|
+
--content-category industry_commentary --topic outbound_sales --limit 20
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Use `--search` for literal case-insensitive text matching, `--company-id` for one
|
|
210
|
+
company, and repeat `--signal-type` or pass comma-separated families. The default
|
|
211
|
+
window is seven days; `--window-days 0` includes all time. Content categories and
|
|
212
|
+
topics describe social posts and do not establish buying intent.
|
|
213
|
+
|
|
214
|
+
The command returns one JSON page with `items`, `has_more`, `next_cursor`, `limit`,
|
|
215
|
+
and `as_of`. When `has_more` is true, pass `next_cursor` as `--cursor` with the same
|
|
216
|
+
filters and limit. A page with `has_more=true` is incomplete; an empty result
|
|
217
|
+
describes only the selected filters and time window. The command does not start
|
|
218
|
+
a scan, save a subscription, or create a run.
|
|
219
|
+
|
|
220
|
+
## Manage Discovery Monitors
|
|
221
|
+
|
|
222
|
+
CLI source 0.2.126 supports creating and editing recurring discovery monitors,
|
|
223
|
+
including pause and resume. Inspect the installed version and selected server's
|
|
224
|
+
capabilities; package publication and backend deployment are separate.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
autotouch signals catalog --output json
|
|
228
|
+
autotouch signals list-discovery-monitors --output json
|
|
229
|
+
autotouch signals create-discovery-monitor --name 'Revenue leadership' \
|
|
230
|
+
--source job_changes --criteria-json '{"roles":["CRO","VP Sales","Head of Sales"]}' \
|
|
231
|
+
--frequency weekly --no-enabled --no-run-now --output json
|
|
232
|
+
autotouch signals update-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
233
|
+
--expected-revision 1 --name 'Revenue leaders' --output json
|
|
234
|
+
autotouch signals resume-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
235
|
+
--expected-revision 2 --output json
|
|
236
|
+
autotouch signals pause-discovery-monitor --monitor-id <MONITOR_ID> \
|
|
237
|
+
--expected-revision 3 --output json
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Create/update also accept complete `--data-json` or `--data-file` request bodies.
|
|
241
|
+
Supplied criteria replace the whole criteria object; retain every desired
|
|
242
|
+
filter. Job-change roles are custom phrases, independent of the separate
|
|
243
|
+
bounded role-change search's fixed positions. Read the catalog for source
|
|
244
|
+
criteria, supported cadences and current billing.
|
|
245
|
+
|
|
246
|
+
Update, pause and resume require the exact monitor ID and current revision;
|
|
247
|
+
conflicts return without automatic rereading or retry. Pause/resume sends only
|
|
248
|
+
`expectedRevision` and `enabled`, preserving omitted criteria. Pause cancels
|
|
249
|
+
owned queued/running work, clears scheduling and keeps saved Signals and
|
|
250
|
+
unchanged-criteria checkpoints. A provider request already in flight cannot be
|
|
251
|
+
recalled. Enabled creation and resuming checks can schedule paid collection;
|
|
252
|
+
a saved configuration or queued run does not confirm delivery. Poll the monitor
|
|
253
|
+
list, then query saved evidence using `signals query --monitor-id <MONITOR_ID>`.
|
|
254
|
+
Developer keys require `companies:read`, `leads:read`, `companies:write` and
|
|
255
|
+
`search:run`. Preview, explicit Run and Save person remain API-only mutations.
|
|
256
|
+
|
|
196
257
|
## Sequence Automation Choices
|
|
197
258
|
|
|
198
259
|
When a user asks to create a campaign sequence, distinguish these separate decisions:
|
|
@@ -215,6 +215,14 @@ from autotouch_cli.commands.product_http import (
|
|
|
215
215
|
ProductHttpRuntime, OPERATIONS as HTTP_OPERATIONS,
|
|
216
216
|
cmd_product_http, command_name as http_command_name,
|
|
217
217
|
)
|
|
218
|
+
from autotouch_cli.commands.signals import (
|
|
219
|
+
SignalCommandRuntime,
|
|
220
|
+
cmd_signals_query as cmd_signals_query_impl,
|
|
221
|
+
cmd_signals_catalog as cmd_signals_catalog_impl,
|
|
222
|
+
cmd_signals_discovery_industries as cmd_signals_discovery_industries_impl,
|
|
223
|
+
cmd_signals_list_discovery_monitors as cmd_signals_list_discovery_monitors_impl,
|
|
224
|
+
cmd_signals_write_discovery_monitor as cmd_signals_write_discovery_monitor_impl,
|
|
225
|
+
)
|
|
218
226
|
from autotouch_cli.commands.sequences import (
|
|
219
227
|
SequenceCommandRuntime as SequenceCommandHandlerRuntime,
|
|
220
228
|
cmd_sequences_clone as cmd_sequences_clone_impl,
|
|
@@ -1398,6 +1406,15 @@ def _product_http_runtime() -> ProductHttpRuntime:
|
|
|
1398
1406
|
)
|
|
1399
1407
|
|
|
1400
1408
|
|
|
1409
|
+
def _signal_command_runtime() -> SignalCommandRuntime:
|
|
1410
|
+
return SignalCommandRuntime(
|
|
1411
|
+
resolve_token=_resolve_token,
|
|
1412
|
+
request_api=_request_api,
|
|
1413
|
+
print_json=lambda data, compact=False: _print_json(data, compact=compact),
|
|
1414
|
+
load_json_input=_load_json_input,
|
|
1415
|
+
)
|
|
1416
|
+
|
|
1417
|
+
|
|
1401
1418
|
def _workspace_command_runtime() -> WorkspaceCommandHandlerRuntime:
|
|
1402
1419
|
return WorkspaceCommandHandlerRuntime(
|
|
1403
1420
|
resolve_token=_resolve_token,
|
|
@@ -1761,6 +1778,12 @@ _register("columns_stop", cmd_columns_stop_impl, _column_command_runtime)
|
|
|
1761
1778
|
_register("columns_estimate", cmd_columns_estimate_impl, _column_command_runtime)
|
|
1762
1779
|
|
|
1763
1780
|
# -- HTTP-backed product operations --
|
|
1781
|
+
_register("signals_query", cmd_signals_query_impl, _signal_command_runtime)
|
|
1782
|
+
_register("signals_catalog", cmd_signals_catalog_impl, _signal_command_runtime)
|
|
1783
|
+
_register("signals_discovery_industries", cmd_signals_discovery_industries_impl, _signal_command_runtime)
|
|
1784
|
+
_register("signals_list_discovery_monitors", cmd_signals_list_discovery_monitors_impl, _signal_command_runtime)
|
|
1785
|
+
for _signal_write_action in ("create", "update", "pause", "resume"):
|
|
1786
|
+
_register("signals_" + _signal_write_action + "_discovery_monitor", cmd_signals_write_discovery_monitor_impl, _signal_command_runtime)
|
|
1764
1787
|
for _http_key in HTTP_OPERATIONS:
|
|
1765
1788
|
_register(http_command_name(_http_key), cmd_product_http, _product_http_runtime)
|
|
1766
1789
|
|
|
@@ -58,6 +58,7 @@ _AUTH_MODE_PREFIXES: Tuple[Tuple[str, str], ...] = (
|
|
|
58
58
|
("leads.", "developer_key_or_user_session"),
|
|
59
59
|
("notes.", "developer_key_or_user_session"),
|
|
60
60
|
("companies.", "developer_key_or_user_session"),
|
|
61
|
+
("signals.", "developer_key_or_user_session"),
|
|
61
62
|
("workspace-views.", "developer_key_or_user_session"),
|
|
62
63
|
("tasks.", "developer_key_or_user_session"),
|
|
63
64
|
("jobs.", "developer_key_or_user_session"),
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"""Read saved Signals and manage criteria-based discovery monitors over HTTP."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
import re
|
|
7
|
+
from typing import Any, Callable
|
|
8
|
+
from urllib.parse import quote
|
|
9
|
+
|
|
10
|
+
from autotouch_cli.core.io import dedupe_keep_order, split_cli_string_values
|
|
11
|
+
from autotouch_cli.exceptions import AutotouchInputError
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
CONTENT_CATEGORIES = (
|
|
15
|
+
"career_update", "industry_commentary", "company_announcement", "funding",
|
|
16
|
+
"product_update", "event", "personal", "other", "unclassified",
|
|
17
|
+
)
|
|
18
|
+
WINDOW_DAYS = (0, 1, 7, 14, 30, 90)
|
|
19
|
+
POST_ENGAGEMENT_FIELDS = ("reaction_count", "comment_count", "share_count")
|
|
20
|
+
MAX_ENGAGEMENT_COUNT = 2**53 - 1
|
|
21
|
+
SIGNAL_SORT_FIELDS = ("newest", "person_fit", "signal_score", "signal_type", *POST_ENGAGEMENT_FIELDS)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@dataclass(frozen=True)
|
|
25
|
+
class SignalCommandRuntime:
|
|
26
|
+
resolve_token: Callable[..., Any]
|
|
27
|
+
request_api: Callable[..., Any]
|
|
28
|
+
print_json: Callable[..., Any]
|
|
29
|
+
load_json_input: Callable[..., Any]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _read_discovery(args: argparse.Namespace, path: str, *, runtime: SignalCommandRuntime,
|
|
33
|
+
params: dict[str, Any] | None = None) -> None:
|
|
34
|
+
token = runtime.resolve_token(args.token, required=True)
|
|
35
|
+
data = runtime.request_api(
|
|
36
|
+
"GET", path, base_url=args.base_url, token=token, use_x_api_key=args.use_x_api_key,
|
|
37
|
+
params=params, timeout=args.timeout, verbose=args.verbose,
|
|
38
|
+
)
|
|
39
|
+
runtime.print_json(data, args.compact)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def cmd_signals_catalog(args: argparse.Namespace, *, runtime: SignalCommandRuntime) -> None:
|
|
43
|
+
_read_discovery(args, "/api/sales-signals/catalog", runtime=runtime)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def cmd_signals_discovery_industries(args: argparse.Namespace, *, runtime: SignalCommandRuntime) -> None:
|
|
47
|
+
if not 1 <= args.limit <= 20:
|
|
48
|
+
raise AutotouchInputError("--limit must be between 1 and 20")
|
|
49
|
+
query = str(args.query or "")
|
|
50
|
+
if len(query) > 100:
|
|
51
|
+
raise AutotouchInputError("--q must be 100 characters or fewer")
|
|
52
|
+
_read_discovery(args, "/api/sales-signals/discovery-monitors/industries", runtime=runtime,
|
|
53
|
+
params={"q": query, "limit": args.limit})
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def cmd_signals_list_discovery_monitors(args: argparse.Namespace, *, runtime: SignalCommandRuntime) -> None:
|
|
57
|
+
_read_discovery(args, "/api/sales-signals/discovery-monitors", runtime=runtime)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def cmd_signals_write_discovery_monitor(args: argparse.Namespace, *, runtime: SignalCommandRuntime) -> None:
|
|
61
|
+
"""Send exactly one explicit write; never reread revisions or retry purchases."""
|
|
62
|
+
payload = runtime.load_json_input(inline_json=getattr(args, "data_json", None),
|
|
63
|
+
file_path=getattr(args, "data_file", None), context="discovery monitor", default={})
|
|
64
|
+
if not isinstance(payload, dict):
|
|
65
|
+
raise AutotouchInputError("Discovery monitor data must be a JSON object")
|
|
66
|
+
payload = dict(payload)
|
|
67
|
+
for flag, field in (("monitor_id", "monitorId"), ("expected_revision", "expectedRevision"),
|
|
68
|
+
("name", "name"), ("source", "source"), ("frequency", "frequency"),
|
|
69
|
+
("enabled", "enabled"), ("run_now", "runNow"), ("request_id", "requestId")):
|
|
70
|
+
value = getattr(args, flag, None)
|
|
71
|
+
if value is not None:
|
|
72
|
+
if field in payload:
|
|
73
|
+
raise AutotouchInputError(f"Provide {field} in JSON or a flag, not both")
|
|
74
|
+
payload[field] = value
|
|
75
|
+
if getattr(args, "criteria_json", None) is not None:
|
|
76
|
+
if "criteria" in payload:
|
|
77
|
+
raise AutotouchInputError("Provide criteria in JSON or --criteria-json, not both")
|
|
78
|
+
payload["criteria"] = runtime.load_json_input(inline_json=args.criteria_json,
|
|
79
|
+
file_path=None, context="discovery monitor criteria", default={})
|
|
80
|
+
action = args.discovery_monitor_action
|
|
81
|
+
if action in {"pause", "resume"}:
|
|
82
|
+
if "enabled" in payload:
|
|
83
|
+
raise AutotouchInputError("Pause/resume sets enabled; do not also supply it in JSON")
|
|
84
|
+
if set(payload) - {"monitorId", "expectedRevision"}:
|
|
85
|
+
raise AutotouchInputError("Pause/resume accepts only monitorId and expectedRevision")
|
|
86
|
+
payload["enabled"] = action == "resume"
|
|
87
|
+
if "criteria" in payload and not isinstance(payload["criteria"], dict):
|
|
88
|
+
raise AutotouchInputError("Discovery monitor criteria must be a JSON object")
|
|
89
|
+
for field in ("enabled", "runNow"):
|
|
90
|
+
if field in payload and not isinstance(payload[field], bool):
|
|
91
|
+
raise AutotouchInputError(f"{field} must be a JSON boolean")
|
|
92
|
+
if "name" in payload and (not isinstance(payload["name"], str) or not 1 <= len(payload["name"].strip()) <= 120):
|
|
93
|
+
raise AutotouchInputError("Monitor name must contain 1–120 characters")
|
|
94
|
+
path = "/api/sales-signals/discovery-monitors"
|
|
95
|
+
if action == "create":
|
|
96
|
+
missing = {"name", "source", "criteria"} - payload.keys()
|
|
97
|
+
if missing:
|
|
98
|
+
raise AutotouchInputError("Create requires " + ", ".join(sorted(missing)) + " in JSON or flags")
|
|
99
|
+
if not isinstance(payload["source"], str) or payload["source"] not in {"jobs", "linkedin_posts", "job_changes"}:
|
|
100
|
+
raise AutotouchInputError("source must be jobs, linkedin_posts or job_changes")
|
|
101
|
+
else:
|
|
102
|
+
monitor_id = payload.pop("monitorId", None)
|
|
103
|
+
if not isinstance(monitor_id, str) or not 1 <= len(monitor_id.strip()) <= 256:
|
|
104
|
+
raise AutotouchInputError("Provide an exact --monitor-id or monitorId of 1–256 characters")
|
|
105
|
+
revision = payload.get("expectedRevision")
|
|
106
|
+
if isinstance(revision, bool) or not isinstance(revision, int) or revision < 1:
|
|
107
|
+
raise AutotouchInputError("Provide a positive whole --expected-revision or expectedRevision")
|
|
108
|
+
if set(payload) == {"expectedRevision"}:
|
|
109
|
+
raise AutotouchInputError("Update requires at least one changed monitor field")
|
|
110
|
+
path += "/" + quote(monitor_id.strip(), safe="")
|
|
111
|
+
token = runtime.resolve_token(args.token, required=True)
|
|
112
|
+
result = runtime.request_api("POST" if action == "create" else "PATCH", path,
|
|
113
|
+
base_url=args.base_url, token=token, use_x_api_key=args.use_x_api_key, payload=payload,
|
|
114
|
+
timeout=args.timeout, verbose=args.verbose)
|
|
115
|
+
runtime.print_json(result, args.compact)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def cmd_signals_query(args: argparse.Namespace, *, runtime: SignalCommandRuntime) -> None:
|
|
119
|
+
if not 1 <= args.limit <= 100:
|
|
120
|
+
raise AutotouchInputError("--limit must be between 1 and 100")
|
|
121
|
+
search = str(args.search or "").strip()
|
|
122
|
+
if len(search) > 200:
|
|
123
|
+
raise AutotouchInputError("--search must be 200 characters or fewer")
|
|
124
|
+
topic = str(args.topic or "").strip()
|
|
125
|
+
if topic and (len(topic) > 60 or not re.fullmatch(r"[a-z][a-z0-9]*(?:_[a-z0-9]+)*", topic)):
|
|
126
|
+
raise AutotouchInputError("--topic must be a lowercase snake_case topic of up to 60 characters")
|
|
127
|
+
cursor = str(args.cursor or "").strip()
|
|
128
|
+
if len(cursor) > 32768:
|
|
129
|
+
raise AutotouchInputError("--cursor must be 32,768 characters or fewer")
|
|
130
|
+
company_id = str(args.company_id or "").strip()
|
|
131
|
+
if len(company_id) > 200:
|
|
132
|
+
raise AutotouchInputError("--company-id must be 200 characters or fewer")
|
|
133
|
+
monitor_id = str(getattr(args, "monitor_id", None) or "").strip()
|
|
134
|
+
if len(monitor_id) > 200:
|
|
135
|
+
raise AutotouchInputError("--monitor-id must be 200 characters or fewer")
|
|
136
|
+
params: dict[str, Any] = {
|
|
137
|
+
"entity": args.entity,
|
|
138
|
+
"window_days": args.window_days,
|
|
139
|
+
"limit": args.limit,
|
|
140
|
+
}
|
|
141
|
+
signal_types = dedupe_keep_order(split_cli_string_values(args.signal_type))
|
|
142
|
+
if len(signal_types) > 100 or any(len(value) > 100 for value in signal_types):
|
|
143
|
+
raise AutotouchInputError("--signal-type supports up to 100 families of at most 100 characters each")
|
|
144
|
+
if signal_types:
|
|
145
|
+
params["signal_type"] = signal_types
|
|
146
|
+
for key, value in (
|
|
147
|
+
("company_id", company_id), ("monitor_id", monitor_id), ("feed_scope", getattr(args, "feed_scope", None)),
|
|
148
|
+
("q", search), ("content_category", args.content_category), ("promotion", getattr(args, "promotion", None)), ("job_ad", getattr(args, "job_ad", None)),
|
|
149
|
+
("topic", topic), ("cursor", cursor),
|
|
150
|
+
):
|
|
151
|
+
if value:
|
|
152
|
+
params[key] = value
|
|
153
|
+
for metric in POST_ENGAGEMENT_FIELDS:
|
|
154
|
+
low, high = (getattr(args, metric + "_" + edge, None) for edge in ("min", "max"))
|
|
155
|
+
for edge, value in (("min", low), ("max", high)):
|
|
156
|
+
if value is not None:
|
|
157
|
+
if isinstance(value, bool) or not isinstance(value, int) or not 0 <= value <= MAX_ENGAGEMENT_COUNT:
|
|
158
|
+
raise AutotouchInputError(f"--{metric.replace('_', '-')}-{edge} must be a nonnegative whole count")
|
|
159
|
+
params[metric + "_" + edge] = value
|
|
160
|
+
if low is not None and high is not None and low > high:
|
|
161
|
+
raise AutotouchInputError(f"--{metric.replace('_', '-')}-min must not exceed maximum")
|
|
162
|
+
if getattr(args, "sort_by", None) is not None:
|
|
163
|
+
params["sort_by"] = args.sort_by
|
|
164
|
+
if getattr(args, "sort_direction", None) is not None:
|
|
165
|
+
params["sort_direction"] = args.sort_direction
|
|
166
|
+
token = runtime.resolve_token(args.token, required=True)
|
|
167
|
+
data = runtime.request_api(
|
|
168
|
+
"GET", "/api/sales-signals/workspace",
|
|
169
|
+
base_url=args.base_url, token=token, use_x_api_key=args.use_x_api_key,
|
|
170
|
+
params=params, timeout=args.timeout, verbose=args.verbose,
|
|
171
|
+
)
|
|
172
|
+
runtime.print_json(data, args.compact)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def register_signal_subcommands(subparsers, *, handlers, add_api_common_arguments) -> None:
|
|
176
|
+
parser = subparsers.add_parser("signals", help="Read Signals evidence and manage discovery monitors")
|
|
177
|
+
commands = parser.add_subparsers(dest="signals_cmd", required=True)
|
|
178
|
+
query = commands.add_parser(
|
|
179
|
+
"query", help="Search one page of saved Signals",
|
|
180
|
+
description=(
|
|
181
|
+
"Search retained organization-visible signal events. This read makes no provider calls "
|
|
182
|
+
"and does not enroll companies or run checks. Developer keys require both companies:read "
|
|
183
|
+
"and leads:read. The JSON response preserves items, has_more, next_cursor, limit, and as_of; "
|
|
184
|
+
"pass next_cursor with the same filters to read another page."
|
|
185
|
+
),
|
|
186
|
+
)
|
|
187
|
+
query.add_argument("--entity", choices=("all", "companies", "people"), default="all")
|
|
188
|
+
query.add_argument("--feed-scope", choices=("all", "monitors", "discover"), help="Combined authorized feed (all), saved monitor matches, or remaining discovery observations; defaults to all")
|
|
189
|
+
query.add_argument("--signal-type", action="append", help="Signal family; repeatable or comma-separated")
|
|
190
|
+
query.add_argument("--window-days", type=int, choices=WINDOW_DAYS, default=7, help="Event time window; 0 means all time (default: 7)")
|
|
191
|
+
query.add_argument("--company-id", help="Exact organization Company id")
|
|
192
|
+
query.add_argument("--monitor-id", help="Exact authorized monitor ID from list-discovery-monitors; reads its saved evidence, up to 200 characters")
|
|
193
|
+
query.add_argument("--search", "--q", dest="search", help="Literal case-insensitive text search, up to 200 characters")
|
|
194
|
+
query.add_argument("--content-category", choices=CONTENT_CATEGORIES, help="Social post category; unclassified includes posts without ready annotations")
|
|
195
|
+
query.add_argument("--promotion", choices=("yes", "no", "uncertain"), help="Saved post promotion assessment, independent of category")
|
|
196
|
+
query.add_argument("--job-ad", choices=("all", "yes", "no", "uncertain"), help="Default hides job ads; all explicitly includes every post for review")
|
|
197
|
+
query.add_argument("--topic", help="Exact lowercase snake_case social topic, up to 60 characters")
|
|
198
|
+
for metric in POST_ENGAGEMENT_FIELDS:
|
|
199
|
+
for edge in ("min", "max"):
|
|
200
|
+
query.add_argument("--" + metric.replace("_", "-") + "-" + edge, type=int,
|
|
201
|
+
help=f"Inclusive {edge} {metric.replace('_', ' ')}; missing counts do not match")
|
|
202
|
+
query.add_argument("--sort-by", choices=SIGNAL_SORT_FIELDS, help="Server-side ordering across all matching signals")
|
|
203
|
+
query.add_argument("--sort-direction", choices=("asc", "desc"), help="Sort direction; unknown engagement stays last")
|
|
204
|
+
query.add_argument("--limit", type=int, default=50, help="Maximum events in this page, 1-100 (default: 50)")
|
|
205
|
+
query.add_argument("--cursor", help="Opaque next_cursor from the preceding page; preserve all filters")
|
|
206
|
+
query._codex_examples = [
|
|
207
|
+
"autotouch signals query --search hiring --window-days 30 --limit 20",
|
|
208
|
+
"autotouch signals query --entity people --signal-type linkedin_posts --content-category industry_commentary --topic outbound_sales",
|
|
209
|
+
]
|
|
210
|
+
add_api_common_arguments(query)
|
|
211
|
+
query.set_defaults(func=handlers["query"], command_key="signals.query")
|
|
212
|
+
|
|
213
|
+
catalog = commands.add_parser("catalog", help="Read source criteria, cadences, taxonomy and billing policy",
|
|
214
|
+
description="Read the current Signals catalog. This configuration read starts no provider work. Developer keys require companies:read.")
|
|
215
|
+
add_api_common_arguments(catalog)
|
|
216
|
+
catalog.set_defaults(func=handlers["catalog"], command_key="signals.catalog")
|
|
217
|
+
|
|
218
|
+
industries = commands.add_parser("discovery-industries", help="Search canonical discovery industry choices",
|
|
219
|
+
description="Read up to twenty canonical industry choices without provider work. Use labels for Job changes and IDs for LinkedIn post author filters. Developer keys require companies:read.")
|
|
220
|
+
industries.add_argument("--q", "--query", dest="query", default="", help="Industry label or exact ID, up to 100 characters")
|
|
221
|
+
industries.add_argument("--limit", type=int, default=20, help="Maximum choices, 1-20 (default: 20)")
|
|
222
|
+
add_api_common_arguments(industries)
|
|
223
|
+
industries.set_defaults(func=handlers["discovery_industries"], command_key="signals.discovery-industries")
|
|
224
|
+
|
|
225
|
+
monitors = commands.add_parser("list-discovery-monitors", help="Read saved discovery monitors and collection status",
|
|
226
|
+
description="List organization-owned discovery monitors, current revisions and collection status. This read starts no checks or provider work. Developer keys require companies:read and leads:read.")
|
|
227
|
+
add_api_common_arguments(monitors)
|
|
228
|
+
monitors.set_defaults(func=handlers["list_discovery_monitors"], command_key="signals.list-discovery-monitors")
|
|
229
|
+
|
|
230
|
+
for action in ("create", "update", "pause", "resume"):
|
|
231
|
+
key = action + "_discovery_monitor"
|
|
232
|
+
command = action + "-discovery-monitor"
|
|
233
|
+
write = commands.add_parser(command, help=action.capitalize() + " a discovery monitor",
|
|
234
|
+
description=("Use the selected server's Signals catalog for criteria and billing. "
|
|
235
|
+
"Create and enabled edits/resume can schedule paid collection; pause cancels owned queued/running work "
|
|
236
|
+
"and preserves saved Signals plus checkpoints when criteria are unchanged. In-flight provider requests cannot be recalled. "
|
|
237
|
+
"Updates require the exact monitor ID and current revision; conflicts are never automatically retried. "
|
|
238
|
+
"Developer keys require companies:read, leads:read, companies:write and search:run."))
|
|
239
|
+
data = write.add_mutually_exclusive_group()
|
|
240
|
+
data.add_argument("--data-json", help="Complete request JSON; flags can add fields absent from JSON")
|
|
241
|
+
data.add_argument("--data-file", help="Complete request JSON file; use - for stdin")
|
|
242
|
+
if action != "create":
|
|
243
|
+
write.add_argument("--monitor-id", help="Exact saved monitor ID from list-discovery-monitors; required in flags or JSON")
|
|
244
|
+
write.add_argument("--expected-revision", type=int, help="Current saved revision; required in flags or JSON; no automatic reread")
|
|
245
|
+
if action in {"create", "update"}:
|
|
246
|
+
write.add_argument("--name", help="Monitor name, 1–120 characters")
|
|
247
|
+
if action == "create":
|
|
248
|
+
write.add_argument("--source", choices=("jobs", "linkedin_posts", "job_changes"), help="Immutable source")
|
|
249
|
+
write.add_argument("--run-now", action=argparse.BooleanOptionalAction, default=None,
|
|
250
|
+
help="Request an initial check when enabled (server default true); --no-run-now waits for cadence")
|
|
251
|
+
write.add_argument("--request-id", help="Stable create retry identity; reuse only with unchanged payload")
|
|
252
|
+
write.add_argument("--criteria-json", help="Complete source criteria JSON; update replaces every criterion")
|
|
253
|
+
write.add_argument("--frequency", choices=("hourly", "daily", "weekly"), help="Cadence allowed by the selected source")
|
|
254
|
+
write.add_argument("--enabled", action=argparse.BooleanOptionalAction, default=None,
|
|
255
|
+
help="Enable paid scheduling or --no-enabled to pause/save paused")
|
|
256
|
+
write._codex_examples = [
|
|
257
|
+
"autotouch signals " + command + (" --data-file monitor.json" if action == "create" else
|
|
258
|
+
" --monitor-id <MONITOR_ID> --expected-revision 3" + (" --name 'New name'" if action == "update" else ""))
|
|
259
|
+
]
|
|
260
|
+
add_api_common_arguments(write)
|
|
261
|
+
write.set_defaults(func=handlers[key], command_key="signals." + command, discovery_monitor_action=action)
|