arky-sdk 0.5.61 → 0.5.63

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/dist/index.cjs CHANGED
@@ -1417,12 +1417,12 @@ var createAgentApi = (apiConfig) => {
1417
1417
  params: Object.keys(queryParams).length > 0 ? queryParams : void 0
1418
1418
  });
1419
1419
  },
1420
- async runAgent(params, options) {
1420
+ async sendMessage(params, options) {
1421
1421
  const body = { message: params.message };
1422
1422
  if (params.chatId) body.chatId = params.chatId;
1423
1423
  if (params.direct) body.direct = params.direct;
1424
1424
  return apiConfig.httpClient.post(
1425
- `/v1/businesses/${apiConfig.businessId}/agents/${params.id}/run`,
1425
+ `/v1/businesses/${apiConfig.businessId}/agents/${params.id}/chats/messages`,
1426
1426
  body,
1427
1427
  options
1428
1428
  );