@factorialco/api-client 3.0.0-beta.2026100136 → 3.0.0-beta.2026100138

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.
Files changed (37) hide show
  1. package/dist/cjs/generated/index.d.ts +2 -2
  2. package/dist/cjs/generated/index.d.ts.map +1 -1
  3. package/dist/cjs/generated/index.js +15 -8
  4. package/dist/cjs/generated/index.js.map +1 -1
  5. package/dist/cjs/generated/sdk.gen.d.ts +48 -6
  6. package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
  7. package/dist/cjs/generated/sdk.gen.js +113 -16
  8. package/dist/cjs/generated/sdk.gen.js.map +1 -1
  9. package/dist/cjs/generated/types.gen.d.ts +292 -12
  10. package/dist/cjs/generated/types.gen.d.ts.map +1 -1
  11. package/dist/cjs/sdk.d.ts +49 -1
  12. package/dist/cjs/sdk.d.ts.map +1 -1
  13. package/dist/cjs/sdk.js +61 -3
  14. package/dist/cjs/sdk.js.map +1 -1
  15. package/dist/cjs/webhooks.d.ts +10 -1
  16. package/dist/cjs/webhooks.d.ts.map +1 -1
  17. package/dist/cjs/webhooks.js +3 -0
  18. package/dist/cjs/webhooks.js.map +1 -1
  19. package/dist/esm/generated/index.d.ts +2 -2
  20. package/dist/esm/generated/index.d.ts.map +1 -1
  21. package/dist/esm/generated/index.js +1 -1
  22. package/dist/esm/generated/index.js.map +1 -1
  23. package/dist/esm/generated/sdk.gen.d.ts +48 -6
  24. package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
  25. package/dist/esm/generated/sdk.gen.js +95 -5
  26. package/dist/esm/generated/sdk.gen.js.map +1 -1
  27. package/dist/esm/generated/types.gen.d.ts +292 -12
  28. package/dist/esm/generated/types.gen.d.ts.map +1 -1
  29. package/dist/esm/sdk.d.ts +49 -1
  30. package/dist/esm/sdk.d.ts.map +1 -1
  31. package/dist/esm/sdk.js +56 -1
  32. package/dist/esm/sdk.js.map +1 -1
  33. package/dist/esm/webhooks.d.ts +10 -1
  34. package/dist/esm/webhooks.d.ts.map +1 -1
  35. package/dist/esm/webhooks.js +3 -0
  36. package/dist/esm/webhooks.js.map +1 -1
  37. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: 'https://api.factorialhr.com' | 'https://api.demo.factorial.dev' | 'https://api.eu2.demo.factorial.dev' | (string & {});
3
3
  };
