Skip to content

Commit 77d3bca

Browse files
feat(api): api update
1 parent 99e9160 commit 77d3bca

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6190639c909b62f2e182a32dc56a80a87ca470e8970efd6ce8d3d7bd659d237c.yml
3-
openapi_spec_hash: c4078fa61a4ab0b480a2c7b40e495104
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-970ab04a97244c68824c0c52e06925cba14fb7dbfc36c03167c1afe74cd1b150.yml
3+
openapi_spec_hash: 315e7859c3f77311261fb824b74a8247
44
config_hash: f2846563903bf75ab0858872154df0f7

packages/mcp-server/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'retrieve_many_benefits_benefits_hris_individuals',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet enrollment information for the given individuals.\n\n# Response Schema\n```json\n{\n type: 'array',\n title: 'IndividualBenefits',\n items: {\n $ref: '#/$defs/individual_benefit'\n },\n $defs: {\n individual_benefit: {\n type: 'object',\n properties: {\n body: {\n anyOf: [ {\n type: 'object',\n properties: {\n annual_maximum: {\n type: 'integer',\n description: 'If the benefit supports annual maximum, the amount in cents for this individual.'\n },\n catch_up: {\n type: 'boolean',\n description: 'If the benefit supports catch up (401k, 403b, etc.), whether catch up is enabled for this individual.'\n },\n company_contribution: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents.'\n },\n type: {\n type: 'string',\n description: 'Fixed contribution type.',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in basis points (1/100th of a percent).'\n },\n type: {\n type: 'string',\n description: 'Percentage contribution type.',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n tiers: {\n type: 'array',\n description: 'Array of tier objects defining employer match tiers based on employee contribution thresholds.',\n items: {\n type: 'object',\n properties: {\n match: {\n type: 'integer'\n },\n threshold: {\n type: 'integer'\n }\n },\n required: [ 'match',\n 'threshold'\n ]\n }\n },\n type: {\n type: 'string',\n description: 'Tiered contribution type (only valid for company_contribution).',\n enum: [ 'tiered'\n ]\n }\n },\n required: [ 'tiers',\n 'type'\n ]\n }\n ],\n title: 'CompanyContribution'\n },\n employee_deduction: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents.'\n },\n type: {\n type: 'string',\n description: 'Fixed contribution type.',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in basis points (1/100th of a percent).'\n },\n type: {\n type: 'string',\n description: 'Percentage contribution type.',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n }\n ],\n title: 'EmployeeDeductionContribution'\n },\n hsa_contribution_limit: {\n type: 'string',\n description: 'Type for HSA contribution limit if the benefit is a HSA.',\n enum: [ 'individual',\n 'family'\n ]\n }\n },\n required: [ 'annual_maximum',\n 'catch_up',\n 'company_contribution',\n 'employee_deduction'\n ]\n },\n {\n type: 'object',\n properties: {\n code: {\n type: 'number'\n },\n message: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n finch_code: {\n type: 'string'\n }\n },\n required: [ 'code',\n 'message',\n 'name'\n ]\n }\n ]\n },\n code: {\n type: 'integer'\n },\n individual_id: {\n type: 'string'\n }\n },\n required: [ 'body',\n 'code',\n 'individual_id'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet enrollment information for the given individuals.\n\n# Response Schema\n```json\n{\n type: 'array',\n title: 'IndividualBenefits',\n items: {\n $ref: '#/$defs/individual_benefit'\n },\n $defs: {\n individual_benefit: {\n type: 'object',\n properties: {\n body: {\n anyOf: [ {\n type: 'object',\n properties: {\n annual_maximum: {\n type: 'integer',\n description: 'If the benefit supports annual maximum, the amount in cents for this individual.'\n },\n catch_up: {\n type: 'boolean',\n description: 'If the benefit supports catch up (401k, 403b, etc.), whether catch up is enabled for this individual.'\n },\n company_contribution: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%). Not used for type=tiered.'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%). Not used for type=tiered.'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n tiers: {\n type: 'array',\n description: 'Array of tier objects defining employer match tiers based on employee contribution thresholds. Required when type=tiered.',\n items: {\n type: 'object',\n properties: {\n match: {\n type: 'integer'\n },\n threshold: {\n type: 'integer'\n }\n },\n required: [ 'match',\n 'threshold'\n ]\n }\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'tiered'\n ]\n }\n },\n required: [ 'tiers',\n 'type'\n ]\n }\n ],\n title: 'CompanyContribution',\n description: 'Company contribution configuration. Supports fixed amounts (in cents), percentage-based contributions (in basis points where 100 = 1%), or tiered matching structures.'\n },\n employee_deduction: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%).'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents) or \"percent\" (amount in basis points).',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%).'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents) or \"percent\" (amount in basis points).',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n }\n ],\n title: 'EmployeeDeductionContribution',\n description: 'Employee deduction configuration. Supports both fixed amounts (in cents) and percentage-based contributions (in basis points where 100 = 1%).'\n },\n hsa_contribution_limit: {\n type: 'string',\n description: 'Type for HSA contribution limit if the benefit is a HSA.',\n enum: [ 'individual',\n 'family'\n ]\n }\n },\n required: [ 'annual_maximum',\n 'catch_up',\n 'company_contribution',\n 'employee_deduction'\n ]\n },\n {\n type: 'object',\n properties: {\n code: {\n type: 'number'\n },\n message: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n finch_code: {\n type: 'string'\n }\n },\n required: [ 'code',\n 'message',\n 'name'\n ]\n }\n ]\n },\n code: {\n type: 'integer'\n },\n individual_id: {\n type: 'string'\n }\n },\n required: [ 'body',\n 'code',\n 'individual_id'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

