@vouchline/sdk 0.0.0-stage → 0.1.0
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.
- package/README.md +117 -2
- package/dist/client.d.ts +85 -0
- package/dist/client.js +174 -0
- package/dist/errors.d.ts +51 -0
- package/dist/errors.js +84 -0
- package/dist/generated.d.ts +10962 -0
- package/dist/generated.js +448 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/sse.d.ts +9 -0
- package/dist/sse.js +57 -0
- package/package.json +26 -4
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
// Generated by scripts/generate_sdk_types.py from schema/openapi.yaml. Do not edit.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const operations = {
|
|
4
|
+
a2a_jsonrpc: { method: "POST", path: "/v1/a2a", scope: "runs:write" },
|
|
5
|
+
agent_templates_list: { method: "GET", path: "/v1/agent-templates", scope: "any" },
|
|
6
|
+
brief_kinds_list: { method: "GET", path: "/v1/brief-kinds", scope: "any" },
|
|
7
|
+
efforts_list: { method: "GET", path: "/v1/efforts", scope: "any" },
|
|
8
|
+
examples_list: { method: "GET", path: "/v1/examples", scope: "any" },
|
|
9
|
+
flat_actions_approve: { method: "POST", path: "/v1/actions/{action_id}/approve", scope: "actions:approve" },
|
|
10
|
+
flat_actions_bulk_approve: { method: "POST", path: "/v1/actions/approve", scope: "actions:approve" },
|
|
11
|
+
flat_actions_bulk_reject: { method: "POST", path: "/v1/actions/reject", scope: "actions:approve" },
|
|
12
|
+
flat_actions_cancel: { method: "POST", path: "/v1/actions/{action_id}/cancel", scope: "runs:write" },
|
|
13
|
+
flat_actions_catalog: { method: "GET", path: "/v1/action-catalog", scope: "runs:read" },
|
|
14
|
+
flat_actions_complete: { method: "POST", path: "/v1/actions/{action_id}/complete", scope: "runs:write" },
|
|
15
|
+
flat_actions_groups_create: { method: "POST", path: "/v1/approver-groups", scope: "admin" },
|
|
16
|
+
flat_actions_groups_delete: { method: "DELETE", path: "/v1/approver-groups/{group_id}", scope: "admin" },
|
|
17
|
+
flat_actions_groups_list: { method: "GET", path: "/v1/approver-groups", scope: "admin" },
|
|
18
|
+
flat_actions_groups_retrieve: { method: "GET", path: "/v1/approver-groups/{group_id}", scope: "admin" },
|
|
19
|
+
flat_actions_groups_update: { method: "PUT", path: "/v1/approver-groups/{group_id}", scope: "admin" },
|
|
20
|
+
flat_actions_list: { method: "GET", path: "/v1/actions", scope: "runs:read" },
|
|
21
|
+
flat_actions_policies_create: { method: "POST", path: "/v1/action-policies", scope: "admin" },
|
|
22
|
+
flat_actions_policies_delete: { method: "DELETE", path: "/v1/action-policies/{policy_id}", scope: "admin" },
|
|
23
|
+
flat_actions_policies_list: { method: "GET", path: "/v1/action-policies", scope: "admin" },
|
|
24
|
+
flat_actions_policies_retrieve: { method: "GET", path: "/v1/action-policies/{policy_id}", scope: "admin" },
|
|
25
|
+
flat_actions_policies_update: { method: "PUT", path: "/v1/action-policies/{policy_id}", scope: "admin" },
|
|
26
|
+
flat_actions_reject: { method: "POST", path: "/v1/actions/{action_id}/reject", scope: "actions:approve" },
|
|
27
|
+
flat_actions_retrieve: { method: "GET", path: "/v1/actions/{action_id}", scope: "runs:read" },
|
|
28
|
+
flat_actions_senders: { method: "GET", path: "/v1/actions/{action_id}/senders", scope: "runs:read" },
|
|
29
|
+
flat_actions_update: { method: "PATCH", path: "/v1/actions/{action_id}", scope: "runs:write" },
|
|
30
|
+
flat_agents_action_settings_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/action-settings", scope: "agents:read" },
|
|
31
|
+
flat_agents_action_settings_update: { method: "PUT", path: "/v1/agents/{agent_slug}/action-settings", scope: "agents:write" },
|
|
32
|
+
flat_agents_after_run_rules_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/after-run-rules", scope: "agents:read" },
|
|
33
|
+
flat_agents_after_run_rules_update: { method: "PUT", path: "/v1/agents/{agent_slug}/after-run-rules", scope: "agents:write" },
|
|
34
|
+
flat_agents_apply: { method: "PUT", path: "/v1/agents/apply", scope: "agents:write" },
|
|
35
|
+
flat_agents_archive: { method: "DELETE", path: "/v1/agents/{agent_slug}", scope: "agents:write" },
|
|
36
|
+
flat_agents_company_sources_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/company-sources", scope: "agents:read" },
|
|
37
|
+
flat_agents_company_sources_update: { method: "PUT", path: "/v1/agents/{agent_slug}/company-sources", scope: "agents:write" },
|
|
38
|
+
flat_agents_cost_history: { method: "GET", path: "/v1/agents/{agent_slug}/cost-history", scope: "agents:read" },
|
|
39
|
+
flat_agents_cost_settings_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/cost-settings", scope: "agents:read" },
|
|
40
|
+
flat_agents_cost_settings_update: { method: "PUT", path: "/v1/agents/{agent_slug}/cost-settings", scope: "agents:write" },
|
|
41
|
+
flat_agents_create: { method: "POST", path: "/v1/agents", scope: "agents:write" },
|
|
42
|
+
flat_agents_data_source_suggestions: { method: "GET", path: "/v1/agents/{agent_slug}/data-sources/suggestions", scope: "agents:read" },
|
|
43
|
+
flat_agents_diff: { method: "GET", path: "/v1/agents/{agent_slug}/diff", scope: "agents:read" },
|
|
44
|
+
flat_agents_events_list: { method: "GET", path: "/v1/agents/{agent_slug}/events", scope: "agents:read" },
|
|
45
|
+
flat_agents_export: { method: "GET", path: "/v1/agents/{agent_slug}/export", scope: "agents:read" },
|
|
46
|
+
flat_agents_files: { method: "GET", path: "/v1/agents/{agent_slug}/files", scope: "agents:read" },
|
|
47
|
+
flat_agents_generate: { method: "POST", path: "/v1/agents/generate", scope: "agents:write" },
|
|
48
|
+
flat_agents_handoff_rule_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/handoff-rule", scope: "agents:read" },
|
|
49
|
+
flat_agents_handoff_rule_update: { method: "PUT", path: "/v1/agents/{agent_slug}/handoff-rule", scope: "agents:write" },
|
|
50
|
+
flat_agents_import: { method: "POST", path: "/v1/agents/import", scope: "agents:write" },
|
|
51
|
+
flat_agents_install: { method: "POST", path: "/v1/agents/install", scope: "admin" },
|
|
52
|
+
flat_agents_limits: { method: "GET", path: "/v1/agents/limits", scope: "agents:read" },
|
|
53
|
+
flat_agents_list: { method: "GET", path: "/v1/agents", scope: "agents:read" },
|
|
54
|
+
flat_agents_mcp_servers_attach: { method: "PUT", path: "/v1/agents/{agent_slug}/mcp-servers/{server_id}", scope: "agents:write" },
|
|
55
|
+
flat_agents_mcp_servers_detach: { method: "DELETE", path: "/v1/agents/{agent_slug}/mcp-servers/{server_id}", scope: "agents:write" },
|
|
56
|
+
flat_agents_mcp_servers_list: { method: "GET", path: "/v1/agents/{agent_slug}/mcp-servers", scope: "agents:read" },
|
|
57
|
+
flat_agents_overview: { method: "GET", path: "/v1/agents/overview", scope: "agents:read" },
|
|
58
|
+
flat_agents_permissions_create: { method: "POST", path: "/v1/agents/{agent_slug}/permissions", scope: "agents:write" },
|
|
59
|
+
flat_agents_permissions_delete: { method: "DELETE", path: "/v1/agents/{agent_slug}/permissions/{grant_id}", scope: "agents:write" },
|
|
60
|
+
flat_agents_permissions_list: { method: "GET", path: "/v1/agents/{agent_slug}/permissions", scope: "agents:read" },
|
|
61
|
+
flat_agents_plan_preview: { method: "POST", path: "/v1/agents/{agent_slug}/plan-preview", scope: "runs:write" },
|
|
62
|
+
flat_agents_publish: { method: "POST", path: "/v1/agents/{agent_slug}/publish", scope: "agents:write" },
|
|
63
|
+
flat_agents_readiness: { method: "GET", path: "/v1/agents/{agent_slug}/readiness", scope: "agents:read" },
|
|
64
|
+
flat_agents_recommend: { method: "POST", path: "/v1/agents/recommend", scope: "runs:write" },
|
|
65
|
+
flat_agents_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}", scope: "agents:read" },
|
|
66
|
+
flat_agents_rollback: { method: "POST", path: "/v1/agents/{agent_slug}/rollback", scope: "agents:write" },
|
|
67
|
+
flat_agents_unarchive: { method: "POST", path: "/v1/agents/{agent_slug}/unarchive", scope: "agents:write" },
|
|
68
|
+
flat_agents_uninstall: { method: "POST", path: "/v1/agents/uninstall", scope: "admin" },
|
|
69
|
+
flat_agents_update: { method: "PATCH", path: "/v1/agents/{agent_slug}", scope: "agents:write" },
|
|
70
|
+
flat_agents_upgrade_from_template: { method: "POST", path: "/v1/agents/{agent_slug}/upgrade", scope: "agents:write" },
|
|
71
|
+
flat_agents_usage: { method: "GET", path: "/v1/agents/{agent_slug}/usage", scope: "agents:read" },
|
|
72
|
+
flat_agents_validate: { method: "POST", path: "/v1/agents/validate", scope: "agents:write" },
|
|
73
|
+
flat_agents_versions: { method: "GET", path: "/v1/agents/{agent_slug}/versions", scope: "agents:read" },
|
|
74
|
+
flat_agents_versions_restore: { method: "POST", path: "/v1/agents/{agent_slug}/versions/{number}/restore", scope: "agents:write" },
|
|
75
|
+
flat_api_activity_get: { method: "GET", path: "/v1/api-activity/{request_log_id}", scope: "admin" },
|
|
76
|
+
flat_api_activity_list: { method: "GET", path: "/v1/api-activity", scope: "admin" },
|
|
77
|
+
flat_audit_events_export: { method: "GET", path: "/v1/audit-events/export", scope: "admin" },
|
|
78
|
+
flat_audit_events_get: { method: "GET", path: "/v1/audit-events/{event_id}", scope: "admin" },
|
|
79
|
+
flat_audit_events_list: { method: "GET", path: "/v1/audit-events", scope: "admin" },
|
|
80
|
+
flat_audit_events_stream: { method: "GET", path: "/v1/audit-events/stream", scope: "admin" },
|
|
81
|
+
flat_audit_events_verify: { method: "GET", path: "/v1/audit-events/verify", scope: "admin" },
|
|
82
|
+
flat_batches_approve: { method: "POST", path: "/v1/batches/{batch_id}/approve", scope: "admin" },
|
|
83
|
+
flat_batches_cancel: { method: "POST", path: "/v1/batches/{batch_id}/cancel", scope: "batches:write" },
|
|
84
|
+
flat_batches_create: { method: "POST", path: "/v1/batches", scope: "batches:write" },
|
|
85
|
+
flat_batches_dashboard: { method: "GET", path: "/v1/batches/{batch_id}/dashboard", scope: "runs:read" },
|
|
86
|
+
flat_batches_dashboard_share_create: { method: "POST", path: "/v1/batches/{batch_id}/dashboard/share", scope: "batches:write" },
|
|
87
|
+
flat_batches_dashboard_share_revoke: { method: "POST", path: "/v1/batches/{batch_id}/dashboard/shares/{share_id}/revoke", scope: "batches:write" },
|
|
88
|
+
flat_batches_dashboard_shares_list: { method: "GET", path: "/v1/batches/{batch_id}/dashboard/shares", scope: "runs:read" },
|
|
89
|
+
flat_batches_estimate: { method: "POST", path: "/v1/batches/estimate", scope: "batches:write" },
|
|
90
|
+
flat_batches_export_to: { method: "POST", path: "/v1/batches/{batch_id}/export-to", scope: "runs:write" },
|
|
91
|
+
flat_batches_export_to_options: { method: "GET", path: "/v1/batches/{batch_id}/export-to", scope: "runs:read" },
|
|
92
|
+
flat_batches_list: { method: "GET", path: "/v1/batches", scope: "runs:read" },
|
|
93
|
+
flat_batches_pause: { method: "POST", path: "/v1/batches/{batch_id}/pause", scope: "batches:write" },
|
|
94
|
+
flat_batches_quote: { method: "POST", path: "/v1/batches/quote", scope: "batches:write" },
|
|
95
|
+
flat_batches_results_csv: { method: "GET", path: "/v1/batches/{batch_id}/results.csv", scope: "runs:read" },
|
|
96
|
+
flat_batches_resume: { method: "POST", path: "/v1/batches/{batch_id}/resume", scope: "batches:write" },
|
|
97
|
+
flat_batches_retrieve: { method: "GET", path: "/v1/batches/{batch_id}", scope: "runs:read" },
|
|
98
|
+
flat_batches_retry_failed: { method: "POST", path: "/v1/batches/{batch_id}/retry-failed", scope: "batches:write" },
|
|
99
|
+
flat_batches_row_retry: { method: "POST", path: "/v1/batches/{batch_id}/rows/{number}/retry", scope: "batches:write" },
|
|
100
|
+
flat_batches_rows: { method: "GET", path: "/v1/batches/{batch_id}/rows", scope: "runs:read" },
|
|
101
|
+
flat_billing_change_plan: { method: "POST", path: "/v1/billing/plan", scope: "admin" },
|
|
102
|
+
flat_billing_checkout_confirm: { method: "POST", path: "/v1/billing/checkout/confirm", scope: "admin" },
|
|
103
|
+
flat_billing_plan_usage: { method: "GET", path: "/v1/billing/plan-usage", scope: "usage:read" },
|
|
104
|
+
flat_billing_portal: { method: "POST", path: "/v1/billing/portal", scope: "admin" },
|
|
105
|
+
flat_billing_retrieve: { method: "GET", path: "/v1/billing", scope: "usage:read" },
|
|
106
|
+
flat_billing_spending: { method: "PUT", path: "/v1/billing/spending", scope: "admin" },
|
|
107
|
+
flat_briefings_latest: { method: "GET", path: "/v1/briefings/latest", scope: "any" },
|
|
108
|
+
flat_briefings_list: { method: "GET", path: "/v1/briefings", scope: "any" },
|
|
109
|
+
flat_briefs_draft: { method: "POST", path: "/v1/briefs/draft", scope: "runs:write" },
|
|
110
|
+
flat_campaigns_approve: { method: "POST", path: "/v1/campaigns/{campaign_id}/approve", scope: "batches:write" },
|
|
111
|
+
flat_campaigns_cancel: { method: "POST", path: "/v1/campaigns/{campaign_id}/cancel", scope: "batches:write" },
|
|
112
|
+
flat_campaigns_create: { method: "POST", path: "/v1/campaigns", scope: "batches:write" },
|
|
113
|
+
flat_campaigns_deliverables_sheet: { method: "GET", path: "/v1/campaigns/{campaign_id}/deliverables/sheet", scope: "runs:read" },
|
|
114
|
+
flat_campaigns_estimate: { method: "POST", path: "/v1/campaigns/{campaign_id}/estimate", scope: "batches:write" },
|
|
115
|
+
flat_campaigns_graph: { method: "GET", path: "/v1/campaigns/{campaign_id}/graph", scope: "runs:read" },
|
|
116
|
+
flat_campaigns_list: { method: "GET", path: "/v1/campaigns", scope: "runs:read" },
|
|
117
|
+
flat_campaigns_pause: { method: "POST", path: "/v1/campaigns/{campaign_id}/pause", scope: "batches:write" },
|
|
118
|
+
flat_campaigns_results: { method: "GET", path: "/v1/campaigns/{campaign_id}/results", scope: "runs:read" },
|
|
119
|
+
flat_campaigns_resume: { method: "POST", path: "/v1/campaigns/{campaign_id}/resume", scope: "batches:write" },
|
|
120
|
+
flat_campaigns_retrieve: { method: "GET", path: "/v1/campaigns/{campaign_id}", scope: "runs:read" },
|
|
121
|
+
flat_campaigns_retry: { method: "POST", path: "/v1/campaigns/{campaign_id}/retry", scope: "batches:write" },
|
|
122
|
+
flat_campaigns_save_as_playbook: { method: "POST", path: "/v1/campaigns/{campaign_id}/save-as-playbook", scope: "batches:write" },
|
|
123
|
+
flat_campaigns_update: { method: "PATCH", path: "/v1/campaigns/{campaign_id}", scope: "batches:write" },
|
|
124
|
+
flat_campaigns_validate: { method: "POST", path: "/v1/campaigns/{campaign_id}/validate", scope: "batches:write" },
|
|
125
|
+
flat_campaigns_validate_draft: { method: "POST", path: "/v1/campaigns/validate", scope: "batches:write" },
|
|
126
|
+
flat_chat_connections_create: { method: "POST", path: "/v1/chat-connections", scope: "admin" },
|
|
127
|
+
flat_chat_connections_delete: { method: "DELETE", path: "/v1/chat-connections/{connection_id}", scope: "admin" },
|
|
128
|
+
flat_chat_connections_get: { method: "GET", path: "/v1/chat-connections/{connection_id}", scope: "admin" },
|
|
129
|
+
flat_chat_connections_list: { method: "GET", path: "/v1/chat-connections", scope: "admin" },
|
|
130
|
+
flat_chat_connections_options: { method: "GET", path: "/v1/chat-connections/options", scope: "runs:write" },
|
|
131
|
+
flat_chat_connections_send_test: { method: "POST", path: "/v1/chat-connections/{connection_id}/test", scope: "admin" },
|
|
132
|
+
flat_chat_connections_test: { method: "POST", path: "/v1/chat-connections/test", scope: "admin" },
|
|
133
|
+
flat_chat_connections_update: { method: "PATCH", path: "/v1/chat-connections/{connection_id}", scope: "admin" },
|
|
134
|
+
flat_chat_deliveries_list: { method: "GET", path: "/v1/chat-deliveries", scope: "admin" },
|
|
135
|
+
flat_chat_deliveries_retry: { method: "POST", path: "/v1/chat-deliveries/{delivery_id}/retry", scope: "admin" },
|
|
136
|
+
flat_chat_delivery_agent_rules_get: { method: "GET", path: "/v1/agents/{agent_slug}/chat-delivery", scope: "agents:read" },
|
|
137
|
+
flat_chat_delivery_agent_rules_put: { method: "PUT", path: "/v1/agents/{agent_slug}/chat-delivery", scope: "agents:write" },
|
|
138
|
+
flat_chat_delivery_defaults_get: { method: "GET", path: "/v1/chat-delivery/defaults", scope: "runs:read" },
|
|
139
|
+
flat_chat_delivery_defaults_put: { method: "PUT", path: "/v1/chat-delivery/defaults", scope: "admin" },
|
|
140
|
+
flat_chats_create: { method: "POST", path: "/v1/chats", scope: "runs:write" },
|
|
141
|
+
flat_chats_delete: { method: "DELETE", path: "/v1/chats/{chat_id}", scope: "runs:write" },
|
|
142
|
+
flat_chats_list: { method: "GET", path: "/v1/chats", scope: "runs:read" },
|
|
143
|
+
flat_chats_rename: { method: "PATCH", path: "/v1/chats/{chat_id}", scope: "runs:write" },
|
|
144
|
+
flat_chats_retrieve: { method: "GET", path: "/v1/chats/{chat_id}", scope: "runs:read" },
|
|
145
|
+
flat_chats_send: { method: "POST", path: "/v1/chats/{chat_id}/messages", scope: "runs:write" },
|
|
146
|
+
flat_connectors_get: { method: "GET", path: "/v1/connectors/{connector_id}", scope: "connectors:read" },
|
|
147
|
+
flat_connectors_list: { method: "GET", path: "/v1/connectors", scope: "connectors:read" },
|
|
148
|
+
flat_connectors_test: { method: "POST", path: "/v1/connectors/{connector_id}/test", scope: "connectors:read" },
|
|
149
|
+
flat_correction_proposals_approve: { method: "POST", path: "/v1/correction-proposals/{proposal_id}/approve", scope: "admin" },
|
|
150
|
+
flat_correction_proposals_list: { method: "GET", path: "/v1/correction-proposals", scope: "actions:approve" },
|
|
151
|
+
flat_correction_proposals_reject: { method: "POST", path: "/v1/correction-proposals/{proposal_id}/reject", scope: "admin" },
|
|
152
|
+
flat_correction_proposals_retrieve: { method: "GET", path: "/v1/correction-proposals/{proposal_id}", scope: "actions:approve" },
|
|
153
|
+
flat_credits_auto_recharge_retrieve: { method: "GET", path: "/v1/credits/auto-recharge", scope: "admin" },
|
|
154
|
+
flat_credits_auto_recharge_update: { method: "PUT", path: "/v1/credits/auto-recharge", scope: "admin" },
|
|
155
|
+
flat_credits_checkout_create: { method: "POST", path: "/v1/credits/checkout", scope: "admin" },
|
|
156
|
+
flat_credits_packs_list: { method: "GET", path: "/v1/credits/packs", scope: "usage:read" },
|
|
157
|
+
flat_credits_purchase_confirm: { method: "POST", path: "/v1/credits/purchases/{purchase_id}/confirm", scope: "admin" },
|
|
158
|
+
flat_credits_purchases_list: { method: "GET", path: "/v1/credits/purchases", scope: "admin" },
|
|
159
|
+
flat_credits_retrieve: { method: "GET", path: "/v1/credits", scope: "usage:read" },
|
|
160
|
+
flat_credits_transactions_list: { method: "GET", path: "/v1/credits/transactions", scope: "usage:read" },
|
|
161
|
+
flat_custom_playbooks_archive: { method: "DELETE", path: "/v1/playbooks/custom/{playbook_id}", scope: "batches:write" },
|
|
162
|
+
flat_custom_playbooks_create: { method: "POST", path: "/v1/playbooks/custom", scope: "batches:write" },
|
|
163
|
+
flat_custom_playbooks_list: { method: "GET", path: "/v1/playbooks/custom", scope: "runs:read" },
|
|
164
|
+
flat_custom_playbooks_retrieve: { method: "GET", path: "/v1/playbooks/custom/{playbook_id}", scope: "runs:read" },
|
|
165
|
+
flat_custom_playbooks_update: { method: "PATCH", path: "/v1/playbooks/custom/{playbook_id}", scope: "batches:write" },
|
|
166
|
+
flat_estimates_create: { method: "POST", path: "/v1/estimates", scope: "usage:read" },
|
|
167
|
+
flat_eval_suites_create: { method: "POST", path: "/v1/eval-suites", scope: "agents:write" },
|
|
168
|
+
flat_eval_suites_delete: { method: "DELETE", path: "/v1/eval-suites/{suite_id}", scope: "agents:write" },
|
|
169
|
+
flat_eval_suites_duplicate: { method: "POST", path: "/v1/eval-suites/{suite_id}/duplicate", scope: "agents:write" },
|
|
170
|
+
flat_eval_suites_list: { method: "GET", path: "/v1/eval-suites", scope: "agents:read" },
|
|
171
|
+
flat_eval_suites_retrieve: { method: "GET", path: "/v1/eval-suites/{suite_id}", scope: "agents:read" },
|
|
172
|
+
flat_eval_suites_update: { method: "PATCH", path: "/v1/eval-suites/{suite_id}", scope: "agents:write" },
|
|
173
|
+
flat_evals_cancel: { method: "POST", path: "/v1/agents/{agent_slug}/evals/{eval_id}/cancel", scope: "agents:write" },
|
|
174
|
+
flat_evals_create: { method: "POST", path: "/v1/agents/{agent_slug}/evals", scope: "agents:write" },
|
|
175
|
+
flat_evals_estimate: { method: "GET", path: "/v1/agents/{agent_slug}/evals/estimate", scope: "agents:read" },
|
|
176
|
+
flat_evals_list: { method: "GET", path: "/v1/agents/{agent_slug}/evals", scope: "agents:read" },
|
|
177
|
+
flat_evals_results: { method: "GET", path: "/v1/evals/{eval_id}/results", scope: "agents:read" },
|
|
178
|
+
flat_evals_retrieve: { method: "GET", path: "/v1/evals/{eval_id}", scope: "agents:read" },
|
|
179
|
+
flat_files_delete: { method: "DELETE", path: "/v1/files/{file_id}", scope: "runs:write" },
|
|
180
|
+
flat_files_download: { method: "GET", path: "/v1/files/{file_id}/download", scope: "runs:read" },
|
|
181
|
+
flat_files_import: { method: "POST", path: "/v1/files/import", scope: "runs:write" },
|
|
182
|
+
flat_files_list: { method: "GET", path: "/v1/files", scope: "runs:read" },
|
|
183
|
+
flat_files_ocr: { method: "POST", path: "/v1/files/{file_id}/ocr", scope: "runs:write" },
|
|
184
|
+
flat_files_page_image: { method: "GET", path: "/v1/files/{file_id}/pages/{number}/image", scope: "runs:read" },
|
|
185
|
+
flat_files_page_retrieve: { method: "GET", path: "/v1/files/{file_id}/pages/{number}", scope: "runs:read" },
|
|
186
|
+
flat_files_retrieve: { method: "GET", path: "/v1/files/{file_id}", scope: "runs:read" },
|
|
187
|
+
flat_files_upload: { method: "POST", path: "/v1/files", scope: "runs:write" },
|
|
188
|
+
flat_invoices_get: { method: "GET", path: "/v1/invoices/{invoice_id}", scope: "admin" },
|
|
189
|
+
flat_invoices_list: { method: "GET", path: "/v1/invoices", scope: "admin" },
|
|
190
|
+
flat_invoices_pdf: { method: "GET", path: "/v1/invoices/{invoice_id}/pdf", scope: "admin" },
|
|
191
|
+
flat_invoices_upcoming: { method: "GET", path: "/v1/invoices/upcoming", scope: "admin" },
|
|
192
|
+
flat_ledger_get: { method: "GET", path: "/v1/ledger/{entry_id}", scope: "usage:read" },
|
|
193
|
+
flat_ledger_list: { method: "GET", path: "/v1/ledger", scope: "usage:read" },
|
|
194
|
+
flat_mcp_catalog_list: { method: "GET", path: "/v1/mcp-catalog", scope: "agents:read" },
|
|
195
|
+
flat_mcp_servers_get: { method: "GET", path: "/v1/mcp-servers/{server_id}", scope: "connectors:read" },
|
|
196
|
+
flat_mcp_servers_list: { method: "GET", path: "/v1/mcp-servers", scope: "connectors:read" },
|
|
197
|
+
flat_members_list: { method: "GET", path: "/v1/members", scope: "admin" },
|
|
198
|
+
flat_members_remove: { method: "DELETE", path: "/v1/members/{member_id}", scope: "admin" },
|
|
199
|
+
flat_members_update: { method: "PATCH", path: "/v1/members/{member_id}", scope: "admin" },
|
|
200
|
+
flat_memory_entities_changes: { method: "GET", path: "/v1/memory/entities/{entity_id}/changes", scope: "memory:read" },
|
|
201
|
+
flat_memory_entities_destroy: { method: "DELETE", path: "/v1/memory/entities/{entity_id}", scope: "memory:write" },
|
|
202
|
+
flat_memory_entities_list: { method: "GET", path: "/v1/memory/entities", scope: "memory:read" },
|
|
203
|
+
flat_memory_entities_merge: { method: "POST", path: "/v1/memory/entities/{entity_id}/merge", scope: "memory:write" },
|
|
204
|
+
flat_memory_entities_recheck: { method: "POST", path: "/v1/memory/entities/{entity_id}/recheck", scope: "memory:write" },
|
|
205
|
+
flat_memory_entities_retrieve: { method: "GET", path: "/v1/memory/entities/{entity_id}", scope: "memory:read" },
|
|
206
|
+
flat_memory_entities_split: { method: "POST", path: "/v1/memory/entities/{entity_id}/split", scope: "memory:write" },
|
|
207
|
+
flat_memory_entity_facts_list: { method: "GET", path: "/v1/memory/entities/{entity_id}/facts", scope: "memory:read" },
|
|
208
|
+
flat_memory_facts_correct: { method: "POST", path: "/v1/memory/facts/{fact_id}/correct", scope: "memory:write" },
|
|
209
|
+
flat_memory_facts_destroy: { method: "DELETE", path: "/v1/memory/facts/{fact_id}", scope: "memory:write" },
|
|
210
|
+
flat_memory_facts_retrieve: { method: "GET", path: "/v1/memory/facts/{fact_id}", scope: "memory:read" },
|
|
211
|
+
flat_memory_remembered_destroy: { method: "DELETE", path: "/v1/memory/remembered/{fact_id}", scope: "memory:write" },
|
|
212
|
+
flat_memory_run_confirm: { method: "POST", path: "/v1/memory/runs/{run_id}/entity", scope: "memory:write" },
|
|
213
|
+
flat_memory_run_remember: { method: "POST", path: "/v1/memory/runs/{run_id}/remembered", scope: "memory:write" },
|
|
214
|
+
flat_memory_run_remembered_retrieve: { method: "GET", path: "/v1/memory/runs/{run_id}/remembered", scope: "memory:read" },
|
|
215
|
+
flat_memory_run_retrieve: { method: "GET", path: "/v1/memory/runs/{run_id}/entity", scope: "memory:read" },
|
|
216
|
+
flat_memory_settings_retrieve: { method: "GET", path: "/v1/memory/settings", scope: "memory:read" },
|
|
217
|
+
flat_memory_settings_update: { method: "PATCH", path: "/v1/memory/settings", scope: "admin" },
|
|
218
|
+
flat_notifications_list: { method: "GET", path: "/v1/notifications", scope: "any" },
|
|
219
|
+
flat_notifications_mark_read: { method: "POST", path: "/v1/notifications/read", scope: "any" },
|
|
220
|
+
flat_notifications_unread_count: { method: "GET", path: "/v1/notifications/unread-count", scope: "any" },
|
|
221
|
+
flat_onboarding_apply_focus: { method: "POST", path: "/v1/onboarding/focus", scope: "agents:write" },
|
|
222
|
+
flat_playbook_drafts_rewrite: { method: "POST", path: "/v1/playbooks/drafts/rewrite", scope: "batches:write" },
|
|
223
|
+
flat_playbooks_start: { method: "POST", path: "/v1/playbooks/{key}/start", scope: "batches:write" },
|
|
224
|
+
flat_quota_retrieve: { method: "GET", path: "/v1/quota", scope: "usage:read" },
|
|
225
|
+
flat_reports_audio_create: { method: "POST", path: "/v1/runs/{run_id}/report/audio", scope: "reports:read" },
|
|
226
|
+
flat_reports_audio_download: { method: "GET", path: "/v1/runs/{run_id}/report/audio/download", scope: "reports:read" },
|
|
227
|
+
flat_reports_audio_retrieve: { method: "GET", path: "/v1/runs/{run_id}/report/audio", scope: "reports:read" },
|
|
228
|
+
flat_reports_claims_list: { method: "GET", path: "/v1/runs/{run_id}/report/claims", scope: "reports:read" },
|
|
229
|
+
flat_reports_download: { method: "GET", path: "/v1/runs/{run_id}/report/download/{file_format}", scope: "reports:read" },
|
|
230
|
+
flat_reports_export_file: { method: "GET", path: "/v1/runs/{run_id}/report/export", scope: "reports:read" },
|
|
231
|
+
flat_reports_exports_create: { method: "POST", path: "/v1/runs/{run_id}/report/exports", scope: "reports:read" },
|
|
232
|
+
flat_reports_exports_download: { method: "GET", path: "/v1/runs/{run_id}/report/exports/{export_id}/download", scope: "reports:read" },
|
|
233
|
+
flat_reports_exports_list: { method: "GET", path: "/v1/runs/{run_id}/report/exports", scope: "reports:read" },
|
|
234
|
+
flat_reports_exports_retrieve: { method: "GET", path: "/v1/runs/{run_id}/report/exports/{export_id}", scope: "reports:read" },
|
|
235
|
+
flat_reports_files: { method: "GET", path: "/v1/runs/{run_id}/report/files", scope: "reports:read" },
|
|
236
|
+
flat_reports_recompose: { method: "POST", path: "/v1/runs/{run_id}/report/recompose", scope: "runs:write" },
|
|
237
|
+
flat_reports_recompose_retrieve: { method: "GET", path: "/v1/runs/{run_id}/report/recompose", scope: "reports:read" },
|
|
238
|
+
flat_reports_retrieve: { method: "GET", path: "/v1/runs/{run_id}/report", scope: "reports:read" },
|
|
239
|
+
flat_reports_share_create: { method: "POST", path: "/v1/runs/{run_id}/report/share", scope: "runs:write" },
|
|
240
|
+
flat_reports_share_revoke: { method: "POST", path: "/v1/runs/{run_id}/report/shares/{share_id}/revoke", scope: "runs:write" },
|
|
241
|
+
flat_reports_shares_list: { method: "GET", path: "/v1/runs/{run_id}/report/shares", scope: "reports:read" },
|
|
242
|
+
flat_reports_sources_list: { method: "GET", path: "/v1/runs/{run_id}/report/sources", scope: "reports:read" },
|
|
243
|
+
flat_retention_get: { method: "GET", path: "/v1/retention", scope: "admin" },
|
|
244
|
+
flat_retention_update: { method: "PATCH", path: "/v1/retention", scope: "admin" },
|
|
245
|
+
flat_reviews_add_to_evals: { method: "POST", path: "/v1/reviews/{review_id}/add-to-evals", scope: "actions:approve" },
|
|
246
|
+
flat_reviews_assign: { method: "POST", path: "/v1/reviews/{review_id}/assign", scope: "actions:approve" },
|
|
247
|
+
flat_reviews_counts: { method: "GET", path: "/v1/reviews/counts", scope: "runs:read" },
|
|
248
|
+
flat_reviews_decide: { method: "POST", path: "/v1/reviews/{review_id}/decision", scope: "actions:approve" },
|
|
249
|
+
flat_reviews_list: { method: "GET", path: "/v1/reviews", scope: "runs:read" },
|
|
250
|
+
flat_reviews_mark_wrong: { method: "POST", path: "/v1/runs/{run_id}/report/claims/{number}/mark-wrong", scope: "actions:approve" },
|
|
251
|
+
flat_reviews_remember: { method: "POST", path: "/v1/reviews/{review_id}/remember", scope: "actions:approve" },
|
|
252
|
+
flat_reviews_retrieve: { method: "GET", path: "/v1/reviews/{review_id}", scope: "runs:read" },
|
|
253
|
+
flat_reviews_settings_retrieve: { method: "GET", path: "/v1/review-settings", scope: "runs:read" },
|
|
254
|
+
flat_reviews_settings_update: { method: "PUT", path: "/v1/review-settings", scope: "admin" },
|
|
255
|
+
flat_run_chat_deliveries_list: { method: "GET", path: "/v1/runs/{run_id}/chat-deliveries", scope: "runs:read" },
|
|
256
|
+
flat_runs_action_policy_retrieve: { method: "GET", path: "/v1/runs/{run_id}/action-policy", scope: "runs:read" },
|
|
257
|
+
flat_runs_action_policy_update: { method: "PUT", path: "/v1/runs/{run_id}/action-policy", scope: "runs:write" },
|
|
258
|
+
flat_runs_analysis_list: { method: "GET", path: "/v1/runs/{run_id}/analysis", scope: "runs:read" },
|
|
259
|
+
flat_runs_analysis_retrieve: { method: "GET", path: "/v1/runs/{run_id}/analysis/{analysis_id}", scope: "runs:read" },
|
|
260
|
+
flat_runs_approve: { method: "POST", path: "/v1/runs/{run_id}/approve", scope: "runs:write" },
|
|
261
|
+
flat_runs_cancel: { method: "POST", path: "/v1/runs/{run_id}/cancel", scope: "runs:write" },
|
|
262
|
+
flat_runs_company_evidence_list: { method: "GET", path: "/v1/runs/{run_id}/company-evidence", scope: "runs:read" },
|
|
263
|
+
flat_runs_continue: { method: "POST", path: "/v1/runs/{run_id}/continue", scope: "runs:write" },
|
|
264
|
+
flat_runs_cost_stats: { method: "GET", path: "/v1/runs/cost-stats", scope: "runs:read" },
|
|
265
|
+
flat_runs_create: { method: "POST", path: "/v1/runs", scope: "runs:write" },
|
|
266
|
+
flat_runs_documents: { method: "GET", path: "/v1/runs/{run_id}/documents", scope: "runs:read" },
|
|
267
|
+
flat_runs_effort_budgets: { method: "GET", path: "/v1/runs/budgets", scope: "runs:read" },
|
|
268
|
+
flat_runs_events: { method: "GET", path: "/v1/runs/{run_id}/events", scope: "runs:read" },
|
|
269
|
+
flat_runs_files_list: { method: "GET", path: "/v1/runs/{run_id}/files", scope: "reports:read" },
|
|
270
|
+
flat_runs_follow_up: { method: "POST", path: "/v1/runs/{run_id}/follow-up", scope: "runs:write" },
|
|
271
|
+
flat_runs_handoff_retrieve: { method: "GET", path: "/v1/runs/{run_id}/handoff", scope: "runs:read" },
|
|
272
|
+
flat_runs_list: { method: "GET", path: "/v1/runs", scope: "runs:read" },
|
|
273
|
+
flat_runs_plan_approve: { method: "POST", path: "/v1/runs/{run_id}/plan/approve", scope: "runs:write" },
|
|
274
|
+
flat_runs_plan_preview: { method: "POST", path: "/v1/runs/plan-preview", scope: "runs:write" },
|
|
275
|
+
flat_runs_plan_reject: { method: "POST", path: "/v1/runs/{run_id}/plan/reject", scope: "runs:write" },
|
|
276
|
+
flat_runs_plan_retrieve: { method: "GET", path: "/v1/runs/{run_id}/plan", scope: "runs:read" },
|
|
277
|
+
flat_runs_plan_update: { method: "PATCH", path: "/v1/runs/{run_id}/plan", scope: "runs:write" },
|
|
278
|
+
flat_runs_quick: { method: "POST", path: "/v1/run", scope: "runs:write" },
|
|
279
|
+
flat_runs_quick_quote: { method: "POST", path: "/v1/quote", scope: "runs:write" },
|
|
280
|
+
flat_runs_quote: { method: "POST", path: "/v1/runs/quote", scope: "runs:write" },
|
|
281
|
+
flat_runs_report_diff: { method: "GET", path: "/v1/runs/{run_id}/report/diff", scope: "reports:read" },
|
|
282
|
+
flat_runs_report_keep_updated: { method: "POST", path: "/v1/runs/{run_id}/report/keep-updated", scope: "schedules:write" },
|
|
283
|
+
flat_runs_report_keep_updated_retrieve: { method: "GET", path: "/v1/runs/{run_id}/report/keep-updated", scope: "reports:read" },
|
|
284
|
+
flat_runs_report_keep_updated_stop: { method: "DELETE", path: "/v1/runs/{run_id}/report/keep-updated", scope: "schedules:write" },
|
|
285
|
+
flat_runs_report_revisions: { method: "GET", path: "/v1/runs/{run_id}/report/revisions", scope: "reports:read" },
|
|
286
|
+
flat_runs_result: { method: "GET", path: "/v1/runs/{run_id}/result", scope: "runs:read" },
|
|
287
|
+
flat_runs_retrieve: { method: "GET", path: "/v1/runs/{run_id}", scope: "runs:read" },
|
|
288
|
+
flat_runs_revisions_list: { method: "GET", path: "/v1/runs/{run_id}/revisions", scope: "reports:read" },
|
|
289
|
+
flat_runs_revisions_retrieve: { method: "GET", path: "/v1/runs/{run_id}/revisions/{revision}", scope: "reports:read" },
|
|
290
|
+
flat_runs_route: { method: "POST", path: "/v1/route", scope: "runs:write" },
|
|
291
|
+
flat_runs_share_create: { method: "POST", path: "/v1/runs/{run_id}/share", scope: "runs:write" },
|
|
292
|
+
flat_runs_share_revoke: { method: "DELETE", path: "/v1/runs/{run_id}/shares/{share_id}", scope: "runs:write" },
|
|
293
|
+
flat_runs_shares_list: { method: "GET", path: "/v1/runs/{run_id}/shares", scope: "reports:read" },
|
|
294
|
+
flat_runs_steer: { method: "POST", path: "/v1/runs/{run_id}/steer", scope: "runs:write" },
|
|
295
|
+
flat_runs_stream: { method: "GET", path: "/v1/runs/{run_id}/stream", scope: "runs:read" },
|
|
296
|
+
flat_runs_stream_token: { method: "POST", path: "/v1/runs/{run_id}/events/token", scope: "runs:read" },
|
|
297
|
+
flat_runs_update: { method: "PATCH", path: "/v1/runs/{run_id}", scope: "runs:write" },
|
|
298
|
+
flat_schedules_create: { method: "POST", path: "/v1/schedules", scope: "schedules:write" },
|
|
299
|
+
flat_schedules_dashboard: { method: "GET", path: "/v1/schedules/{schedule_id}/dashboard", scope: "runs:read" },
|
|
300
|
+
flat_schedules_dashboard_share_create: { method: "POST", path: "/v1/schedules/{schedule_id}/dashboard/share", scope: "schedules:write" },
|
|
301
|
+
flat_schedules_dashboard_share_revoke: { method: "POST", path: "/v1/schedules/{schedule_id}/dashboard/shares/{share_id}/revoke", scope: "schedules:write" },
|
|
302
|
+
flat_schedules_dashboard_shares_list: { method: "GET", path: "/v1/schedules/{schedule_id}/dashboard/shares", scope: "runs:read" },
|
|
303
|
+
flat_schedules_destroy: { method: "DELETE", path: "/v1/schedules/{schedule_id}", scope: "schedules:write" },
|
|
304
|
+
flat_schedules_list: { method: "GET", path: "/v1/schedules", scope: "runs:read" },
|
|
305
|
+
flat_schedules_monitor: { method: "GET", path: "/v1/schedules/{schedule_id}/monitor", scope: "runs:read" },
|
|
306
|
+
flat_schedules_occurrences_list: { method: "GET", path: "/v1/schedules/{schedule_id}/occurrences", scope: "runs:read" },
|
|
307
|
+
flat_schedules_parse_cron: { method: "POST", path: "/v1/schedules/parse-cron", scope: "schedules:write" },
|
|
308
|
+
flat_schedules_pause: { method: "POST", path: "/v1/schedules/{schedule_id}/pause", scope: "schedules:write" },
|
|
309
|
+
flat_schedules_resume: { method: "POST", path: "/v1/schedules/{schedule_id}/resume", scope: "schedules:write" },
|
|
310
|
+
flat_schedules_retrieve: { method: "GET", path: "/v1/schedules/{schedule_id}", scope: "runs:read" },
|
|
311
|
+
flat_schedules_rotate_trigger: { method: "POST", path: "/v1/schedules/{schedule_id}/rotate-trigger", scope: "schedules:write" },
|
|
312
|
+
flat_schedules_run_now: { method: "POST", path: "/v1/schedules/{schedule_id}/run-now", scope: "schedules:write" },
|
|
313
|
+
flat_schedules_update: { method: "PATCH", path: "/v1/schedules/{schedule_id}", scope: "schedules:write" },
|
|
314
|
+
flat_skills_archive: { method: "DELETE", path: "/v1/skills/{skill_slug}", scope: "agents:write" },
|
|
315
|
+
flat_skills_create: { method: "POST", path: "/v1/skills", scope: "agents:write" },
|
|
316
|
+
flat_skills_install: { method: "POST", path: "/v1/skills/{skill_slug}/install", scope: "agents:write" },
|
|
317
|
+
flat_skills_list: { method: "GET", path: "/v1/skills", scope: "agents:read" },
|
|
318
|
+
flat_skills_publish: { method: "POST", path: "/v1/skills/{skill_slug}/publish", scope: "agents:write" },
|
|
319
|
+
flat_skills_retrieve: { method: "GET", path: "/v1/skills/{skill_slug}", scope: "agents:read" },
|
|
320
|
+
flat_skills_uninstall: { method: "POST", path: "/v1/skills/{skill_slug}/uninstall", scope: "agents:write" },
|
|
321
|
+
flat_skills_update: { method: "PATCH", path: "/v1/skills/{skill_slug}", scope: "agents:write" },
|
|
322
|
+
flat_spreadsheets_xlsx: { method: "POST", path: "/v1/spreadsheets/xlsx", scope: "runs:read" },
|
|
323
|
+
flat_studio_workflow_runs_approve: { method: "POST", path: "/v1/workflow-runs/{run_id}/nodes/{node}/approve", scope: "actions:approve" },
|
|
324
|
+
flat_studio_workflow_runs_list: { method: "GET", path: "/v1/workflows/{workflow_id}/runs", scope: "runs:read" },
|
|
325
|
+
flat_studio_workflow_runs_reject: { method: "POST", path: "/v1/workflow-runs/{run_id}/nodes/{node}/reject", scope: "actions:approve" },
|
|
326
|
+
flat_studio_workflow_runs_retrieve: { method: "GET", path: "/v1/workflow-runs/{run_id}", scope: "runs:read" },
|
|
327
|
+
flat_studio_workflows_create: { method: "POST", path: "/v1/workflows", scope: "agents:write" },
|
|
328
|
+
flat_studio_workflows_destroy: { method: "DELETE", path: "/v1/workflows/{workflow_id}", scope: "agents:write" },
|
|
329
|
+
flat_studio_workflows_list: { method: "GET", path: "/v1/workflows", scope: "runs:read" },
|
|
330
|
+
flat_studio_workflows_publish: { method: "POST", path: "/v1/workflows/{workflow_id}/publish", scope: "agents:write" },
|
|
331
|
+
flat_studio_workflows_retrieve: { method: "GET", path: "/v1/workflows/{workflow_id}", scope: "runs:read" },
|
|
332
|
+
flat_studio_workflows_run: { method: "POST", path: "/v1/workflows/{workflow_id}/run", scope: "runs:write" },
|
|
333
|
+
flat_studio_workflows_test_run: { method: "POST", path: "/v1/workflows/{workflow_id}/test-run", scope: "runs:write" },
|
|
334
|
+
flat_studio_workflows_update: { method: "PATCH", path: "/v1/workflows/{workflow_id}", scope: "agents:write" },
|
|
335
|
+
flat_studio_workflows_validate: { method: "POST", path: "/v1/workflows/validate", scope: "agents:write" },
|
|
336
|
+
flat_studio_workflows_versions: { method: "GET", path: "/v1/workflows/{workflow_id}/versions", scope: "runs:read" },
|
|
337
|
+
flat_studio_workflows_webhook_rotate: { method: "POST", path: "/v1/workflows/{workflow_id}/webhook", scope: "agents:write" },
|
|
338
|
+
flat_team_runs_approve_checkpoint: { method: "POST", path: "/v1/team-runs/{run_id}/approve", scope: "batches:write" },
|
|
339
|
+
flat_team_runs_cancel: { method: "POST", path: "/v1/team-runs/{run_id}/cancel", scope: "batches:write" },
|
|
340
|
+
flat_team_runs_list: { method: "GET", path: "/v1/team-runs", scope: "runs:read" },
|
|
341
|
+
flat_team_runs_plan: { method: "POST", path: "/v1/teams/{team_id}/plan", scope: "runs:read" },
|
|
342
|
+
flat_team_runs_retrieve: { method: "GET", path: "/v1/team-runs/{run_id}", scope: "runs:read" },
|
|
343
|
+
flat_team_runs_stages: { method: "GET", path: "/v1/team-runs/{run_id}/stages", scope: "runs:read" },
|
|
344
|
+
flat_team_runs_start: { method: "POST", path: "/v1/teams/{team_id}/runs", scope: "batches:write" },
|
|
345
|
+
flat_teams_archive: { method: "DELETE", path: "/v1/teams/{team_id}", scope: "batches:write" },
|
|
346
|
+
flat_teams_clone: { method: "POST", path: "/v1/teams/{team_id}/clone", scope: "batches:write" },
|
|
347
|
+
flat_teams_create: { method: "POST", path: "/v1/teams", scope: "batches:write" },
|
|
348
|
+
flat_teams_gallery: { method: "GET", path: "/v1/teams/gallery", scope: "runs:read" },
|
|
349
|
+
flat_teams_gallery_clone: { method: "POST", path: "/v1/teams/gallery/{key}/clone", scope: "batches:write" },
|
|
350
|
+
flat_teams_gallery_prepare: { method: "POST", path: "/v1/teams/gallery/{key}/prepare", scope: "batches:write" },
|
|
351
|
+
flat_teams_list: { method: "GET", path: "/v1/teams", scope: "runs:read" },
|
|
352
|
+
flat_teams_retrieve: { method: "GET", path: "/v1/teams/{team_id}", scope: "runs:read" },
|
|
353
|
+
flat_teams_update: { method: "PATCH", path: "/v1/teams/{team_id}", scope: "batches:write" },
|
|
354
|
+
flat_teams_validate: { method: "POST", path: "/v1/teams/{team_id}/validate", scope: "runs:read" },
|
|
355
|
+
flat_teams_validate_draft: { method: "POST", path: "/v1/teams/validate", scope: "runs:read" },
|
|
356
|
+
flat_test_cases_copy_golden: { method: "POST", path: "/v1/agents/{agent_slug}/test-cases/golden", scope: "agents:write" },
|
|
357
|
+
flat_test_cases_create: { method: "POST", path: "/v1/agents/{agent_slug}/test-cases", scope: "agents:write" },
|
|
358
|
+
flat_test_cases_delete: { method: "DELETE", path: "/v1/agents/{agent_slug}/test-cases/{case_id}", scope: "agents:write" },
|
|
359
|
+
flat_test_cases_import: { method: "POST", path: "/v1/agents/{agent_slug}/test-cases/import", scope: "agents:write" },
|
|
360
|
+
flat_test_cases_list: { method: "GET", path: "/v1/agents/{agent_slug}/test-cases", scope: "agents:read" },
|
|
361
|
+
flat_test_cases_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/test-cases/{case_id}", scope: "agents:read" },
|
|
362
|
+
flat_test_cases_update: { method: "PATCH", path: "/v1/agents/{agent_slug}/test-cases/{case_id}", scope: "agents:write" },
|
|
363
|
+
flat_tools_catalog: { method: "GET", path: "/v1/tools/catalog", scope: "agents:read" },
|
|
364
|
+
flat_tools_invoke: { method: "POST", path: "/v1/tools/{tool}/invoke", scope: "runs:write" },
|
|
365
|
+
flat_tracing_settings: { method: "GET", path: "/v1/tracing/settings", scope: "runs:read" },
|
|
366
|
+
flat_tracing_traces_create: { method: "POST", path: "/v1/tracing/traces", scope: "runs:write" },
|
|
367
|
+
flat_tracing_traces_csv: { method: "GET", path: "/v1/tracing/traces/{trace_id}/export.csv", scope: "runs:read" },
|
|
368
|
+
flat_tracing_traces_list: { method: "GET", path: "/v1/tracing/traces", scope: "runs:read" },
|
|
369
|
+
flat_tracing_traces_retrieve: { method: "GET", path: "/v1/tracing/traces/{trace_id}", scope: "runs:read" },
|
|
370
|
+
flat_tracing_traces_xlsx: { method: "GET", path: "/v1/tracing/traces/{trace_id}/export.xlsx", scope: "runs:read" },
|
|
371
|
+
flat_trackers_columns_create: { method: "POST", path: "/v1/trackers/{tracker_id}/columns", scope: "runs:write" },
|
|
372
|
+
flat_trackers_columns_destroy: { method: "DELETE", path: "/v1/trackers/{tracker_id}/columns/{column_key}", scope: "runs:write" },
|
|
373
|
+
flat_trackers_columns_reorder: { method: "PUT", path: "/v1/trackers/{tracker_id}/column-order", scope: "runs:write" },
|
|
374
|
+
flat_trackers_columns_update: { method: "PATCH", path: "/v1/trackers/{tracker_id}/columns/{column_key}", scope: "runs:write" },
|
|
375
|
+
flat_trackers_create: { method: "POST", path: "/v1/trackers", scope: "runs:write" },
|
|
376
|
+
flat_trackers_destroy: { method: "DELETE", path: "/v1/trackers/{tracker_id}", scope: "admin" },
|
|
377
|
+
flat_trackers_export_to: { method: "POST", path: "/v1/trackers/{tracker_id}/export-to", scope: "runs:write" },
|
|
378
|
+
flat_trackers_export_to_options: { method: "GET", path: "/v1/trackers/{tracker_id}/export-to", scope: "runs:read" },
|
|
379
|
+
flat_trackers_fields_replace: { method: "PUT", path: "/v1/trackers/{tracker_id}/fields", scope: "runs:write" },
|
|
380
|
+
flat_trackers_items_create: { method: "POST", path: "/v1/trackers/{tracker_id}/items", scope: "runs:write" },
|
|
381
|
+
flat_trackers_items_destroy: { method: "DELETE", path: "/v1/trackers/{tracker_id}/items/{item_id}", scope: "runs:write" },
|
|
382
|
+
flat_trackers_items_export: { method: "GET", path: "/v1/trackers/{tracker_id}/items/export", scope: "runs:read" },
|
|
383
|
+
flat_trackers_items_from_table: { method: "POST", path: "/v1/trackers/{tracker_id}/items/from-table", scope: "runs:write" },
|
|
384
|
+
flat_trackers_items_history: { method: "GET", path: "/v1/trackers/{tracker_id}/items/{item_id}/history", scope: "runs:read" },
|
|
385
|
+
flat_trackers_items_list: { method: "GET", path: "/v1/trackers/{tracker_id}/items", scope: "runs:read" },
|
|
386
|
+
flat_trackers_items_retrieve: { method: "GET", path: "/v1/trackers/{tracker_id}/items/{item_id}", scope: "runs:read" },
|
|
387
|
+
flat_trackers_items_update: { method: "PATCH", path: "/v1/trackers/{tracker_id}/items/{item_id}", scope: "runs:write" },
|
|
388
|
+
flat_trackers_list: { method: "GET", path: "/v1/trackers", scope: "runs:read" },
|
|
389
|
+
flat_trackers_retrieve: { method: "GET", path: "/v1/trackers/{tracker_id}", scope: "runs:read" },
|
|
390
|
+
flat_trackers_templates: { method: "GET", path: "/v1/trackers/templates", scope: "runs:read" },
|
|
391
|
+
flat_trackers_update: { method: "PATCH", path: "/v1/trackers/{tracker_id}", scope: "runs:write" },
|
|
392
|
+
flat_triggers_create: { method: "POST", path: "/v1/agents/{agent_slug}/triggers", scope: "agents:write" },
|
|
393
|
+
flat_triggers_destroy: { method: "DELETE", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}", scope: "agents:write" },
|
|
394
|
+
flat_triggers_events: { method: "GET", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}/events", scope: "runs:read" },
|
|
395
|
+
flat_triggers_list: { method: "GET", path: "/v1/agents/{agent_slug}/triggers", scope: "runs:read" },
|
|
396
|
+
flat_triggers_pause: { method: "POST", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}/pause", scope: "agents:write" },
|
|
397
|
+
flat_triggers_resume: { method: "POST", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}/resume", scope: "agents:write" },
|
|
398
|
+
flat_triggers_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}", scope: "runs:read" },
|
|
399
|
+
flat_triggers_test_fire: { method: "POST", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}/test-fire", scope: "agents:write" },
|
|
400
|
+
flat_triggers_update: { method: "PATCH", path: "/v1/agents/{agent_slug}/triggers/{trigger_id}", scope: "agents:write" },
|
|
401
|
+
flat_usage_overview: { method: "GET", path: "/v1/usage/summary", scope: "usage:read" },
|
|
402
|
+
flat_usage_report: { method: "GET", path: "/v1/usage", scope: "usage:read" },
|
|
403
|
+
flat_watches_check: { method: "POST", path: "/v1/watches/{watch_id}/check", scope: "agents:write" },
|
|
404
|
+
flat_watches_entity_unwatch: { method: "DELETE", path: "/v1/memory/entities/{entity_id}/watch", scope: "agents:write" },
|
|
405
|
+
flat_watches_entity_watch: { method: "POST", path: "/v1/memory/entities/{entity_id}/watch", scope: "agents:write" },
|
|
406
|
+
flat_watches_events: { method: "GET", path: "/v1/watches/{watch_id}/events", scope: "memory:read" },
|
|
407
|
+
flat_watches_list: { method: "GET", path: "/v1/watches", scope: "memory:read" },
|
|
408
|
+
flat_watches_tracker_rows: { method: "POST", path: "/v1/trackers/{tracker_id}/watch", scope: "agents:write" },
|
|
409
|
+
flat_webhook_deliveries_list: { method: "GET", path: "/v1/webhook-endpoints/{endpoint_id}/deliveries", scope: "webhooks:manage" },
|
|
410
|
+
flat_webhook_endpoints_create: { method: "POST", path: "/v1/webhook-endpoints", scope: "webhooks:manage" },
|
|
411
|
+
flat_webhook_endpoints_delete: { method: "DELETE", path: "/v1/webhook-endpoints/{endpoint_id}", scope: "webhooks:manage" },
|
|
412
|
+
flat_webhook_endpoints_get: { method: "GET", path: "/v1/webhook-endpoints/{endpoint_id}", scope: "webhooks:manage" },
|
|
413
|
+
flat_webhook_endpoints_list: { method: "GET", path: "/v1/webhook-endpoints", scope: "webhooks:manage" },
|
|
414
|
+
flat_webhook_endpoints_rotate_secret: { method: "POST", path: "/v1/webhook-endpoints/{endpoint_id}/rotate-secret", scope: "webhooks:manage" },
|
|
415
|
+
flat_webhook_endpoints_test: { method: "POST", path: "/v1/webhook-endpoints/{endpoint_id}/test", scope: "webhooks:manage" },
|
|
416
|
+
flat_webhook_endpoints_update: { method: "PATCH", path: "/v1/webhook-endpoints/{endpoint_id}", scope: "webhooks:manage" },
|
|
417
|
+
flat_workflow_suggestions_accept: { method: "POST", path: "/v1/agents/{agent_slug}/workflow-suggestions/{suggestion_id}/accept", scope: "agents:write" },
|
|
418
|
+
flat_workflow_suggestions_current: { method: "GET", path: "/v1/agents/{agent_slug}/workflow-suggestions/current", scope: "agents:read" },
|
|
419
|
+
flat_workflow_suggestions_dismiss: { method: "POST", path: "/v1/agents/{agent_slug}/workflow-suggestions/{suggestion_id}/dismiss", scope: "agents:write" },
|
|
420
|
+
flat_workflow_triggers_create: { method: "POST", path: "/v1/workflows/{workflow_id}/triggers", scope: "agents:write" },
|
|
421
|
+
flat_workflow_triggers_destroy: { method: "DELETE", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}", scope: "agents:write" },
|
|
422
|
+
flat_workflow_triggers_events: { method: "GET", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}/events", scope: "runs:read" },
|
|
423
|
+
flat_workflow_triggers_list: { method: "GET", path: "/v1/workflows/{workflow_id}/triggers", scope: "runs:read" },
|
|
424
|
+
flat_workflow_triggers_pause: { method: "POST", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}/pause", scope: "agents:write" },
|
|
425
|
+
flat_workflow_triggers_resume: { method: "POST", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}/resume", scope: "agents:write" },
|
|
426
|
+
flat_workflow_triggers_retrieve: { method: "GET", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}", scope: "runs:read" },
|
|
427
|
+
flat_workflow_triggers_test_fire: { method: "POST", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}/test-fire", scope: "agents:write" },
|
|
428
|
+
flat_workflow_triggers_update: { method: "PATCH", path: "/v1/workflows/{workflow_id}/triggers/{trigger_id}", scope: "agents:write" },
|
|
429
|
+
flat_workflows_activate: { method: "POST", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}/activate", scope: "agents:write" },
|
|
430
|
+
flat_workflows_archive: { method: "POST", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}/archive", scope: "agents:write" },
|
|
431
|
+
flat_workflows_compile: { method: "POST", path: "/v1/agents/{agent_slug}/workflows/compile", scope: "agents:write" },
|
|
432
|
+
flat_workflows_list: { method: "GET", path: "/v1/agents/{agent_slug}/workflows", scope: "agents:read" },
|
|
433
|
+
flat_workflows_retrieve: { method: "GET", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}", scope: "agents:read" },
|
|
434
|
+
flat_workflows_run: { method: "POST", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}/run", scope: "runs:write" },
|
|
435
|
+
flat_workflows_stats: { method: "GET", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}/stats", scope: "agents:read" },
|
|
436
|
+
flat_workflows_update: { method: "PATCH", path: "/v1/agents/{agent_slug}/workflows/{workflow_id}", scope: "agents:write" },
|
|
437
|
+
flat_workspace_notification_settings_retrieve: { method: "GET", path: "/v1/notification-settings", scope: "admin" },
|
|
438
|
+
flat_workspace_notification_settings_update: { method: "PUT", path: "/v1/notification-settings", scope: "admin" },
|
|
439
|
+
flat_workspaces_retrieve: { method: "GET", path: "/v1/workspace", scope: "any" },
|
|
440
|
+
flat_workspaces_update: { method: "PATCH", path: "/v1/workspace", scope: "admin" },
|
|
441
|
+
golden_sets_list: { method: "GET", path: "/v1/golden-sets", scope: "any" },
|
|
442
|
+
mcp_jsonrpc: { method: "POST", path: "/v1/mcp", scope: "any" },
|
|
443
|
+
playbooks_list: { method: "GET", path: "/v1/playbooks", scope: "any" },
|
|
444
|
+
research_sources_list: { method: "GET", path: "/v1/research-sources", scope: "any" },
|
|
445
|
+
studio_templates_list: { method: "GET", path: "/v1/workflow-templates", scope: "any" },
|
|
446
|
+
tools_list: { method: "GET", path: "/v1/tools", scope: "any" },
|
|
447
|
+
workflow_transforms_list: { method: "GET", path: "/v1/workflow-transforms", scope: "any" },
|
|
448
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Vouchline, TimeoutError } from "./client.ts";
|
|
2
|
+
export type { ClientOptions, FetchLike, Query, RequestOptions, RunAnswer, RunAndWaitOptions, RunFilters, } from "./client.ts";
|
|
3
|
+
export { AuthenticationError, ConflictError, ConnectionError, NotFoundError, PaymentRequiredError, PermissionDeniedError, VouchlineError, RateLimitError, ServerError, ValidationError, } from "./errors.ts";
|
|
4
|
+
export type { ErrorDetails } from "./errors.ts";
|
|
5
|
+
export type { RunEvent } from "./sse.ts";
|
|
6
|
+
export * from "./generated.ts";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Vouchline, TimeoutError } from "./client.js";
|
|
2
|
+
export { AuthenticationError, ConflictError, ConnectionError, NotFoundError, PaymentRequiredError, PermissionDeniedError, VouchlineError, RateLimitError, ServerError, ValidationError, } from "./errors.js";
|
|
3
|
+
export * from "./generated.js";
|
package/dist/sse.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A small Server-Sent Events reader for `GET /v1/runs/{run_id}/stream`. */
|
|
2
|
+
export interface RunEvent {
|
|
3
|
+
/** The event's sequence number; pass it as `after` to resume. Absent on `delta` and `end`. */
|
|
4
|
+
id: number | undefined;
|
|
5
|
+
/** `created`, `status`, `step`, … `delta` for live text, `end` when the stream closes. */
|
|
6
|
+
event: string;
|
|
7
|
+
data: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function readEvents(body: ReadableStream<Uint8Array>): AsyncGenerator<RunEvent>;
|
package/dist/sse.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** A small Server-Sent Events reader for `GET /v1/runs/{run_id}/stream`. */
|
|
2
|
+
function parseData(raw) {
|
|
3
|
+
try {
|
|
4
|
+
return JSON.parse(raw);
|
|
5
|
+
}
|
|
6
|
+
catch {
|
|
7
|
+
return raw;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function toEvent(block) {
|
|
11
|
+
let id;
|
|
12
|
+
let event = "message";
|
|
13
|
+
const data = [];
|
|
14
|
+
for (const line of block.split("\n")) {
|
|
15
|
+
if (line === "" || line.startsWith(":"))
|
|
16
|
+
continue;
|
|
17
|
+
const colon = line.indexOf(":");
|
|
18
|
+
const field = colon === -1 ? line : line.slice(0, colon);
|
|
19
|
+
const value = colon === -1 ? "" : line.slice(colon + 1).replace(/^ /, "");
|
|
20
|
+
if (field === "id")
|
|
21
|
+
id = Number.isInteger(Number(value)) && value !== "" ? Number(value) : undefined;
|
|
22
|
+
else if (field === "event")
|
|
23
|
+
event = value;
|
|
24
|
+
else if (field === "data")
|
|
25
|
+
data.push(value);
|
|
26
|
+
}
|
|
27
|
+
if (data.length === 0 && event === "message")
|
|
28
|
+
return undefined;
|
|
29
|
+
return { id, event, data: parseData(data.join("\n")) };
|
|
30
|
+
}
|
|
31
|
+
export async function* readEvents(body) {
|
|
32
|
+
const reader = body.getReader();
|
|
33
|
+
const decoder = new TextDecoder();
|
|
34
|
+
let buffer = "";
|
|
35
|
+
try {
|
|
36
|
+
for (;;) {
|
|
37
|
+
const { value, done } = await reader.read();
|
|
38
|
+
if (done)
|
|
39
|
+
break;
|
|
40
|
+
buffer += decoder.decode(value, { stream: true }).replace(/\r\n?/g, "\n");
|
|
41
|
+
let split = buffer.indexOf("\n\n");
|
|
42
|
+
while (split !== -1) {
|
|
43
|
+
const parsed = toEvent(buffer.slice(0, split));
|
|
44
|
+
buffer = buffer.slice(split + 2);
|
|
45
|
+
if (parsed)
|
|
46
|
+
yield parsed;
|
|
47
|
+
split = buffer.indexOf("\n\n");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const last = toEvent(buffer);
|
|
51
|
+
if (last)
|
|
52
|
+
yield last;
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
reader.releaseLock();
|
|
56
|
+
}
|
|
57
|
+
}
|