@factorialco/api-client 3.0.0-beta.2026100128 → 3.0.0-beta.2026100130

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.
@@ -1367,6 +1367,75 @@ export type CompaniesLegalEntity = {
1367
1367
  */
1368
1368
  address_line_2?: string;
1369
1369
  };
1370
+ export type CompensationsAdditionalCompensation = {
1371
+ /**
1372
+ * The identifier of the additional compensation
1373
+ */
1374
+ id: string;
1375
+ /**
1376
+ * Contract version this additional compensation is attached to
1377
+ */
1378
+ contract_version_id: string;
1379
+ /**
1380
+ * Company id
1381
+ */
1382
+ company_id: string;
1383
+ /**
1384
+ * Payroll concept classifying this additional compensation
1385
+ */
1386
+ payroll_concept_id: string;
1387
+ /**
1388
+ * Employee id derived from the contract version
1389
+ */
1390
+ employee_id: string;
1391
+ /**
1392
+ * Recurrence label. One of `monthly`, `every_2_months`, `every_3_months`, `every_4_months`, `every_5_months`, `every_6_months`, `every_7_months`, `every_8_months`, `every_9_months`, `every_10_months`, `every_11_months`, `every_12_months`.
1393
+ */
1394
+ recurrence?: string;
1395
+ /**
1396
+ * Date of the first payment
1397
+ */
1398
+ first_payment_on?: string;
1399
+ /**
1400
+ * Free-text description
1401
+ */
1402
+ description?: string;
1403
+ /**
1404
+ * Amount strategy discriminator — one of `contracts_fixed_amount_strategy`, `contracts_variable_amount_strategy`, `contracts_per_worked_day_amount_strategy`
1405
+ */
1406
+ amount_strategy_type: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
1407
+ /**
1408
+ * Amount strategy id
1409
+ */
1410
+ amount_strategy_id: string;
1411
+ /**
1412
+ * Amount value (Fixed / PerWorkedDay strategies)
1413
+ */
1414
+ amount?: number;
1415
+ /**
1416
+ * Upper limit (Variable strategy only)
1417
+ */
1418
+ upper_limit?: number;
1419
+ /**
1420
+ * Definition object populated for PerWorkedDay strategies. Carries `calculation_source`, `reference_time`, `minimum_amount_of_hours_in_minutes`, `work_locations`, `timeoff_leave_type_ids`, and `eligible_days`. `null` for Fixed / Variable strategies.
1421
+ */
1422
+ per_worked_day_definition: {
1423
+ calculation_source: string;
1424
+ reference_time: string;
1425
+ minimum_amount_of_hours_in_minutes?: number;
1426
+ work_locations?: Array<string>;
1427
+ timeoff_leave_type_ids?: Array<string>;
1428
+ eligible_days?: Array<string>;
1429
+ };
1430
+ /**
1431
+ * Timestamp when the additional compensation was created
1432
+ */
1433
+ created_at: string;
1434
+ /**
1435
+ * Timestamp when the additional compensation was last updated
1436
+ */
1437
+ updated_at: string;
1438
+ };
1370
1439
  export type CompensationsConcept = {
1371
1440
  /**
1372
1441
  * The identifier of the concept
@@ -2267,6 +2336,7 @@ export type ContractsMaterializedTemplate = {
2267
2336
  label: string;
2268
2337
  field_type: 'boolean' | 'cents' | 'integer' | 'option' | 'string';
2269
2338
  edit_mode: 'not_editable' | 'add_only' | 'full_editable';
2339
+ source_level?: 'company' | 'country' | 'legal_entity';
2270
2340
  options?: Array<{
2271
2341
  id: string;
2272
2342
  option_id: string;
@@ -3468,7 +3538,7 @@ export type ExpensesExpensable = {
3468
3538
  */
3469
3539
  effective_on?: string;
3470
3540
  /**
3471
- * The optional date and time when the expensable was requested for review
3541
+ * The date and time the expensable was submitted for review. Null while it is a draft; set at submission and never cleared afterwards. Compare it with `effective_on` to measure how late a document was submitted.
3472
3542
  */
3473
3543
  review_request_at?: string;
3474
3544
  /**
@@ -4304,7 +4374,7 @@ export type FinanceFinancialDocument = {
4304
4374
  */
4305
4375
  net_amount_cents?: number;
4306
4376
  /**
4307
- * Total payable on the document, taxes included, in cents. This is the amount to branch on when a rule cares about how much is being spent.
4377
+ * Total payable on the document, taxes included, in cents.
4308
4378
  */
4309
4379
  total_amount_cents?: number;
4310
4380
  /**
@@ -4759,7 +4829,7 @@ export type IntegrationsSyncableItem = {
4759
4829
  /**
4760
4830
  * Type of the syncable item
4761
4831
  */
4762
- syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/worked_time' | 'finance/vendor';
4832
+ syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/worked_time' | 'finance/vendor';
4763
4833
  };
4764
4834
  export type IntegrationsSyncableState = {
4765
4835
  /**
@@ -10436,27 +10506,27 @@ export type GetApi20261001ResourcesAttendanceEditTimesheetRequestsData = {
10436
10506
  path?: never;
10437
10507
  query?: {
10438
10508
  /**
10439
- * filter by ids.
10509
+ * Return only the timesheet-edit requests with these ids.
10440
10510
  */
10441
10511
  'ids[]'?: Array<string>;
10442
10512
  /**
10443
- * filter by employee ids.
10513
+ * Return only the requests raised for these employees.
10444
10514
  */
10445
10515
  'employee_ids[]'?: Array<string>;
10446
10516
  /**
10447
- * filter by shift id.
10517
+ * Return only the requests targeting this existing attendance shift. Requests that propose a brand-new shift have no shift yet and are never matched.
10448
10518
  */
10449
10519
  shift_id?: string;
10450
10520
  /**
10451
- * filter by edit timesheet request status.
10521
+ * Set to true to return only the requests still awaiting a decision (`approved` is null). Passing false has no effect: it does not restrict the result to already-decided requests.
10452
10522
  */
10453
10523
  pending?: boolean;
10454
10524
  /**
10455
- * filter by edit timesheet requests that were created after or including this date.
10525
+ * Return only the requests about a timesheet day on or after this date. This is the day the request refers to, not the day it was created. Given without `end_on` it matches that single day.
10456
10526
  */
10457
10527
  start_on?: string;
10458
10528
  /**
10459
- * filter by edit timesheet requests that were created before or including this date.
10529
+ * Return only the requests about a timesheet day on or before this date. Given without `start_on` it matches every request up to that day.
10460
10530
  */
10461
10531
  end_on?: string;
10462
10532
  };