4
- export type Webhooks = PostWebhooks__ApiPublic__WebhookSubscription__CreatesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__DeletesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__UpdatesWebhookRequest | PostWebhooks__Ats__Application__AppliesWebhookRequest | PostWebhooks__Ats__Application__CreatesWebhookRequest | PostWebhooks__Ats__Application__CreateFromEmployeesWebhookRequest | PostWebhooks__Ats__Application__DeletesWebhookRequest | PostWebhooks__Ats__Application__UpdatesWebhookRequest | PostWebhooks__Ats__Candidate__CreatesWebhookRequest | PostWebhooks__Ats__Candidate__DeletesWebhookRequest | PostWebhooks__Ats__Candidate__UpdatesWebhookRequest | PostWebhooks__Ats__EvaluationForm__SaveAsTemplatesWebhookRequest | PostWebhooks__Ats__JobPosting__CreatesWebhookRequest | PostWebhooks__Ats__JobPosting__DeletesWebhookRequest | PostWebhooks__Ats__JobPosting__DuplicatesWebhookRequest | PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest | PostWebhooks__Attendance__Shift__AutofillsWebhookRequest | PostWebhooks__Attendance__Shift__BreakEndsWebhookRequest | PostWebhooks__Attendance__Shift__BreakStartsWebhookRequest | PostWebhooks__Attendance__Shift__ClockInsWebhookRequest | PostWebhooks__Attendance__Shift__ClockOutsWebhookRequest | PostWebhooks__Attendance__Shift__CreatesWebhookRequest | PostWebhooks__Attendance__Shift__DeletesWebhookRequest | PostWebhooks__Attendance__Shift__ToggleClocksWebhookRequest | PostWebhooks__Attendance__Shift__UpdatesWebhookRequest | PostWebhooks__Banking__BankAccountNumber__UpsertsWebhookRequest | PostWebhooks__BookkeepersManagement__Incidence__UpdatesWebhookRequest | PostWebhooks__Companies__LegalEntity__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__ApprovesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__CreatePromoteRequestsWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__RejectsWebhookRequest | PostWebhooks__Contracts__ContractVersion__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersion__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersion__UpdatesWebhookRequest | PostWebhooks__CustomResources__Schema__CreatesWebhookRequest | PostWebhooks__Documents__Document__BulkCreatesWebhookRequest | PostWebhooks__Documents__Document__CreatesWebhookRequest | PostWebhooks__Documents__Document__DeletesWebhookRequest | PostWebhooks__Documents__Document__MoveToTrashBinsWebhookRequest | PostWebhooks__Documents__Document__RestoreFromTrashBinsWebhookRequest | PostWebhooks__Documents__Document__UpdatesWebhookRequest | PostWebhooks__Documents__Folder__CreatesWebhookRequest | PostWebhooks__Documents__Folder__UpdatesWebhookRequest | PostWebhooks__Employees__Employee__CreateWithContractsWebhookRequest | PostWebhooks__Employees__Employee__InvitesWebhookRequest | PostWebhooks__Employees__Employee__SetRegularAccessStartDatesWebhookRequest | PostWebhooks__Employees__Employee__TerminatesWebhookRequest | PostWebhooks__Employees__Employee__UnterminatesWebhookRequest | PostWebhooks__Employees__Employee__UpdatesWebhookRequest | PostWebhooks__Expenses__Expensable__BulkSetToPaidsWebhookRequest | PostWebhooks__Expenses__Expensable__UpdateReimbursableAmountsWebhookRequest | PostWebhooks__Finance__CostCenter__CreatesWebhookRequest | PostWebhooks__Finance__CostCenter__DeletesWebhookRequest | PostWebhooks__Finance__CostCenter__EditsWebhookRequest | PostWebhooks__Locations__Location__CreatesWebhookRequest | PostWebhooks__Locations__Location__DeletesWebhookRequest | PostWebhooks__Locations__Location__UpdatesWebhookRequest | PostWebhooks__Payroll__PolicyPeriod__ChangeStatusesWebhookRequest | PostWebhooks__Payroll__Supplement__CreatesWebhookRequest | PostWebhooks__Payroll__Supplement__DeletesWebhookRequest | PostWebhooks__Payroll__Supplement__UpdatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__CreatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__DeletesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__UpdatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreateFromTemplatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DeletesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DuplicatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemindInBulksWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemoveSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__ReopensWebhookRequest | PostWebhooks__Performance__ReviewProcess__SchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__StartsWebhookRequest | PostWebhooks__Performance__ReviewProcess__StopsWebhookRequest | PostWebhooks__Performance__ReviewProcess__ToggleArchivesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateAgreementsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateBasicInfosWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateCompetenciesAssessmentsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateDeadlinesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateEmployeeScoreConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateReviewerStrategiesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateTargetStrategiesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__CreatesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__DeletesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateImputedMinutesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateObservationsWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateProjectWorkersWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkCreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkDeletesWebhookRequest | PostWebhooks__ShiftManagement__Shift__CreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__DeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkCreatesWebhookRequest | PostWebhooks__Tasks__Task__BulkDeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkUpdatesWebhookRequest | PostWebhooks__Tasks__Task__CopiesWebhookRequest | PostWebhooks__Tasks__Task__CreatesWebhookRequest | PostWebhooks__Tasks__Task__CreateCommentsWebhookRequest | PostWebhooks__Tasks__Task__DeletesWebhookRequest | PostWebhooks__Tasks__Task__UpdatesWebhookRequest | PostWebhooks__Teams__Membership__BulkUpsertsWebhookRequest | PostWebhooks__Teams__Membership__CreatesWebhookRequest | PostWebhooks__Teams__Membership__DeletesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__ProjectsWebhookRequest | PostWebhooks__Teams__Team__UpdatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__CreatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__DeletesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__UpdatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__CreatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__UpdatesWebhookRequest | PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest | PostWebhooks__Timeoff__Leave__CreatesWebhookRequest | PostWebhooks__Timeoff__Leave__DeletesWebhookRequest | PostWebhooks__Timeoff__Leave__RejectsWebhookRequest | PostWebhooks__Timeoff__Leave__UpdatesWebhookRequest | PostWebhooks__Timeoff__Policy__CreatesWebhookRequest | PostWebhooks__Timeoff__Policy__DeletesWebhookRequest | PostWebhooks__Timeoff__Policy__UpdatesWebhookRequest | PostWebhooks__Trainings__Category__CreatesWebhookRequest | PostWebhooks__Trainings__Category__DeletesWebhookRequest | PostWebhooks__Trainings__Category__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__BulkDeletesWebhookRequest | PostWebhooks__Trainings__Training__BulkUpdateCatalogsWebhookRequest | PostWebhooks__Trainings__Training__CreatesWebhookRequest | PostWebhooks__Trainings__Training__DeletesWebhookRequest | PostWebhooks__Trainings__Training__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__UpdateStatusesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__CreatesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__ToggleArchivesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__UpdatesWebhookRequest;
4
+ export type Webhooks = PostWebhooks__ApiPublic__WebhookSubscription__CreatesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__DeletesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__UpdatesWebhookRequest | PostWebhooks__Ats__Application__AppliesWebhookRequest | PostWebhooks__Ats__Application__CreatesWebhookRequest | PostWebhooks__Ats__Application__CreateFromEmployeesWebhookRequest | PostWebhooks__Ats__Application__DeletesWebhookRequest | PostWebhooks__Ats__Application__UpdatesWebhookRequest | PostWebhooks__Ats__Candidate__CreatesWebhookRequest | PostWebhooks__Ats__Candidate__DeletesWebhookRequest | PostWebhooks__Ats__Candidate__UpdatesWebhookRequest | PostWebhooks__Ats__EvaluationForm__SaveAsTemplatesWebhookRequest | PostWebhooks__Ats__JobPosting__CreatesWebhookRequest | PostWebhooks__Ats__JobPosting__DeletesWebhookRequest | PostWebhooks__Ats__JobPosting__DuplicatesWebhookRequest | PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest | PostWebhooks__Attendance__Shift__AutofillsWebhookRequest | PostWebhooks__Attendance__Shift__BreakEndsWebhookRequest | PostWebhooks__Attendance__Shift__BreakStartsWebhookRequest | PostWebhooks__Attendance__Shift__ClockInsWebhookRequest | PostWebhooks__Attendance__Shift__ClockOutsWebhookRequest | PostWebhooks__Attendance__Shift__CreatesWebhookRequest | PostWebhooks__Attendance__Shift__DeletesWebhookRequest | PostWebhooks__Attendance__Shift__ToggleClocksWebhookRequest | PostWebhooks__Attendance__Shift__UpdatesWebhookRequest | PostWebhooks__Banking__BankAccountNumber__UpsertsWebhookRequest | PostWebhooks__BookkeepersManagement__Incidence__UpdatesWebhookRequest | PostWebhooks__Companies__LegalEntity__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__ApprovesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__CreatePromoteRequestsWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__RejectsWebhookRequest | PostWebhooks__Contracts__ContractVersion__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersion__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersion__UpdatesWebhookRequest | PostWebhooks__CustomResources__Schema__CreatesWebhookRequest | PostWebhooks__Documents__Document__BulkCreatesWebhookRequest | PostWebhooks__Documents__Document__CreatesWebhookRequest | PostWebhooks__Documents__Document__DeletesWebhookRequest | PostWebhooks__Documents__Document__MoveToTrashBinsWebhookRequest | PostWebhooks__Documents__Document__RestoreFromTrashBinsWebhookRequest | PostWebhooks__Documents__Document__UpdatesWebhookRequest | PostWebhooks__Documents__Folder__CreatesWebhookRequest | PostWebhooks__Documents__Folder__UpdatesWebhookRequest | PostWebhooks__Employees__Employee__CreateWithContractsWebhookRequest | PostWebhooks__Employees__Employee__InvitesWebhookRequest | PostWebhooks__Employees__Employee__SetRegularAccessStartDatesWebhookRequest | PostWebhooks__Employees__Employee__TerminatesWebhookRequest | PostWebhooks__Employees__Employee__UnterminatesWebhookRequest | PostWebhooks__Employees__Employee__UpdatesWebhookRequest | PostWebhooks__Expenses__Expensable__BulkSetToPaidsWebhookRequest | PostWebhooks__Expenses__Expensable__UpdateReimbursableAmountsWebhookRequest | PostWebhooks__Finance__CostCenter__CreatesWebhookRequest | PostWebhooks__Finance__CostCenter__DeletesWebhookRequest | PostWebhooks__Finance__CostCenter__EditsWebhookRequest | PostWebhooks__Locations__Location__CreatesWebhookRequest | PostWebhooks__Locations__Location__DeletesWebhookRequest | PostWebhooks__Locations__Location__UpdatesWebhookRequest | PostWebhooks__Payroll__PolicyPeriod__ChangeStatusesWebhookRequest | PostWebhooks__Payroll__Supplement__CreatesWebhookRequest | PostWebhooks__Payroll__Supplement__DeletesWebhookRequest | PostWebhooks__Payroll__Supplement__UpdatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__CreatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__DeletesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__UpdatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreateFromTemplatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DeletesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DuplicatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemindInBulksWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemoveSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__ReopensWebhookRequest | PostWebhooks__Performance__ReviewProcess__SchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__StartsWebhookRequest | PostWebhooks__Performance__ReviewProcess__StopsWebhookRequest | PostWebhooks__Performance__ReviewProcess__ToggleArchivesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateAgreementsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateBasicInfosWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateCompetenciesAssessmentsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateDeadlinesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateEmployeeScoreConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateReviewerStrategiesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateTargetStrategiesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__CreatesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__DeletesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateImputedMinutesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateObservationsWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateProjectWorkersWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkCreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkDeletesWebhookRequest | PostWebhooks__ShiftManagement__Shift__CreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__DeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkCreatesWebhookRequest | PostWebhooks__Tasks__Task__BulkDeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkUpdatesWebhookRequest | PostWebhooks__Tasks__Task__CopiesWebhookRequest | PostWebhooks__Tasks__Task__CreatesWebhookRequest | PostWebhooks__Tasks__Task__CreateCommentsWebhookRequest | PostWebhooks__Tasks__Task__DeletesWebhookRequest | PostWebhooks__Tasks__Task__UpdatesWebhookRequest | PostWebhooks__Teams__Membership__BulkUpsertsWebhookRequest | PostWebhooks__Teams__Membership__CreatesWebhookRequest | PostWebhooks__Teams__Membership__DeletesWebhookRequest | PostWebhooks__Teams__Membership__MovesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__MovesWebhookRequest | PostWebhooks__Teams__Team__ProjectsWebhookRequest | PostWebhooks__Teams__Team__UpdatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__CreatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__DeletesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__UpdatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__CreatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__UpdatesWebhookRequest | PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest | PostWebhooks__Timeoff__Leave__BulkDeletesWebhookRequest | PostWebhooks__Timeoff__Leave__CreatesWebhookRequest | PostWebhooks__Timeoff__Leave__DeletesWebhookRequest | PostWebhooks__Timeoff__Leave__RejectsWebhookRequest | PostWebhooks__Timeoff__Leave__UpdatesWebhookRequest | PostWebhooks__Timeoff__Policy__CreatesWebhookRequest | PostWebhooks__Timeoff__Policy__DeletesWebhookRequest | PostWebhooks__Timeoff__Policy__UpdatesWebhookRequest | PostWebhooks__Trainings__Category__CreatesWebhookRequest | PostWebhooks__Trainings__Category__DeletesWebhookRequest | PostWebhooks__Trainings__Category__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__BulkDeletesWebhookRequest | PostWebhooks__Trainings__Training__BulkUpdateCatalogsWebhookRequest | PostWebhooks__Trainings__Training__CreatesWebhookRequest | PostWebhooks__Trainings__Training__DeletesWebhookRequest | PostWebhooks__Trainings__Training__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__UpdateStatusesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__CreatesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__ToggleArchivesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__UpdatesWebhookRequest;
5
5
  export type ApiPublicCredential = {
6
6
  /**
7
7
  * company id for all kind of accesses
@@ -1624,13 +1624,13 @@ export type CompensationsPayrollResult = {
1624
1624
  */
1625
1625
  amount_is_overwritten: boolean;
1626
1626
  /**
1627
- * Source type discriminator (always present for payroll_result)
1627
+ * Source type discriminator (null for rows imported through the bulk_create endpoint)
1628
1628
  */
1629
- source_type: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
1629
+ source_type?: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
1630
1630
  /**
1631
- * Source id (always present for payroll_result)
1631
+ * Source id, paired with source_type (null for rows imported through the bulk_create endpoint)
1632
1632
  */
1633
- source_id: string;
1633
+ source_id?: string;
1634
1634
  /**
1635
1635
  * Timestamp when the payroll_result row was created
1636
1636
  */
@@ -3094,7 +3094,7 @@ export type EmployeesEmployee = {
3094
3094
  */
3095
3095
  identifier_type?: string;
3096
3096
  /**
3097
- * personal email of the employee.
3097
+ * company communications email of the employee (falls back to the login email). Not the personal email.
3098
3098
  */
3099
3099
  email?: string;
3100
3100
  /**
@@ -3226,7 +3226,7 @@ export type EmployeesEmployee = {
3226
3226
  */
3227
3227
  contact_number?: string;
3228
3228
  /**
3229
- * personal email of the employee.
3229
+ * personal (non-corporate) email of the employee, shown as "Personal email" in the profile.
3230
3230
  */
3231
3231
  personal_email?: string;
3232
3232
  /**
@@ -5141,7 +5141,7 @@ export type IntegrationsSyncableState = {
5141
5141
  */
5142
5142
  syncable_id?: string;
5143
5143
  /**
5144
- * The resource type of the linked record, in "namespace/resource" form
5144
+ * The resource of the linked record, in "namespace/resource" form. Combined with syncable_id, uniquely identifies the Factorial record this state is linked to.
5145
5145
  */
5146
5146
  resource_syncable_type: string;
5147
5147
  /**
@@ -5171,6 +5171,10 @@ export type IntegrationsSyncableState = {
5171
5171
  * Timestamp when the linked Factorial record was deleted, if any
5172
5172
  */
5173
5173
  syncable_deleted_at?: string;
5174
+ /**
5175
+ * The type of synchronization this state represents, in "namespace/resource" form. Describes what is being synced independently of the resource_syncable_type that carries the id.
5176
+ */
5177
+ sync_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
5174
5178
  };
5175
5179
  export type IntegrationsSyncableSyncRun = {
5176
5180
  /**
@@ -6851,6 +6855,42 @@ export type PostsPost = {
6851
6855
  posts_group_id?: string;
6852
6856
  comments_count: number;
6853
6857
  };
6858
+ export type ProcessesMaterializedProcess = {
6859
+ /**
6860
+ * identifier of the workflow run.
6861
+ */
6862
+ id: string;
6863
+ /**
6864
+ * identifier of the workflow this run follows. Refers to the /processes/processes endpoint.
6865
+ */
6866
+ process_id: string;
6867
+ /**
6868
+ * state of the run: `running` while the person is going through it, `finalized` once every step is done, `archived` when it was cancelled.
6869
+ */
6870
+ status: string;
6871
+ /**
6872
+ * when the run finished. Null while it is still running.
6873
+ */
6874
+ finalized_at?: string;
6875
+ };
6876
+ export type ProcessesProcess = {
6877
+ /**
6878
+ * identifier of the workflow.
6879
+ */
6880
+ id: string;
6881
+ /**
6882
+ * name of the workflow, as it reads in the product.
6883
+ */
6884
+ name: string;
6885
+ /**
6886
+ * description of the workflow.
6887
+ */
6888
+ description?: string;
6889
+ /**
6890
+ * what the workflow is for: `onboarding`, `offboarding`, `training` or `custom`.
6891
+ */
6892
+ category?: 'onboarding' | 'offboarding' | 'training' | 'custom';
6893
+ };
6854
6894
  export type ProcurementPoFieldValue = {
6855
6895
  /**
6856
6896
  * The id of the field value
@@ -7894,6 +7934,18 @@ export type TeamsMembership = {
7894
7934
  * Whether the employee is a lead of the team or not
7895
7935
  */
7896
7936
  lead: boolean;
7937
+ /**
7938
+ * IDs of the teams this membership originates from (nested teams). In a company with nested teams, a direct membership includes the team itself; an inherited one, the sub-team(s) where the employee is a direct member. Only populated on reads that compute source attribution — reads filtered by a single team, or by a single employee with `with_source_attribution` enabled. Empty otherwise, including create, update and delete responses, and always empty for companies without nested teams. An empty array does not distinguish "computed and genuinely empty" from "not computed for this read" or "could not be computed", so only apply attribution-dependent logic to a read you explicitly shaped for it. A team-anchored read stops attributing above roughly a thousand members of the filtered team: past that the attribution is not computed at all and every row comes back empty, behind a normal `200`.
7939
+ */
7940
+ source_team_ids: Array<string>;
7941
+ /**
7942
+ * IDs of the ancestor teams that receive an inherited membership through this row (nested teams) — the teams this membership rolls up into. Populated under the same conditions as `source_team_ids`; empty otherwise.
7943
+ */
7944
+ parent_team_ids: Array<string>;
7945
+ /**
7946
+ * Whether the employee is a direct member of the team (nested teams). Always present. `true` means direct member; `false` means the row exists only through inheritance from a sub-team; `null` means not computed for this read. Only computed on reads filtered by a single employee with `with_source_attribution` enabled — always `null` otherwise, including create, update and delete responses and companies without nested teams. `null` is also returned when directness could not be resolved for a transient reason, even with `with_source_attribution` enabled, so never treat `null` as `false` — retry the read instead.
7947
+ */
7948
+ direct?: boolean;
7897
7949
  };
7898
7950
  export type TeamsTeam = {
7899
7951
  /**
@@ -7908,6 +7960,9 @@ export type TeamsTeam = {
7908
7960
  * Free-text description of the team
7909
7961
  */
7910
7962
  description?: string;
7963
+ /**
7964
+ * URL of the team's avatar image (null when the team has none)
7965
+ */
7911
7966
  avatar?: string;
7912
7967
  /**
7913
7968
  * IDs of the employees who are members of this team
@@ -7921,6 +7976,14 @@ export type TeamsTeam = {
7921
7976
  * ID of the company this team belongs to
7922
7977
  */
7923
7978
  company_id: string;
7979
+ /**
7980
+ * Depth of this team in the nested-team hierarchy: 1 for a top-level team, 2 for its children, and so on. Returned by read, create and move; null on update and delete, which do not change the hierarchy, and always null for companies without nested teams.
7981
+ */
7982
+ depth?: number;
7983
+ /**
7984
+ * ID of the parent team this team is nested under (null for a root team). Returned by read, create and move; null on update and delete, which do not change the hierarchy, and always null for companies without nested teams.
7985
+ */
7986
+ parent_team_id?: string;
7924
7987
  };
7925
7988
  export type TimeoffAllowance = {
7926
7989
  /**
@@ -12882,6 +12945,46 @@ export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses = {
12882
12945
  200: CompensationsPayrollResult;
12883
12946
  };
12884
12947
  export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponse = GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses];
12948
+ export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateData = {
12949
+ body?: {
12950
+ /**
12951
+ * Parent payroll run id, refers to compensations/payroll_runs endpoint.
12952
+ */
12953
+ payroll_run_id: string;
12954
+ /**
12955
+ * One entry per employee (maximum 1000 amounts in total per request)
12956
+ */
12957
+ results: Array<{
12958
+ /**
12959
+ * Employee id, refers to employees/employees endpoint.
12960
+ */
12961
+ employee_id: string;
12962
+ /**
12963
+ * One entry per payroll concept
12964
+ */
12965
+ items: Array<{
12966
+ /**
12967
+ * Payroll concept id, refers to compensations/concepts endpoint.
12968
+ */
12969
+ payroll_concept_id: string;
12970
+ /**
12971
+ * Signed amount in the concept's minor unit (cents for money concepts)
12972
+ */
12973
+ amount: number;
12974
+ }>;
12975
+ }>;
12976
+ };
12977
+ path?: never;
12978
+ query?: never;
12979
+ url: '/api/2026-10-01/resources/compensations/payroll_results/bulk_create';
12980
+ };
12981
+ export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses = {
12982
+ /**
12983
+ * OK
12984
+ */
12985
+ 200: Array<CompensationsPayrollResult>;
12986
+ };
12987
+ export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponse = PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses[keyof PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses];
12885
12988
  export type GetApi20261001ResourcesCompensationsPayrollRunsData = {
12886
12989
  body?: never;
12887
12990
  path?: never;
@@ -15500,7 +15603,7 @@ export type PostApi20261001ResourcesEmployeesEmployeesCreateWithContractData = {
15500
15603
  */
15501
15604
  last_name: string;
15502
15605
  /**
15503
- * personal email of the employee.
15606
+ * login email of the new employee. Not the personal email.
15504
15607
  */
15505
15608
  email: string;
15506
15609
  /**
@@ -18034,11 +18137,11 @@ export type GetApi20261001ResourcesIntegrationsSyncableStatesData = {
18034
18137
  */
18035
18138
  'ids[]'?: Array<string>;
18036
18139
  /**
18037
- * Filter syncable states by the identifiers of the linked API resource, identified by resource_syncable_type field
18140
+ * Filter syncable states by the identifiers of the linked API resource, identified by the resource_syncable_type field
18038
18141
  */
18039
18142
  'syncable_ids[]'?: Array<string>;
18040
18143
  /**
18041
- * The resource type of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids.
18144
+ * The resource of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids.
18042
18145
  */
18043
18146
  resource_syncable_type?: string;
18044
18147
  /**
@@ -21615,6 +21718,79 @@ export type PutApi20261001ResourcesPostsPostsByIdResponses = {
21615
21718
  200: PostsPost;
21616
21719
  };
21617
21720
  export type PutApi20261001ResourcesPostsPostsByIdResponse = PutApi20261001ResourcesPostsPostsByIdResponses[keyof PutApi20261001ResourcesPostsPostsByIdResponses];
21721
+ export type PostApi20261001ResourcesProcessesMaterializedProcessesData = {
21722
+ body?: {
21723
+ /**
21724
+ * identifier of the company the workflow belongs to.
21725
+ */
21726
+ company_id: string;
21727
+ /**
21728
+ * identifier of the workflow to assign. Read /processes/processes to find it.
21729
+ */
21730
+ process_id: string;
21731
+ /**
21732
+ * identifier of the employee to assign, refers to the /employees/employees endpoint. The employee needs whatever the workflow's steps read about them — typically manager, team and contract — before being assigned; a step that cannot resolve them blocks until an admin unblocks it.
21733
+ */
21734
+ employee_id?: string;
21735
+ };
21736
+ path?: never;
21737
+ query?: never;
21738
+ url: '/api/2026-10-01/resources/processes/materialized_processes';
21739
+ };
21740
+ export type PostApi20261001ResourcesProcessesMaterializedProcessesResponses = {
21741
+ /**
21742
+ * CREATED
21743
+ */
21744
+ 201: ProcessesMaterializedProcess;
21745
+ };
21746
+ export type PostApi20261001ResourcesProcessesMaterializedProcessesResponse = PostApi20261001ResourcesProcessesMaterializedProcessesResponses[keyof PostApi20261001ResourcesProcessesMaterializedProcessesResponses];
21747
+ export type GetApi20261001ResourcesProcessesProcessesData = {
21748
+ body?: never;
21749
+ path?: never;
21750
+ query?: {
21751
+ /**
21752
+ * identifiers of the workflows to return.
21753
+ */
21754
+ 'ids[]'?: Array<string>;
21755
+ /**
21756
+ * return only workflows of these categories: `onboarding`, `offboarding`, `training` or `custom`.
21757
+ */
21758
+ 'categories[]'?: 'onboarding' | 'offboarding' | 'training' | 'custom';
21759
+ /**
21760
+ * return only workflows whose name contains this text.
21761
+ */
21762
+ name?: string;
21763
+ };
21764
+ url: '/api/2026-10-01/resources/processes/processes';
21765
+ };
21766
+ export type GetApi20261001ResourcesProcessesProcessesResponses = {
21767
+ /**
21768
+ * OK
21769
+ */
21770
+ 200: {
21771
+ data?: Array<ProcessesProcess>;
21772
+ meta?: PagedIndexMeta;
21773
+ };
21774
+ };
21775
+ export type GetApi20261001ResourcesProcessesProcessesResponse = GetApi20261001ResourcesProcessesProcessesResponses[keyof GetApi20261001ResourcesProcessesProcessesResponses];
21776
+ export type GetApi20261001ResourcesProcessesProcessesByIdData = {
21777
+ body?: never;
21778
+ path: {
21779
+ /**
21780
+ * identifiers of the workflows to return.
21781
+ */
21782
+ id: string;
21783
+ };
21784
+ query?: never;
21785
+ url: '/api/2026-10-01/resources/processes/processes/{id}';
21786
+ };
21787
+ export type GetApi20261001ResourcesProcessesProcessesByIdResponses = {
21788
+ /**
21789
+ * OK
21790
+ */
21791
+ 200: ProcessesProcess;
21792
+ };
21793
+ export type GetApi20261001ResourcesProcessesProcessesByIdResponse = GetApi20261001ResourcesProcessesProcessesByIdResponses[keyof GetApi20261001ResourcesProcessesProcessesByIdResponses];
21618
21794
  export type GetApi20261001ResourcesProcurementPoFieldValuesData = {
21619
21795
  body?: never;
21620
21796
  path?: never;
@@ -24435,6 +24611,10 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
24435
24611
  * Return only the memberships of these employees.
24436
24612
  */
24437
24613
  'employee_ids[]'?: Array<string>;
24614
+ /**
24615
+ * Populate `direct`, `source_team_ids` and `parent_team_ids` on each returned membership (nested teams). Only honoured when filtering by a single `employee_ids` value without `team_ids` — the read that attributes one employee's own memberships, and the only one that resolves `direct`. Reads filtered by a single team already return `source_team_ids`/`parent_team_ids` without this flag (`direct` stays null there); bulk reads ignore it entirely. Unsupported filter combinations return `200` with empty attribution rather than an error. Attribution is resolved per employee and is significantly more expensive than a plain read: intended for per-profile lookups, not bulk synchronization.
24616
+ */
24617
+ with_source_attribution?: boolean;
24438
24618
  };