src/resources/hris/benefits/individuals.ts

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,21 @@ export namespace IndividualBenefit {
130130
*/
131131
catch_up: boolean | null;
132132

133+
/**
134+
* Company contribution configuration. Supports fixed amounts (in cents),
135+
* percentage-based contributions (in basis points where 100 = 1%), or tiered
136+
* matching structures.
137+
*/
133138
company_contribution:
134139
| UnionMember0.UnionMember0
135140
| UnionMember0.UnionMember1
136141
| UnionMember0.UnionMember2
137142
| null;
138143

144+
/**
145+
* Employee deduction configuration. Supports both fixed amounts (in cents) and
146+
* percentage-based contributions (in basis points where 100 = 1%).
147+
*/
139148
employee_deduction: UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | null;
140149

141150
/**
@@ -147,37 +156,42 @@ export namespace IndividualBenefit {
147156
export namespace UnionMember0 {
148157
export interface UnionMember0 {
149158
/**
150-
* Contribution amount in cents.
159+
* Contribution amount in cents (for type=fixed) or basis points (for type=percent,
160+
* where 100 = 1%). Not used for type=tiered.
151161
*/
152162
amount: number;
153163

154164
/**
155-
* Fixed contribution type.
165+
* Contribution type. Supported values: "fixed" (amount in cents), "percent"
166+
* (amount in basis points), or "tiered" (multi-tier matching).
156167
*/
157168
type: 'fixed';
158169
}
159170

160171
export interface UnionMember1 {
161172
/**
162-
* Contribution amount in basis points (1/100th of a percent).
173+
* Contribution amount in cents (for type=fixed) or basis points (for type=percent,
174+
* where 100 = 1%). Not used for type=tiered.
163175
*/
164176
amount: number;
165177

166178
/**
167-
* Percentage contribution type.
179+
* Contribution type. Supported values: "fixed" (amount in cents), "percent"
180+
* (amount in basis points), or "tiered" (multi-tier matching).
168181
*/
169182
type: 'percent';
170183
}
171184

172185
export interface UnionMember2 {
173186
/**
174187
* Array of tier objects defining employer match tiers based on employee
175-
* contribution thresholds.
188+
* contribution thresholds. Required when type=tiered.
176189
*/
177190
tiers: Array<UnionMember2.Tier>;
178191

179192
/**
180-
* Tiered contribution type (only valid for company_contribution).
193+
* Contribution type. Supported values: "fixed" (amount in cents), "percent"
194+
* (amount in basis points), or "tiered" (multi-tier matching).
181195
*/
182196
type: 'tiered';
183197
}
@@ -192,24 +206,28 @@ export namespace IndividualBenefit {
192206

193207
export interface UnionMember0 {
194208
/**
195-
* Contribution amount in cents.
209+
* Contribution amount in cents (for type=fixed) or basis points (for type=percent,
210+
* where 100 = 1%).
196211
*/
197212
amount: number;
198213

199214
/**
200-
* Fixed contribution type.
215+
* Contribution type. Supported values: "fixed" (amount in cents) or "percent"
216+
* (amount in basis points).
201217
*/
202218
type: 'fixed';
203219
}
204220

205221
export interface UnionMember1 {
206222
/**
207-
* Contribution amount in basis points (1/100th of a percent).
223+
* Contribution amount in cents (for type=fixed) or basis points (for type=percent,
224+
* where 100 = 1%).
208225
*/
209226
amount: number;
210227

211228
/**
212-
* Percentage contribution type.
229+
* Contribution type. Supported values: "fixed" (amount in cents) or "percent"
230+
* (amount in basis points).
213231
*/
214232
type: 'percent';
215233
}

src/resources/request-forwarding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export namespace RequestForwardingForwardResponse {
7171
/**
7272
* The HTTP headers that were specified for the forwarded request.
7373
*/
74-
headers?: { [key: string]: unknown } | null;
74+
headers?: { [key: string]: string } | null;
7575

7676
/**
7777
* The query parameters that were specified for the forwarded request.

0 commit comments

Comments
 (0)