@@ -10565,7 +10635,7 @@ export type GetApi20261001ResourcesAttendanceEditTimesheetRequestsByIdData = {
10565
10635
  body?: never;
10566
10636
  path: {
10567
10637
  /**
10568
- * filter by ids.
10638
+ * Return only the timesheet-edit requests with these ids.
10569
10639
  */
10570
10640
  id: string;
10571
10641
  };
@@ -10702,10 +10772,25 @@ export type GetApi20261001ResourcesAttendanceOvertimeRequestsData = {
10702
10772
  body?: never;
10703
10773
  path?: never;
10704
10774
  query: {
10775
+ /**
10776
+ * Return only the overtime requests with these ids.
10777
+ */
10705
10778
  'ids[]'?: Array<string>;
10779
+ /**
10780
+ * Return only the overtime requests of these employees.
10781
+ */
10706
10782
  'employee_ids[]'?: Array<string>;
10783
+ /**
10784
+ * Return only the requests for an overtime day on or after this date. Given without `end_on` it matches that single day.
10785
+ */
10707
10786
  start_on?: string;
10787
+ /**
10788
+ * Return only the requests for an overtime day on or before this date. Given without `start_on` it matches every request up to that day.
10789
+ */
10708
10790
  end_on?: string;
10791
+ /**
10792
+ * Return only the requests in this state: `pending` (the state of a newly created request), `approved`, `rejected` or `none`.
10793
+ */
10709
10794
  status?: 'pending' | 'approved' | 'rejected' | 'none';
10710
10795
  include_approval_flow: boolean;
10711
10796
  };
@@ -10758,6 +10843,9 @@ export type DeleteApi20261001ResourcesAttendanceOvertimeRequestsByIdResponse = D
10758
10843
  export type GetApi20261001ResourcesAttendanceOvertimeRequestsByIdData = {
10759
10844
  body?: never;
10760
10845
  path: {
10846
+ /**
10847
+ * Return only the overtime requests with these ids.
10848
+ */
10761
10849
  id: string;
10762
10850
  };
10763
10851
  query?: never;
@@ -10919,27 +11007,27 @@ export type GetApi20261001ResourcesAttendanceShiftsData = {
10919
11007
  path?: never;
10920
11008
  query: {
10921
11009
  /**
10922
- * filter by employee ids.
11010
+ * Return only the shifts of these employees.
10923
11011
  */
10924
11012
  'employee_ids[]'?: Array<string>;
10925
11013
  /**
10926
- * filter by shift that starts after or including this date.
11014
+ * Return only the shifts whose reference date (the day the shift counts towards, which for an overnight shift is the day it started) is on or after this date. Can be given on its own, as an open-ended lower bound.
10927
11015
  */
10928
11016
  start_on?: string;
10929
11017
  /**
10930
- * filter by shift that ends before or including this date.
11018
+ * Return only the shifts whose reference date is on or before this date. Can be given on its own, as an open-ended upper bound.
10931
11019
  */
10932
11020
  end_on?: string;
10933
11021
  /**
10934
- * filter by ids.
11022
+ * Return only the shifts with these ids.
10935
11023
  */
10936
11024
  'ids[]'?: Array<string>;
10937
11025
  /**
10938
- * Flag to filter half day shifts
11026
+ * Set to true to return only the shifts marked as covering half a day. Passing false has no effect: it does not exclude them.
10939
11027
  */
10940
11028
  half_day: boolean;
10941
11029
  /**
10942
- * Flag to filter shifts in workable days
11030
+ * Set to true for worked time only, false for the non-workable entries (breaks). Leave it unset to get both.
10943
11031
  */
10944
11032
  workable?: boolean;
10945
11033
  /**
@@ -11064,7 +11152,7 @@ export type GetApi20261001ResourcesAttendanceShiftsByIdData = {
11064
11152
  body?: never;
11065
11153
  path: {
11066
11154
  /**
11067
- * filter by ids.
11155
+ * Return only the shifts with these ids.
11068
11156
  */
11069
11157
  id: string;
11070
11158
  };
@@ -11757,7 +11845,7 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesData = {
11757
11845
  path?: never;
11758
11846
  query?: {
11759
11847
  /**
11760
- * identifier of the legal entity
11848
+ * Return only the legal entities with these ids.
11761
11849
  */
11762
11850
  'ids[]'?: Array<string>;
11763
11851
  /**
@@ -11843,7 +11931,7 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdData = {
11843
11931
  body?: never;
11844
11932
  path: {
11845
11933
  /**
11846
- * identifier of the legal entity
11934
+ * Return only the legal entities with these ids.
11847
11935
  */
11848
11936
  id: string;
11849
11937
  };
@@ -11857,6 +11945,190 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses = {
11857
11945
  200: CompaniesLegalEntity;
11858
11946
  };
11859
11947
  export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponse = GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses[keyof GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses];
11948
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsData = {
11949
+ body?: never;
11950
+ path?: never;
11951
+ query?: {
11952
+ /**
11953
+ * Filter by additional compensation ids
11954
+ */
11955
+ 'ids[]'?: Array<string>;
11956
+ /**
11957
+ * Filter by contract version ids, refers to contracts/contract_versions endpoint.
11958
+ */
11959
+ 'contract_version_ids[]'?: Array<string>;
11960
+ /**
11961
+ * Filter by employee ids, refers to employees/employees endpoint.
11962
+ */
11963
+ 'employee_ids[]'?: Array<string>;
11964
+ /**
11965
+ * Filter by payroll concept ids, refers to compensations/concepts endpoint.
11966
+ */
11967
+ 'payroll_concept_ids[]'?: Array<string>;
11968
+ };
11969
+ url: '/api/2026-10-01/resources/compensations/additional_compensations';
11970
+ };
11971
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses = {
11972
+ /**
11973
+ * OK
11974
+ */
11975
+ 200: {
11976
+ data?: Array<CompensationsAdditionalCompensation>;
11977
+ meta?: PagedIndexMeta;
11978
+ };
11979
+ };
11980
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsResponse = GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses[keyof GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses];
11981
+ export type PostApi20261001ResourcesCompensationsAdditionalCompensationsData = {
11982
+ body?: {
11983
+ /**
11984
+ * Target contract version id, refers to contracts/contract_versions endpoint.
11985
+ */
11986
+ contract_version_id: string;
11987
+ /**
11988
+ * Payroll concept id, refers to compensations/concepts endpoint.
11989
+ */
11990
+ payroll_concept_id: string;
11991
+ /**
11992
+ * Amount strategy discriminator
11993
+ */
11994
+ amount_strategy_type: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
11995
+ /**
11996
+ * Amount value (required for Fixed and PerWorkedDay strategies)
11997
+ */
11998
+ amount?: number;
11999
+ /**
12000
+ * Upper limit for Variable strategy (ignored for others)
12001
+ */
12002
+ upper_limit?: number;
12003
+ /**
12004
+ * Definition object required when `amount_strategy_type = contracts_per_worked_day_amount_strategy`. Carries `calculation_source`, `reference_time`, `minimum_amount_of_hours_in_minutes`, `work_locations`, `timeoff_leave_type_ids`, and `eligible_days`.
12005
+ */
12006
+ per_worked_day_definition: {
12007
+ calculation_source: string;
12008
+ reference_time: string;
12009
+ minimum_amount_of_hours_in_minutes?: number;
12010
+ work_locations?: Array<string>;
12011
+ timeoff_leave_type_ids?: Array<string>;
12012
+ eligible_days?: Array<string>;
12013
+ };
12014
+ /**
12015
+ * Free-text description
12016
+ */
12017
+ description?: string;
12018
+ /**
12019
+ * Recurrence label. One of `monthly`, `every_2_months`, `every_3_months`, `every_4_months`, `every_5_months`, `every_6_months`, `every_7_months`, `every_8_months`, `every_9_months`, `every_10_months`, `every_11_months`, `every_12_months`.
12020
+ */
12021
+ recurrence?: 'monthly' | 'every_2_months' | 'every_3_months' | 'every_4_months' | 'every_5_months' | 'every_6_months' | 'every_7_months' | 'every_8_months' | 'every_9_months' | 'every_10_months' | 'every_11_months' | 'every_12_months';
12022
+ /**
12023
+ * Date of the first payment (must be on or after the contract version's effective month)
12024
+ */
12025
+ first_payment_on?: string;
12026
+ };
12027
+ path?: never;
12028
+ query?: never;
12029
+ url: '/api/2026-10-01/resources/compensations/additional_compensations';
12030
+ };
12031
+ export type PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses = {
12032
+ /**
12033
+ * CREATED
12034
+ */
12035
+ 201: CompensationsAdditionalCompensation;
12036
+ };
12037
+ export type PostApi20261001ResourcesCompensationsAdditionalCompensationsResponse = PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses[keyof PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses];
12038
+ export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
12039
+ body?: never;
12040
+ path: {
12041
+ /**
12042
+ * Additional compensation id to delete
12043
+ */
12044
+ id: string;
12045
+ };
12046
+ query?: never;
12047
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
12048
+ };
12049
+ export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
12050
+ /**
12051
+ * OK
12052
+ */
12053
+ 200: CompensationsAdditionalCompensation;
12054
+ };
12055
+ export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
12056
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
12057
+ body?: never;
12058
+ path: {
12059
+ /**
12060
+ * Filter by additional compensation ids
12061
+ */
12062
+ id: string;
12063
+ };
12064
+ query?: never;
12065
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
12066
+ };
12067
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
12068
+ /**
12069
+ * OK
12070
+ */
12071
+ 200: CompensationsAdditionalCompensation;
12072
+ };
12073
+ export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
12074
+ export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
12075
+ body?: {
12076
+ /**
12077
+ * Additional compensation id
12078
+ */
12079
+ id: string;
12080
+ /**
12081
+ * Amount strategy discriminator
12082
+ */
12083
+ amount_strategy_type?: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
12084
+ /**
12085
+ * Updated amount value (Fixed and PerWorkedDay strategies)
12086
+ */
12087
+ amount?: number;
12088
+ /**
12089
+ * Updated upper limit (Variable strategy only)
12090
+ */
12091
+ upper_limit?: number;
12092
+ /**
12093
+ * Definition object for PerWorkedDay strategies. Same shape as on create — replaces the previous definition when supplied.
12094
+ */
12095
+ per_worked_day_definition: {
12096
+ calculation_source: string;
12097
+ reference_time: string;
12098
+ minimum_amount_of_hours_in_minutes?: number;
12099
+ work_locations?: Array<string>;
12100
+ timeoff_leave_type_ids?: Array<string>;
12101
+ eligible_days?: Array<string>;
12102
+ };
12103
+ /**
12104
+ * Free-text description
12105
+ */
12106
+ description?: string;
12107
+ /**
12108
+ * Recurrence label. Same enum as on create.
12109
+ */
12110
+ recurrence?: 'monthly' | 'every_2_months' | 'every_3_months' | 'every_4_months' | 'every_5_months' | 'every_6_months' | 'every_7_months' | 'every_8_months' | 'every_9_months' | 'every_10_months' | 'every_11_months' | 'every_12_months';
12111
+ /**
12112
+ * Date of the first payment
12113
+ */
12114
+ first_payment_on?: string;
12115
+ };
12116
+ path: {
12117
+ /**
12118
+ * Additional compensation id
12119
+ */
12120
+ id: string;
12121
+ };
12122
+ query?: never;
12123
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
12124
+ };
12125
+ export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
12126
+ /**
12127
+ * OK
12128
+ */
12129
+ 200: CompensationsAdditionalCompensation;
12130
+ };
12131
+ export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
11860
12132
  export type GetApi20261001ResourcesCompensationsConceptsData = {
11861
12133
  body?: never;
11862
12134
  path?: never;
@@ -11866,7 +12138,7 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
11866
12138
  */
11867
12139
  'ids[]'?: Array<string>;
11868
12140
  /**
11869
- * Filter by concept categories
12141
+ * Return only the concepts in these categories: `earnings_fixed_salary`, `earnings_variable`, `earnings_benefits_in_kind`, `earnings_others`, `deductions`, `company_contribution` or `summarized_values`.
11870
12142
  */
11871
12143
  'categories[]'?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
11872
12144
  /**
@@ -11878,7 +12150,7 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
11878
12150
  */
11879
12151
  enabled?: boolean;
11880
12152
  /**
11881
- * When true, returns only default concepts
12153
+ * Set to true to return only the concepts Factorial ships by default, leaving out the ones the company created itself. Passing false has no effect.
11882
12154
  */
11883
12155
  default?: boolean;
11884
12156
  };