24439
24619
  url: '/api/2026-10-01/resources/teams/memberships';
24440
24620
  };
@@ -24459,7 +24639,7 @@ export type PostApi20261001ResourcesTeamsMembershipsData = {
24459
24639
  */
24460
24640
  employee_id: string;
24461
24641
  /**
24462
- * Makes the employee a lead of the team.
24642
+ * Makes the employee a lead of the team. Omit it to leave an existing row's flag untouched; a new row is created without leadership.
24463
24643
  */
24464
24644
  lead?: boolean;
24465
24645
  };
@@ -24537,6 +24717,32 @@ export type PutApi20261001ResourcesTeamsMembershipsByIdResponses = {
24537
24717
  200: TeamsMembership;
24538
24718
  };
24539
24719
  export type PutApi20261001ResourcesTeamsMembershipsByIdResponse = PutApi20261001ResourcesTeamsMembershipsByIdResponses[keyof PutApi20261001ResourcesTeamsMembershipsByIdResponses];
24720
+ export type PostApi20261001ResourcesTeamsMembershipsMoveData = {
24721
+ body?: {
24722
+ /**
24723
+ * ID of the membership to move (must be a direct membership)
24724
+ */
24725
+ id: string;
24726
+ /**
24727
+ * ID of the destination team
24728
+ */
24729
+ destination_team_id: string;
24730
+ /**
24731
+ * Whether the employee should be a lead in the destination team. Omit it to keep the membership's current lead flag; pass false to move the employee and drop their leadership. Worth being explicit when restructuring: omitting it carries leadership across, so a lead of a small team who lands in a large one leads the large one.
24732
+ */
24733
+ lead?: boolean;
24734
+ };
24735
+ path?: never;
24736
+ query?: never;
24737
+ url: '/api/2026-10-01/resources/teams/memberships/move';
24738
+ };
24739
+ export type PostApi20261001ResourcesTeamsMembershipsMoveResponses = {
24740
+ /**
24741
+ * OK
24742
+ */
24743
+ 200: TeamsMembership;
24744
+ };
24745
+ export type PostApi20261001ResourcesTeamsMembershipsMoveResponse = PostApi20261001ResourcesTeamsMembershipsMoveResponses[keyof PostApi20261001ResourcesTeamsMembershipsMoveResponses];
24540
24746
  export type GetApi20261001ResourcesTeamsTeamsData = {
24541
24747
  body?: never;
24542
24748
  path?: never;
@@ -24568,6 +24774,10 @@ export type PostApi20261001ResourcesTeamsTeamsData = {
24568
24774
  * Description of the team
24569
24775
  */
24570
24776
  description?: string;
24777
+ /**
24778
+ * ID of the parent team to nest the new team under (omit or null for a root team). Requires the nested teams feature and permission to manage the parent team; the hierarchy is capped at 4 levels.
24779
+ */
24780
+ parent_team_id?: string;
24571
24781
  };
24572
24782
  path?: never;
24573
24783
  query?: never;
@@ -24651,6 +24861,28 @@ export type PutApi20261001ResourcesTeamsTeamsByIdResponses = {
24651
24861
  200: TeamsTeam;
24652
24862
  };
24653
24863
  export type PutApi20261001ResourcesTeamsTeamsByIdResponse = PutApi20261001ResourcesTeamsTeamsByIdResponses[keyof PutApi20261001ResourcesTeamsTeamsByIdResponses];
24864
+ export type PostApi20261001ResourcesTeamsTeamsMoveData = {
24865
+ body?: {
24866
+ /**
24867
+ * ID of the team to move
24868
+ */
24869
+ id: string;
24870
+ /**
24871
+ * ID of the new parent team (required); null moves the team to the root of the hierarchy.
24872
+ */
24873
+ destination_parent_team_id?: string;
24874
+ };
24875
+ path?: never;
24876
+ query?: never;
24877
+ url: '/api/2026-10-01/resources/teams/teams/move';
24878
+ };
24879
+ export type PostApi20261001ResourcesTeamsTeamsMoveResponses = {
24880
+ /**
24881
+ * OK
24882
+ */
24883
+ 200: TeamsTeam;
24884
+ };
24885
+ export type PostApi20261001ResourcesTeamsTeamsMoveResponse = PostApi20261001ResourcesTeamsTeamsMoveResponses[keyof PostApi20261001ResourcesTeamsTeamsMoveResponses];
24654
24886
  export type GetApi20261001ResourcesTimeoffAllowancesData = {
24655
24887
  body?: never;
24656
24888
  path?: never;
@@ -25667,6 +25899,24 @@ export type PostApi20261001ResourcesTimeoffLeavesApproveAllResponses = {
25667
25899
  200: TimeoffLeave;
25668
25900
  };
25669
25901
  export type PostApi20261001ResourcesTimeoffLeavesApproveAllResponse = PostApi20261001ResourcesTimeoffLeavesApproveAllResponses[keyof PostApi20261001ResourcesTimeoffLeavesApproveAllResponses];
25902
+ export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteData = {
25903
+ body?: {
25904
+ /**
25905
+ * Identifiers of the leaves to cancel
25906
+ */
25907
+ ids: Array<string>;
25908
+ };
25909
+ path?: never;
25910
+ query?: never;
25911
+ url: '/api/2026-10-01/resources/timeoff/leaves/bulk_delete';
25912
+ };
25913
+ export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses = {
25914
+ /**
25915
+ * OK
25916
+ */
25917
+ 200: Array<TimeoffLeave>;
25918
+ };
25919
+ export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponse = PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses[keyof PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses];
25670
25920
  export type PostApi20261001ResourcesTimeoffLeavesRejectData = {
25671
25921
  body?: {
25672
25922
  /**
@@ -28942,6 +29192,16 @@ export type PostWebhooks__Teams__Membership__DeletesWebhookRequest = {
28942
29192
  path?: never;
28943
29193
  query?: never;
28944
29194
  };
29195
+ /**
29196
+ * Callback payload
29197
+ */
29198
+ export type PostWebhooks__Teams__Membership__MovesWebhookPayload = TeamsMembership;
29199
+ export type PostWebhooks__Teams__Membership__MovesWebhookRequest = {
29200
+ body: PostWebhooks__Teams__Membership__MovesWebhookPayload;
29201
+ key: 'Webhooks > Teams > Membership > Moves';
29202
+ path?: never;
29203
+ query?: never;
29204
+ };
28945
29205
  /**
28946
29206
  * Callback payload
28947
29207
  */
@@ -28972,6 +29232,16 @@ export type PostWebhooks__Teams__Team__DeletesWebhookRequest = {
28972
29232
  path?: never;
28973
29233
  query?: never;
28974
29234
  };
29235
+ /**
29236
+ * Callback payload
29237
+ */
29238
+ export type PostWebhooks__Teams__Team__MovesWebhookPayload = TeamsTeam;
29239
+ export type PostWebhooks__Teams__Team__MovesWebhookRequest = {
29240
+ body: PostWebhooks__Teams__Team__MovesWebhookPayload;
29241
+ key: 'Webhooks > Teams > Team > Moves';
29242
+ path?: never;
29243
+ query?: never;
29244
+ };
28975
29245
  /**
28976
29246
  * Callback payload
28977
29247
  */
@@ -29052,6 +29322,16 @@ export type PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest = {
29052
29322
  path?: never;
29053
29323
  query?: never;
29054
29324
  };
29325
+ /**
29326
+ * Callback payload
29327
+ */
29328
+ export type PostWebhooks__Timeoff__Leave__BulkDeletesWebhookPayload = TimeoffLeave;
29329
+ export type PostWebhooks__Timeoff__Leave__BulkDeletesWebhookRequest = {
29330
+ body: PostWebhooks__Timeoff__Leave__BulkDeletesWebhookPayload;
29331
+ key: 'Webhooks > Timeoff > Leave > Bulk deletes';
29332
+ path?: never;
29333
+ query?: never;
29334
+ };
29055
29335
  /**
29056
29336
  * Callback payload
29057
29337
  */