Skip to content

Commit 3cefd6f

Browse files
committed
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)
1 parent 85f181a commit 3cefd6f

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

apps/sim/tools/revenuecat/delete_customer.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ export const revenuecatDeleteCustomerTool: ToolConfig<
4747
return {
4848
success: true,
4949
output: {
50-
deleted:
51-
typeof body.deleted === 'boolean'
52-
? body.deleted
53-
: typeof body.was_deleted === 'boolean'
54-
? body.was_deleted
55-
: true,
50+
deleted: typeof body.deleted === 'boolean' ? body.deleted : true,
5651
app_user_id:
5752
typeof body.app_user_id === 'string' ? body.app_user_id : (params?.appUserId ?? ''),
5853
},

apps/sim/tools/revenuecat/grant_entitlement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const revenuecatGrantEntitlementTool: ToolConfig<
4040
required: false,
4141
visibility: 'user-or-llm',
4242
description:
43-
'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',
43+
'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',
4444
},
4545
endTimeMs: {
4646
type: 'number',
@@ -54,7 +54,7 @@ export const revenuecatGrantEntitlementTool: ToolConfig<
5454
required: false,
5555
visibility: 'user-or-llm',
5656
description:
57-
'Optional start time in milliseconds since Unix epoch. Set to a past time to achieve custom durations shorter than daily.',
57+
'Deprecated. Optional start time in milliseconds since Unix epoch, used with duration to determine expiration. Regardless of value, the entitlement is always granted immediately.',
5858
},
5959
},
6060

apps/sim/tools/revenuecat/list_offerings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const revenuecatListOfferingsTool: ToolConfig<ListOfferingsParams, ListOf
2929
type: 'string',
3030
required: false,
3131
visibility: 'user-or-llm',
32-
description: 'Platform to filter offerings (ios, android, stripe, etc.)',
32+
description:
33+
'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.',
3334
},
3435
},
3536

0 commit comments

Comments
 (0)