fix(integrations/zapier): address Zapier publishing review (#6985)

This commit is contained in:
Himanshu
2026-08-20 18:53:06 +05:30
committed by GitHub
parent ed38ddf873
commit 1de6499b8a
7 changed files with 16 additions and 59 deletions
@@ -1,12 +1,9 @@
import type { ZObject, Bundle, Memory } from '../types';
import { captureEvent } from '../telemetry';
const perform = async (z: ZObject, bundle: Bundle): Promise<Memory[]> => {
const body: Record<string, unknown> = {};
if (bundle.inputData.user_id) body.filters = { user_id: bundle.inputData.user_id };
captureEvent('zapier.get_memories', bundle.authData?.apiKey);
const response = await z.request({
url: '/v3/memories/',
method: 'POST',
@@ -25,8 +22,8 @@ export default {
key: 'get_memories',
noun: 'Memory',
display: {
label: 'Get Memories',
description: 'List stored memories for a user.',
label: 'Find Memories by User',
description: 'Finds all stored memories for a user.',
},
operation: {
perform,
@@ -1,5 +1,4 @@
import type { ZObject, Bundle, Memory } from '../types';
import { captureEvent } from '../telemetry';
const perform = async (z: ZObject, bundle: Bundle): Promise<Memory[]> => {
const body: Record<string, unknown> = {
@@ -9,8 +8,6 @@ const perform = async (z: ZObject, bundle: Bundle): Promise<Memory[]> => {
};
if (bundle.inputData.user_id) body.filters = { user_id: bundle.inputData.user_id };
captureEvent('zapier.search_memories', bundle.authData?.apiKey);
const response = await z.request({
url: '/v3/memories/search/',
method: 'POST',
@@ -25,8 +22,8 @@ export default {
key: 'search_memories',
noun: 'Memory',
display: {
label: 'Search Memories',
description: 'Semantic search over stored memories.',
label: 'Find Memories',
description: 'Finds memories matching a semantic query.',
},
operation: {
perform,