late-sdk 0.0.875 → 0.0.877
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.
- checksums.yaml +4 -4
- data/README.md +118 -3
- data/docs/AddBusinessAgentAllowlistEntryRequest.md +18 -0
- data/docs/BusinessAgentAllowlistEntry.md +20 -0
- data/docs/BusinessAgentApi.md +3949 -0
- data/docs/BusinessAgentApiKeyConfig.md +22 -0
- data/docs/BusinessAgentApiKeyParamsInner.md +22 -0
- data/docs/BusinessAgentBudget.md +24 -0
- data/docs/BusinessAgentBusinessInformation.md +28 -0
- data/docs/BusinessAgentBusinessInformationContactInfo.md +22 -0
- data/docs/BusinessAgentConnector.md +40 -0
- data/docs/BusinessAgentConnectorAllOfConnectionStatus.md +20 -0
- data/docs/BusinessAgentConnectorInput.md +32 -0
- data/docs/BusinessAgentConnectorInputAuthConfig.md +20 -0
- data/docs/BusinessAgentConnectorInputUserAuthInjectionConfig.md +22 -0
- data/docs/BusinessAgentConnectorTool.md +30 -0
- data/docs/BusinessAgentConnectorToolInput.md +28 -0
- data/docs/BusinessAgentEventStatus.md +28 -0
- data/docs/BusinessAgentFaq.md +26 -0
- data/docs/BusinessAgentFaqInput.md +22 -0
- data/docs/BusinessAgentKnowledgeFile.md +20 -0
- data/docs/BusinessAgentOAuthClientCredentials.md +26 -0
- data/docs/BusinessAgentSettings.md +30 -0
- data/docs/BusinessAgentSettingsFollowup.md +22 -0
- data/docs/BusinessAgentSettingsHandoff.md +22 -0
- data/docs/BusinessAgentSettingsRollout.md +18 -0
- data/docs/BusinessAgentSkill.md +30 -0
- data/docs/BusinessAgentSkillInput.md +22 -0
- data/docs/BusinessAgentStatus.md +32 -0
- data/docs/BusinessAgentStatusManualStepsInner.md +22 -0
- data/docs/BusinessAgentStatusUnverifiedStepsInner.md +22 -0
- data/docs/BusinessAgentTestMessageResponse.md +32 -0
- data/docs/BusinessAgentUiSkill.md +32 -0
- data/docs/BusinessAgentUiSkillInput.md +26 -0
- data/docs/BusinessAgentWebsite.md +40 -0
- data/docs/BusinessAgentWebsiteInput.md +28 -0
- data/docs/ConnectApi.md +1 -68
- data/docs/ConnectWhatsAppEmbeddedSignupRequest.md +4 -4
- data/docs/GetBusinessAgentBudget200Response.md +18 -0
- data/docs/GetBusinessAgentConnectorLogs200Response.md +20 -0
- data/docs/InlineObject.md +2 -2
- data/docs/InlineObject1.md +1 -1
- data/docs/InlineObject2.md +1 -5
- data/docs/InlineObject3.md +5 -11
- data/docs/InlineObject4.md +28 -0
- data/docs/{InlineObject3Details.md → InlineObject4Details.md} +2 -2
- data/docs/ListBusinessAgentAllowlist200Response.md +18 -0
- data/docs/ListBusinessAgentConnectorTools200Response.md +18 -0
- data/docs/ListBusinessAgentConnectors200Response.md +18 -0
- data/docs/ListBusinessAgentFaqs200Response.md +18 -0
- data/docs/ListBusinessAgentFiles200Response.md +18 -0
- data/docs/ListBusinessAgentSettings200Response.md +18 -0
- data/docs/ListBusinessAgentSkills200Response.md +18 -0
- data/docs/ListBusinessAgentUiSkills200Response.md +20 -0
- data/docs/ListBusinessAgentWebsites200Response.md +18 -0
- data/docs/MessagesApi.md +1 -1
- data/docs/OnboardBusinessAgent201Response.md +18 -0
- data/docs/RunBusinessAgentConnectorTool200Response.md +20 -0
- data/docs/RunBusinessAgentConnectorToolRequest.md +18 -0
- data/docs/SendBusinessAgentEvent202Response.md +20 -0
- data/docs/SendBusinessAgentEventRequest.md +24 -0
- data/docs/SendBusinessAgentTestMessageRequest.md +20 -0
- data/docs/SetBusinessAgentConnectorCredentialsRequest.md +51 -0
- data/docs/SetBusinessAgentConnectorCredentialsRequestOneOf.md +20 -0
- data/docs/SetBusinessAgentConnectorCredentialsRequestOneOf1.md +20 -0
- data/docs/SetBusinessAgentConnectorCredentialsRequestOneOf2.md +24 -0
- data/docs/StartBusinessAgentEvalRun202Response.md +20 -0
- data/docs/StartBusinessAgentEvalRunRequest.md +18 -0
- data/docs/UpdateBusinessAgentSettingsRequest.md +26 -0
- data/docs/UpdateBusinessAgentSettingsRequestFollowup.md +22 -0
- data/docs/UpdateBusinessAgentSettingsRequestHandoff.md +22 -0
- data/docs/UpdateBusinessAgentSettingsRequestRollout.md +18 -0
- data/docs/UploadBusinessAgentFileRequest.md +20 -0
- data/lib/zernio-sdk/api/business_agent_api.rb +3934 -0
- data/lib/zernio-sdk/api/connect_api.rb +2 -59
- data/lib/zernio-sdk/api/messages_api.rb +2 -2
- data/lib/zernio-sdk/models/add_business_agent_allowlist_entry_request.rb +164 -0
- data/lib/zernio-sdk/models/business_agent_allowlist_entry.rb +174 -0
- data/lib/zernio-sdk/models/business_agent_api_key_config.rb +172 -0
- data/lib/zernio-sdk/models/business_agent_api_key_params_inner.rb +199 -0
- data/lib/zernio-sdk/models/business_agent_budget.rb +263 -0
- data/lib/zernio-sdk/models/business_agent_business_information.rb +193 -0
- data/lib/zernio-sdk/models/business_agent_business_information_contact_info.rb +165 -0
- data/lib/zernio-sdk/models/business_agent_connector.rb +352 -0
- data/lib/zernio-sdk/models/business_agent_connector_all_of_connection_status.rb +157 -0
- data/lib/zernio-sdk/models/business_agent_connector_input.rb +288 -0
- data/lib/zernio-sdk/models/business_agent_connector_input_auth_config.rb +156 -0
- data/lib/zernio-sdk/models/business_agent_connector_input_user_auth_injection_config.rb +199 -0
- data/lib/zernio-sdk/models/business_agent_connector_tool.rb +284 -0
- data/lib/zernio-sdk/models/business_agent_connector_tool_input.rb +251 -0
- data/lib/zernio-sdk/models/business_agent_event_status.rb +284 -0
- data/lib/zernio-sdk/models/business_agent_faq.rb +264 -0
- data/lib/zernio-sdk/models/business_agent_faq_input.rb +221 -0
- data/lib/zernio-sdk/models/business_agent_knowledge_file.rb +190 -0
- data/lib/zernio-sdk/models/business_agent_o_auth_client_credentials.rb +236 -0
- data/lib/zernio-sdk/models/business_agent_settings.rb +292 -0
- data/lib/zernio-sdk/models/business_agent_settings_followup.rb +199 -0
- data/lib/zernio-sdk/models/business_agent_settings_handoff.rb +200 -0
- data/lib/zernio-sdk/models/business_agent_settings_rollout.rb +165 -0
- data/lib/zernio-sdk/models/business_agent_skill.rb +339 -0
- data/lib/zernio-sdk/models/business_agent_skill_input.rb +243 -0
- data/lib/zernio-sdk/models/business_agent_status.rb +315 -0
- data/lib/zernio-sdk/models/business_agent_status_manual_steps_inner.rb +240 -0
- data/lib/zernio-sdk/models/business_agent_status_unverified_steps_inner.rb +240 -0
- data/lib/zernio-sdk/models/business_agent_test_message_response.rb +267 -0
- data/lib/zernio-sdk/models/business_agent_ui_skill.rb +315 -0
- data/lib/zernio-sdk/models/business_agent_ui_skill_input.rb +262 -0
- data/lib/zernio-sdk/models/business_agent_website.rb +302 -0
- data/lib/zernio-sdk/models/business_agent_website_input.rb +221 -0
- data/lib/zernio-sdk/models/connect_whats_app_embedded_signup_request.rb +3 -4
- data/lib/zernio-sdk/models/get_business_agent_budget200_response.rb +166 -0
- data/lib/zernio-sdk/models/get_business_agent_connector_logs200_response.rb +160 -0
- data/lib/zernio-sdk/models/inline_object.rb +24 -7
- data/lib/zernio-sdk/models/inline_object2.rb +4 -69
- data/lib/zernio-sdk/models/inline_object3.rb +18 -80
- data/lib/zernio-sdk/models/inline_object4.rb +274 -0
- data/lib/zernio-sdk/models/{inline_object3_details.rb → inline_object4_details.rb} +3 -3
- data/lib/zernio-sdk/models/list_business_agent_allowlist200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_connector_tools200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_connectors200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_faqs200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_files200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_settings200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_skills200_response.rb +166 -0
- data/lib/zernio-sdk/models/list_business_agent_ui_skills200_response.rb +177 -0
- data/lib/zernio-sdk/models/list_business_agent_websites200_response.rb +166 -0
- data/lib/zernio-sdk/models/onboard_business_agent201_response.rb +164 -0
- data/lib/zernio-sdk/models/run_business_agent_connector_tool200_response.rb +156 -0
- data/lib/zernio-sdk/models/run_business_agent_connector_tool_request.rb +165 -0
- data/lib/zernio-sdk/models/send_business_agent_event202_response.rb +173 -0
- data/lib/zernio-sdk/models/send_business_agent_event_request.rb +271 -0
- data/lib/zernio-sdk/models/send_business_agent_test_message_request.rb +182 -0
- data/lib/zernio-sdk/models/set_business_agent_connector_credentials_request.rb +105 -0
- data/lib/zernio-sdk/models/set_business_agent_connector_credentials_request_one_of.rb +214 -0
- data/lib/zernio-sdk/models/set_business_agent_connector_credentials_request_one_of1.rb +214 -0
- data/lib/zernio-sdk/models/set_business_agent_connector_credentials_request_one_of2.rb +252 -0
- data/lib/zernio-sdk/models/{get_whats_app_sdk_config200_response.rb → start_business_agent_eval_run202_response.rb} +34 -63
- data/lib/zernio-sdk/models/start_business_agent_eval_run_request.rb +184 -0
- data/lib/zernio-sdk/models/update_business_agent_settings_request.rb +220 -0
- data/lib/zernio-sdk/models/update_business_agent_settings_request_followup.rb +235 -0
- data/lib/zernio-sdk/models/update_business_agent_settings_request_handoff.rb +235 -0
- data/lib/zernio-sdk/models/update_business_agent_settings_request_rollout.rb +164 -0
- data/lib/zernio-sdk/models/upload_business_agent_file_request.rb +175 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +64 -2
- data/openapi.yaml +1718 -55
- data/spec/api/business_agent_api_spec.rb +736 -0
- data/spec/api/connect_api_spec.rb +1 -12
- data/spec/api/messages_api_spec.rb +1 -1
- data/spec/models/add_business_agent_allowlist_entry_request_spec.rb +36 -0
- data/spec/models/business_agent_allowlist_entry_spec.rb +42 -0
- data/spec/models/{get_whats_app_sdk_config200_response_spec.rb → business_agent_api_key_config_spec.rb} +9 -9
- data/spec/models/business_agent_api_key_params_inner_spec.rb +48 -0
- data/spec/models/business_agent_budget_spec.rb +62 -0
- data/spec/models/business_agent_business_information_contact_info_spec.rb +48 -0
- data/spec/models/business_agent_business_information_spec.rb +66 -0
- data/spec/models/business_agent_connector_all_of_connection_status_spec.rb +42 -0
- data/spec/models/business_agent_connector_input_auth_config_spec.rb +42 -0
- data/spec/models/business_agent_connector_input_spec.rb +82 -0
- data/spec/models/business_agent_connector_input_user_auth_injection_config_spec.rb +48 -0
- data/spec/models/business_agent_connector_spec.rb +106 -0
- data/spec/models/business_agent_connector_tool_input_spec.rb +66 -0
- data/spec/models/business_agent_connector_tool_spec.rb +72 -0
- data/spec/models/business_agent_event_status_spec.rb +70 -0
- data/spec/models/business_agent_faq_input_spec.rb +48 -0
- data/spec/models/business_agent_faq_spec.rb +60 -0
- data/spec/models/business_agent_knowledge_file_spec.rb +42 -0
- data/spec/models/business_agent_o_auth_client_credentials_spec.rb +60 -0
- data/spec/models/business_agent_settings_followup_spec.rb +52 -0
- data/spec/models/business_agent_settings_handoff_spec.rb +52 -0
- data/spec/models/business_agent_settings_rollout_spec.rb +36 -0
- data/spec/models/business_agent_settings_spec.rb +76 -0
- data/spec/models/business_agent_skill_input_spec.rb +48 -0
- data/spec/models/business_agent_skill_spec.rb +76 -0
- data/spec/models/business_agent_status_manual_steps_inner_spec.rb +52 -0
- data/spec/models/business_agent_status_spec.rb +78 -0
- data/spec/models/business_agent_status_unverified_steps_inner_spec.rb +52 -0
- data/spec/models/business_agent_test_message_response_spec.rb +78 -0
- data/spec/models/business_agent_ui_skill_input_spec.rb +68 -0
- data/spec/models/business_agent_ui_skill_spec.rb +86 -0
- data/spec/models/business_agent_website_input_spec.rb +66 -0
- data/spec/models/business_agent_website_spec.rb +102 -0
- data/spec/models/get_business_agent_budget200_response_spec.rb +36 -0
- data/spec/models/get_business_agent_connector_logs200_response_spec.rb +42 -0
- data/spec/models/inline_object2_spec.rb +0 -20
- data/spec/models/inline_object3_spec.rb +4 -22
- data/spec/models/{inline_object3_details_spec.rb → inline_object4_details_spec.rb} +6 -6
- data/spec/models/inline_object4_spec.rb +74 -0
- data/spec/models/inline_object_spec.rb +1 -1
- data/spec/models/list_business_agent_allowlist200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_connector_tools200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_connectors200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_faqs200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_files200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_settings200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_skills200_response_spec.rb +36 -0
- data/spec/models/list_business_agent_ui_skills200_response_spec.rb +42 -0
- data/spec/models/list_business_agent_websites200_response_spec.rb +36 -0
- data/spec/models/onboard_business_agent201_response_spec.rb +36 -0
- data/spec/models/run_business_agent_connector_tool200_response_spec.rb +42 -0
- data/spec/models/run_business_agent_connector_tool_request_spec.rb +36 -0
- data/spec/models/send_business_agent_event202_response_spec.rb +42 -0
- data/spec/models/send_business_agent_event_request_spec.rb +54 -0
- data/spec/models/send_business_agent_test_message_request_spec.rb +42 -0
- data/spec/models/set_business_agent_connector_credentials_request_one_of1_spec.rb +46 -0
- data/spec/models/set_business_agent_connector_credentials_request_one_of2_spec.rb +58 -0
- data/spec/models/set_business_agent_connector_credentials_request_one_of_spec.rb +46 -0
- data/spec/models/set_business_agent_connector_credentials_request_spec.rb +32 -0
- data/spec/models/start_business_agent_eval_run202_response_spec.rb +42 -0
- data/spec/models/start_business_agent_eval_run_request_spec.rb +36 -0
- data/spec/models/update_business_agent_settings_request_followup_spec.rb +52 -0
- data/spec/models/update_business_agent_settings_request_handoff_spec.rb +52 -0
- data/spec/models/update_business_agent_settings_request_rollout_spec.rb +36 -0
- data/spec/models/update_business_agent_settings_request_spec.rb +64 -0
- data/spec/models/upload_business_agent_file_request_spec.rb +42 -0
- data/zernio-sdk-0.0.877.gem +0 -0
- metadata +258 -10
- data/docs/GetWhatsAppSdkConfig200Response.md +0 -22
- data/zernio-sdk-0.0.875.gem +0 -0
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Zernio::BusinessAgentApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'BusinessAgentApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Zernio::BusinessAgentApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of BusinessAgentApi' do
|
|
30
|
+
it 'should create an instance of BusinessAgentApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Zernio::BusinessAgentApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_business_agent_allowlist_entry
|
|
36
|
+
# Allowlist a consumer
|
|
37
|
+
# One E.164 number per call. Not idempotent.
|
|
38
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
39
|
+
# @param add_business_agent_allowlist_entry_request
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [BusinessAgentAllowlistEntry]
|
|
42
|
+
describe 'add_business_agent_allowlist_entry test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for add_business_agent_website
|
|
49
|
+
# Add a website to crawl
|
|
50
|
+
# Meta crawls the site into the agent knowledge and recrawls it periodically; check `crawl_status` and `crawl_error` on read. Not idempotent.
|
|
51
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
52
|
+
# @param business_agent_website_input
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [BusinessAgentWebsite]
|
|
55
|
+
describe 'add_business_agent_website test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for create_business_agent_connector
|
|
62
|
+
# Create a connector
|
|
63
|
+
# Base URL plus how to authenticate (OAuth client credentials, API key or none). Names are unique per number. Not idempotent.
|
|
64
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
65
|
+
# @param business_agent_connector_input
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [BusinessAgentConnector]
|
|
68
|
+
describe 'create_business_agent_connector test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# unit tests for create_business_agent_connector_tool
|
|
75
|
+
# Create a connector tool
|
|
76
|
+
# One operation on the connector, with the request definition Meta uses to build the outbound call from the conversation. Type the body params explicitly. Not idempotent.
|
|
77
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
78
|
+
# @param connector_id
|
|
79
|
+
# @param business_agent_connector_tool_input
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [BusinessAgentConnectorTool]
|
|
82
|
+
describe 'create_business_agent_connector_tool test' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# unit tests for create_business_agent_faq
|
|
89
|
+
# Create a FAQ
|
|
90
|
+
# One specific question per entry; beyond a few hundred entries retrieval quality drops. Not idempotent.
|
|
91
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
92
|
+
# @param business_agent_faq_input
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [BusinessAgentFaq]
|
|
95
|
+
describe 'create_business_agent_faq test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for create_business_agent_skill
|
|
102
|
+
# Create a skill
|
|
103
|
+
# Behavioral instructions in the brand voice. Reads back `pending_review` until Meta content review passes it. Not idempotent.
|
|
104
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
105
|
+
# @param business_agent_skill_input
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [BusinessAgentSkill]
|
|
108
|
+
describe 'create_business_agent_skill test' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# unit tests for create_business_agent_ui_skill
|
|
115
|
+
# Create a UI skill
|
|
116
|
+
# Tells the agent when to send a rich component (CTA URL button, image, carousel, list, reply buttons, location, Flow) and what to put in it. Not idempotent.
|
|
117
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
118
|
+
# @param business_agent_ui_skill_input
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @return [BusinessAgentUiSkill]
|
|
121
|
+
describe 'create_business_agent_ui_skill test' do
|
|
122
|
+
it 'should work' do
|
|
123
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# unit tests for delete_business_agent_connector
|
|
128
|
+
# Delete a connector
|
|
129
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
130
|
+
# @param connector_id
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @return [InlineObject]
|
|
133
|
+
describe 'delete_business_agent_connector test' do
|
|
134
|
+
it 'should work' do
|
|
135
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# unit tests for delete_business_agent_connector_tool
|
|
140
|
+
# Delete a connector tool
|
|
141
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
142
|
+
# @param connector_id
|
|
143
|
+
# @param tool_id
|
|
144
|
+
# @param [Hash] opts the optional parameters
|
|
145
|
+
# @return [InlineObject]
|
|
146
|
+
describe 'delete_business_agent_connector_tool test' do
|
|
147
|
+
it 'should work' do
|
|
148
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# unit tests for delete_business_agent_faq
|
|
153
|
+
# Delete a FAQ
|
|
154
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
155
|
+
# @param faq_id
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [InlineObject]
|
|
158
|
+
describe 'delete_business_agent_faq test' do
|
|
159
|
+
it 'should work' do
|
|
160
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# unit tests for delete_business_agent_file
|
|
165
|
+
# Delete a knowledge file
|
|
166
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
167
|
+
# @param file_id
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [InlineObject]
|
|
170
|
+
describe 'delete_business_agent_file test' do
|
|
171
|
+
it 'should work' do
|
|
172
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# unit tests for delete_business_agent_skill
|
|
177
|
+
# Delete a skill
|
|
178
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
179
|
+
# @param skill_id
|
|
180
|
+
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @return [InlineObject]
|
|
182
|
+
describe 'delete_business_agent_skill test' do
|
|
183
|
+
it 'should work' do
|
|
184
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# unit tests for delete_business_agent_ui_skill
|
|
189
|
+
# Delete a UI skill
|
|
190
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
191
|
+
# @param ui_skill_id
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [InlineObject]
|
|
194
|
+
describe 'delete_business_agent_ui_skill test' do
|
|
195
|
+
it 'should work' do
|
|
196
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# unit tests for delete_business_agent_website
|
|
201
|
+
# Remove a crawled website
|
|
202
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
203
|
+
# @param website_id
|
|
204
|
+
# @param [Hash] opts the optional parameters
|
|
205
|
+
# @return [InlineObject]
|
|
206
|
+
describe 'delete_business_agent_website test' do
|
|
207
|
+
it 'should work' do
|
|
208
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# unit tests for get_business_agent_budget
|
|
213
|
+
# Get usage budgets
|
|
214
|
+
# Caps over rolling windows for the Business Manager that owns the number. An empty list means unlimited.
|
|
215
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
216
|
+
# @param [Hash] opts the optional parameters
|
|
217
|
+
# @return [GetBusinessAgentBudget200Response]
|
|
218
|
+
describe 'get_business_agent_budget test' do
|
|
219
|
+
it 'should work' do
|
|
220
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# unit tests for get_business_agent_business_information
|
|
225
|
+
# Get business information
|
|
226
|
+
# Payment methods, return policy, how to buy, shipping, description and contact details the agent answers from. Empty values until configured.
|
|
227
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
228
|
+
# @param [Hash] opts the optional parameters
|
|
229
|
+
# @return [BusinessAgentBusinessInformation]
|
|
230
|
+
describe 'get_business_agent_business_information test' do
|
|
231
|
+
it 'should work' do
|
|
232
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# unit tests for get_business_agent_connector
|
|
237
|
+
# Get a connector
|
|
238
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
239
|
+
# @param connector_id
|
|
240
|
+
# @param [Hash] opts the optional parameters
|
|
241
|
+
# @return [BusinessAgentConnector]
|
|
242
|
+
describe 'get_business_agent_connector test' do
|
|
243
|
+
it 'should work' do
|
|
244
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# unit tests for get_business_agent_connector_logs
|
|
249
|
+
# Get connector failure logs
|
|
250
|
+
# Third-party failures over the last 7 days (window at most 7 days, default the last 24 hours). Each entry carries `failure_code_name` and `error_message`.
|
|
251
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
252
|
+
# @param connector_id
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @option opts [Integer] :start_time Unix seconds.
|
|
255
|
+
# @option opts [Integer] :end_time Unix seconds.
|
|
256
|
+
# @option opts [Integer] :limit
|
|
257
|
+
# @option opts [String] :tool_id
|
|
258
|
+
# @option opts [Boolean] :include_stats Add success rate and latency percentiles.
|
|
259
|
+
# @option opts [Boolean] :summary_only Aggregate failure patterns instead of entries.
|
|
260
|
+
# @option opts [Integer] :top_n
|
|
261
|
+
# @return [GetBusinessAgentConnectorLogs200Response]
|
|
262
|
+
describe 'get_business_agent_connector_logs test' do
|
|
263
|
+
it 'should work' do
|
|
264
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# unit tests for get_business_agent_connector_tool
|
|
269
|
+
# Get a connector tool
|
|
270
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
271
|
+
# @param connector_id
|
|
272
|
+
# @param tool_id
|
|
273
|
+
# @param [Hash] opts the optional parameters
|
|
274
|
+
# @return [BusinessAgentConnectorTool]
|
|
275
|
+
describe 'get_business_agent_connector_tool test' do
|
|
276
|
+
it 'should work' do
|
|
277
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# unit tests for get_business_agent_event
|
|
282
|
+
# Get a business event status
|
|
283
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
284
|
+
# @param event_id
|
|
285
|
+
# @param [Hash] opts the optional parameters
|
|
286
|
+
# @return [BusinessAgentEventStatus]
|
|
287
|
+
describe 'get_business_agent_event test' do
|
|
288
|
+
it 'should work' do
|
|
289
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# unit tests for get_business_agent_faq
|
|
294
|
+
# Get a FAQ
|
|
295
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
296
|
+
# @param faq_id
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @return [BusinessAgentFaq]
|
|
299
|
+
describe 'get_business_agent_faq test' do
|
|
300
|
+
it 'should work' do
|
|
301
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# unit tests for get_business_agent_file
|
|
306
|
+
# Get a knowledge file
|
|
307
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
308
|
+
# @param file_id
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @return [BusinessAgentKnowledgeFile]
|
|
311
|
+
describe 'get_business_agent_file test' do
|
|
312
|
+
it 'should work' do
|
|
313
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# unit tests for get_business_agent_skill
|
|
318
|
+
# Get a skill
|
|
319
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
320
|
+
# @param skill_id
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @return [BusinessAgentSkill]
|
|
323
|
+
describe 'get_business_agent_skill test' do
|
|
324
|
+
it 'should work' do
|
|
325
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# unit tests for get_business_agent_status
|
|
330
|
+
# Get agent setup status
|
|
331
|
+
# One read that says where the merchant is: whether the number is eligible, whether the Meta Business Agent terms are accepted, whether an agent exists, whether it is on, and its settings. `manualSteps` lists what Zernio can verify is still pending (accepting the terms in WhatsApp Manager); `unverifiedSteps` lists what Meta exposes no state for (the payment method in Billing Hub). Never fails for those pre-setup states; it reports them as flags.
|
|
332
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
333
|
+
# @param [Hash] opts the optional parameters
|
|
334
|
+
# @return [BusinessAgentStatus]
|
|
335
|
+
describe 'get_business_agent_status test' do
|
|
336
|
+
it 'should work' do
|
|
337
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# unit tests for get_business_agent_ui_skill
|
|
342
|
+
# Get a UI skill
|
|
343
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
344
|
+
# @param ui_skill_id
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @return [BusinessAgentUiSkill]
|
|
347
|
+
describe 'get_business_agent_ui_skill test' do
|
|
348
|
+
it 'should work' do
|
|
349
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# unit tests for get_business_agent_website
|
|
354
|
+
# Get a crawled website
|
|
355
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
356
|
+
# @param website_id
|
|
357
|
+
# @param [Hash] opts the optional parameters
|
|
358
|
+
# @return [BusinessAgentWebsite]
|
|
359
|
+
describe 'get_business_agent_website test' do
|
|
360
|
+
it 'should work' do
|
|
361
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# unit tests for list_business_agent_allowlist
|
|
366
|
+
# List allowlisted consumers
|
|
367
|
+
# Consumers the agent answers while `ai_audience` is ALLOWLISTED_ONLY.
|
|
368
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @return [ListBusinessAgentAllowlist200Response]
|
|
371
|
+
describe 'list_business_agent_allowlist test' do
|
|
372
|
+
it 'should work' do
|
|
373
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# unit tests for list_business_agent_connector_tools
|
|
378
|
+
# List connector tools
|
|
379
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
380
|
+
# @param connector_id
|
|
381
|
+
# @param [Hash] opts the optional parameters
|
|
382
|
+
# @return [ListBusinessAgentConnectorTools200Response]
|
|
383
|
+
describe 'list_business_agent_connector_tools test' do
|
|
384
|
+
it 'should work' do
|
|
385
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# unit tests for list_business_agent_connectors
|
|
390
|
+
# List connectors
|
|
391
|
+
# External APIs the agent may call. `connection_status` says whether Meta can currently reach each one.
|
|
392
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
393
|
+
# @param [Hash] opts the optional parameters
|
|
394
|
+
# @return [ListBusinessAgentConnectors200Response]
|
|
395
|
+
describe 'list_business_agent_connectors test' do
|
|
396
|
+
it 'should work' do
|
|
397
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# unit tests for list_business_agent_faqs
|
|
402
|
+
# List FAQs
|
|
403
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
404
|
+
# @param [Hash] opts the optional parameters
|
|
405
|
+
# @return [ListBusinessAgentFaqs200Response]
|
|
406
|
+
describe 'list_business_agent_faqs test' do
|
|
407
|
+
it 'should work' do
|
|
408
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# unit tests for list_business_agent_files
|
|
413
|
+
# List knowledge files
|
|
414
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @return [ListBusinessAgentFiles200Response]
|
|
417
|
+
describe 'list_business_agent_files test' do
|
|
418
|
+
it 'should work' do
|
|
419
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# unit tests for list_business_agent_settings
|
|
424
|
+
# List agent settings
|
|
425
|
+
# Settings of every agent configured on the number (normally one). Pass `agentId` to read one.
|
|
426
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @option opts [String] :agent_id
|
|
429
|
+
# @return [ListBusinessAgentSettings200Response]
|
|
430
|
+
describe 'list_business_agent_settings test' do
|
|
431
|
+
it 'should work' do
|
|
432
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# unit tests for list_business_agent_skills
|
|
437
|
+
# List skills
|
|
438
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
439
|
+
# @param [Hash] opts the optional parameters
|
|
440
|
+
# @return [ListBusinessAgentSkills200Response]
|
|
441
|
+
describe 'list_business_agent_skills test' do
|
|
442
|
+
it 'should work' do
|
|
443
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# unit tests for list_business_agent_ui_skills
|
|
448
|
+
# List UI skills
|
|
449
|
+
# Cursor paged; follow `paging.cursors.after` until `paging.next` is absent.
|
|
450
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
451
|
+
# @param [Hash] opts the optional parameters
|
|
452
|
+
# @option opts [String] :before
|
|
453
|
+
# @option opts [String] :after
|
|
454
|
+
# @option opts [Integer] :limit
|
|
455
|
+
# @return [ListBusinessAgentUiSkills200Response]
|
|
456
|
+
describe 'list_business_agent_ui_skills test' do
|
|
457
|
+
it 'should work' do
|
|
458
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# unit tests for list_business_agent_websites
|
|
463
|
+
# List crawled websites
|
|
464
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @return [ListBusinessAgentWebsites200Response]
|
|
467
|
+
describe 'list_business_agent_websites test' do
|
|
468
|
+
it 'should work' do
|
|
469
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
470
|
+
end
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# unit tests for onboard_business_agent
|
|
474
|
+
# Create the agent
|
|
475
|
+
# Creates the Meta Business Agent on the number and schedules Meta's data preparation. Requires the terms to be accepted; eligibility is checked first and an ineligible number answers 403 `business_agent_not_eligible`. Not idempotent: call it once, then configure knowledge and skills, then enable it through the settings. Configuration calls made in the first minute can still answer `business_agent_not_found` while Meta prepares the workspace.
|
|
476
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
477
|
+
# @param [Hash] opts the optional parameters
|
|
478
|
+
# @return [OnboardBusinessAgent201Response]
|
|
479
|
+
describe 'onboard_business_agent test' do
|
|
480
|
+
it 'should work' do
|
|
481
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# unit tests for read_business_agent_evals
|
|
486
|
+
# Read evaluation data
|
|
487
|
+
# Without query parameters, lists the evaluation scenarios (`eval_cases`). With `jobId`, polls a run started with POST. With `summaryIds`, returns the aggregated insight reports. With `evalIds`, returns per-conversation evaluation details. One of the three at a time.
|
|
488
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @option opts [String] :job_id
|
|
491
|
+
# @option opts [String] :summary_ids Comma-separated summary ids.
|
|
492
|
+
# @option opts [String] :eval_ids Comma-separated evaluation ids.
|
|
493
|
+
# @return [Hash<String, Object>]
|
|
494
|
+
describe 'read_business_agent_evals test' do
|
|
495
|
+
it 'should work' do
|
|
496
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# unit tests for refresh_business_agent_connector_tools
|
|
501
|
+
# Refresh MCP connector tools
|
|
502
|
+
# Re-discovers the tools of an MCP connector. A failed discovery keeps the previous tool set and reports an ERROR sync status inside a 200.
|
|
503
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
504
|
+
# @param connector_id
|
|
505
|
+
# @param [Hash] opts the optional parameters
|
|
506
|
+
# @return [BusinessAgentConnector]
|
|
507
|
+
describe 'refresh_business_agent_connector_tools test' do
|
|
508
|
+
it 'should work' do
|
|
509
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
510
|
+
end
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# unit tests for remove_business_agent_allowlist_entry
|
|
514
|
+
# Remove an allowlisted consumer
|
|
515
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
516
|
+
# @param entry_id
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @return [InlineObject]
|
|
519
|
+
describe 'remove_business_agent_allowlist_entry test' do
|
|
520
|
+
it 'should work' do
|
|
521
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# unit tests for replace_business_agent_budget
|
|
526
|
+
# Replace usage budgets
|
|
527
|
+
# The full desired set: budgets left out are removed, an empty list returns to unlimited. Pass `budget_id` to edit one in place. When a cap is hit the agent finishes its turn, stops answering and hands the thread to a human until the window rolls over.
|
|
528
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
529
|
+
# @param get_business_agent_budget200_response
|
|
530
|
+
# @param [Hash] opts the optional parameters
|
|
531
|
+
# @return [GetBusinessAgentBudget200Response]
|
|
532
|
+
describe 'replace_business_agent_budget test' do
|
|
533
|
+
it 'should work' do
|
|
534
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# unit tests for replace_business_agent_business_information
|
|
539
|
+
# Replace business information
|
|
540
|
+
# Full replacement: every field you send overwrites the stored value; fields you omit are cleared.
|
|
541
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
542
|
+
# @param business_agent_business_information
|
|
543
|
+
# @param [Hash] opts the optional parameters
|
|
544
|
+
# @return [BusinessAgentBusinessInformation]
|
|
545
|
+
describe 'replace_business_agent_business_information test' do
|
|
546
|
+
it 'should work' do
|
|
547
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
# unit tests for reset_business_agent_business_information
|
|
552
|
+
# Reset business information
|
|
553
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
554
|
+
# @param [Hash] opts the optional parameters
|
|
555
|
+
# @return [InlineObject]
|
|
556
|
+
describe 'reset_business_agent_business_information test' do
|
|
557
|
+
it 'should work' do
|
|
558
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# unit tests for run_business_agent_connector_tool
|
|
563
|
+
# Run a connector tool once
|
|
564
|
+
# Executes the tool against the merchant API and returns the raw upstream result, to check a connector before the agent relies on it.
|
|
565
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
566
|
+
# @param connector_id
|
|
567
|
+
# @param tool_id
|
|
568
|
+
# @param run_business_agent_connector_tool_request
|
|
569
|
+
# @param [Hash] opts the optional parameters
|
|
570
|
+
# @return [RunBusinessAgentConnectorTool200Response]
|
|
571
|
+
describe 'run_business_agent_connector_tool test' do
|
|
572
|
+
it 'should work' do
|
|
573
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# unit tests for send_business_agent_event
|
|
578
|
+
# Send a business event
|
|
579
|
+
# Tell the agent something happened in your systems (order shipped, document verified) so it messages the consumer about it. The consumer must already have a conversation with the number. Answers 202 with the event id; poll it for the outcome.
|
|
580
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
581
|
+
# @param send_business_agent_event_request
|
|
582
|
+
# @param [Hash] opts the optional parameters
|
|
583
|
+
# @return [SendBusinessAgentEvent202Response]
|
|
584
|
+
describe 'send_business_agent_event test' do
|
|
585
|
+
it 'should work' do
|
|
586
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
587
|
+
end
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
# unit tests for send_business_agent_test_message
|
|
591
|
+
# Send a test message
|
|
592
|
+
# Runs the message through the full agent pipeline in Meta sandbox with no WhatsApp user and no token billing. Pass back `conversationId` to continue a thread. Meta rate-limits it per number per hour.
|
|
593
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
594
|
+
# @param send_business_agent_test_message_request
|
|
595
|
+
# @param [Hash] opts the optional parameters
|
|
596
|
+
# @return [BusinessAgentTestMessageResponse]
|
|
597
|
+
describe 'send_business_agent_test_message test' do
|
|
598
|
+
it 'should work' do
|
|
599
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
600
|
+
end
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# unit tests for set_business_agent_connector_credentials
|
|
604
|
+
# Set connector credentials
|
|
605
|
+
# Set or rotate the connector's credentials in place: `kind: api_key`, `kind: oauth` (client credentials) or `kind: certificate` (mTLS client certificate). Meta has no call that removes a credential layer; change the connector's `auth_type` or delete it instead.
|
|
606
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
607
|
+
# @param connector_id
|
|
608
|
+
# @param set_business_agent_connector_credentials_request
|
|
609
|
+
# @param [Hash] opts the optional parameters
|
|
610
|
+
# @return [BusinessAgentConnector]
|
|
611
|
+
describe 'set_business_agent_connector_credentials test' do
|
|
612
|
+
it 'should work' do
|
|
613
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# unit tests for start_business_agent_eval_run
|
|
618
|
+
# Start an evaluation run
|
|
619
|
+
# Simulates the given scenarios against the agent and scores them. Answers 202 with a `job_id` to poll with GET.
|
|
620
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
621
|
+
# @param start_business_agent_eval_run_request
|
|
622
|
+
# @param [Hash] opts the optional parameters
|
|
623
|
+
# @return [StartBusinessAgentEvalRun202Response]
|
|
624
|
+
describe 'start_business_agent_eval_run test' do
|
|
625
|
+
it 'should work' do
|
|
626
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
627
|
+
end
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
# unit tests for update_business_agent_connector
|
|
631
|
+
# Update a connector
|
|
632
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
633
|
+
# @param connector_id
|
|
634
|
+
# @param business_agent_connector_input
|
|
635
|
+
# @param [Hash] opts the optional parameters
|
|
636
|
+
# @return [BusinessAgentConnector]
|
|
637
|
+
describe 'update_business_agent_connector test' do
|
|
638
|
+
it 'should work' do
|
|
639
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
# unit tests for update_business_agent_connector_tool
|
|
644
|
+
# Update a connector tool
|
|
645
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
646
|
+
# @param connector_id
|
|
647
|
+
# @param tool_id
|
|
648
|
+
# @param business_agent_connector_tool_input
|
|
649
|
+
# @param [Hash] opts the optional parameters
|
|
650
|
+
# @return [BusinessAgentConnectorTool]
|
|
651
|
+
describe 'update_business_agent_connector_tool test' do
|
|
652
|
+
it 'should work' do
|
|
653
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
654
|
+
end
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
# unit tests for update_business_agent_faq
|
|
658
|
+
# Update a FAQ
|
|
659
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
660
|
+
# @param faq_id
|
|
661
|
+
# @param business_agent_faq_input
|
|
662
|
+
# @param [Hash] opts the optional parameters
|
|
663
|
+
# @return [BusinessAgentFaq]
|
|
664
|
+
describe 'update_business_agent_faq test' do
|
|
665
|
+
it 'should work' do
|
|
666
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
667
|
+
end
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
# unit tests for update_business_agent_settings
|
|
671
|
+
# Update agent settings
|
|
672
|
+
# Partial update: fields you omit keep their value. `rollout.enabled: true` turns the agent on for new conversations; `false` stops it on every thread. Turning it on for `EVERYONE` needs a payment method on the Business Agent billable account (Meta accepts the call but delivers nothing without one); `ALLOWLISTED_ONLY` does not, which is how you test with a few numbers before billing. `never_say_phrases` replaces the whole list.
|
|
673
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
674
|
+
# @param update_business_agent_settings_request
|
|
675
|
+
# @param [Hash] opts the optional parameters
|
|
676
|
+
# @option opts [String] :agent_id
|
|
677
|
+
# @return [BusinessAgentSettings]
|
|
678
|
+
describe 'update_business_agent_settings test' do
|
|
679
|
+
it 'should work' do
|
|
680
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
# unit tests for update_business_agent_skill
|
|
685
|
+
# Update a skill
|
|
686
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
687
|
+
# @param skill_id
|
|
688
|
+
# @param business_agent_skill_input
|
|
689
|
+
# @param [Hash] opts the optional parameters
|
|
690
|
+
# @return [BusinessAgentSkill]
|
|
691
|
+
describe 'update_business_agent_skill test' do
|
|
692
|
+
it 'should work' do
|
|
693
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
694
|
+
end
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
# unit tests for update_business_agent_ui_skill
|
|
698
|
+
# Update a UI skill
|
|
699
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
700
|
+
# @param ui_skill_id
|
|
701
|
+
# @param business_agent_ui_skill_input
|
|
702
|
+
# @param [Hash] opts the optional parameters
|
|
703
|
+
# @return [BusinessAgentUiSkill]
|
|
704
|
+
describe 'update_business_agent_ui_skill test' do
|
|
705
|
+
it 'should work' do
|
|
706
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# unit tests for update_business_agent_website
|
|
711
|
+
# Update a crawled website
|
|
712
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
713
|
+
# @param website_id
|
|
714
|
+
# @param business_agent_website_input
|
|
715
|
+
# @param [Hash] opts the optional parameters
|
|
716
|
+
# @return [BusinessAgentWebsite]
|
|
717
|
+
describe 'update_business_agent_website test' do
|
|
718
|
+
it 'should work' do
|
|
719
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
720
|
+
end
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# unit tests for upload_business_agent_file
|
|
724
|
+
# Upload a knowledge file
|
|
725
|
+
# Accepted types: pdf, doc, docx, png, jpg, jpeg, plus csv and xlsx when Meta enabled extraction on the asset. Meta's limit is 100 MB. Two ways to send the file: - JSON `{ url, fileName }`: Zernio downloads the file (public https URL, no redirects, capped at 100 MB) and forwards it. Use this for anything above a few megabytes. - multipart form-data with a `file` part (and an optional `fileName`): bounded by the request body limit of about 4.5 MB; larger uploads must use the `url` form. Not idempotent.
|
|
726
|
+
# @param account_id WhatsApp social account id (the number must be managed through the Cloud API).
|
|
727
|
+
# @param upload_business_agent_file_request
|
|
728
|
+
# @param [Hash] opts the optional parameters
|
|
729
|
+
# @return [BusinessAgentKnowledgeFile]
|
|
730
|
+
describe 'upload_business_agent_file test' do
|
|
731
|
+
it 'should work' do
|
|
732
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
733
|
+
end
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
end
|