@@ -12065,7 +12337,7 @@ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsData = {
12065
12337
  path?: never;
12066
12338
  query?: {
12067
12339
  /**
12068
- * Employee compensation ids
12340
+ * Return only the employee compensation rows with these ids.
12069
12341
  */
12070
12342
  'ids[]'?: Array<string>;
12071
12343
  /**
@@ -12169,7 +12441,7 @@ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdData =
12169
12441
  body?: never;
12170
12442
  path: {
12171
12443
  /**
12172
- * Employee compensation ids
12444
+ * Return only the employee compensation rows with these ids.
12173
12445
  */
12174
12446
  id: string;
12175
12447
  };
@@ -12416,7 +12688,13 @@ export type GetApi20261001ResourcesContractsCompensationsData = {
12416
12688
  body?: never;
12417
12689
  path?: never;
12418
12690
  query?: {
12691
+ /**
12692
+ * Return only the compensations with these ids.
12693
+ */
12419
12694
  'ids[]'?: Array<string>;
12695
+ /**
12696
+ * Return only the compensations belonging to these contract versions.
12697
+ */
12420
12698
  'contract_version_ids[]'?: Array<string>;
12421
12699
  };
12422
12700
  url: '/api/2026-10-01/resources/contracts/compensations';
@@ -12479,6 +12757,9 @@ export type DeleteApi20261001ResourcesContractsCompensationsByIdResponse = Delet
12479
12757
  export type GetApi20261001ResourcesContractsCompensationsByIdData = {
12480
12758
  body?: never;
12481
12759
  path: {
12760
+ /**
12761
+ * Return only the compensations with these ids.
12762
+ */
12482
12763
  id: string;
12483
12764
  };
12484
12765
  query?: never;
@@ -12575,11 +12856,11 @@ export type GetApi20261001ResourcesContractsContractVersionsData = {
12575
12856
  path?: never;
12576
12857
  query: {
12577
12858
  /**
12578
- * list of contract version identifiers.
12859
+ * Return only the contract versions with these ids.
12579
12860
  */
12580
12861
  'ids[]'?: Array<string>;
12581
12862
  /**
12582
- * list of employee identifiers, refers to /employees/employees endpoint.
12863
+ * Return only the contract versions of these employees.
12583
12864
  */
12584
12865
  'employee_ids[]'?: Array<string>;
12585
12866
  /**
@@ -12745,7 +13026,7 @@ export type GetApi20261001ResourcesContractsContractVersionsByIdData = {
12745
13026
  body?: never;
12746
13027
  path: {
12747
13028
  /**
12748
- * list of contract version identifiers.
13029
+ * Return only the contract versions with these ids.
12749
13030
  */
12750
13031
  id: string;
12751
13032
  };
@@ -14408,7 +14689,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14408
14689
  path?: never;
14409
14690
  query: {
14410
14691
  /**
14411
- * filter by employee ids.
14692
+ * Return only the employees with these ids. Ids outside what the reader may see are dropped, rather than failing the whole read.
14412
14693
  */
14413
14694
  'ids[]'?: Array<string>;
14414
14695
  /**
@@ -14428,7 +14709,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14428
14709
  */
14429
14710
  updated_at_gteq?: string;
14430
14711
  /**
14431
- * filter by legal entity id (refereces to companies/legal_entities).
14712
+ * Return only the employees whose contract is under these legal entities.
14432
14713
  */
14433
14714
  'legal_entity_ids[]'?: Array<string>;
14434
14715
  /**
@@ -14436,19 +14717,19 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14436
14717
  */
14437
14718
  company_identifier?: string;
14438
14719
  /**
14439
- * get only active employees
14720
+ * Set to true to keep only the employees not terminated as of today: those with no termination date, or one still in the future. Passing false has no effect, and it is ignored altogether when `include_active_and_terminated` is set.
14440
14721
  */
14441
14722
  only_active: boolean;
14442
14723
  /**
14443
- * filter employees by team id (references to core/teams).
14724
+ * Return only the employees who belong to these teams.
14444
14725
  */
14445
14726
  'team_ids[]'?: Array<string>;
14446
14727
  /**
14447
- * filter employees by location id (references to locations/location).
14728
+ * Return only the employees whose default workplace is one of these locations.
14448
14729
  */
14449
14730
  'location_ids[]'?: Array<string>;
14450
14731
  /**
14451
- * get only manager employees.
14732
+ * Set to true to return only the employees who have at least one direct report. Passing false has no effect.
14452
14733
  */
14453
14734
  only_managers: boolean;
14454
14735
  /**
@@ -14472,7 +14753,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesByIdData = {
14472
14753
  body?: never;
14473
14754
  path: {
14474
14755
  /**
14475
- * filter by employee ids.
14756
+ * Return only the employees with these ids. Ids outside what the reader may see are dropped, rather than failing the whole read.
14476
14757
  */
14477
14758
  id: string;
14478
14759
  };
@@ -15181,17 +15462,41 @@ export type GetApi20261001ResourcesExpensesExpensablesData = {
15181
15462
  body?: never;
15182
15463
  path?: never;
15183
15464
  query: {
15465
+ /**
15466
+ * Return only the expensables with these ids.
15467
+ */
15184
15468
  'ids[]'?: Array<string>;
15185
15469
  company_id?: string;
15470
+ /**
15471
+ * Return only the expensables filed inside these expense groups, the report or trip bundles an employee submits several expensables in.
15472
+ */
15186
15473
  'group_ids[]'?: Array<string>;
15187
15474
  'by_resources[]'?: Array<{
15188
15475
  [key: string]: unknown;
15189
15476
  }>;
15477
+ /**
15478
+ * Return only the expensables whose spending employee is one of these. When `reporter_ids` is given too the two are OR'ed, not intersected: the result holds the expensables owned by these employees plus the ones submitted by those reporters.
15479
+ */
15190
15480
  'employee_ids[]'?: Array<string>;
15481
+ /**
15482
+ * Return only the expensables submitted by these employees on somebody else's behalf, such as an assistant or an office manager. OR'ed with `employee_ids` when both are given.
15483
+ */
15191
15484
  'reporter_ids[]'?: Array<string>;
15485
+ /**
15486
+ * Return only the expensables in these states: `draft`, `pending`, `changes_requested`, `approved`, `rejected`, `reversed`, `in_payroll`, `sent_to_pay` or `paid`.
15487
+ */
15192
15488
  'status[]'?: 'pending' | 'changes_requested' | 'approved' | 'paid' | 'rejected' | 'reversed' | 'draft' | 'in_payroll' | 'sent_to_pay';
15489
+ /**
15490
+ * Return only the expensables created this way: `manual` (entered by a person) or `automatic` (raised from a card transaction). Those are the only two values the filter understands, and any other string makes the read return nothing at all rather than ignoring the filter.
15491
+ */
15193
15492
  'creation_type[]'?: Array<string>;
15493
+ /**
15494
+ * Start of the window of expense dates (`effective_on`) to return, inclusive. It only takes effect together with `to`: given on its own it is ignored and no date narrowing happens.
15495
+ */
15194
15496
  from?: string;
15497
+ /**
15498
+ * End of the window of expense dates (`effective_on`) to return, inclusive. It only takes effect together with `from`.
15499
+ */
15195
15500
  to?: string;
15196
15501
  search?: string;
15197
15502
  include_grouped: boolean;
@@ -15213,6 +15518,9 @@ export type GetApi20261001ResourcesExpensesExpensablesResponse = GetApi20261001R
15213
15518
  export type GetApi20261001ResourcesExpensesExpensablesByIdData = {
15214
15519
  body?: never;
15215
15520
  path: {
15521
+ /**
15522
+ * Return only the expensables with these ids.
15523
+ */
15216
15524
  id: string;
15217
15525
  };
15218
15526
  query?: never;
@@ -15270,11 +15578,11 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15270
15578
  path?: never;
15271
15579
  query: {
15272
15580
  /**
15273
- * The ids of the expenses to filter by
15581
+ * Return only the expenses with these ids.
15274
15582
  */
15275
15583
  'ids[]'?: Array<string>;
15276
15584
  /**
15277
- * The ids of the expensables to filter by
15585
+ * Return only the expenses attached to these expensables. An expense is the detail record of an expensable, so this is the usual way to reach it from the header.
15278
15586
  */
15279
15587
  'expenses_expensable_ids[]'?: Array<string>;
15280
15588
  /**
@@ -15282,7 +15590,7 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15282
15590
  */
15283
15591
  include_manual_drafts: boolean;
15284
15592
  /**
15285
- * The ids of the employees to filter by
15593
+ * Return only the expenses of these employees.
15286
15594
  */
15287
15595
  'employee_ids[]'?: Array<string>;
15288
15596
  /**
@@ -15290,11 +15598,11 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15290
15598
  */
15291
15599
  'external_authorization_ids[]'?: Array<string>;
15292
15600
  /**
15293
- * The ids of the cards to filter by
15601
+ * Return only the expenses paid with these cards.
15294
15602
  */
15295
15603
  'card_ids[]'?: Array<string>;
15296
15604
  /**
15297
- * The ids of the card payments to filter by
15605
+ * Return only the expenses raised from these card payments.
15298
15606
  */
15299
15607
  'card_payment_ids[]'?: Array<string>;
15300
15608
  /**
@@ -15302,15 +15610,15 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15302
15610
  */
15303
15611
  include_attachments: boolean;
15304
15612
  /**
15305
- * The time from which to filter expenses
15613
+ * Start of the window of expense dates (`effective_on`) to return, inclusive. It only takes effect together with `to`: given on its own it is ignored.
15306
15614
  */
15307
15615
  from?: string;
15308
15616
  /**
15309
- * The time to which to filter expenses
15617
+ * End of the window of expense dates (`effective_on`) to return, exclusive. It only takes effect together with `from`.
15310
15618
  */
15311
15619
  to?: string;
15312
15620
  /**
15313
- * The ids of the disputes to filter by
15621
+ * Return only the expenses under these payment disputes.
15314
15622
  */
15315
15623
  'dispute_ids[]'?: Array<string>;
15316
15624
  };
@@ -15330,7 +15638,7 @@ export type GetApi20261001ResourcesExpensesExpensesByIdData = {
15330
15638
  body?: never;
15331
15639
  path: {
15332
15640
  /**
15333
- * The ids of the expenses to filter by
15641
+ * Return only the expenses with these ids.
15334
15642
  */
15335
15643
  id: string;
15336
15644
  };
@@ -15348,16 +15656,40 @@ export type GetApi20261001ResourcesExpensesMileagesData = {
15348
15656
  body?: never;
15349
15657
  path?: never;
15350
15658
  query: {
15659
+ /**
15660
+ * Return only the mileage records with these ids.
15661
+ */
15351
15662
  'ids[]'?: Array<string>;
15663
+ /**
15664
+ * Return only the mileage records attached to these expensables. A mileage record is the detail record of an expensable, so this is the usual way to reach it from the header.
15665
+ */
15352
15666
  'expenses_expensable_ids[]'?: Array<string>;
15353
15667
  include_manual_drafts: boolean;
15668
+ /**
15669
+ * Return only the mileage records of these employees.
15670
+ */
15354
15671
  'employee_ids[]'?: Array<string>;
15355
15672
  'external_authorization_ids[]'?: Array<string>;
15673
+ /**
15674
+ * Return only the mileage records paid with these cards.
15675
+ */
15356
15676
  'card_ids[]'?: Array<string>;
15677
+ /**
15678
+ * Return only the mileage records raised from these card payments.
15679
+ */
15357
15680
  'card_payment_ids[]'?: Array<string>;
15358
15681
  include_attachments: boolean;
15682
+ /**
15683
+ * Start of the window of travel dates (`effective_on`) to return, inclusive. It only takes effect together with `to`: given on its own it is ignored.
15684
+ */
15359
15685
  from?: string;
15686
+ /**
15687
+ * End of the window of travel dates (`effective_on`) to return, exclusive. It only takes effect together with `from`.
15688
+ */
15360
15689
  to?: string;
15690
+ /**
15691
+ * Return only the mileage records under these payment disputes.
15692
+ */
15361
15693
  'dispute_ids[]'?: Array<string>;
15362
15694
  };
15363
15695
  url: '/api/2026-10-01/resources/expenses/mileages';
@@ -15375,6 +15707,9 @@ export type GetApi20261001ResourcesExpensesMileagesResponse = GetApi20261001Reso
15375
15707
  export type GetApi20261001ResourcesExpensesMileagesByIdData = {
15376
15708
  body?: never;
15377
15709
  path: {
15710
+ /**
15711
+ * Return only the mileage records with these ids.
15712
+ */
15378
15713
  id: string;
15379
15714
  };
15380
15715
  query?: never;
@@ -16223,31 +16558,31 @@ export type GetApi20261001ResourcesFinanceFinancialDocumentsData = {
16223
16558
  path?: never;
16224
16559
  query?: {
16225
16560
  /**
16226
- * Search financial documents by company_id
16561
+ * Return only the documents of this company. It must be a company the reader has access to: an id outside that set makes the read fail rather than come back empty.
16227
16562
  */
16228
16563
  company_id?: string;
16229
16564
  /**
16230
- * Search financial documents by ID
16565
+ * Return only the financial documents with these ids.
16231
16566
  */
16232
16567
  'ids[]'?: Array<string>;
16233
16568
  /**
16234
- * Search financial documents by vendor_id
16569
+ * Return only the documents issued by this vendor contact.
16235
16570
  */
16236
16571
  vendor_id?: string;
16237
16572
  /**
16238
- * Search financial documents by currency
16573
+ * Return only the documents in this currency, as an uppercase ISO 4217 code. It takes one code, not a list.
16239
16574
  */
16240
16575
  currency?: string;
16241
16576
  /**
16242
- * Search financial documents by status
16577
+ * Return only the documents in these states: `processing`, `review` (awaiting approval), `sent_to_pay` or `paid`.
16243
16578
  */
16244
16579
  'statuses[]'?: 'processing' | 'review' | 'sent_to_pay' | 'paid';
16245
16580
  /**
16246
- * Search financial documents by legal_entity_id
16581
+ * Return only the documents booked against these legal entities.
16247
16582
  */
16248
16583
  'legal_entity_ids[]'?: Array<string>;
16249
16584
  /**
16250
- * Search financial documents by document_type
16585
+ * Return only the documents of these kinds: `invoice`, `receipt` or `credit_note`.
16251
16586
  */
16252
16587
  'document_types[]'?: 'invoice' | 'receipt' | 'credit_note';
16253
16588
  /**
@@ -16348,7 +16683,7 @@ export type GetApi20261001ResourcesFinanceFinancialDocumentsByIdData = {
16348
16683
  body?: never;
16349
16684
  path: {
16350
16685
  /**
16351
- * Search financial documents by ID
16686
+ * Return only the financial documents with these ids.
16352
16687
  */
16353
16688
  id: string;
16354
16689
  };
@@ -16982,15 +17317,15 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysData = {
16982
17317
  path?: never;
16983
17318
  query?: {
16984
17319
  /**
16985
- * Company holiday ids
17320
+ * Return only the company holidays with these ids.
16986
17321
  */
16987
17322
  'ids[]'?: Array<string>;
16988
17323
  /**
16989
- * Location ids
17324
+ * Return only the holidays declared for these locations. A company holiday always belongs to exactly one location.
16990
17325
  */
16991
17326
  'location_ids[]'?: Array<string>;
16992
17327
  /**
16993
- * Team ids
17328
+ * Return only the holidays of the locations that are the default workplace of somebody in these teams. It reaches teams through employees, not directly.
16994
17329
  */
16995
17330
  'team_ids[]'?: Array<string>;
16996
17331
  /**
@@ -16998,11 +17333,11 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysData = {
16998
17333
  */
16999
17334
  'employee_ids[]'?: Array<string>;
17000
17335
  /**
17001
- * Start date
17336
+ * Return only the holidays falling on or after this date. Usable on its own, as an open-ended lower bound.
17002
17337
  */
17003
17338
  start_at?: string;
17004
17339
  /**
17005
- * End date
17340
+ * Return only the holidays falling on or before this date. Usable on its own, as an open-ended upper bound.
17006
17341
  */
17007
17342
  end_at?: string;
17008
17343
  };
@@ -17022,7 +17357,7 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysByIdData = {
17022
17357
  body?: never;
17023
17358
  path: {
17024
17359
  /**
17025
- * Company holiday ids
17360
+ * Return only the company holidays with these ids.
17026
17361
  */
17027
17362
  id: string;
17028
17363
  };
@@ -17131,27 +17466,6 @@ export type PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses = {
17131
17466
  201: IntegrationsSyncRunOutput;
17132
17467
  };
17133
17468
  export type PostApi20261001ResourcesIntegrationsSyncRunOutputsResponse = PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses[keyof PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses];
17134
- export type GetApi20261001ResourcesIntegrationsSyncableItemsData = {
17135
- body?: never;
17136
- path?: never;
17137
- query: {
17138
- /**
17139
- * Identifier of the sync run
17140
- */
17141
- sync_run_id: string;
17142
- };
17143
- url: '/api/2026-10-01/resources/integrations/syncable_items';
17144
- };
17145
- export type GetApi20261001ResourcesIntegrationsSyncableItemsResponses = {
17146
- /**
17147
- * OK
17148
- */
17149
- 200: {
17150
- data?: Array<IntegrationsSyncableItem>;
17151
- meta?: PagedIndexMeta;
17152
- };
17153
- };
17154
- export type GetApi20261001ResourcesIntegrationsSyncableItemsResponse = GetApi20261001ResourcesIntegrationsSyncableItemsResponses[keyof GetApi20261001ResourcesIntegrationsSyncableItemsResponses];
17155
17469
  export type GetApi20261001ResourcesIntegrationsSyncableStatesData = {
17156
17470
  body?: never;
17157
17471
  path?: never;
@@ -17296,7 +17610,7 @@ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData =
17296
17610
  /**
17297
17611
  * The Factorial resource type this item maps to
17298
17612
  */
17299
- syncable_type: 'compensationscompensation' | 'expensesexpensable' | 'employeeupdatesleave' | 'employeeupdatesworkedtime' | 'financecontact';
17613
+ syncable_type: 'compensationscompensation' | 'expensesexpensable' | 'employeeupdatesleave' | 'employeeupdatesnewhire' | 'employeeupdatesworkedtime' | 'financecontact';
17300
17614
  /**
17301
17615
  * Outcome of processing the item
17302
17616
  */
@@ -17788,6 +18102,9 @@ export type GetApi20261001ResourcesJobCatalogRolesData = {
17788
18102
  body?: never;
17789
18103
  path?: never;
17790
18104
  query?: {
18105
+ /**
18106
+ * Return only the job roles with these ids.
18107
+ */
17791
18108
  'ids[]'?: Array<string>;
17792
18109
  };
17793
18110
  url: '/api/2026-10-01/resources/job_catalog/roles';
@@ -17805,6 +18122,9 @@ export type GetApi20261001ResourcesJobCatalogRolesResponse = GetApi20261001Resou
17805
18122
  export type GetApi20261001ResourcesJobCatalogRolesByIdData = {
17806
18123
  body?: never;
17807
18124
  path: {
18125
+ /**
18126
+ * Return only the job roles with these ids.
18127
+ */
17808
18128
  id: string;
17809
18129
  };
17810
18130
  query?: never;
@@ -17863,7 +18183,7 @@ export type GetApi20261001ResourcesLocationsLocationsData = {
17863
18183
  */
17864
18184
  'employee_ids[]'?: Array<string>;
17865
18185
  /**
17866
- * Wether to filter only the main location.
18186
+ * Set to true to return only the company's main location. Passing false has no effect.
17867
18187
  */
17868
18188
  main?: boolean;
17869
18189
  };
@@ -23517,7 +23837,7 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
23517
23837
  path?: never;
23518
23838
  query?: {
23519
23839
  /**
23520
- * Membership ids.
23840
+ * Return only the memberships with these ids.
23521
23841
  */
23522
23842
  'ids[]'?: Array<string>;
23523
23843
  /**
@@ -23525,11 +23845,11 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
23525
23845
  */
23526
23846
  lead?: boolean;
23527
23847
  /**
23528
- * Team ids.
23848
+ * Return only the memberships of these teams.
23529
23849
  */
23530
23850
  'team_ids[]'?: Array<string>;
23531
23851
  /**
23532
- * Employee ids.
23852
+ * Return only the memberships of these employees.
23533
23853
  */
23534
23854
  'employee_ids[]'?: Array<string>;
23535
23855
  };
@@ -23593,7 +23913,7 @@ export type GetApi20261001ResourcesTeamsMembershipsByIdData = {
23593
23913
  body?: never;
23594
23914
  path: {
23595
23915
  /**
23596
- * Membership ids.
23916
+ * Return only the memberships with these ids.
23597
23917
  */
23598
23918
  id: string;
23599
23919
  };
@@ -23638,6 +23958,9 @@ export type GetApi20261001ResourcesTeamsTeamsData = {
23638
23958
  body?: never;
23639
23959
  path?: never;
23640
23960
  query?: {
23961
+ /**
23962
+ * Return only the teams with these ids.
23963
+ */
23641
23964
  'ids[]'?: Array<string>;
23642
23965
  };
23643
23966
  url: '/api/2026-10-01/resources/teams/teams';
@@ -23695,6 +24018,9 @@ export type DeleteApi20261001ResourcesTeamsTeamsByIdResponse = DeleteApi20261001
23695
24018
  export type GetApi20261001ResourcesTeamsTeamsByIdData = {
23696
24019
  body?: never;
23697
24020
  path: {
24021
+ /**
24022
+ * Return only the teams with these ids.
24023
+ */
23698
24024
  id: string;
23699
24025
  };
23700
24026
  query?: never;
@@ -23747,15 +24073,15 @@ export type GetApi20261001ResourcesTimeoffAllowancesData = {
23747
24073
  path?: never;
23748
24074
  query?: {
23749
24075
  /**
23750
- * An array of allowance ids to look for
24076
+ * Return only the allowances with these ids.
23751
24077
  */
23752
24078
  'ids[]'?: Array<string>;
23753
24079
  /**
23754
- * Filter allowances by Time off policy id
24080
+ * Return only the allowances belonging to this time-off policy. It takes one id, not a list.
23755
24081
  */
23756
24082
  timeoff_policy_id?: string;
23757
24083
  /**
23758
- * Filter by only overtime allowances
24084
+ * Set to true to return only the allowances funded by overtime hours, leaving out those accrued from a base entitlement or from worked time. Passing false has no effect.
23759
24085
  */
23760
24086
  by_overtime?: boolean;
23761
24087
  };
@@ -23937,7 +24263,7 @@ export type GetApi20261001ResourcesTimeoffAllowancesByIdData = {
23937
24263
  body?: never;
23938
24264
  path: {
23939
24265
  /**
23940
- * An array of allowance ids to look for
24266
+ * Return only the allowances with these ids.
23941
24267
  */
23942
24268
  id: string;
23943
24269
  };
@@ -24464,23 +24790,23 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24464
24790
  path?: never;
24465
24791
  query: {
24466
24792
  /**
24467
- * The leave ids to retrieve
24793
+ * Return only the leaves with these ids.
24468
24794
  */
24469
24795
  'ids[]'?: Array<string>;
24470
24796
  /**
24471
- * The employee ids to retrieve
24797
+ * Return only the leaves of these employees.
24472
24798
  */
24473
24799
  'employee_ids[]'?: Array<string>;
24474
24800
  /**
24475
- * The leave type id to retrieve
24801
+ * Return only the leaves of these leave types. Despite the singular name it takes a list.
24476
24802
  */
24477
24803
  'leave_type_id[]'?: Array<string>;
24478
24804
  /**
24479
- * Valid date following the format YYYY-MM-DD
24805
+ * Return only the leaves that had already started by this date (start date on or before it). Usable on its own; pair it with `from` for a window.
24480
24806
  */
24481
24807
  to?: string;
24482
24808
  /**
24483
- * Valid date following the format YYYY-MM-DD
24809
+ * Return only the leaves that had not finished before this date, meaning they end on or after it or have no end date at all. Usable on its own; pair it with `to` for a window.
24484
24810
  */
24485
24811
  from?: string;
24486
24812
  /**
@@ -24492,11 +24818,11 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24492
24818
  */
24493
24819
  include_deleted_leaves: boolean;
24494
24820
  /**
24495
- * Retrieve approved leaves
24821
+ * Set to true for leaves that were approved, false for leaves that were rejected. Leave it unset for every leave whatever its decision. Combining `approved: true` with `include_pending: true` returns approved and still-pending leaves together.
24496
24822
  */
24497
24823
  approved?: boolean;
24498
24824
  /**
24499
- * Retrieve pending leaves
24825
+ * Set to true to include leaves still awaiting a decision. On its own it returns ONLY the pending ones; alongside `approved: true` it returns approved and pending together.
24500
24826
  */
24501
24827
  include_pending?: boolean;
24502
24828
  /**
@@ -24512,11 +24838,11 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24512
24838
  */
24513
24839
  include_duration_by_day?: boolean;
24514
24840
  /**
24515
- * Retrieve workable leaves
24841
+ * Set to true for leaves whose leave type counts as worked time, false for those that do not. Leave it unset to get both.
24516
24842
  */
24517
24843
  type_is_workable?: boolean;
24518
24844
  /**
24519
- * Retrieve payable leaves
24845
+ * Set to true for leaves whose leave type is paid, false for unpaid ones. Leave it unset to get both.
24520
24846
  */
24521
24847
  type_is_payable?: boolean;
24522
24848
  /**
@@ -24637,7 +24963,7 @@ export type GetApi20261001ResourcesTimeoffLeavesByIdData = {
24637
24963
  body?: never;
24638
24964
  path: {
24639
24965
  /**
24640
- * The leave ids to retrieve
24966
+ * Return only the leaves with these ids.
24641
24967
  */
24642
24968
  id: string;
24643
24969
  };
@@ -24785,19 +25111,19 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesData = {
24785
25111
  path?: never;
24786
25112
  query?: {
24787
25113
  /**
24788
- * Identifiers of the leave types
25114
+ * Return only the leave types with these ids.
24789
25115
  */
24790
25116
  'ids[]'?: Array<string>;
24791
25117
  /**
24792
- * Identifiers of the companies
25118
+ * Return only the leave types of these companies.
24793
25119
  */
24794
25120
  'company_ids[]'?: Array<string>;
24795
25121
  /**
24796
- * Whether the leave type is active
25122
+ * Set to true for the leave types currently in use, false for the retired ones. Leave it unset to get both.
24797
25123
  */
24798
25124
  active?: boolean;
24799
25125
  /**
24800
- * Whether the leave type is payable
25126
+ * Set to true for the leave types that are paid, false for the unpaid ones. Leave it unset to get both.
24801
25127
  */
24802
25128
  payable?: boolean;
24803
25129
  /**
@@ -24805,11 +25131,11 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesData = {
24805
25131
  */
24806
25132
  identifier?: unknown;
24807
25133
  /**
24808
- * Identifier of the employee
25134
+ * Return only the leave types the time-off policy in force for this employee grants. It REQUIRES `reference_date`, which says on which date to resolve that policy: without it the read raises.
24809
25135
  */
24810
25136
  employee_id?: string;
24811
25137
  /**
24812
- * A reference date for the leave type
25138
+ * The date on which to resolve the employee's time-off policy. Only meaningful alongside `employee_id`, and mandatory whenever that is given.
24813
25139
  */
24814
25140
  reference_date?: string;
24815
25141
  /**
@@ -24927,7 +25253,7 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesByIdData = {
24927
25253
  body?: never;
24928
25254
  path: {
24929
25255
  /**
24930
- * Identifiers of the leave types
25256
+ * Return only the leave types with these ids.
24931
25257
  */
24932
25258
  id: string;
24933
25259
  };