@factorialco/api-client 3.0.0-beta.2026100129 → 3.0.0-beta.2026100131

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.
@@ -2336,6 +2336,7 @@ export type ContractsMaterializedTemplate = {
2336
2336
  label: string;
2337
2337
  field_type: 'boolean' | 'cents' | 'integer' | 'option' | 'string';
2338
2338
  edit_mode: 'not_editable' | 'add_only' | 'full_editable';
2339
+ source_level?: 'company' | 'country' | 'legal_entity';
2339
2340
  options?: Array<{
2340
2341
  id: string;
2341
2342
  option_id: string;
@@ -3537,7 +3538,7 @@ export type ExpensesExpensable = {
3537
3538
  */
3538
3539
  effective_on?: string;
3539
3540
  /**
3540
- * The date and time the expensable was submitted for review. Null while it is a draft; set at submission and never cleared, so it is always present once an approval flow or a policy check runs (they start at submission). Compare it with `effective_on` to measure how late a document was submitted.
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.
3541
3542
  */
3542
3543
  review_request_at?: string;
3543
3544
  /**
@@ -4373,7 +4374,7 @@ export type FinanceFinancialDocument = {
4373
4374
  */
4374
4375
  net_amount_cents?: number;
4375
4376
  /**
4376
- * 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.
4377
4378
  */
4378
4379
  total_amount_cents?: number;
4379
4380
  /**
@@ -4828,7 +4829,7 @@ export type IntegrationsSyncableItem = {
4828
4829
  /**
4829
4830
  * Type of the syncable item
4830
4831
  */
4831
- 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';
4832
4833
  };
4833
4834
  export type IntegrationsSyncableState = {
4834
4835
  /**
@@ -10505,27 +10506,27 @@ export type GetApi20261001ResourcesAttendanceEditTimesheetRequestsData = {
10505
10506
  path?: never;
10506
10507
  query?: {
10507
10508
  /**
10508
- * filter by ids.
10509
+ * Return only the timesheet-edit requests with these ids.
10509
10510
  */
10510
10511
  'ids[]'?: Array<string>;
10511
10512
  /**
10512
- * filter by employee ids.
10513
+ * Return only the requests raised for these employees.
10513
10514
  */
10514
10515
  'employee_ids[]'?: Array<string>;
10515
10516
  /**
10516
- * 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.
10517
10518
  */
10518
10519
  shift_id?: string;
10519
10520
  /**
10520
- * 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.
10521
10522
  */
10522
10523
  pending?: boolean;
10523
10524
  /**
10524
- * 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.
10525
10526
  */
10526
10527
  start_on?: string;
10527
10528
  /**
10528
- * 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.
10529
10530
  */
10530
10531
  end_on?: string;
10531
10532
  };
@@ -10634,7 +10635,7 @@ export type GetApi20261001ResourcesAttendanceEditTimesheetRequestsByIdData = {
10634
10635
  body?: never;
10635
10636
  path: {
10636
10637
  /**
10637
- * filter by ids.
10638
+ * Return only the timesheet-edit requests with these ids.
10638
10639
  */
10639
10640
  id: string;
10640
10641
  };
@@ -10771,10 +10772,25 @@ export type GetApi20261001ResourcesAttendanceOvertimeRequestsData = {
10771
10772
  body?: never;
10772
10773
  path?: never;
10773
10774
  query: {
10775
+ /**
10776
+ * Return only the overtime requests with these ids.
10777
+ */
10774
10778
  'ids[]'?: Array<string>;
10779
+ /**
10780
+ * Return only the overtime requests of these employees.
10781
+ */
10775
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
+ */
10776
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
+ */
10777
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
+ */
10778
10794
  status?: 'pending' | 'approved' | 'rejected' | 'none';
10779
10795
  include_approval_flow: boolean;
10780
10796
  };
@@ -10827,6 +10843,9 @@ export type DeleteApi20261001ResourcesAttendanceOvertimeRequestsByIdResponse = D
10827
10843
  export type GetApi20261001ResourcesAttendanceOvertimeRequestsByIdData = {
10828
10844
  body?: never;
10829
10845
  path: {
10846
+ /**
10847
+ * Return only the overtime requests with these ids.
10848
+ */
10830
10849
  id: string;
10831
10850
  };
10832
10851
  query?: never;
@@ -10988,27 +11007,27 @@ export type GetApi20261001ResourcesAttendanceShiftsData = {
10988
11007
  path?: never;
10989
11008
  query: {
10990
11009
  /**
10991
- * filter by employee ids.
11010
+ * Return only the shifts of these employees.
10992
11011
  */
10993
11012
  'employee_ids[]'?: Array<string>;
10994
11013
  /**
10995
- * 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.
10996
11015
  */
10997
11016
  start_on?: string;
10998
11017
  /**
10999
- * 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.
11000
11019
  */
11001
11020
  end_on?: string;
11002
11021
  /**
11003
- * filter by ids.
11022
+ * Return only the shifts with these ids.
11004
11023
  */
11005
11024
  'ids[]'?: Array<string>;
11006
11025
  /**
11007
- * 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.
11008
11027
  */
11009
11028
  half_day: boolean;
11010
11029
  /**
11011
- * 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.
11012
11031
  */
11013
11032
  workable?: boolean;
11014
11033
  /**
@@ -11133,7 +11152,7 @@ export type GetApi20261001ResourcesAttendanceShiftsByIdData = {
11133
11152
  body?: never;
11134
11153
  path: {
11135
11154
  /**
11136
- * filter by ids.
11155
+ * Return only the shifts with these ids.
11137
11156
  */
11138
11157
  id: string;
11139
11158
  };
@@ -11826,7 +11845,7 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesData = {
11826
11845
  path?: never;
11827
11846
  query?: {
11828
11847
  /**
11829
- * identifier of the legal entity
11848
+ * Return only the legal entities with these ids.
11830
11849
  */
11831
11850
  'ids[]'?: Array<string>;
11832
11851
  /**
@@ -11912,7 +11931,7 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdData = {
11912
11931
  body?: never;
11913
11932
  path: {
11914
11933
  /**
11915
- * identifier of the legal entity
11934
+ * Return only the legal entities with these ids.
11916
11935
  */
11917
11936
  id: string;
11918
11937
  };
@@ -12119,7 +12138,7 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
12119
12138
  */
12120
12139
  'ids[]'?: Array<string>;
12121
12140
  /**
12122
- * 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`.
12123
12142
  */
12124
12143
  'categories[]'?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
12125
12144
  /**
@@ -12131,7 +12150,7 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
12131
12150
  */
12132
12151
  enabled?: boolean;
12133
12152
  /**
12134
- * 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.
12135
12154
  */
12136
12155
  default?: boolean;
12137
12156
  };
@@ -12318,7 +12337,7 @@ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsData = {
12318
12337
  path?: never;
12319
12338
  query?: {
12320
12339
  /**
12321
- * Employee compensation ids
12340
+ * Return only the employee compensation rows with these ids.
12322
12341
  */
12323
12342
  'ids[]'?: Array<string>;
12324
12343
  /**
@@ -12422,7 +12441,7 @@ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdData =
12422
12441
  body?: never;
12423
12442
  path: {
12424
12443
  /**
12425
- * Employee compensation ids
12444
+ * Return only the employee compensation rows with these ids.
12426
12445
  */
12427
12446
  id: string;
12428
12447
  };
@@ -12669,7 +12688,13 @@ export type GetApi20261001ResourcesContractsCompensationsData = {
12669
12688
  body?: never;
12670
12689
  path?: never;
12671
12690
  query?: {
12691
+ /**
12692
+ * Return only the compensations with these ids.
12693
+ */
12672
12694
  'ids[]'?: Array<string>;
12695
+ /**
12696
+ * Return only the compensations belonging to these contract versions.
12697
+ */
12673
12698
  'contract_version_ids[]'?: Array<string>;
12674
12699
  };
12675
12700
  url: '/api/2026-10-01/resources/contracts/compensations';
@@ -12732,6 +12757,9 @@ export type DeleteApi20261001ResourcesContractsCompensationsByIdResponse = Delet
12732
12757
  export type GetApi20261001ResourcesContractsCompensationsByIdData = {
12733
12758
  body?: never;
12734
12759
  path: {
12760
+ /**
12761
+ * Return only the compensations with these ids.
12762
+ */
12735
12763
  id: string;
12736
12764
  };
12737
12765
  query?: never;
@@ -12828,11 +12856,11 @@ export type GetApi20261001ResourcesContractsContractVersionsData = {
12828
12856
  path?: never;
12829
12857
  query: {
12830
12858
  /**
12831
- * list of contract version identifiers.
12859
+ * Return only the contract versions with these ids.
12832
12860
  */
12833
12861
  'ids[]'?: Array<string>;
12834
12862
  /**
12835
- * list of employee identifiers, refers to /employees/employees endpoint.
12863
+ * Return only the contract versions of these employees.
12836
12864
  */
12837
12865
  'employee_ids[]'?: Array<string>;
12838
12866
  /**
@@ -12998,7 +13026,7 @@ export type GetApi20261001ResourcesContractsContractVersionsByIdData = {
12998
13026
  body?: never;
12999
13027
  path: {
13000
13028
  /**
13001
- * list of contract version identifiers.
13029
+ * Return only the contract versions with these ids.
13002
13030
  */
13003
13031
  id: string;
13004
13032
  };
@@ -14661,7 +14689,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14661
14689
  path?: never;
14662
14690
  query: {
14663
14691
  /**
14664
- * 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.
14665
14693
  */
14666
14694
  'ids[]'?: Array<string>;
14667
14695
  /**
@@ -14681,7 +14709,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14681
14709
  */
14682
14710
  updated_at_gteq?: string;
14683
14711
  /**
14684
- * filter by legal entity id (refereces to companies/legal_entities).
14712
+ * Return only the employees whose contract is under these legal entities.
14685
14713
  */
14686
14714
  'legal_entity_ids[]'?: Array<string>;
14687
14715
  /**
@@ -14689,19 +14717,19 @@ export type GetApi20261001ResourcesEmployeesEmployeesData = {
14689
14717
  */
14690
14718
  company_identifier?: string;
14691
14719
  /**
14692
- * 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.
14693
14721
  */
14694
14722
  only_active: boolean;
14695
14723
  /**
14696
- * filter employees by team id (references to core/teams).
14724
+ * Return only the employees who belong to these teams.
14697
14725
  */
14698
14726
  'team_ids[]'?: Array<string>;
14699
14727
  /**
14700
- * filter employees by location id (references to locations/location).
14728
+ * Return only the employees whose default workplace is one of these locations.
14701
14729
  */
14702
14730
  'location_ids[]'?: Array<string>;
14703
14731
  /**
14704
- * 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.
14705
14733
  */
14706
14734
  only_managers: boolean;
14707
14735
  /**
@@ -14725,7 +14753,7 @@ export type GetApi20261001ResourcesEmployeesEmployeesByIdData = {
14725
14753
  body?: never;
14726
14754
  path: {
14727
14755
  /**
14728
- * 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.
14729
14757
  */
14730
14758
  id: string;
14731
14759
  };
@@ -15434,17 +15462,41 @@ export type GetApi20261001ResourcesExpensesExpensablesData = {
15434
15462
  body?: never;
15435
15463
  path?: never;
15436
15464
  query: {
15465
+ /**
15466
+ * Return only the expensables with these ids.
15467
+ */
15437
15468
  'ids[]'?: Array<string>;
15438
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
+ */
15439
15473
  'group_ids[]'?: Array<string>;
15440
15474
  'by_resources[]'?: Array<{
15441
15475
  [key: string]: unknown;
15442
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
+ */
15443
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
+ */
15444
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
+ */
15445
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
+ */
15446
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
+ */
15447
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
+ */
15448
15500
  to?: string;
15449
15501
  search?: string;
15450
15502
  include_grouped: boolean;
@@ -15466,6 +15518,9 @@ export type GetApi20261001ResourcesExpensesExpensablesResponse = GetApi20261001R
15466
15518
  export type GetApi20261001ResourcesExpensesExpensablesByIdData = {
15467
15519
  body?: never;
15468
15520
  path: {
15521
+ /**
15522
+ * Return only the expensables with these ids.
15523
+ */
15469
15524
  id: string;
15470
15525
  };
15471
15526
  query?: never;
@@ -15523,11 +15578,11 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15523
15578
  path?: never;
15524
15579
  query: {
15525
15580
  /**
15526
- * The ids of the expenses to filter by
15581
+ * Return only the expenses with these ids.
15527
15582
  */
15528
15583
  'ids[]'?: Array<string>;
15529
15584
  /**
15530
- * 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.
15531
15586
  */
15532
15587
  'expenses_expensable_ids[]'?: Array<string>;
15533
15588
  /**
@@ -15535,7 +15590,7 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15535
15590
  */
15536
15591
  include_manual_drafts: boolean;
15537
15592
  /**
15538
- * The ids of the employees to filter by
15593
+ * Return only the expenses of these employees.
15539
15594
  */
15540
15595
  'employee_ids[]'?: Array<string>;
15541
15596
  /**
@@ -15543,11 +15598,11 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15543
15598
  */
15544
15599
  'external_authorization_ids[]'?: Array<string>;
15545
15600
  /**
15546
- * The ids of the cards to filter by
15601
+ * Return only the expenses paid with these cards.
15547
15602
  */
15548
15603
  'card_ids[]'?: Array<string>;
15549
15604
  /**
15550
- * The ids of the card payments to filter by
15605
+ * Return only the expenses raised from these card payments.
15551
15606
  */
15552
15607
  'card_payment_ids[]'?: Array<string>;
15553
15608
  /**
@@ -15555,15 +15610,15 @@ export type GetApi20261001ResourcesExpensesExpensesData = {
15555
15610
  */
15556
15611
  include_attachments: boolean;
15557
15612
  /**
15558
- * 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.
15559
15614
  */
15560
15615
  from?: string;
15561
15616
  /**
15562
- * 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`.
15563
15618
  */
15564
15619
  to?: string;
15565
15620
  /**
15566
- * The ids of the disputes to filter by
15621
+ * Return only the expenses under these payment disputes.
15567
15622
  */
15568
15623
  'dispute_ids[]'?: Array<string>;
15569
15624
  };
@@ -15583,7 +15638,7 @@ export type GetApi20261001ResourcesExpensesExpensesByIdData = {
15583
15638
  body?: never;
15584
15639
  path: {
15585
15640
  /**
15586
- * The ids of the expenses to filter by
15641
+ * Return only the expenses with these ids.
15587
15642
  */
15588
15643
  id: string;
15589
15644
  };
@@ -15601,16 +15656,40 @@ export type GetApi20261001ResourcesExpensesMileagesData = {
15601
15656
  body?: never;
15602
15657
  path?: never;
15603
15658
  query: {
15659
+ /**
15660
+ * Return only the mileage records with these ids.
15661
+ */
15604
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
+ */
15605
15666
  'expenses_expensable_ids[]'?: Array<string>;
15606
15667
  include_manual_drafts: boolean;
15668
+ /**
15669
+ * Return only the mileage records of these employees.
15670
+ */
15607
15671
  'employee_ids[]'?: Array<string>;
15608
15672
  'external_authorization_ids[]'?: Array<string>;
15673
+ /**
15674
+ * Return only the mileage records paid with these cards.
15675
+ */
15609
15676
  'card_ids[]'?: Array<string>;
15677
+ /**
15678
+ * Return only the mileage records raised from these card payments.
15679
+ */
15610
15680
  'card_payment_ids[]'?: Array<string>;
15611
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
+ */
15612
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
+ */
15613
15689
  to?: string;
15690
+ /**
15691
+ * Return only the mileage records under these payment disputes.
15692
+ */
15614
15693
  'dispute_ids[]'?: Array<string>;
15615
15694
  };
15616
15695
  url: '/api/2026-10-01/resources/expenses/mileages';
@@ -15628,6 +15707,9 @@ export type GetApi20261001ResourcesExpensesMileagesResponse = GetApi20261001Reso
15628
15707
  export type GetApi20261001ResourcesExpensesMileagesByIdData = {
15629
15708
  body?: never;
15630
15709
  path: {
15710
+ /**
15711
+ * Return only the mileage records with these ids.
15712
+ */
15631
15713
  id: string;
15632
15714
  };
15633
15715
  query?: never;
@@ -16476,31 +16558,31 @@ export type GetApi20261001ResourcesFinanceFinancialDocumentsData = {
16476
16558
  path?: never;
16477
16559
  query?: {
16478
16560
  /**
16479
- * 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.
16480
16562
  */
16481
16563
  company_id?: string;
16482
16564
  /**
16483
- * Search financial documents by ID
16565
+ * Return only the financial documents with these ids.
16484
16566
  */
16485
16567
  'ids[]'?: Array<string>;
16486
16568
  /**
16487
- * Search financial documents by vendor_id
16569
+ * Return only the documents issued by this vendor contact.
16488
16570
  */
16489
16571
  vendor_id?: string;
16490
16572
  /**
16491
- * 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.
16492
16574
  */
16493
16575
  currency?: string;
16494
16576
  /**
16495
- * Search financial documents by status
16577
+ * Return only the documents in these states: `processing`, `review` (awaiting approval), `sent_to_pay` or `paid`.
16496
16578
  */
16497
16579
  'statuses[]'?: 'processing' | 'review' | 'sent_to_pay' | 'paid';
16498
16580
  /**
16499
- * Search financial documents by legal_entity_id
16581
+ * Return only the documents booked against these legal entities.
16500
16582
  */
16501
16583
  'legal_entity_ids[]'?: Array<string>;
16502
16584
  /**
16503
- * Search financial documents by document_type
16585
+ * Return only the documents of these kinds: `invoice`, `receipt` or `credit_note`.
16504
16586
  */
16505
16587
  'document_types[]'?: 'invoice' | 'receipt' | 'credit_note';
16506
16588
  /**
@@ -16601,7 +16683,7 @@ export type GetApi20261001ResourcesFinanceFinancialDocumentsByIdData = {
16601
16683
  body?: never;
16602
16684
  path: {
16603
16685
  /**
16604
- * Search financial documents by ID
16686
+ * Return only the financial documents with these ids.
16605
16687
  */
16606
16688
  id: string;
16607
16689
  };
@@ -17235,15 +17317,15 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysData = {
17235
17317
  path?: never;
17236
17318
  query?: {
17237
17319
  /**
17238
- * Company holiday ids
17320
+ * Return only the company holidays with these ids.
17239
17321
  */
17240
17322
  'ids[]'?: Array<string>;
17241
17323
  /**
17242
- * Location ids
17324
+ * Return only the holidays declared for these locations. A company holiday always belongs to exactly one location.
17243
17325
  */
17244
17326
  'location_ids[]'?: Array<string>;
17245
17327
  /**
17246
- * 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.
17247
17329
  */
17248
17330
  'team_ids[]'?: Array<string>;
17249
17331
  /**
@@ -17251,11 +17333,11 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysData = {
17251
17333
  */
17252
17334
  'employee_ids[]'?: Array<string>;
17253
17335
  /**
17254
- * Start date
17336
+ * Return only the holidays falling on or after this date. Usable on its own, as an open-ended lower bound.
17255
17337
  */
17256
17338
  start_at?: string;
17257
17339
  /**
17258
- * End date
17340
+ * Return only the holidays falling on or before this date. Usable on its own, as an open-ended upper bound.
17259
17341
  */
17260
17342
  end_at?: string;
17261
17343
  };
@@ -17275,7 +17357,7 @@ export type GetApi20261001ResourcesHolidaysCompanyHolidaysByIdData = {
17275
17357
  body?: never;
17276
17358
  path: {
17277
17359
  /**
17278
- * Company holiday ids
17360
+ * Return only the company holidays with these ids.
17279
17361
  */
17280
17362
  id: string;
17281
17363
  };
@@ -17384,27 +17466,6 @@ export type PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses = {
17384
17466
  201: IntegrationsSyncRunOutput;
17385
17467
  };
17386
17468
  export type PostApi20261001ResourcesIntegrationsSyncRunOutputsResponse = PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses[keyof PostApi20261001ResourcesIntegrationsSyncRunOutputsResponses];
17387
- export type GetApi20261001ResourcesIntegrationsSyncableItemsData = {
17388
- body?: never;
17389
- path?: never;
17390
- query: {
17391
- /**
17392
- * Identifier of the sync run
17393
- */
17394
- sync_run_id: string;
17395
- };
17396
- url: '/api/2026-10-01/resources/integrations/syncable_items';
17397
- };
17398
- export type GetApi20261001ResourcesIntegrationsSyncableItemsResponses = {
17399
- /**
17400
- * OK
17401
- */
17402
- 200: {
17403
- data?: Array<IntegrationsSyncableItem>;
17404
- meta?: PagedIndexMeta;
17405
- };
17406
- };
17407
- export type GetApi20261001ResourcesIntegrationsSyncableItemsResponse = GetApi20261001ResourcesIntegrationsSyncableItemsResponses[keyof GetApi20261001ResourcesIntegrationsSyncableItemsResponses];
17408
17469
  export type GetApi20261001ResourcesIntegrationsSyncableStatesData = {
17409
17470
  body?: never;
17410
17471
  path?: never;
@@ -17549,7 +17610,7 @@ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData =
17549
17610
  /**
17550
17611
  * The Factorial resource type this item maps to
17551
17612
  */
17552
- syncable_type: 'compensationscompensation' | 'expensesexpensable' | 'employeeupdatesleave' | 'employeeupdatesworkedtime' | 'financecontact';
17613
+ syncable_type: 'compensationscompensation' | 'expensesexpensable' | 'employeeupdatesleave' | 'employeeupdatesnewhire' | 'employeeupdatesworkedtime' | 'financecontact';
17553
17614
  /**
17554
17615
  * Outcome of processing the item
17555
17616
  */
@@ -18041,6 +18102,9 @@ export type GetApi20261001ResourcesJobCatalogRolesData = {
18041
18102
  body?: never;
18042
18103
  path?: never;
18043
18104
  query?: {
18105
+ /**
18106
+ * Return only the job roles with these ids.
18107
+ */
18044
18108
  'ids[]'?: Array<string>;
18045
18109
  };
18046
18110
  url: '/api/2026-10-01/resources/job_catalog/roles';
@@ -18058,6 +18122,9 @@ export type GetApi20261001ResourcesJobCatalogRolesResponse = GetApi20261001Resou
18058
18122
  export type GetApi20261001ResourcesJobCatalogRolesByIdData = {
18059
18123
  body?: never;
18060
18124
  path: {
18125
+ /**
18126
+ * Return only the job roles with these ids.
18127
+ */
18061
18128
  id: string;
18062
18129
  };
18063
18130
  query?: never;
@@ -18116,7 +18183,7 @@ export type GetApi20261001ResourcesLocationsLocationsData = {
18116
18183
  */
18117
18184
  'employee_ids[]'?: Array<string>;
18118
18185
  /**
18119
- * Wether to filter only the main location.
18186
+ * Set to true to return only the company's main location. Passing false has no effect.
18120
18187
  */
18121
18188
  main?: boolean;
18122
18189
  };
@@ -23770,7 +23837,7 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
23770
23837
  path?: never;
23771
23838
  query?: {
23772
23839
  /**
23773
- * Membership ids.
23840
+ * Return only the memberships with these ids.
23774
23841
  */
23775
23842
  'ids[]'?: Array<string>;
23776
23843
  /**
@@ -23778,11 +23845,11 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
23778
23845
  */
23779
23846
  lead?: boolean;
23780
23847
  /**
23781
- * Team ids.
23848
+ * Return only the memberships of these teams.
23782
23849
  */
23783
23850
  'team_ids[]'?: Array<string>;
23784
23851
  /**
23785
- * Employee ids.
23852
+ * Return only the memberships of these employees.
23786
23853
  */
23787
23854
  'employee_ids[]'?: Array<string>;
23788
23855
  };
@@ -23846,7 +23913,7 @@ export type GetApi20261001ResourcesTeamsMembershipsByIdData = {
23846
23913
  body?: never;
23847
23914
  path: {
23848
23915
  /**
23849
- * Membership ids.
23916
+ * Return only the memberships with these ids.
23850
23917
  */
23851
23918
  id: string;
23852
23919
  };
@@ -23891,6 +23958,9 @@ export type GetApi20261001ResourcesTeamsTeamsData = {
23891
23958
  body?: never;
23892
23959
  path?: never;
23893
23960
  query?: {
23961
+ /**
23962
+ * Return only the teams with these ids.
23963
+ */
23894
23964
  'ids[]'?: Array<string>;
23895
23965
  };
23896
23966
  url: '/api/2026-10-01/resources/teams/teams';
@@ -23948,6 +24018,9 @@ export type DeleteApi20261001ResourcesTeamsTeamsByIdResponse = DeleteApi20261001
23948
24018
  export type GetApi20261001ResourcesTeamsTeamsByIdData = {
23949
24019
  body?: never;
23950
24020
  path: {
24021
+ /**
24022
+ * Return only the teams with these ids.
24023
+ */
23951
24024
  id: string;
23952
24025
  };
23953
24026
  query?: never;
@@ -24000,15 +24073,15 @@ export type GetApi20261001ResourcesTimeoffAllowancesData = {
24000
24073
  path?: never;
24001
24074
  query?: {
24002
24075
  /**
24003
- * An array of allowance ids to look for
24076
+ * Return only the allowances with these ids.
24004
24077
  */
24005
24078
  'ids[]'?: Array<string>;
24006
24079
  /**
24007
- * 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.
24008
24081
  */
24009
24082
  timeoff_policy_id?: string;
24010
24083
  /**
24011
- * 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.
24012
24085
  */
24013
24086
  by_overtime?: boolean;
24014
24087
  };
@@ -24190,7 +24263,7 @@ export type GetApi20261001ResourcesTimeoffAllowancesByIdData = {
24190
24263
  body?: never;
24191
24264
  path: {
24192
24265
  /**
24193
- * An array of allowance ids to look for
24266
+ * Return only the allowances with these ids.
24194
24267
  */
24195
24268
  id: string;
24196
24269
  };
@@ -24717,23 +24790,23 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24717
24790
  path?: never;
24718
24791
  query: {
24719
24792
  /**
24720
- * The leave ids to retrieve
24793
+ * Return only the leaves with these ids.
24721
24794
  */
24722
24795
  'ids[]'?: Array<string>;
24723
24796
  /**
24724
- * The employee ids to retrieve
24797
+ * Return only the leaves of these employees.
24725
24798
  */
24726
24799
  'employee_ids[]'?: Array<string>;
24727
24800
  /**
24728
- * The leave type id to retrieve
24801
+ * Return only the leaves of these leave types. Despite the singular name it takes a list.
24729
24802
  */
24730
24803
  'leave_type_id[]'?: Array<string>;
24731
24804
  /**
24732
- * 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.
24733
24806
  */
24734
24807
  to?: string;
24735
24808
  /**
24736
- * 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.
24737
24810
  */
24738
24811
  from?: string;
24739
24812
  /**
@@ -24745,11 +24818,11 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24745
24818
  */
24746
24819
  include_deleted_leaves: boolean;
24747
24820
  /**
24748
- * 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.
24749
24822
  */
24750
24823
  approved?: boolean;
24751
24824
  /**
24752
- * 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.
24753
24826
  */
24754
24827
  include_pending?: boolean;
24755
24828
  /**
@@ -24765,11 +24838,11 @@ export type GetApi20261001ResourcesTimeoffLeavesData = {
24765
24838
  */
24766
24839
  include_duration_by_day?: boolean;
24767
24840
  /**
24768
- * 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.
24769
24842
  */
24770
24843
  type_is_workable?: boolean;
24771
24844
  /**
24772
- * Retrieve payable leaves
24845
+ * Set to true for leaves whose leave type is paid, false for unpaid ones. Leave it unset to get both.
24773
24846
  */
24774
24847
  type_is_payable?: boolean;
24775
24848
  /**
@@ -24890,7 +24963,7 @@ export type GetApi20261001ResourcesTimeoffLeavesByIdData = {
24890
24963
  body?: never;
24891
24964
  path: {
24892
24965
  /**
24893
- * The leave ids to retrieve
24966
+ * Return only the leaves with these ids.
24894
24967
  */
24895
24968
  id: string;
24896
24969
  };
@@ -25038,19 +25111,19 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesData = {
25038
25111
  path?: never;
25039
25112
  query?: {
25040
25113
  /**
25041
- * Identifiers of the leave types
25114
+ * Return only the leave types with these ids.
25042
25115
  */
25043
25116
  'ids[]'?: Array<string>;
25044
25117
  /**
25045
- * Identifiers of the companies
25118
+ * Return only the leave types of these companies.
25046
25119
  */
25047
25120
  'company_ids[]'?: Array<string>;
25048
25121
  /**
25049
- * 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.
25050
25123
  */
25051
25124
  active?: boolean;
25052
25125
  /**
25053
- * 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.
25054
25127
  */
25055
25128
  payable?: boolean;
25056
25129
  /**
@@ -25058,11 +25131,11 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesData = {
25058
25131
  */
25059
25132
  identifier?: unknown;
25060
25133
  /**
25061
- * 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.
25062
25135
  */
25063
25136
  employee_id?: string;
25064
25137
  /**
25065
- * 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.
25066
25139
  */
25067
25140
  reference_date?: string;
25068
25141
  /**
@@ -25180,7 +25253,7 @@ export type GetApi20261001ResourcesTimeoffLeaveTypesByIdData = {
25180
25253
  body?: never;
25181
25254
  path: {
25182
25255
  /**
25183
- * Identifiers of the leave types
25256
+ * Return only the leave types with these ids.
25184
25257
  */
25185
25258
  id: string;
25186
25259
  };