fix(revenuecat): tighten docs after sub-segment validation

- delete_customer: drop dead was_deleted fallback (docs specify 'deleted')
- grant_entitlement: mark duration + startTimeMs as deprecated, clarify
  startTimeMs only affects expiration calc (not grant time)
- list_offerings: replace vague platform description with documented
  X-Platform enum (ios, android, amazon, stripe, roku, paddle)
This commit is contained in:
Waleed Latif
2026-05-06 22:24:02 -07:00
parent 85f181abeb
commit 3cefd6f7c4
3 changed files with 5 additions and 9 deletions
+1 -6
View File
@@ -47,12 +47,7 @@ export const revenuecatDeleteCustomerTool: ToolConfig<
return {
success: true,
output: {
deleted:
typeof body.deleted === 'boolean'
? body.deleted
: typeof body.was_deleted === 'boolean'
? body.was_deleted
: true,
deleted: typeof body.deleted === 'boolean' ? body.deleted : true,
app_user_id:
typeof body.app_user_id === 'string' ? body.app_user_id : (params?.appUserId ?? ''),
},
@@ -40,7 +40,7 @@ export const revenuecatGrantEntitlementTool: ToolConfig<
required: false,
visibility: 'user-or-llm',
description:
'Duration of the entitlement. Provide either duration or endTimeMs. One of: daily, three_day, weekly, two_week, monthly, two_month, three_month, six_month, yearly, lifetime',
'Deprecated. Duration of the entitlement. Provide either duration or endTimeMs (endTimeMs preferred). One of: daily, three_day, weekly, two_week, monthly, two_month, three_month, six_month, yearly, lifetime',
},
endTimeMs: {
type: 'number',
@@ -54,7 +54,7 @@ export const revenuecatGrantEntitlementTool: ToolConfig<
required: false,
visibility: 'user-or-llm',
description:
'Optional start time in milliseconds since Unix epoch. Set to a past time to achieve custom durations shorter than daily.',
'Deprecated. Optional start time in milliseconds since Unix epoch, used with duration to determine expiration. Regardless of value, the entitlement is always granted immediately.',
},
},
+2 -1
View File
@@ -29,7 +29,8 @@ export const revenuecatListOfferingsTool: ToolConfig<ListOfferingsParams, ListOf
type: 'string',
required: false,
visibility: 'user-or-llm',
description: 'Platform to filter offerings (ios, android, stripe, etc.)',
description:
'X-Platform header value. One of: ios, android, amazon, stripe, roku, paddle. Required when using a legacy public API key; ignored with app-specific API keys.',
},
},