@factorialco/api-client 3.0.0-beta.2027010100 → 4.0.0-beta.2027010101

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 (42) hide show
  1. package/README.md +70 -28
  2. package/dist/cjs/errors.d.ts +96 -0
  3. package/dist/cjs/errors.d.ts.map +1 -0
  4. package/dist/cjs/errors.js +155 -0
  5. package/dist/cjs/errors.js.map +1 -0
  6. package/dist/cjs/generated/sdk.gen.d.ts +2 -2
  7. package/dist/cjs/generated/sdk.gen.js +2 -2
  8. package/dist/cjs/generated/types.gen.d.ts +20 -3
  9. package/dist/cjs/generated/types.gen.d.ts.map +1 -1
  10. package/dist/cjs/index.d.ts +2 -0
  11. package/dist/cjs/index.d.ts.map +1 -1
  12. package/dist/cjs/index.js +6 -1
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/cjs/pagination.d.ts +5 -3
  15. package/dist/cjs/pagination.d.ts.map +1 -1
  16. package/dist/cjs/pagination.js +5 -6
  17. package/dist/cjs/pagination.js.map +1 -1
  18. package/dist/cjs/sdk.d.ts +976 -956
  19. package/dist/cjs/sdk.d.ts.map +1 -1
  20. package/dist/cjs/sdk.js +871 -347
  21. package/dist/cjs/sdk.js.map +1 -1
  22. package/dist/esm/errors.d.ts +96 -0
  23. package/dist/esm/errors.d.ts.map +1 -0
  24. package/dist/esm/errors.js +149 -0
  25. package/dist/esm/errors.js.map +1 -0
  26. package/dist/esm/generated/sdk.gen.d.ts +2 -2
  27. package/dist/esm/generated/sdk.gen.js +2 -2
  28. package/dist/esm/generated/types.gen.d.ts +20 -3
  29. package/dist/esm/generated/types.gen.d.ts.map +1 -1
  30. package/dist/esm/index.d.ts +2 -0
  31. package/dist/esm/index.d.ts.map +1 -1
  32. package/dist/esm/index.js +3 -0
  33. package/dist/esm/index.js.map +1 -1
  34. package/dist/esm/pagination.d.ts +5 -3
  35. package/dist/esm/pagination.d.ts.map +1 -1
  36. package/dist/esm/pagination.js +5 -6
  37. package/dist/esm/pagination.js.map +1 -1
  38. package/dist/esm/sdk.d.ts +976 -956
  39. package/dist/esm/sdk.d.ts.map +1 -1
  40. package/dist/esm/sdk.js +864 -342
  41. package/dist/esm/sdk.js.map +1 -1
  42. package/package.json +6 -2
package/dist/cjs/sdk.js CHANGED
@@ -17,15 +17,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.ContractsSpanishEducationLevelsResource = exports.ContractsSpanishContractTypesResource = exports.ContractsReferenceContractsResource = exports.ContractsPortugueseContractTypesResource = exports.ContractsMaterializedTemplatesResource = exports.ContractsLegalEntityChangesResource = exports.ContractsGermanContractTypesResource = exports.ContractsFrenchContractTypesResource = exports.ContractsContractsResource = exports.ContractsContractVersionsResource = exports.ContractsContractVersionMetaDataResource = exports.ContractsContractVersionHistoriesResource = exports.ContractsContractTemplatesResource = exports.ContractsContractActivityPeriodsResource = exports.ContractsCompensationsResource = exports.CompensationsPayrollRunsResource = exports.CompensationsPayrollRunEmployeesCompensationsResource = exports.CompensationsPayrollResultsResource = exports.CompensationsEmployeesCompensationsResource = exports.CompensationsCyclesResource = exports.CompensationsConceptsResource = exports.CompensationsAdditionalCompensationsResource = exports.CompaniesLegalEntitiesResource = exports.BookkeepersManagementIncidencesResource = exports.BankingTransactionsResource = exports.BankingCardPaymentsResource = exports.BankingBankAccountsResource = exports.AttendanceWorkedTimesResource = exports.AttendanceShiftsResource = exports.AttendanceReviewsResource = exports.AttendanceOvertimeRequestsResource = exports.AttendanceOpenShiftsResource = exports.AttendanceEstimatedTimesResource = exports.AttendanceEditTimesheetRequestsResource = exports.AttendanceBreakConfigurationsResource = exports.AtsRejectionReasonsResource = exports.AtsQuestionsResource = exports.AtsMessagesResource = exports.AtsJobPostingsResource = exports.AtsHiringStagesResource = exports.AtsFeedbacksResource = exports.AtsEvaluationFormsResource = exports.AtsCandidatesResource = exports.AtsCandidateSourcesResource = exports.AtsApplicationsResource = exports.AtsApplicationPhasesResource = exports.AtsAnswersResource = exports.ApprovalsMaterializedApprovalsFlowsResource = exports.ApiPublicWebhookSubscriptionsResource = exports.ApiPublicCredentialsResource = void 0;
21
- exports.LocationsLocationsResource = exports.JobCatalogTreeNodesResource = exports.JobCatalogRolesResource = exports.JobCatalogNodeAttributesResource = exports.JobCatalogLevelsResource = exports.ItManagementItAssetsResource = exports.ItManagementItAssetModelsResource = exports.ItManagementAssetCategoriesResource = exports.IntegrationsSyncableSyncRunsResource = exports.IntegrationsSyncableStatesResource = exports.IntegrationsSyncRunsResource = exports.IntegrationsSyncRunOutputsResource = exports.HolidaysCompanyHolidaysResource = exports.FinanceTaxTypesResource = exports.FinanceTaxRatesResource = exports.FinanceLedgerAccountResourcesResource = exports.FinanceJournalLinesResource = exports.FinanceJournalEntriesResource = exports.FinanceFinancialDocumentsResource = exports.FinanceCostCentersResource = exports.FinanceCostCenterMembershipsResource = exports.FinanceContactsResource = exports.FinanceCategoriesResource = exports.FinanceBudgetOptionsResource = exports.FinanceAccountsResource = exports.FinanceAccountingSettingsResource = exports.ExpensesPerDiemsResource = exports.ExpensesMileagesResource = exports.ExpensesExpensesResource = exports.ExpensesExpensablesResource = exports.EmployeesEmployeesResource = exports.EmployeeUpdatesTerminationsResource = exports.EmployeeUpdatesSummariesResource = exports.EmployeeUpdatesPersonalChangesResource = exports.EmployeeUpdatesNewHiresResource = exports.EmployeeUpdatesContractChangesResource = exports.EmployeeUpdatesAbsencesResource = exports.DocumentsFoldersResource = exports.DocumentsDownloadUrlsResource = exports.DocumentsDocumentsResource = exports.CustomResourcesValuesResource = exports.CustomResourcesSchemasResource = exports.CustomResourcesResourcesResource = exports.CustomFieldsValuesResource = exports.CustomFieldsResourceFieldsResource = exports.CustomFieldsOptionsResource = exports.CustomFieldsFieldsResource = exports.ContractsTaxonomiesResource = exports.ContractsSpanishWorkingDayTypesResource = exports.ContractsSpanishProfessionalCategoriesResource = void 0;
22
- exports.TasksTasksResource = exports.TasksTaskFilesResource = exports.ShiftManagementShiftsResource = exports.ProjectManagementTimeRecordsResource = exports.ProjectManagementSubprojectsResource = exports.ProjectManagementRatesResource = exports.ProjectManagementProjectsResource = exports.ProjectManagementProjectWorkersResource = exports.ProjectManagementProjectTasksResource = exports.ProjectManagementPlannedRecordsResource = exports.ProjectManagementImputableProjectsResource = exports.ProjectManagementExportableExpensesResource = exports.ProjectManagementExpenseRecordsResource = exports.ProjectManagementBudgetStrategiesResource = exports.ProcurementTypesResource = exports.ProcurementPurchaseRequestsResource = exports.ProcurementPurchaseOrdersResource = exports.ProcurementPoTemplatesResource = exports.ProcurementPoTemplateVersionsResource = exports.ProcurementPoTemplateFieldDefinitionsResource = exports.ProcurementPoLineItemsResource = exports.ProcurementPoFieldValuesResource = exports.ProcessesProcessesResource = exports.ProcessesMaterializedProcessesResource = exports.PostsPostsResource = exports.PostsGroupsResource = exports.PostsCommentsResource = exports.PerformanceTargetManagersResource = exports.PerformanceReviewVisibilitySettingsResource = exports.PerformanceReviewQuestionnaireByStrategiesResource = exports.PerformanceReviewProcessesResource = exports.PerformanceReviewProcessTargetsResource = exports.PerformanceReviewProcessEstimatedTargetsResource = exports.PerformanceReviewProcessCustomTemplatesResource = exports.PerformanceReviewOwnersResource = exports.PerformanceReviewEvaluationsResource = exports.PerformanceReviewEvaluationScoresResource = exports.PerformanceReviewEvaluationAnswersResource = exports.PerformanceEmployeeScoreScalesResource = exports.PerformanceCompanyEmployeeScoreScalesResource = exports.PerformanceAgreementsResource = exports.PayrollIntegrationsBaseCodesResource = exports.PayrollEmployeesIdentifiersResource = exports.PayrollEmployeesGermanEmployeeDataResource = exports.PayrollSupplementsResource = exports.PayrollPolicyPeriodsResource = exports.PayrollFamilySituationsResource = exports.MarketplaceInstallationsResource = exports.MarketplaceInstallationSettingsResource = exports.LocationsWorkAreasResource = void 0;
23
- exports.PayrollEmployeesNamespace = exports.PayrollNamespace = exports.MarketplaceNamespace = exports.LocationsNamespace = exports.JobCatalogNamespace = exports.ItManagementNamespace = exports.IntegrationsNamespace = exports.HolidaysNamespace = exports.FinanceNamespace = exports.ExpensesNamespace = exports.EmployeesNamespace = exports.EmployeeUpdatesNamespace = exports.DocumentsNamespace = exports.CustomResourcesNamespace = exports.CustomFieldsNamespace = exports.ContractsNamespace = exports.CompensationsNamespace = exports.CompaniesNamespace = exports.BookkeepersManagementNamespace = exports.BankingNamespace = exports.AttendanceNamespace = exports.AtsNamespace = exports.ApprovalsNamespace = exports.ApiPublicNamespace = exports.WorkScheduleSchedulesResource = exports.WorkScheduleOverlapPeriodsResource = exports.WorkScheduleDayConfigurationsResource = exports.TrainingsTrainingsResource = exports.TrainingsTrainingMembershipsResource = exports.TrainingsTrainingClassesResource = exports.TrainingsSessionsResource = exports.TrainingsSessionAttendancesResource = exports.TrainingsSessionAccessMembershipsResource = exports.TrainingsCategoriesResource = exports.TimeoffPolicyTimelinesResource = exports.TimeoffPolicyAssignmentsResource = exports.TimeoffPoliciesResource = exports.TimeoffLeavesResource = exports.TimeoffLeaveTypesResource = exports.TimeoffFrenchLeaveDayCountsResource = exports.TimeoffBlockedPeriodsResource = exports.TimeoffAllowancesResource = exports.TimeoffAllowanceStatsResource = exports.TimeoffAllowanceIncidencesResource = exports.TimeSettingsSplitCustomTimeRangeCategoriesResource = exports.TimeSettingsBreakConfigurationsResource = exports.TimePlanningPlanningVersionsResource = exports.TimePlanningPlannedBreaksResource = exports.TeamsTeamsResource = exports.TeamsMembershipsResource = void 0;
24
- exports.FactorialClient = exports.WorkScheduleNamespace = exports.TrainingsNamespace = exports.TimeoffNamespace = exports.TimeSettingsNamespace = exports.TimePlanningNamespace = exports.TeamsNamespace = exports.TasksNamespace = exports.ShiftManagementNamespace = exports.ProjectManagementNamespace = exports.ProcurementNamespace = exports.ProcessesNamespace = exports.PostsNamespace = exports.PerformanceNamespace = exports.PayrollIntegrationsBaseNamespace = void 0;
20
+ exports.ContractsReferenceContractsResource = exports.ContractsPortugueseContractTypesResource = exports.ContractsMaterializedTemplatesResource = exports.ContractsLegalEntityChangesResource = exports.ContractsGermanContractTypesResource = exports.ContractsFrenchContractTypesResource = exports.ContractsContractsResource = exports.ContractsContractVersionsResource = exports.ContractsContractVersionMetaDataResource = exports.ContractsContractVersionHistoriesResource = exports.ContractsContractTemplatesResource = exports.ContractsContractActivityPeriodsResource = exports.ContractsCompensationsResource = exports.CompensationsPayrollRunsResource = exports.CompensationsPayrollRunEmployeesCompensationsResource = exports.CompensationsPayrollResultsResource = exports.CompensationsEmployeesCompensationsResource = exports.CompensationsCyclesResource = exports.CompensationsConceptsResource = exports.CompensationsAdditionalCompensationsResource = exports.CompaniesLegalEntitiesResource = exports.BookkeepersManagementIncidencesResource = exports.BankingTransactionsResource = exports.BankingCardPaymentsResource = exports.BankingBankAccountsResource = exports.AttendanceWorkedTimesResource = exports.AttendanceShiftsResource = exports.AttendanceReviewsResource = exports.AttendanceOvertimeRequestsResource = exports.AttendanceOpenShiftsResource = exports.AttendanceEstimatedTimesResource = exports.AttendanceEditTimesheetRequestsResource = exports.AttendanceBreakConfigurationsResource = exports.AtsRejectionReasonsResource = exports.AtsQuestionsResource = exports.AtsMessagesResource = exports.AtsJobPostingsResource = exports.AtsHiringStagesResource = exports.AtsFeedbacksResource = exports.AtsEvaluationFormsResource = exports.AtsCandidatesResource = exports.AtsCandidateSourcesResource = exports.AtsApplicationsResource = exports.AtsApplicationPhasesResource = exports.AtsAnswersResource = exports.ApprovalsMaterializedApprovalsFlowsResource = exports.ApiPublicWebhookSubscriptionsResource = exports.ApiPublicCredentialsResource = exports.isFactorialApiError = exports.FactorialApiError = void 0;
21
+ exports.JobCatalogRolesResource = exports.JobCatalogNodeAttributesResource = exports.JobCatalogLevelsResource = exports.ItManagementItAssetsResource = exports.ItManagementItAssetModelsResource = exports.ItManagementAssetCategoriesResource = exports.IntegrationsSyncableSyncRunsResource = exports.IntegrationsSyncableStatesResource = exports.IntegrationsSyncRunsResource = exports.IntegrationsSyncRunOutputsResource = exports.HolidaysCompanyHolidaysResource = exports.FinanceTaxTypesResource = exports.FinanceTaxRatesResource = exports.FinanceLedgerAccountResourcesResource = exports.FinanceJournalLinesResource = exports.FinanceJournalEntriesResource = exports.FinanceFinancialDocumentsResource = exports.FinanceCostCentersResource = exports.FinanceCostCenterMembershipsResource = exports.FinanceContactsResource = exports.FinanceCategoriesResource = exports.FinanceBudgetOptionsResource = exports.FinanceAccountsResource = exports.FinanceAccountingSettingsResource = exports.ExpensesPerDiemsResource = exports.ExpensesMileagesResource = exports.ExpensesExpensesResource = exports.ExpensesExpensablesResource = exports.EmployeesEmployeesResource = exports.EmployeeUpdatesTerminationsResource = exports.EmployeeUpdatesSummariesResource = exports.EmployeeUpdatesPersonalChangesResource = exports.EmployeeUpdatesNewHiresResource = exports.EmployeeUpdatesContractChangesResource = exports.EmployeeUpdatesAbsencesResource = exports.DocumentsFoldersResource = exports.DocumentsDownloadUrlsResource = exports.DocumentsDocumentsResource = exports.CustomResourcesValuesResource = exports.CustomResourcesSchemasResource = exports.CustomResourcesResourcesResource = exports.CustomFieldsValuesResource = exports.CustomFieldsResourceFieldsResource = exports.CustomFieldsOptionsResource = exports.CustomFieldsFieldsResource = exports.ContractsTaxonomiesResource = exports.ContractsSpanishWorkingDayTypesResource = exports.ContractsSpanishProfessionalCategoriesResource = exports.ContractsSpanishEducationLevelsResource = exports.ContractsSpanishContractTypesResource = void 0;
22
+ exports.ShiftManagementShiftsResource = exports.ProjectManagementTimeRecordsResource = exports.ProjectManagementSubprojectsResource = exports.ProjectManagementRatesResource = exports.ProjectManagementProjectsResource = exports.ProjectManagementProjectWorkersResource = exports.ProjectManagementProjectTasksResource = exports.ProjectManagementPlannedRecordsResource = exports.ProjectManagementImputableProjectsResource = exports.ProjectManagementExportableExpensesResource = exports.ProjectManagementExpenseRecordsResource = exports.ProjectManagementBudgetStrategiesResource = exports.ProcurementTypesResource = exports.ProcurementPurchaseRequestsResource = exports.ProcurementPurchaseOrdersResource = exports.ProcurementPoTemplatesResource = exports.ProcurementPoTemplateVersionsResource = exports.ProcurementPoTemplateFieldDefinitionsResource = exports.ProcurementPoLineItemsResource = exports.ProcurementPoFieldValuesResource = exports.ProcessesProcessesResource = exports.ProcessesMaterializedProcessesResource = exports.PostsPostsResource = exports.PostsGroupsResource = exports.PostsCommentsResource = exports.PerformanceTargetManagersResource = exports.PerformanceReviewVisibilitySettingsResource = exports.PerformanceReviewQuestionnaireByStrategiesResource = exports.PerformanceReviewProcessesResource = exports.PerformanceReviewProcessTargetsResource = exports.PerformanceReviewProcessEstimatedTargetsResource = exports.PerformanceReviewProcessCustomTemplatesResource = exports.PerformanceReviewOwnersResource = exports.PerformanceReviewEvaluationsResource = exports.PerformanceReviewEvaluationScoresResource = exports.PerformanceReviewEvaluationAnswersResource = exports.PerformanceEmployeeScoreScalesResource = exports.PerformanceCompanyEmployeeScoreScalesResource = exports.PerformanceAgreementsResource = exports.PayrollIntegrationsBaseCodesResource = exports.PayrollEmployeesIdentifiersResource = exports.PayrollEmployeesGermanEmployeeDataResource = exports.PayrollSupplementsResource = exports.PayrollPolicyPeriodsResource = exports.PayrollFamilySituationsResource = exports.MarketplaceInstallationsResource = exports.MarketplaceInstallationSettingsResource = exports.LocationsWorkAreasResource = exports.LocationsLocationsResource = exports.JobCatalogTreeNodesResource = void 0;
23
+ exports.MarketplaceNamespace = exports.LocationsNamespace = exports.JobCatalogNamespace = exports.ItManagementNamespace = exports.IntegrationsNamespace = exports.HolidaysNamespace = exports.FinanceNamespace = exports.ExpensesNamespace = exports.EmployeesNamespace = exports.EmployeeUpdatesNamespace = exports.DocumentsNamespace = exports.CustomResourcesNamespace = exports.CustomFieldsNamespace = exports.ContractsNamespace = exports.CompensationsNamespace = exports.CompaniesNamespace = exports.BookkeepersManagementNamespace = exports.BankingNamespace = exports.AttendanceNamespace = exports.AtsNamespace = exports.ApprovalsNamespace = exports.ApiPublicNamespace = exports.WorkScheduleSchedulesResource = exports.WorkScheduleOverlapPeriodsResource = exports.WorkScheduleDayConfigurationsResource = exports.TrainingsTrainingsResource = exports.TrainingsTrainingMembershipsResource = exports.TrainingsTrainingClassesResource = exports.TrainingsSessionsResource = exports.TrainingsSessionAttendancesResource = exports.TrainingsSessionAccessMembershipsResource = exports.TrainingsCategoriesResource = exports.TimeoffPolicyTimelinesResource = exports.TimeoffPolicyAssignmentsResource = exports.TimeoffPoliciesResource = exports.TimeoffLeavesResource = exports.TimeoffLeaveTypesResource = exports.TimeoffFrenchLeaveDayCountsResource = exports.TimeoffBlockedPeriodsResource = exports.TimeoffAllowancesResource = exports.TimeoffAllowanceStatsResource = exports.TimeoffAllowanceIncidencesResource = exports.TimeSettingsSplitCustomTimeRangeCategoriesResource = exports.TimeSettingsBreakConfigurationsResource = exports.TimePlanningPlanningVersionsResource = exports.TimePlanningPlannedBreaksResource = exports.TeamsTeamsResource = exports.TeamsMembershipsResource = exports.TasksTasksResource = exports.TasksTaskFilesResource = void 0;
24
+ exports.FactorialClient = exports.WorkScheduleNamespace = exports.TrainingsNamespace = exports.TimeoffNamespace = exports.TimeSettingsNamespace = exports.TimePlanningNamespace = exports.TeamsNamespace = exports.TasksNamespace = exports.ShiftManagementNamespace = exports.ProjectManagementNamespace = exports.ProcurementNamespace = exports.ProcessesNamespace = exports.PostsNamespace = exports.PerformanceNamespace = exports.PayrollIntegrationsBaseNamespace = exports.PayrollEmployeesNamespace = exports.PayrollNamespace = void 0;
25
25
  const index_js_1 = require("./generated/client/index.js");
26
+ const errors_js_1 = require("./errors.js");
26
27
  const sdk_gen_js_1 = require("./generated/sdk.gen.js");
27
28
  __exportStar(require("./generated/types.gen.js"), exports);
28
29
  const pagination_js_1 = require("./pagination.js");
30
+ var errors_js_2 = require("./errors.js");
31
+ Object.defineProperty(exports, "FactorialApiError", { enumerable: true, get: function () { return errors_js_2.FactorialApiError; } });
32
+ Object.defineProperty(exports, "isFactorialApiError", { enumerable: true, get: function () { return errors_js_2.isFactorialApiError; } });
29
33
  /** Methods for the api_public > credentials resource */
30
34
  class ApiPublicCredentialsResource {
31
35
  _client;
@@ -39,8 +43,11 @@ class ApiPublicCredentialsResource {
39
43
  * @example for await (const item of client.apiPublic.credentials.paginate()) { ... }
40
44
  */
41
45
  paginate(options) {
42
- const { maxItems, ...rest } = options ?? {};
43
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesApiPublicCredentials)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
46
+ const { maxItems, limit, ...rest } = options ?? {};
47
+ return (0, pagination_js_1.paginate)(
48
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesApiPublicCredentials)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
44
51
  }
45
52
  /**
46
53
  * Fetch all credentials across all pages into a single array.
@@ -64,8 +71,11 @@ class ApiPublicWebhookSubscriptionsResource {
64
71
  * @example for await (const item of client.apiPublic.webhookSubscriptions.paginate()) { ... }
65
72
  */
66
73
  paginate(options) {
67
- const { maxItems, ...rest } = options ?? {};
68
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesApiPublicWebhookSubscriptions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
74
+ const { maxItems, limit, ...rest } = options ?? {};
75
+ return (0, pagination_js_1.paginate)(
76
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
77
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
78
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesApiPublicWebhookSubscriptions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
69
79
  }
70
80
  /**
71
81
  * Fetch all webhook_subscriptions across all pages into a single array.
@@ -109,8 +119,11 @@ class AtsAnswersResource {
109
119
  * @example for await (const item of client.ats.answers.paginate()) { ... }
110
120
  */
111
121
  paginate(options) {
112
- const { maxItems, ...rest } = options ?? {};
113
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsAnswers)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
122
+ const { maxItems, limit, ...rest } = options ?? {};
123
+ return (0, pagination_js_1.paginate)(
124
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
125
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsAnswers)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
114
127
  }
115
128
  /**
116
129
  * Fetch all answers across all pages into a single array.
@@ -138,8 +151,11 @@ class AtsApplicationPhasesResource {
138
151
  * @example for await (const item of client.ats.applicationPhases.paginate()) { ... }
139
152
  */
140
153
  paginate(options) {
141
- const { maxItems, ...rest } = options ?? {};
142
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsApplicationPhases)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
154
+ const { maxItems, limit, ...rest } = options ?? {};
155
+ return (0, pagination_js_1.paginate)(
156
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
157
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
158
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsApplicationPhases)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
143
159
  }
144
160
  /**
145
161
  * Fetch all application_phases across all pages into a single array.
@@ -165,8 +181,11 @@ class AtsApplicationsResource {
165
181
  * @example for await (const item of client.ats.applications.paginate()) { ... }
166
182
  */
167
183
  paginate(options) {
168
- const { maxItems, ...rest } = options ?? {};
169
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsApplications)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
184
+ const { maxItems, limit, ...rest } = options ?? {};
185
+ return (0, pagination_js_1.paginate)(
186
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
187
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
188
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsApplications)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
170
189
  }
171
190
  /**
172
191
  * Fetch all applications across all pages into a single array.
@@ -202,8 +221,11 @@ class AtsCandidateSourcesResource {
202
221
  * @example for await (const item of client.ats.candidateSources.paginate()) { ... }
203
222
  */
204
223
  paginate(options) {
205
- const { maxItems, ...rest } = options ?? {};
206
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsCandidateSources)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
224
+ const { maxItems, limit, ...rest } = options ?? {};
225
+ return (0, pagination_js_1.paginate)(
226
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
227
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsCandidateSources)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
207
229
  }
208
230
  /**
209
231
  * Fetch all candidate_sources across all pages into a single array.
@@ -229,8 +251,11 @@ class AtsCandidatesResource {
229
251
  * @example for await (const item of client.ats.candidates.paginate()) { ... }
230
252
  */
231
253
  paginate(options) {
232
- const { maxItems, ...rest } = options ?? {};
233
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsCandidates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
254
+ const { maxItems, limit, ...rest } = options ?? {};
255
+ return (0, pagination_js_1.paginate)(
256
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
257
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
258
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsCandidates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
234
259
  }
235
260
  /**
236
261
  * Fetch all candidates across all pages into a single array.
@@ -262,8 +287,11 @@ class AtsEvaluationFormsResource {
262
287
  * @example for await (const item of client.ats.evaluationForms.paginate()) { ... }
263
288
  */
264
289
  paginate(options) {
265
- const { maxItems, ...rest } = options ?? {};
266
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsEvaluationForms)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
290
+ const { maxItems, limit, ...rest } = options ?? {};
291
+ return (0, pagination_js_1.paginate)(
292
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
293
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
294
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsEvaluationForms)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
267
295
  }
268
296
  /**
269
297
  * Fetch all evaluation_forms across all pages into a single array.
@@ -291,8 +319,11 @@ class AtsFeedbacksResource {
291
319
  * @example for await (const item of client.ats.feedbacks.paginate()) { ... }
292
320
  */
293
321
  paginate(options) {
294
- const { maxItems, ...rest } = options ?? {};
295
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsFeedbacks)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
322
+ const { maxItems, limit, ...rest } = options ?? {};
323
+ return (0, pagination_js_1.paginate)(
324
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
325
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
326
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsFeedbacks)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
296
327
  }
297
328
  /**
298
329
  * Fetch all feedbacks across all pages into a single array.
@@ -324,8 +355,11 @@ class AtsHiringStagesResource {
324
355
  * @example for await (const item of client.ats.hiringStages.paginate()) { ... }
325
356
  */
326
357
  paginate(options) {
327
- const { maxItems, ...rest } = options ?? {};
328
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsHiringStages)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
358
+ const { maxItems, limit, ...rest } = options ?? {};
359
+ return (0, pagination_js_1.paginate)(
360
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
361
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
362
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsHiringStages)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
329
363
  }
330
364
  /**
331
365
  * Fetch all hiring_stages across all pages into a single array.
@@ -351,8 +385,11 @@ class AtsJobPostingsResource {
351
385
  * @example for await (const item of client.ats.jobPostings.paginate()) { ... }
352
386
  */
353
387
  paginate(options) {
354
- const { maxItems, ...rest } = options ?? {};
355
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsJobPostings)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
388
+ const { maxItems, limit, ...rest } = options ?? {};
389
+ return (0, pagination_js_1.paginate)(
390
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
391
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
392
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsJobPostings)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
356
393
  }
357
394
  /**
358
395
  * Fetch all job_postings across all pages into a single array.
@@ -386,8 +423,11 @@ class AtsMessagesResource {
386
423
  * @example for await (const item of client.ats.messages.paginate()) { ... }
387
424
  */
388
425
  paginate(options) {
389
- const { maxItems, ...rest } = options ?? {};
390
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsMessages)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
426
+ const { maxItems, limit, ...rest } = options ?? {};
427
+ return (0, pagination_js_1.paginate)(
428
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
429
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
430
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsMessages)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
391
431
  }
392
432
  /**
393
433
  * Fetch all messages across all pages into a single array.
@@ -415,8 +455,11 @@ class AtsQuestionsResource {
415
455
  * @example for await (const item of client.ats.questions.paginate()) { ... }
416
456
  */
417
457
  paginate(options) {
418
- const { maxItems, ...rest } = options ?? {};
419
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsQuestions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
458
+ const { maxItems, limit, ...rest } = options ?? {};
459
+ return (0, pagination_js_1.paginate)(
460
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
461
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
462
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsQuestions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
420
463
  }
421
464
  /**
422
465
  * Fetch all questions across all pages into a single array.
@@ -448,8 +491,11 @@ class AtsRejectionReasonsResource {
448
491
  * @example for await (const item of client.ats.rejectionReasons.paginate()) { ... }
449
492
  */
450
493
  paginate(options) {
451
- const { maxItems, ...rest } = options ?? {};
452
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsRejectionReasons)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
494
+ const { maxItems, limit, ...rest } = options ?? {};
495
+ return (0, pagination_js_1.paginate)(
496
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
497
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
498
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAtsRejectionReasons)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
453
499
  }
454
500
  /**
455
501
  * Fetch all rejection_reasons across all pages into a single array.
@@ -475,8 +521,11 @@ class AttendanceBreakConfigurationsResource {
475
521
  * @example for await (const item of client.attendance.breakConfigurations.paginate()) { ... }
476
522
  */
477
523
  paginate(options) {
478
- const { maxItems, ...rest } = options ?? {};
479
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceBreakConfigurations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
524
+ const { maxItems, limit, ...rest } = options ?? {};
525
+ return (0, pagination_js_1.paginate)(
526
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
527
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
528
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceBreakConfigurations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
480
529
  }
481
530
  /**
482
531
  * Fetch all break_configurations across all pages into a single array.
@@ -506,8 +555,11 @@ class AttendanceEditTimesheetRequestsResource {
506
555
  * @example for await (const item of client.attendance.editTimesheetRequests.paginate()) { ... }
507
556
  */
508
557
  paginate(options) {
509
- const { maxItems, ...rest } = options ?? {};
510
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceEditTimesheetRequests)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
558
+ const { maxItems, limit, ...rest } = options ?? {};
559
+ return (0, pagination_js_1.paginate)(
560
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
561
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
562
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceEditTimesheetRequests)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
511
563
  }
512
564
  /**
513
565
  * Fetch all edit_timesheet_requests across all pages into a single array.
@@ -539,8 +591,11 @@ class AttendanceEstimatedTimesResource {
539
591
  * @example for await (const item of client.attendance.estimatedTimes.paginate()) { ... }
540
592
  */
541
593
  paginate(options) {
542
- const { maxItems, ...rest } = options ?? {};
543
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceEstimatedTimes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
594
+ const { maxItems, limit, ...rest } = options ?? {};
595
+ return (0, pagination_js_1.paginate)(
596
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
597
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
598
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceEstimatedTimes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
544
599
  }
545
600
  /**
546
601
  * Fetch all estimated_times across all pages into a single array.
@@ -564,8 +619,11 @@ class AttendanceOpenShiftsResource {
564
619
  * @example for await (const item of client.attendance.openShifts.paginate()) { ... }
565
620
  */
566
621
  paginate(options) {
567
- const { maxItems, ...rest } = options ?? {};
568
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceOpenShifts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
622
+ const { maxItems, limit, ...rest } = options ?? {};
623
+ return (0, pagination_js_1.paginate)(
624
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
625
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
626
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceOpenShifts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
569
627
  }
570
628
  /**
571
629
  * Fetch all open_shifts across all pages into a single array.
@@ -589,8 +647,11 @@ class AttendanceOvertimeRequestsResource {
589
647
  * @example for await (const item of client.attendance.overtimeRequests.paginate()) { ... }
590
648
  */
591
649
  paginate(options) {
592
- const { maxItems, ...rest } = options ?? {};
593
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceOvertimeRequests)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
650
+ const { maxItems, limit, ...rest } = options ?? {};
651
+ return (0, pagination_js_1.paginate)(
652
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
653
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
654
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceOvertimeRequests)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
594
655
  }
595
656
  /**
596
657
  * Fetch all overtime_requests across all pages into a single array.
@@ -626,8 +687,11 @@ class AttendanceReviewsResource {
626
687
  * @example for await (const item of client.attendance.reviews.paginate()) { ... }
627
688
  */
628
689
  paginate(options) {
629
- const { maxItems, ...rest } = options ?? {};
630
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceReviews)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
690
+ const { maxItems, limit, ...rest } = options ?? {};
691
+ return (0, pagination_js_1.paginate)(
692
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
693
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
694
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceReviews)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
631
695
  }
632
696
  /**
633
697
  * Fetch all reviews across all pages into a single array.
@@ -655,8 +719,11 @@ class AttendanceShiftsResource {
655
719
  * @example for await (const item of client.attendance.shifts.paginate()) { ... }
656
720
  */
657
721
  paginate(options) {
658
- const { maxItems, ...rest } = options ?? {};
659
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceShifts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
722
+ const { maxItems, limit, ...rest } = options ?? {};
723
+ return (0, pagination_js_1.paginate)(
724
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
725
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
726
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceShifts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
660
727
  }
661
728
  /**
662
729
  * Fetch all shifts across all pages into a single array.
@@ -700,8 +767,11 @@ class AttendanceWorkedTimesResource {
700
767
  * @example for await (const item of client.attendance.workedTimes.paginate()) { ... }
701
768
  */
702
769
  paginate(options) {
703
- const { maxItems, ...rest } = options ?? {};
704
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceWorkedTimes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
770
+ const { maxItems, limit, ...rest } = options ?? {};
771
+ return (0, pagination_js_1.paginate)(
772
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
773
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
774
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesAttendanceWorkedTimes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
705
775
  }
706
776
  /**
707
777
  * Fetch all worked_times across all pages into a single array.
@@ -727,8 +797,11 @@ class BankingBankAccountsResource {
727
797
  * @example for await (const item of client.banking.bankAccounts.paginate()) { ... }
728
798
  */
729
799
  paginate(options) {
730
- const { maxItems, ...rest } = options ?? {};
731
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingBankAccounts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
800
+ const { maxItems, limit, ...rest } = options ?? {};
801
+ return (0, pagination_js_1.paginate)(
802
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
803
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
804
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingBankAccounts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
732
805
  }
733
806
  /**
734
807
  * Fetch all bank_accounts across all pages into a single array.
@@ -756,8 +829,11 @@ class BankingCardPaymentsResource {
756
829
  * @example for await (const item of client.banking.cardPayments.paginate()) { ... }
757
830
  */
758
831
  paginate(options) {
759
- const { maxItems, ...rest } = options ?? {};
760
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingCardPayments)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
832
+ const { maxItems, limit, ...rest } = options ?? {};
833
+ return (0, pagination_js_1.paginate)(
834
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
835
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
836
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingCardPayments)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
761
837
  }
762
838
  /**
763
839
  * Fetch all card_payments across all pages into a single array.
@@ -783,8 +859,11 @@ class BankingTransactionsResource {
783
859
  * @example for await (const item of client.banking.transactions.paginate()) { ... }
784
860
  */
785
861
  paginate(options) {
786
- const { maxItems, ...rest } = options ?? {};
787
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingTransactions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
862
+ const { maxItems, limit, ...rest } = options ?? {};
863
+ return (0, pagination_js_1.paginate)(
864
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
865
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
866
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesBankingTransactions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
788
867
  }
789
868
  /**
790
869
  * Fetch all transactions across all pages into a single array.
@@ -810,8 +889,11 @@ class BookkeepersManagementIncidencesResource {
810
889
  * @example for await (const item of client.bookkeepersManagement.incidences.paginate()) { ... }
811
890
  */
812
891
  paginate(options) {
813
- const { maxItems, ...rest } = options ?? {};
814
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesBookkeepersManagementIncidences)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
892
+ const { maxItems, limit, ...rest } = options ?? {};
893
+ return (0, pagination_js_1.paginate)(
894
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
895
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
896
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesBookkeepersManagementIncidences)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
815
897
  }
816
898
  /**
817
899
  * Fetch all incidences across all pages into a single array.
@@ -839,8 +921,11 @@ class CompaniesLegalEntitiesResource {
839
921
  * @example for await (const item of client.companies.legalEntities.paginate()) { ... }
840
922
  */
841
923
  paginate(options) {
842
- const { maxItems, ...rest } = options ?? {};
843
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompaniesLegalEntities)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
924
+ const { maxItems, limit, ...rest } = options ?? {};
925
+ return (0, pagination_js_1.paginate)(
926
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
927
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
928
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompaniesLegalEntities)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
844
929
  }
845
930
  /**
846
931
  * Fetch all legal_entities across all pages into a single array.
@@ -868,8 +953,11 @@ class CompensationsAdditionalCompensationsResource {
868
953
  * @example for await (const item of client.compensations.additionalCompensations.paginate()) { ... }
869
954
  */
870
955
  paginate(options) {
871
- const { maxItems, ...rest } = options ?? {};
872
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsAdditionalCompensations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
956
+ const { maxItems, limit, ...rest } = options ?? {};
957
+ return (0, pagination_js_1.paginate)(
958
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
959
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
960
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsAdditionalCompensations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
873
961
  }
874
962
  /**
875
963
  * Fetch all additional_compensations across all pages into a single array.
@@ -901,8 +989,11 @@ class CompensationsConceptsResource {
901
989
  * @example for await (const item of client.compensations.concepts.paginate()) { ... }
902
990
  */
903
991
  paginate(options) {
904
- const { maxItems, ...rest } = options ?? {};
905
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsConcepts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
992
+ const { maxItems, limit, ...rest } = options ?? {};
993
+ return (0, pagination_js_1.paginate)(
994
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
995
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
996
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsConcepts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
906
997
  }
907
998
  /**
908
999
  * Fetch all concepts across all pages into a single array.
@@ -932,8 +1023,11 @@ class CompensationsCyclesResource {
932
1023
  * @example for await (const item of client.compensations.cycles.paginate()) { ... }
933
1024
  */
934
1025
  paginate(options) {
935
- const { maxItems, ...rest } = options ?? {};
936
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsCycles)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1026
+ const { maxItems, limit, ...rest } = options ?? {};
1027
+ return (0, pagination_js_1.paginate)(
1028
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1029
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1030
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsCycles)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
937
1031
  }
938
1032
  /**
939
1033
  * Fetch all cycles across all pages into a single array.
@@ -959,8 +1053,11 @@ class CompensationsEmployeesCompensationsResource {
959
1053
  * @example for await (const item of client.compensations.employeesCompensations.paginate()) { ... }
960
1054
  */
961
1055
  paginate(options) {
962
- const { maxItems, ...rest } = options ?? {};
963
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsEmployeesCompensations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1056
+ const { maxItems, limit, ...rest } = options ?? {};
1057
+ return (0, pagination_js_1.paginate)(
1058
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1059
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1060
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsEmployeesCompensations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
964
1061
  }
965
1062
  /**
966
1063
  * Fetch all employees_compensations across all pages into a single array.
@@ -992,8 +1089,11 @@ class CompensationsPayrollResultsResource {
992
1089
  * @example for await (const item of client.compensations.payrollResults.paginate()) { ... }
993
1090
  */
994
1091
  paginate(options) {
995
- const { maxItems, ...rest } = options ?? {};
996
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollResults)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1092
+ const { maxItems, limit, ...rest } = options ?? {};
1093
+ return (0, pagination_js_1.paginate)(
1094
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1095
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1096
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollResults)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
997
1097
  }
998
1098
  /**
999
1099
  * Fetch all payroll_results across all pages into a single array.
@@ -1021,8 +1121,11 @@ class CompensationsPayrollRunEmployeesCompensationsResource {
1021
1121
  * @example for await (const item of client.compensations.payrollRunEmployeesCompensations.paginate()) { ... }
1022
1122
  */
1023
1123
  paginate(options) {
1024
- const { maxItems, ...rest } = options ?? {};
1025
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollRunEmployeesCompensations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1124
+ const { maxItems, limit, ...rest } = options ?? {};
1125
+ return (0, pagination_js_1.paginate)(
1126
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1127
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1128
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollRunEmployeesCompensations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1026
1129
  }
1027
1130
  /**
1028
1131
  * Fetch all payroll_run_employees_compensations across all pages into a single array.
@@ -1048,8 +1151,11 @@ class CompensationsPayrollRunsResource {
1048
1151
  * @example for await (const item of client.compensations.payrollRuns.paginate()) { ... }
1049
1152
  */
1050
1153
  paginate(options) {
1051
- const { maxItems, ...rest } = options ?? {};
1052
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollRuns)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1154
+ const { maxItems, limit, ...rest } = options ?? {};
1155
+ return (0, pagination_js_1.paginate)(
1156
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1157
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1158
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCompensationsPayrollRuns)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1053
1159
  }
1054
1160
  /**
1055
1161
  * Fetch all payroll_runs across all pages into a single array.
@@ -1075,8 +1181,11 @@ class ContractsCompensationsResource {
1075
1181
  * @example for await (const item of client.contracts.compensations.paginate()) { ... }
1076
1182
  */
1077
1183
  paginate(options) {
1078
- const { maxItems, ...rest } = options ?? {};
1079
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsCompensations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1184
+ const { maxItems, limit, ...rest } = options ?? {};
1185
+ return (0, pagination_js_1.paginate)(
1186
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1187
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1188
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsCompensations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1080
1189
  }
1081
1190
  /**
1082
1191
  * Fetch all compensations across all pages into a single array.
@@ -1108,8 +1217,11 @@ class ContractsContractActivityPeriodsResource {
1108
1217
  * @example for await (const item of client.contracts.contractActivityPeriods.paginate()) { ... }
1109
1218
  */
1110
1219
  paginate(options) {
1111
- const { maxItems, ...rest } = options ?? {};
1112
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractActivityPeriods)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1220
+ const { maxItems, limit, ...rest } = options ?? {};
1221
+ return (0, pagination_js_1.paginate)(
1222
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1223
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1224
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractActivityPeriods)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1113
1225
  }
1114
1226
  /**
1115
1227
  * Fetch all contract_activity_periods across all pages into a single array.
@@ -1133,8 +1245,11 @@ class ContractsContractTemplatesResource {
1133
1245
  * @example for await (const item of client.contracts.contractTemplates.paginate()) { ... }
1134
1246
  */
1135
1247
  paginate(options) {
1136
- const { maxItems, ...rest } = options ?? {};
1137
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractTemplates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1248
+ const { maxItems, limit, ...rest } = options ?? {};
1249
+ return (0, pagination_js_1.paginate)(
1250
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1251
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1252
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractTemplates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1138
1253
  }
1139
1254
  /**
1140
1255
  * Fetch all contract_templates across all pages into a single array.
@@ -1160,8 +1275,11 @@ class ContractsContractVersionHistoriesResource {
1160
1275
  * @example for await (const item of client.contracts.contractVersionHistories.paginate()) { ... }
1161
1276
  */
1162
1277
  paginate(options) {
1163
- const { maxItems, ...rest } = options ?? {};
1164
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersionHistories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1278
+ const { maxItems, limit, ...rest } = options ?? {};
1279
+ return (0, pagination_js_1.paginate)(
1280
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1281
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1282
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersionHistories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1165
1283
  }
1166
1284
  /**
1167
1285
  * Fetch all contract_version_histories across all pages into a single array.
@@ -1187,8 +1305,11 @@ class ContractsContractVersionMetaDataResource {
1187
1305
  * @example for await (const item of client.contracts.contractVersionMetaData.paginate()) { ... }
1188
1306
  */
1189
1307
  paginate(options) {
1190
- const { maxItems, ...rest } = options ?? {};
1191
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersionMetaData)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1308
+ const { maxItems, limit, ...rest } = options ?? {};
1309
+ return (0, pagination_js_1.paginate)(
1310
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1311
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1312
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersionMetaData)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1192
1313
  }
1193
1314
  /**
1194
1315
  * Fetch all contract_version_meta_data across all pages into a single array.
@@ -1212,8 +1333,11 @@ class ContractsContractVersionsResource {
1212
1333
  * @example for await (const item of client.contracts.contractVersions.paginate()) { ... }
1213
1334
  */
1214
1335
  paginate(options) {
1215
- const { maxItems, ...rest } = options ?? {};
1216
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1336
+ const { maxItems, limit, ...rest } = options ?? {};
1337
+ return (0, pagination_js_1.paginate)(
1338
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1339
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1340
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContractVersions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1217
1341
  }
1218
1342
  /**
1219
1343
  * Fetch all contract_versions across all pages into a single array.
@@ -1245,8 +1369,11 @@ class ContractsContractsResource {
1245
1369
  * @example for await (const item of client.contracts.contracts.paginate()) { ... }
1246
1370
  */
1247
1371
  paginate(options) {
1248
- const { maxItems, ...rest } = options ?? {};
1249
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContracts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1372
+ const { maxItems, limit, ...rest } = options ?? {};
1373
+ return (0, pagination_js_1.paginate)(
1374
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1375
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1376
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsContracts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1250
1377
  }
1251
1378
  /**
1252
1379
  * Fetch all contracts across all pages into a single array.
@@ -1272,8 +1399,11 @@ class ContractsFrenchContractTypesResource {
1272
1399
  * @example for await (const item of client.contracts.frenchContractTypes.paginate()) { ... }
1273
1400
  */
1274
1401
  paginate(options) {
1275
- const { maxItems, ...rest } = options ?? {};
1276
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsFrenchContractTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1402
+ const { maxItems, limit, ...rest } = options ?? {};
1403
+ return (0, pagination_js_1.paginate)(
1404
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1405
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1406
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsFrenchContractTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1277
1407
  }
1278
1408
  /**
1279
1409
  * Fetch all french_contract_types across all pages into a single array.
@@ -1299,8 +1429,11 @@ class ContractsGermanContractTypesResource {
1299
1429
  * @example for await (const item of client.contracts.germanContractTypes.paginate()) { ... }
1300
1430
  */
1301
1431
  paginate(options) {
1302
- const { maxItems, ...rest } = options ?? {};
1303
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsGermanContractTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1432
+ const { maxItems, limit, ...rest } = options ?? {};
1433
+ return (0, pagination_js_1.paginate)(
1434
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1435
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1436
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsGermanContractTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1304
1437
  }
1305
1438
  /**
1306
1439
  * Fetch all german_contract_types across all pages into a single array.
@@ -1336,8 +1469,11 @@ class ContractsMaterializedTemplatesResource {
1336
1469
  * @example for await (const item of client.contracts.materializedTemplates.paginate()) { ... }
1337
1470
  */
1338
1471
  paginate(options) {
1339
- const { maxItems, ...rest } = options ?? {};
1340
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsMaterializedTemplates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1472
+ const { maxItems, limit, ...rest } = options ?? {};
1473
+ return (0, pagination_js_1.paginate)(
1474
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1475
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1476
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsMaterializedTemplates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1341
1477
  }
1342
1478
  /**
1343
1479
  * Fetch all materialized_templates across all pages into a single array.
@@ -1361,8 +1497,11 @@ class ContractsPortugueseContractTypesResource {
1361
1497
  * @example for await (const item of client.contracts.portugueseContractTypes.paginate()) { ... }
1362
1498
  */
1363
1499
  paginate(options) {
1364
- const { maxItems, ...rest } = options ?? {};
1365
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsPortugueseContractTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1500
+ const { maxItems, limit, ...rest } = options ?? {};
1501
+ return (0, pagination_js_1.paginate)(
1502
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1503
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1504
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsPortugueseContractTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1366
1505
  }
1367
1506
  /**
1368
1507
  * Fetch all portuguese_contract_types across all pages into a single array.
@@ -1388,8 +1527,11 @@ class ContractsReferenceContractsResource {
1388
1527
  * @example for await (const item of client.contracts.referenceContracts.paginate()) { ... }
1389
1528
  */
1390
1529
  paginate(options) {
1391
- const { maxItems, ...rest } = options ?? {};
1392
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsReferenceContracts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1530
+ const { maxItems, limit, ...rest } = options ?? {};
1531
+ return (0, pagination_js_1.paginate)(
1532
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1533
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1534
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsReferenceContracts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1393
1535
  }
1394
1536
  /**
1395
1537
  * Fetch all reference_contracts across all pages into a single array.
@@ -1413,8 +1555,11 @@ class ContractsSpanishContractTypesResource {
1413
1555
  * @example for await (const item of client.contracts.spanishContractTypes.paginate()) { ... }
1414
1556
  */
1415
1557
  paginate(options) {
1416
- const { maxItems, ...rest } = options ?? {};
1417
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishContractTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1558
+ const { maxItems, limit, ...rest } = options ?? {};
1559
+ return (0, pagination_js_1.paginate)(
1560
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1561
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1562
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishContractTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1418
1563
  }
1419
1564
  /**
1420
1565
  * Fetch all spanish_contract_types across all pages into a single array.
@@ -1442,8 +1587,11 @@ class ContractsSpanishEducationLevelsResource {
1442
1587
  * @example for await (const item of client.contracts.spanishEducationLevels.paginate()) { ... }
1443
1588
  */
1444
1589
  paginate(options) {
1445
- const { maxItems, ...rest } = options ?? {};
1446
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishEducationLevels)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1590
+ const { maxItems, limit, ...rest } = options ?? {};
1591
+ return (0, pagination_js_1.paginate)(
1592
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1593
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1594
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishEducationLevels)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1447
1595
  }
1448
1596
  /**
1449
1597
  * Fetch all spanish_education_levels across all pages into a single array.
@@ -1471,8 +1619,11 @@ class ContractsSpanishProfessionalCategoriesResource {
1471
1619
  * @example for await (const item of client.contracts.spanishProfessionalCategories.paginate()) { ... }
1472
1620
  */
1473
1621
  paginate(options) {
1474
- const { maxItems, ...rest } = options ?? {};
1475
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishProfessionalCategories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1622
+ const { maxItems, limit, ...rest } = options ?? {};
1623
+ return (0, pagination_js_1.paginate)(
1624
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1625
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1626
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishProfessionalCategories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1476
1627
  }
1477
1628
  /**
1478
1629
  * Fetch all spanish_professional_categories across all pages into a single array.
@@ -1500,8 +1651,11 @@ class ContractsSpanishWorkingDayTypesResource {
1500
1651
  * @example for await (const item of client.contracts.spanishWorkingDayTypes.paginate()) { ... }
1501
1652
  */
1502
1653
  paginate(options) {
1503
- const { maxItems, ...rest } = options ?? {};
1504
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishWorkingDayTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1654
+ const { maxItems, limit, ...rest } = options ?? {};
1655
+ return (0, pagination_js_1.paginate)(
1656
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1657
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1658
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsSpanishWorkingDayTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1505
1659
  }
1506
1660
  /**
1507
1661
  * Fetch all spanish_working_day_types across all pages into a single array.
@@ -1529,8 +1683,11 @@ class ContractsTaxonomiesResource {
1529
1683
  * @example for await (const item of client.contracts.taxonomies.paginate()) { ... }
1530
1684
  */
1531
1685
  paginate(options) {
1532
- const { maxItems, ...rest } = options ?? {};
1533
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsTaxonomies)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1686
+ const { maxItems, limit, ...rest } = options ?? {};
1687
+ return (0, pagination_js_1.paginate)(
1688
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1689
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1690
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesContractsTaxonomies)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1534
1691
  }
1535
1692
  /**
1536
1693
  * Fetch all taxonomies across all pages into a single array.
@@ -1556,8 +1713,11 @@ class CustomFieldsFieldsResource {
1556
1713
  * @example for await (const item of client.customFields.fields.paginate()) { ... }
1557
1714
  */
1558
1715
  paginate(options) {
1559
- const { maxItems, ...rest } = options ?? {};
1560
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsFields)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1716
+ const { maxItems, limit, ...rest } = options ?? {};
1717
+ return (0, pagination_js_1.paginate)(
1718
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1719
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1720
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsFields)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1561
1721
  }
1562
1722
  /**
1563
1723
  * Fetch all fields across all pages into a single array.
@@ -1587,8 +1747,11 @@ class CustomFieldsOptionsResource {
1587
1747
  * @example for await (const item of client.customFields.options.paginate()) { ... }
1588
1748
  */
1589
1749
  paginate(options) {
1590
- const { maxItems, ...rest } = options ?? {};
1591
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsOptions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1750
+ const { maxItems, limit, ...rest } = options ?? {};
1751
+ return (0, pagination_js_1.paginate)(
1752
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1753
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1754
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsOptions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1592
1755
  }
1593
1756
  /**
1594
1757
  * Fetch all options across all pages into a single array.
@@ -1616,8 +1779,11 @@ class CustomFieldsResourceFieldsResource {
1616
1779
  * @example for await (const item of client.customFields.resourceFields.paginate()) { ... }
1617
1780
  */
1618
1781
  paginate(options) {
1619
- const { maxItems, ...rest } = options ?? {};
1620
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsResourceFields)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1782
+ const { maxItems, limit, ...rest } = options ?? {};
1783
+ return (0, pagination_js_1.paginate)(
1784
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1785
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1786
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsResourceFields)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1621
1787
  }
1622
1788
  /**
1623
1789
  * Fetch all resource_fields across all pages into a single array.
@@ -1645,8 +1811,11 @@ class CustomFieldsValuesResource {
1645
1811
  * @example for await (const item of client.customFields.values.paginate()) { ... }
1646
1812
  */
1647
1813
  paginate(options) {
1648
- const { maxItems, ...rest } = options ?? {};
1649
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsValues)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1814
+ const { maxItems, limit, ...rest } = options ?? {};
1815
+ return (0, pagination_js_1.paginate)(
1816
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1817
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1818
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomFieldsValues)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1650
1819
  }
1651
1820
  /**
1652
1821
  * Fetch all values across all pages into a single array.
@@ -1676,8 +1845,11 @@ class CustomResourcesResourcesResource {
1676
1845
  * @example for await (const item of client.customResources.resources.paginate()) { ... }
1677
1846
  */
1678
1847
  paginate(options) {
1679
- const { maxItems, ...rest } = options ?? {};
1680
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesResources)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1848
+ const { maxItems, limit, ...rest } = options ?? {};
1849
+ return (0, pagination_js_1.paginate)(
1850
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1851
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1852
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesResources)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1681
1853
  }
1682
1854
  /**
1683
1855
  * Fetch all resources across all pages into a single array.
@@ -1703,8 +1875,11 @@ class CustomResourcesSchemasResource {
1703
1875
  * @example for await (const item of client.customResources.schemas.paginate()) { ... }
1704
1876
  */
1705
1877
  paginate(options) {
1706
- const { maxItems, ...rest } = options ?? {};
1707
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesSchemas)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1878
+ const { maxItems, limit, ...rest } = options ?? {};
1879
+ return (0, pagination_js_1.paginate)(
1880
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1881
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1882
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesSchemas)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1708
1883
  }
1709
1884
  /**
1710
1885
  * Fetch all schemas across all pages into a single array.
@@ -1732,8 +1907,11 @@ class CustomResourcesValuesResource {
1732
1907
  * @example for await (const item of client.customResources.values.paginate()) { ... }
1733
1908
  */
1734
1909
  paginate(options) {
1735
- const { maxItems, ...rest } = options ?? {};
1736
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesValues)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1910
+ const { maxItems, limit, ...rest } = options ?? {};
1911
+ return (0, pagination_js_1.paginate)(
1912
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1913
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1914
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesCustomResourcesValues)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1737
1915
  }
1738
1916
  /**
1739
1917
  * Fetch all values across all pages into a single array.
@@ -1761,8 +1939,11 @@ class DocumentsDocumentsResource {
1761
1939
  * @example for await (const item of client.documents.documents.paginate()) { ... }
1762
1940
  */
1763
1941
  paginate(options) {
1764
- const { maxItems, ...rest } = options ?? {};
1765
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesDocumentsDocuments)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1942
+ const { maxItems, limit, ...rest } = options ?? {};
1943
+ return (0, pagination_js_1.paginate)(
1944
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1945
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1946
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesDocumentsDocuments)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1766
1947
  }
1767
1948
  /**
1768
1949
  * Fetch all documents across all pages into a single array.
@@ -1808,8 +1989,11 @@ class DocumentsFoldersResource {
1808
1989
  * @example for await (const item of client.documents.folders.paginate()) { ... }
1809
1990
  */
1810
1991
  paginate(options) {
1811
- const { maxItems, ...rest } = options ?? {};
1812
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesDocumentsFolders)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
1992
+ const { maxItems, limit, ...rest } = options ?? {};
1993
+ return (0, pagination_js_1.paginate)(
1994
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
1995
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1996
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesDocumentsFolders)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1813
1997
  }
1814
1998
  /**
1815
1999
  * Fetch all folders across all pages into a single array.
@@ -1839,8 +2023,11 @@ class EmployeeUpdatesAbsencesResource {
1839
2023
  * @example for await (const item of client.employeeUpdates.absences.paginate()) { ... }
1840
2024
  */
1841
2025
  paginate(options) {
1842
- const { maxItems, ...rest } = options ?? {};
1843
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesAbsences)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2026
+ const { maxItems, limit, ...rest } = options ?? {};
2027
+ return (0, pagination_js_1.paginate)(
2028
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2029
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2030
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesAbsences)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1844
2031
  }
1845
2032
  /**
1846
2033
  * Fetch all absences across all pages into a single array.
@@ -1866,8 +2053,11 @@ class EmployeeUpdatesContractChangesResource {
1866
2053
  * @example for await (const item of client.employeeUpdates.contractChanges.paginate()) { ... }
1867
2054
  */
1868
2055
  paginate(options) {
1869
- const { maxItems, ...rest } = options ?? {};
1870
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesContractChanges)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2056
+ const { maxItems, limit, ...rest } = options ?? {};
2057
+ return (0, pagination_js_1.paginate)(
2058
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2059
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2060
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesContractChanges)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1871
2061
  }
1872
2062
  /**
1873
2063
  * Fetch all contract_changes across all pages into a single array.
@@ -1893,8 +2083,11 @@ class EmployeeUpdatesNewHiresResource {
1893
2083
  * @example for await (const item of client.employeeUpdates.newHires.paginate()) { ... }
1894
2084
  */
1895
2085
  paginate(options) {
1896
- const { maxItems, ...rest } = options ?? {};
1897
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesNewHires)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2086
+ const { maxItems, limit, ...rest } = options ?? {};
2087
+ return (0, pagination_js_1.paginate)(
2088
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2089
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2090
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesNewHires)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1898
2091
  }
1899
2092
  /**
1900
2093
  * Fetch all new_hires across all pages into a single array.
@@ -1920,8 +2113,11 @@ class EmployeeUpdatesPersonalChangesResource {
1920
2113
  * @example for await (const item of client.employeeUpdates.personalChanges.paginate()) { ... }
1921
2114
  */
1922
2115
  paginate(options) {
1923
- const { maxItems, ...rest } = options ?? {};
1924
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesPersonalChanges)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2116
+ const { maxItems, limit, ...rest } = options ?? {};
2117
+ return (0, pagination_js_1.paginate)(
2118
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2119
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2120
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesPersonalChanges)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1925
2121
  }
1926
2122
  /**
1927
2123
  * Fetch all personal_changes across all pages into a single array.
@@ -1947,8 +2143,11 @@ class EmployeeUpdatesSummariesResource {
1947
2143
  * @example for await (const item of client.employeeUpdates.summaries.paginate()) { ... }
1948
2144
  */
1949
2145
  paginate(options) {
1950
- const { maxItems, ...rest } = options ?? {};
1951
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesSummaries)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2146
+ const { maxItems, limit, ...rest } = options ?? {};
2147
+ return (0, pagination_js_1.paginate)(
2148
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2149
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2150
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesSummaries)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1952
2151
  }
1953
2152
  /**
1954
2153
  * Fetch all summaries across all pages into a single array.
@@ -1974,8 +2173,11 @@ class EmployeeUpdatesTerminationsResource {
1974
2173
  * @example for await (const item of client.employeeUpdates.terminations.paginate()) { ... }
1975
2174
  */
1976
2175
  paginate(options) {
1977
- const { maxItems, ...rest } = options ?? {};
1978
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesTerminations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2176
+ const { maxItems, limit, ...rest } = options ?? {};
2177
+ return (0, pagination_js_1.paginate)(
2178
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2179
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2180
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeeUpdatesTerminations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
1979
2181
  }
1980
2182
  /**
1981
2183
  * Fetch all terminations across all pages into a single array.
@@ -2001,8 +2203,11 @@ class EmployeesEmployeesResource {
2001
2203
  * @example for await (const item of client.employees.employees.paginate()) { ... }
2002
2204
  */
2003
2205
  paginate(options) {
2004
- const { maxItems, ...rest } = options ?? {};
2005
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeesEmployees)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2206
+ const { maxItems, limit, ...rest } = options ?? {};
2207
+ return (0, pagination_js_1.paginate)(
2208
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2209
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2210
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesEmployeesEmployees)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2006
2211
  }
2007
2212
  /**
2008
2213
  * Fetch all employees across all pages into a single array.
@@ -2040,8 +2245,11 @@ class ExpensesExpensablesResource {
2040
2245
  * @example for await (const item of client.expenses.expensables.paginate()) { ... }
2041
2246
  */
2042
2247
  paginate(options) {
2043
- const { maxItems, ...rest } = options ?? {};
2044
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesExpensables)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2248
+ const { maxItems, limit, ...rest } = options ?? {};
2249
+ return (0, pagination_js_1.paginate)(
2250
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2251
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2252
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesExpensables)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2045
2253
  }
2046
2254
  /**
2047
2255
  * Fetch all expensables across all pages into a single array.
@@ -2071,8 +2279,11 @@ class ExpensesExpensesResource {
2071
2279
  * @example for await (const item of client.expenses.expenses.paginate()) { ... }
2072
2280
  */
2073
2281
  paginate(options) {
2074
- const { maxItems, ...rest } = options ?? {};
2075
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesExpenses)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2282
+ const { maxItems, limit, ...rest } = options ?? {};
2283
+ return (0, pagination_js_1.paginate)(
2284
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2285
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2286
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesExpenses)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2076
2287
  }
2077
2288
  /**
2078
2289
  * Fetch all expenses across all pages into a single array.
@@ -2098,8 +2309,11 @@ class ExpensesMileagesResource {
2098
2309
  * @example for await (const item of client.expenses.mileages.paginate()) { ... }
2099
2310
  */
2100
2311
  paginate(options) {
2101
- const { maxItems, ...rest } = options ?? {};
2102
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesMileages)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2312
+ const { maxItems, limit, ...rest } = options ?? {};
2313
+ return (0, pagination_js_1.paginate)(
2314
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2315
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2316
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesMileages)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2103
2317
  }
2104
2318
  /**
2105
2319
  * Fetch all mileages across all pages into a single array.
@@ -2125,8 +2339,11 @@ class ExpensesPerDiemsResource {
2125
2339
  * @example for await (const item of client.expenses.perDiems.paginate()) { ... }
2126
2340
  */
2127
2341
  paginate(options) {
2128
- const { maxItems, ...rest } = options ?? {};
2129
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesPerDiems)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2342
+ const { maxItems, limit, ...rest } = options ?? {};
2343
+ return (0, pagination_js_1.paginate)(
2344
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2345
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2346
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesExpensesPerDiems)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2130
2347
  }
2131
2348
  /**
2132
2349
  * Fetch all per_diems across all pages into a single array.
@@ -2152,8 +2369,11 @@ class FinanceAccountingSettingsResource {
2152
2369
  * @example for await (const item of client.finance.accountingSettings.paginate()) { ... }
2153
2370
  */
2154
2371
  paginate(options) {
2155
- const { maxItems, ...rest } = options ?? {};
2156
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceAccountingSettings)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2372
+ const { maxItems, limit, ...rest } = options ?? {};
2373
+ return (0, pagination_js_1.paginate)(
2374
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2375
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2376
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceAccountingSettings)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2157
2377
  }
2158
2378
  /**
2159
2379
  * Fetch all accounting_settings across all pages into a single array.
@@ -2181,8 +2401,11 @@ class FinanceAccountsResource {
2181
2401
  * @example for await (const item of client.finance.accounts.paginate()) { ... }
2182
2402
  */
2183
2403
  paginate(options) {
2184
- const { maxItems, ...rest } = options ?? {};
2185
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceAccounts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2404
+ const { maxItems, limit, ...rest } = options ?? {};
2405
+ return (0, pagination_js_1.paginate)(
2406
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2407
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2408
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceAccounts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2186
2409
  }
2187
2410
  /**
2188
2411
  * Fetch all accounts across all pages into a single array.
@@ -2212,8 +2435,11 @@ class FinanceBudgetOptionsResource {
2212
2435
  * @example for await (const item of client.finance.budgetOptions.paginate()) { ... }
2213
2436
  */
2214
2437
  paginate(options) {
2215
- const { maxItems, ...rest } = options ?? {};
2216
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceBudgetOptions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2438
+ const { maxItems, limit, ...rest } = options ?? {};
2439
+ return (0, pagination_js_1.paginate)(
2440
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2441
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2442
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceBudgetOptions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2217
2443
  }
2218
2444
  /**
2219
2445
  * Fetch all budget_options across all pages into a single array.
@@ -2239,8 +2465,11 @@ class FinanceCategoriesResource {
2239
2465
  * @example for await (const item of client.finance.categories.paginate()) { ... }
2240
2466
  */
2241
2467
  paginate(options) {
2242
- const { maxItems, ...rest } = options ?? {};
2243
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCategories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2468
+ const { maxItems, limit, ...rest } = options ?? {};
2469
+ return (0, pagination_js_1.paginate)(
2470
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2471
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2472
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCategories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2244
2473
  }
2245
2474
  /**
2246
2475
  * Fetch all categories across all pages into a single array.
@@ -2266,8 +2495,11 @@ class FinanceContactsResource {
2266
2495
  * @example for await (const item of client.finance.contacts.paginate()) { ... }
2267
2496
  */
2268
2497
  paginate(options) {
2269
- const { maxItems, ...rest } = options ?? {};
2270
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceContacts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2498
+ const { maxItems, limit, ...rest } = options ?? {};
2499
+ return (0, pagination_js_1.paginate)(
2500
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2501
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2502
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceContacts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2271
2503
  }
2272
2504
  /**
2273
2505
  * Fetch all contacts across all pages into a single array.
@@ -2297,8 +2529,11 @@ class FinanceCostCenterMembershipsResource {
2297
2529
  * @example for await (const item of client.finance.costCenterMemberships.paginate()) { ... }
2298
2530
  */
2299
2531
  paginate(options) {
2300
- const { maxItems, ...rest } = options ?? {};
2301
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCostCenterMemberships)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2532
+ const { maxItems, limit, ...rest } = options ?? {};
2533
+ return (0, pagination_js_1.paginate)(
2534
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2535
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2536
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCostCenterMemberships)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2302
2537
  }
2303
2538
  /**
2304
2539
  * Fetch all cost_center_memberships across all pages into a single array.
@@ -2324,8 +2559,11 @@ class FinanceCostCentersResource {
2324
2559
  * @example for await (const item of client.finance.costCenters.paginate()) { ... }
2325
2560
  */
2326
2561
  paginate(options) {
2327
- const { maxItems, ...rest } = options ?? {};
2328
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCostCenters)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2562
+ const { maxItems, limit, ...rest } = options ?? {};
2563
+ return (0, pagination_js_1.paginate)(
2564
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2565
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2566
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceCostCenters)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2329
2567
  }
2330
2568
  /**
2331
2569
  * Fetch all cost_centers across all pages into a single array.
@@ -2357,8 +2595,11 @@ class FinanceFinancialDocumentsResource {
2357
2595
  * @example for await (const item of client.finance.financialDocuments.paginate()) { ... }
2358
2596
  */
2359
2597
  paginate(options) {
2360
- const { maxItems, ...rest } = options ?? {};
2361
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceFinancialDocuments)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2598
+ const { maxItems, limit, ...rest } = options ?? {};
2599
+ return (0, pagination_js_1.paginate)(
2600
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2601
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2602
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceFinancialDocuments)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2362
2603
  }
2363
2604
  /**
2364
2605
  * Fetch all financial_documents across all pages into a single array.
@@ -2388,8 +2629,11 @@ class FinanceJournalEntriesResource {
2388
2629
  * @example for await (const item of client.finance.journalEntries.paginate()) { ... }
2389
2630
  */
2390
2631
  paginate(options) {
2391
- const { maxItems, ...rest } = options ?? {};
2392
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceJournalEntries)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2632
+ const { maxItems, limit, ...rest } = options ?? {};
2633
+ return (0, pagination_js_1.paginate)(
2634
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2635
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2636
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceJournalEntries)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2393
2637
  }
2394
2638
  /**
2395
2639
  * Fetch all journal_entries across all pages into a single array.
@@ -2417,8 +2661,11 @@ class FinanceJournalLinesResource {
2417
2661
  * @example for await (const item of client.finance.journalLines.paginate()) { ... }
2418
2662
  */
2419
2663
  paginate(options) {
2420
- const { maxItems, ...rest } = options ?? {};
2421
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceJournalLines)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2664
+ const { maxItems, limit, ...rest } = options ?? {};
2665
+ return (0, pagination_js_1.paginate)(
2666
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2667
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2668
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceJournalLines)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2422
2669
  }
2423
2670
  /**
2424
2671
  * Fetch all journal_lines across all pages into a single array.
@@ -2444,8 +2691,11 @@ class FinanceLedgerAccountResourcesResource {
2444
2691
  * @example for await (const item of client.finance.ledgerAccountResources.paginate()) { ... }
2445
2692
  */
2446
2693
  paginate(options) {
2447
- const { maxItems, ...rest } = options ?? {};
2448
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceLedgerAccountResources)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2694
+ const { maxItems, limit, ...rest } = options ?? {};
2695
+ return (0, pagination_js_1.paginate)(
2696
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2697
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2698
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceLedgerAccountResources)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2449
2699
  }
2450
2700
  /**
2451
2701
  * Fetch all ledger_account_resources across all pages into a single array.
@@ -2473,8 +2723,11 @@ class FinanceTaxRatesResource {
2473
2723
  * @example for await (const item of client.finance.taxRates.paginate()) { ... }
2474
2724
  */
2475
2725
  paginate(options) {
2476
- const { maxItems, ...rest } = options ?? {};
2477
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceTaxRates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2726
+ const { maxItems, limit, ...rest } = options ?? {};
2727
+ return (0, pagination_js_1.paginate)(
2728
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2729
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2730
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceTaxRates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2478
2731
  }
2479
2732
  /**
2480
2733
  * Fetch all tax_rates across all pages into a single array.
@@ -2504,8 +2757,11 @@ class FinanceTaxTypesResource {
2504
2757
  * @example for await (const item of client.finance.taxTypes.paginate()) { ... }
2505
2758
  */
2506
2759
  paginate(options) {
2507
- const { maxItems, ...rest } = options ?? {};
2508
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceTaxTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2760
+ const { maxItems, limit, ...rest } = options ?? {};
2761
+ return (0, pagination_js_1.paginate)(
2762
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2763
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2764
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesFinanceTaxTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2509
2765
  }
2510
2766
  /**
2511
2767
  * Fetch all tax_types across all pages into a single array.
@@ -2535,8 +2791,11 @@ class HolidaysCompanyHolidaysResource {
2535
2791
  * @example for await (const item of client.holidays.companyHolidays.paginate()) { ... }
2536
2792
  */
2537
2793
  paginate(options) {
2538
- const { maxItems, ...rest } = options ?? {};
2539
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesHolidaysCompanyHolidays)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2794
+ const { maxItems, limit, ...rest } = options ?? {};
2795
+ return (0, pagination_js_1.paginate)(
2796
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2797
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2798
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesHolidaysCompanyHolidays)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2540
2799
  }
2541
2800
  /**
2542
2801
  * Fetch all company_holidays across all pages into a single array.
@@ -2572,8 +2831,11 @@ class IntegrationsSyncRunsResource {
2572
2831
  * @example for await (const item of client.integrations.syncRuns.paginate()) { ... }
2573
2832
  */
2574
2833
  paginate(options) {
2575
- const { maxItems, ...rest } = options ?? {};
2576
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncRuns)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2834
+ const { maxItems, limit, ...rest } = options ?? {};
2835
+ return (0, pagination_js_1.paginate)(
2836
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2837
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2838
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncRuns)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2577
2839
  }
2578
2840
  /**
2579
2841
  * Fetch all sync_runs across all pages into a single array.
@@ -2601,8 +2863,11 @@ class IntegrationsSyncableStatesResource {
2601
2863
  * @example for await (const item of client.integrations.syncableStates.paginate()) { ... }
2602
2864
  */
2603
2865
  paginate(options) {
2604
- const { maxItems, ...rest } = options ?? {};
2605
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncableStates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2866
+ const { maxItems, limit, ...rest } = options ?? {};
2867
+ return (0, pagination_js_1.paginate)(
2868
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2869
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2870
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncableStates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2606
2871
  }
2607
2872
  /**
2608
2873
  * Fetch all syncable_states across all pages into a single array.
@@ -2628,8 +2893,11 @@ class IntegrationsSyncableSyncRunsResource {
2628
2893
  * @example for await (const item of client.integrations.syncableSyncRuns.paginate()) { ... }
2629
2894
  */
2630
2895
  paginate(options) {
2631
- const { maxItems, ...rest } = options ?? {};
2632
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncableSyncRuns)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2896
+ const { maxItems, limit, ...rest } = options ?? {};
2897
+ return (0, pagination_js_1.paginate)(
2898
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2899
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2900
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesIntegrationsSyncableSyncRuns)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2633
2901
  }
2634
2902
  /**
2635
2903
  * Fetch all syncable_sync_runs across all pages into a single array.
@@ -2659,8 +2927,11 @@ class ItManagementAssetCategoriesResource {
2659
2927
  * @example for await (const item of client.itManagement.assetCategories.paginate()) { ... }
2660
2928
  */
2661
2929
  paginate(options) {
2662
- const { maxItems, ...rest } = options ?? {};
2663
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementAssetCategories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2930
+ const { maxItems, limit, ...rest } = options ?? {};
2931
+ return (0, pagination_js_1.paginate)(
2932
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2933
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2934
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementAssetCategories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2664
2935
  }
2665
2936
  /**
2666
2937
  * Fetch all asset_categories across all pages into a single array.
@@ -2686,8 +2957,11 @@ class ItManagementItAssetModelsResource {
2686
2957
  * @example for await (const item of client.itManagement.itAssetModels.paginate()) { ... }
2687
2958
  */
2688
2959
  paginate(options) {
2689
- const { maxItems, ...rest } = options ?? {};
2690
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementItAssetModels)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2960
+ const { maxItems, limit, ...rest } = options ?? {};
2961
+ return (0, pagination_js_1.paginate)(
2962
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2963
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2964
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementItAssetModels)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2691
2965
  }
2692
2966
  /**
2693
2967
  * Fetch all it_asset_models across all pages into a single array.
@@ -2717,8 +2991,11 @@ class ItManagementItAssetsResource {
2717
2991
  * @example for await (const item of client.itManagement.itAssets.paginate()) { ... }
2718
2992
  */
2719
2993
  paginate(options) {
2720
- const { maxItems, ...rest } = options ?? {};
2721
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementItAssets)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
2994
+ const { maxItems, limit, ...rest } = options ?? {};
2995
+ return (0, pagination_js_1.paginate)(
2996
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
2997
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2998
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesItManagementItAssets)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2722
2999
  }
2723
3000
  /**
2724
3001
  * Fetch all it_assets across all pages into a single array.
@@ -2750,8 +3027,11 @@ class JobCatalogLevelsResource {
2750
3027
  * @example for await (const item of client.jobCatalog.levels.paginate()) { ... }
2751
3028
  */
2752
3029
  paginate(options) {
2753
- const { maxItems, ...rest } = options ?? {};
2754
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogLevels)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3030
+ const { maxItems, limit, ...rest } = options ?? {};
3031
+ return (0, pagination_js_1.paginate)(
3032
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3033
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3034
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogLevels)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2755
3035
  }
2756
3036
  /**
2757
3037
  * Fetch all levels across all pages into a single array.
@@ -2777,8 +3057,11 @@ class JobCatalogNodeAttributesResource {
2777
3057
  * @example for await (const item of client.jobCatalog.nodeAttributes.paginate()) { ... }
2778
3058
  */
2779
3059
  paginate(options) {
2780
- const { maxItems, ...rest } = options ?? {};
2781
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogNodeAttributes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3060
+ const { maxItems, limit, ...rest } = options ?? {};
3061
+ return (0, pagination_js_1.paginate)(
3062
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3063
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3064
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogNodeAttributes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2782
3065
  }
2783
3066
  /**
2784
3067
  * Fetch all node_attributes across all pages into a single array.
@@ -2802,8 +3085,11 @@ class JobCatalogRolesResource {
2802
3085
  * @example for await (const item of client.jobCatalog.roles.paginate()) { ... }
2803
3086
  */
2804
3087
  paginate(options) {
2805
- const { maxItems, ...rest } = options ?? {};
2806
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogRoles)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3088
+ const { maxItems, limit, ...rest } = options ?? {};
3089
+ return (0, pagination_js_1.paginate)(
3090
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3091
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3092
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogRoles)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2807
3093
  }
2808
3094
  /**
2809
3095
  * Fetch all roles across all pages into a single array.
@@ -2829,8 +3115,11 @@ class JobCatalogTreeNodesResource {
2829
3115
  * @example for await (const item of client.jobCatalog.treeNodes.paginate()) { ... }
2830
3116
  */
2831
3117
  paginate(options) {
2832
- const { maxItems, ...rest } = options ?? {};
2833
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogTreeNodes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3118
+ const { maxItems, limit, ...rest } = options ?? {};
3119
+ return (0, pagination_js_1.paginate)(
3120
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3121
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3122
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesJobCatalogTreeNodes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2834
3123
  }
2835
3124
  /**
2836
3125
  * Fetch all tree_nodes across all pages into a single array.
@@ -2854,8 +3143,11 @@ class LocationsLocationsResource {
2854
3143
  * @example for await (const item of client.locations.locations.paginate()) { ... }
2855
3144
  */
2856
3145
  paginate(options) {
2857
- const { maxItems, ...rest } = options ?? {};
2858
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesLocationsLocations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3146
+ const { maxItems, limit, ...rest } = options ?? {};
3147
+ return (0, pagination_js_1.paginate)(
3148
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3149
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3150
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesLocationsLocations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2859
3151
  }
2860
3152
  /**
2861
3153
  * Fetch all locations across all pages into a single array.
@@ -2887,8 +3179,11 @@ class LocationsWorkAreasResource {
2887
3179
  * @example for await (const item of client.locations.workAreas.paginate()) { ... }
2888
3180
  */
2889
3181
  paginate(options) {
2890
- const { maxItems, ...rest } = options ?? {};
2891
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesLocationsWorkAreas)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3182
+ const { maxItems, limit, ...rest } = options ?? {};
3183
+ return (0, pagination_js_1.paginate)(
3184
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3185
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3186
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesLocationsWorkAreas)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2892
3187
  }
2893
3188
  /**
2894
3189
  * Fetch all work_areas across all pages into a single array.
@@ -2922,8 +3217,11 @@ class MarketplaceInstallationSettingsResource {
2922
3217
  * @example for await (const item of client.marketplace.installationSettings.paginate()) { ... }
2923
3218
  */
2924
3219
  paginate(options) {
2925
- const { maxItems, ...rest } = options ?? {};
2926
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesMarketplaceInstallationSettings)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3220
+ const { maxItems, limit, ...rest } = options ?? {};
3221
+ return (0, pagination_js_1.paginate)(
3222
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3223
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3224
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesMarketplaceInstallationSettings)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2927
3225
  }
2928
3226
  /**
2929
3227
  * Fetch all installation_settings across all pages into a single array.
@@ -2957,8 +3255,11 @@ class PayrollFamilySituationsResource {
2957
3255
  * @example for await (const item of client.payroll.familySituations.paginate()) { ... }
2958
3256
  */
2959
3257
  paginate(options) {
2960
- const { maxItems, ...rest } = options ?? {};
2961
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollFamilySituations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3258
+ const { maxItems, limit, ...rest } = options ?? {};
3259
+ return (0, pagination_js_1.paginate)(
3260
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3261
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3262
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollFamilySituations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
2962
3263
  }
2963
3264
  /**
2964
3265
  * Fetch all family_situations across all pages into a single array.
@@ -2996,8 +3297,11 @@ class PayrollSupplementsResource {
2996
3297
  * @example for await (const item of client.payroll.supplements.paginate()) { ... }
2997
3298
  */
2998
3299
  paginate(options) {
2999
- const { maxItems, ...rest } = options ?? {};
3000
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollSupplements)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3300
+ const { maxItems, limit, ...rest } = options ?? {};
3301
+ return (0, pagination_js_1.paginate)(
3302
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3303
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3304
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollSupplements)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3001
3305
  }
3002
3306
  /**
3003
3307
  * Fetch all supplements across all pages into a single array.
@@ -3029,8 +3333,11 @@ class PayrollEmployeesGermanEmployeeDataResource {
3029
3333
  * @example for await (const item of client.payrollEmployees.germanEmployeeData.paginate()) { ... }
3030
3334
  */
3031
3335
  paginate(options) {
3032
- const { maxItems, ...rest } = options ?? {};
3033
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollEmployeesGermanEmployeeData)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3336
+ const { maxItems, limit, ...rest } = options ?? {};
3337
+ return (0, pagination_js_1.paginate)(
3338
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3339
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3340
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollEmployeesGermanEmployeeData)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3034
3341
  }
3035
3342
  /**
3036
3343
  * Fetch all german_employee_data across all pages into a single array.
@@ -3060,8 +3367,11 @@ class PayrollEmployeesIdentifiersResource {
3060
3367
  * @example for await (const item of client.payrollEmployees.identifiers.paginate()) { ... }
3061
3368
  */
3062
3369
  paginate(options) {
3063
- const { maxItems, ...rest } = options ?? {};
3064
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollEmployeesIdentifiers)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3370
+ const { maxItems, limit, ...rest } = options ?? {};
3371
+ return (0, pagination_js_1.paginate)(
3372
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3373
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3374
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollEmployeesIdentifiers)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3065
3375
  }
3066
3376
  /**
3067
3377
  * Fetch all identifiers across all pages into a single array.
@@ -3093,8 +3403,11 @@ class PayrollIntegrationsBaseCodesResource {
3093
3403
  * @example for await (const item of client.payrollIntegrationsBase.codes.paginate()) { ... }
3094
3404
  */
3095
3405
  paginate(options) {
3096
- const { maxItems, ...rest } = options ?? {};
3097
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollIntegrationsBaseCodes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3406
+ const { maxItems, limit, ...rest } = options ?? {};
3407
+ return (0, pagination_js_1.paginate)(
3408
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3409
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3410
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPayrollIntegrationsBaseCodes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3098
3411
  }
3099
3412
  /**
3100
3413
  * Fetch all codes across all pages into a single array.
@@ -3124,8 +3437,11 @@ class PerformanceAgreementsResource {
3124
3437
  * @example for await (const item of client.performance.agreements.paginate()) { ... }
3125
3438
  */
3126
3439
  paginate(options) {
3127
- const { maxItems, ...rest } = options ?? {};
3128
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceAgreements)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3440
+ const { maxItems, limit, ...rest } = options ?? {};
3441
+ return (0, pagination_js_1.paginate)(
3442
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3443
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3444
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceAgreements)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3129
3445
  }
3130
3446
  /**
3131
3447
  * Fetch all agreements across all pages into a single array.
@@ -3155,8 +3471,11 @@ class PerformanceCompanyEmployeeScoreScalesResource {
3155
3471
  * @example for await (const item of client.performance.companyEmployeeScoreScales.paginate()) { ... }
3156
3472
  */
3157
3473
  paginate(options) {
3158
- const { maxItems, ...rest } = options ?? {};
3159
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceCompanyEmployeeScoreScales)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3474
+ const { maxItems, limit, ...rest } = options ?? {};
3475
+ return (0, pagination_js_1.paginate)(
3476
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3477
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3478
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceCompanyEmployeeScoreScales)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3160
3479
  }
3161
3480
  /**
3162
3481
  * Fetch all company_employee_score_scales across all pages into a single array.
@@ -3184,8 +3503,11 @@ class PerformanceEmployeeScoreScalesResource {
3184
3503
  * @example for await (const item of client.performance.employeeScoreScales.paginate()) { ... }
3185
3504
  */
3186
3505
  paginate(options) {
3187
- const { maxItems, ...rest } = options ?? {};
3188
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceEmployeeScoreScales)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3506
+ const { maxItems, limit, ...rest } = options ?? {};
3507
+ return (0, pagination_js_1.paginate)(
3508
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3509
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3510
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceEmployeeScoreScales)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3189
3511
  }
3190
3512
  /**
3191
3513
  * Fetch all employee_score_scales across all pages into a single array.
@@ -3211,8 +3533,11 @@ class PerformanceReviewEvaluationAnswersResource {
3211
3533
  * @example for await (const item of client.performance.reviewEvaluationAnswers.paginate()) { ... }
3212
3534
  */
3213
3535
  paginate(options) {
3214
- const { maxItems, ...rest } = options ?? {};
3215
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluationAnswers)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3536
+ const { maxItems, limit, ...rest } = options ?? {};
3537
+ return (0, pagination_js_1.paginate)(
3538
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3539
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3540
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluationAnswers)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3216
3541
  }
3217
3542
  /**
3218
3543
  * Fetch all review_evaluation_answers across all pages into a single array.
@@ -3236,8 +3561,11 @@ class PerformanceReviewEvaluationScoresResource {
3236
3561
  * @example for await (const item of client.performance.reviewEvaluationScores.paginate()) { ... }
3237
3562
  */
3238
3563
  paginate(options) {
3239
- const { maxItems, ...rest } = options ?? {};
3240
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluationScores)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3564
+ const { maxItems, limit, ...rest } = options ?? {};
3565
+ return (0, pagination_js_1.paginate)(
3566
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3567
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3568
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluationScores)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3241
3569
  }
3242
3570
  /**
3243
3571
  * Fetch all review_evaluation_scores across all pages into a single array.
@@ -3263,8 +3591,11 @@ class PerformanceReviewEvaluationsResource {
3263
3591
  * @example for await (const item of client.performance.reviewEvaluations.paginate()) { ... }
3264
3592
  */
3265
3593
  paginate(options) {
3266
- const { maxItems, ...rest } = options ?? {};
3267
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3594
+ const { maxItems, limit, ...rest } = options ?? {};
3595
+ return (0, pagination_js_1.paginate)(
3596
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3597
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3598
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewEvaluations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3268
3599
  }
3269
3600
  /**
3270
3601
  * Fetch all review_evaluations across all pages into a single array.
@@ -3292,8 +3623,11 @@ class PerformanceReviewOwnersResource {
3292
3623
  * @example for await (const item of client.performance.reviewOwners.paginate()) { ... }
3293
3624
  */
3294
3625
  paginate(options) {
3295
- const { maxItems, ...rest } = options ?? {};
3296
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewOwners)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3626
+ const { maxItems, limit, ...rest } = options ?? {};
3627
+ return (0, pagination_js_1.paginate)(
3628
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3629
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3630
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewOwners)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3297
3631
  }
3298
3632
  /**
3299
3633
  * Fetch all review_owners across all pages into a single array.
@@ -3321,8 +3655,11 @@ class PerformanceReviewProcessCustomTemplatesResource {
3321
3655
  * @example for await (const item of client.performance.reviewProcessCustomTemplates.paginate()) { ... }
3322
3656
  */
3323
3657
  paginate(options) {
3324
- const { maxItems, ...rest } = options ?? {};
3325
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessCustomTemplates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3658
+ const { maxItems, limit, ...rest } = options ?? {};
3659
+ return (0, pagination_js_1.paginate)(
3660
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3661
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3662
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessCustomTemplates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3326
3663
  }
3327
3664
  /**
3328
3665
  * Fetch all review_process_custom_templates across all pages into a single array.
@@ -3348,8 +3685,11 @@ class PerformanceReviewProcessEstimatedTargetsResource {
3348
3685
  * @example for await (const item of client.performance.reviewProcessEstimatedTargets.paginate()) { ... }
3349
3686
  */
3350
3687
  paginate(options) {
3351
- const { maxItems, ...rest } = options ?? {};
3352
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessEstimatedTargets)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3688
+ const { maxItems, limit, ...rest } = options ?? {};
3689
+ return (0, pagination_js_1.paginate)(
3690
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3691
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3692
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessEstimatedTargets)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3353
3693
  }
3354
3694
  /**
3355
3695
  * Fetch all review_process_estimated_targets across all pages into a single array.
@@ -3373,8 +3713,11 @@ class PerformanceReviewProcessTargetsResource {
3373
3713
  * @example for await (const item of client.performance.reviewProcessTargets.paginate()) { ... }
3374
3714
  */
3375
3715
  paginate(options) {
3376
- const { maxItems, ...rest } = options ?? {};
3377
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessTargets)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3716
+ const { maxItems, limit, ...rest } = options ?? {};
3717
+ return (0, pagination_js_1.paginate)(
3718
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3719
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3720
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcessTargets)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3378
3721
  }
3379
3722
  /**
3380
3723
  * Fetch all review_process_targets across all pages into a single array.
@@ -3408,8 +3751,11 @@ class PerformanceReviewProcessesResource {
3408
3751
  * @example for await (const item of client.performance.reviewProcesses.paginate()) { ... }
3409
3752
  */
3410
3753
  paginate(options) {
3411
- const { maxItems, ...rest } = options ?? {};
3412
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcesses)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3754
+ const { maxItems, limit, ...rest } = options ?? {};
3755
+ return (0, pagination_js_1.paginate)(
3756
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3757
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3758
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewProcesses)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3413
3759
  }
3414
3760
  /**
3415
3761
  * Fetch all review_processes across all pages into a single array.
@@ -3473,8 +3819,11 @@ class PerformanceReviewQuestionnaireByStrategiesResource {
3473
3819
  * @example for await (const item of client.performance.reviewQuestionnaireByStrategies.paginate()) { ... }
3474
3820
  */
3475
3821
  paginate(options) {
3476
- const { maxItems, ...rest } = options ?? {};
3477
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewQuestionnaireByStrategies)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3822
+ const { maxItems, limit, ...rest } = options ?? {};
3823
+ return (0, pagination_js_1.paginate)(
3824
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3825
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3826
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewQuestionnaireByStrategies)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3478
3827
  }
3479
3828
  /**
3480
3829
  * Fetch all review_questionnaire_by_strategies across all pages into a single array.
@@ -3504,8 +3853,11 @@ class PerformanceReviewVisibilitySettingsResource {
3504
3853
  * @example for await (const item of client.performance.reviewVisibilitySettings.paginate()) { ... }
3505
3854
  */
3506
3855
  paginate(options) {
3507
- const { maxItems, ...rest } = options ?? {};
3508
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewVisibilitySettings)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3856
+ const { maxItems, limit, ...rest } = options ?? {};
3857
+ return (0, pagination_js_1.paginate)(
3858
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3859
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3860
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceReviewVisibilitySettings)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3509
3861
  }
3510
3862
  /**
3511
3863
  * Fetch all review_visibility_settings across all pages into a single array.
@@ -3531,8 +3883,11 @@ class PerformanceTargetManagersResource {
3531
3883
  * @example for await (const item of client.performance.targetManagers.paginate()) { ... }
3532
3884
  */
3533
3885
  paginate(options) {
3534
- const { maxItems, ...rest } = options ?? {};
3535
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceTargetManagers)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3886
+ const { maxItems, limit, ...rest } = options ?? {};
3887
+ return (0, pagination_js_1.paginate)(
3888
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3889
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3890
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPerformanceTargetManagers)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3536
3891
  }
3537
3892
  /**
3538
3893
  * Fetch all target_managers across all pages into a single array.
@@ -3558,8 +3913,11 @@ class PostsCommentsResource {
3558
3913
  * @example for await (const item of client.posts.comments.paginate()) { ... }
3559
3914
  */
3560
3915
  paginate(options) {
3561
- const { maxItems, ...rest } = options ?? {};
3562
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsComments)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3916
+ const { maxItems, limit, ...rest } = options ?? {};
3917
+ return (0, pagination_js_1.paginate)(
3918
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3919
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3920
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsComments)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3563
3921
  }
3564
3922
  /**
3565
3923
  * Fetch all comments across all pages into a single array.
@@ -3591,8 +3949,11 @@ class PostsGroupsResource {
3591
3949
  * @example for await (const item of client.posts.groups.paginate()) { ... }
3592
3950
  */
3593
3951
  paginate(options) {
3594
- const { maxItems, ...rest } = options ?? {};
3595
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsGroups)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3952
+ const { maxItems, limit, ...rest } = options ?? {};
3953
+ return (0, pagination_js_1.paginate)(
3954
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3955
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3956
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsGroups)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3596
3957
  }
3597
3958
  /**
3598
3959
  * Fetch all groups across all pages into a single array.
@@ -3626,8 +3987,11 @@ class PostsPostsResource {
3626
3987
  * @example for await (const item of client.posts.posts.paginate()) { ... }
3627
3988
  */
3628
3989
  paginate(options) {
3629
- const { maxItems, ...rest } = options ?? {};
3630
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsPosts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
3990
+ const { maxItems, limit, ...rest } = options ?? {};
3991
+ return (0, pagination_js_1.paginate)(
3992
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
3993
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3994
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesPostsPosts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3631
3995
  }
3632
3996
  /**
3633
3997
  * Fetch all posts across all pages into a single array.
@@ -3669,8 +4033,11 @@ class ProcessesProcessesResource {
3669
4033
  * @example for await (const item of client.processes.processes.paginate()) { ... }
3670
4034
  */
3671
4035
  paginate(options) {
3672
- const { maxItems, ...rest } = options ?? {};
3673
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcessesProcesses)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4036
+ const { maxItems, limit, ...rest } = options ?? {};
4037
+ return (0, pagination_js_1.paginate)(
4038
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4039
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4040
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcessesProcesses)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3674
4041
  }
3675
4042
  /**
3676
4043
  * Fetch all processes across all pages into a single array.
@@ -3696,8 +4063,11 @@ class ProcurementPoFieldValuesResource {
3696
4063
  * @example for await (const item of client.procurement.poFieldValues.paginate()) { ... }
3697
4064
  */
3698
4065
  paginate(options) {
3699
- const { maxItems, ...rest } = options ?? {};
3700
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoFieldValues)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4066
+ const { maxItems, limit, ...rest } = options ?? {};
4067
+ return (0, pagination_js_1.paginate)(
4068
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4069
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4070
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoFieldValues)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3701
4071
  }
3702
4072
  /**
3703
4073
  * Fetch all po_field_values across all pages into a single array.
@@ -3723,8 +4093,11 @@ class ProcurementPoLineItemsResource {
3723
4093
  * @example for await (const item of client.procurement.poLineItems.paginate()) { ... }
3724
4094
  */
3725
4095
  paginate(options) {
3726
- const { maxItems, ...rest } = options ?? {};
3727
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoLineItems)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4096
+ const { maxItems, limit, ...rest } = options ?? {};
4097
+ return (0, pagination_js_1.paginate)(
4098
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4099
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4100
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoLineItems)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3728
4101
  }
3729
4102
  /**
3730
4103
  * Fetch all po_line_items across all pages into a single array.
@@ -3750,8 +4123,11 @@ class ProcurementPoTemplateFieldDefinitionsResource {
3750
4123
  * @example for await (const item of client.procurement.poTemplateFieldDefinitions.paginate()) { ... }
3751
4124
  */
3752
4125
  paginate(options) {
3753
- const { maxItems, ...rest } = options ?? {};
3754
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplateFieldDefinitions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4126
+ const { maxItems, limit, ...rest } = options ?? {};
4127
+ return (0, pagination_js_1.paginate)(
4128
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4129
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4130
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplateFieldDefinitions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3755
4131
  }
3756
4132
  /**
3757
4133
  * Fetch all po_template_field_definitions across all pages into a single array.
@@ -3777,8 +4153,11 @@ class ProcurementPoTemplateVersionsResource {
3777
4153
  * @example for await (const item of client.procurement.poTemplateVersions.paginate()) { ... }
3778
4154
  */
3779
4155
  paginate(options) {
3780
- const { maxItems, ...rest } = options ?? {};
3781
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplateVersions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4156
+ const { maxItems, limit, ...rest } = options ?? {};
4157
+ return (0, pagination_js_1.paginate)(
4158
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4159
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4160
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplateVersions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3782
4161
  }
3783
4162
  /**
3784
4163
  * Fetch all po_template_versions across all pages into a single array.
@@ -3804,8 +4183,11 @@ class ProcurementPoTemplatesResource {
3804
4183
  * @example for await (const item of client.procurement.poTemplates.paginate()) { ... }
3805
4184
  */
3806
4185
  paginate(options) {
3807
- const { maxItems, ...rest } = options ?? {};
3808
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4186
+ const { maxItems, limit, ...rest } = options ?? {};
4187
+ return (0, pagination_js_1.paginate)(
4188
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4189
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4190
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPoTemplates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3809
4191
  }
3810
4192
  /**
3811
4193
  * Fetch all po_templates across all pages into a single array.
@@ -3831,8 +4213,11 @@ class ProcurementPurchaseOrdersResource {
3831
4213
  * @example for await (const item of client.procurement.purchaseOrders.paginate()) { ... }
3832
4214
  */
3833
4215
  paginate(options) {
3834
- const { maxItems, ...rest } = options ?? {};
3835
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPurchaseOrders)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4216
+ const { maxItems, limit, ...rest } = options ?? {};
4217
+ return (0, pagination_js_1.paginate)(
4218
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4219
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4220
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPurchaseOrders)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3836
4221
  }
3837
4222
  /**
3838
4223
  * Fetch all purchase_orders across all pages into a single array.
@@ -3862,8 +4247,11 @@ class ProcurementPurchaseRequestsResource {
3862
4247
  * @example for await (const item of client.procurement.purchaseRequests.paginate()) { ... }
3863
4248
  */
3864
4249
  paginate(options) {
3865
- const { maxItems, ...rest } = options ?? {};
3866
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPurchaseRequests)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4250
+ const { maxItems, limit, ...rest } = options ?? {};
4251
+ return (0, pagination_js_1.paginate)(
4252
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4253
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4254
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementPurchaseRequests)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3867
4255
  }
3868
4256
  /**
3869
4257
  * Fetch all purchase_requests across all pages into a single array.
@@ -3889,8 +4277,11 @@ class ProcurementTypesResource {
3889
4277
  * @example for await (const item of client.procurement.types.paginate()) { ... }
3890
4278
  */
3891
4279
  paginate(options) {
3892
- const { maxItems, ...rest } = options ?? {};
3893
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4280
+ const { maxItems, limit, ...rest } = options ?? {};
4281
+ return (0, pagination_js_1.paginate)(
4282
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4283
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4284
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProcurementTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3894
4285
  }
3895
4286
  /**
3896
4287
  * Fetch all types across all pages into a single array.
@@ -3916,8 +4307,11 @@ class ProjectManagementBudgetStrategiesResource {
3916
4307
  * @example for await (const item of client.projectManagement.budgetStrategies.paginate()) { ... }
3917
4308
  */
3918
4309
  paginate(options) {
3919
- const { maxItems, ...rest } = options ?? {};
3920
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementBudgetStrategies)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4310
+ const { maxItems, limit, ...rest } = options ?? {};
4311
+ return (0, pagination_js_1.paginate)(
4312
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4313
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4314
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementBudgetStrategies)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3921
4315
  }
3922
4316
  /**
3923
4317
  * Fetch all budget_strategies across all pages into a single array.
@@ -3949,8 +4343,11 @@ class ProjectManagementExpenseRecordsResource {
3949
4343
  * @example for await (const item of client.projectManagement.expenseRecords.paginate()) { ... }
3950
4344
  */
3951
4345
  paginate(options) {
3952
- const { maxItems, ...rest } = options ?? {};
3953
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementExpenseRecords)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4346
+ const { maxItems, limit, ...rest } = options ?? {};
4347
+ return (0, pagination_js_1.paginate)(
4348
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4349
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4350
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementExpenseRecords)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3954
4351
  }
3955
4352
  /**
3956
4353
  * Fetch all expense_records across all pages into a single array.
@@ -3976,8 +4373,11 @@ class ProjectManagementExportableExpensesResource {
3976
4373
  * @example for await (const item of client.projectManagement.exportableExpenses.paginate()) { ... }
3977
4374
  */
3978
4375
  paginate(options) {
3979
- const { maxItems, ...rest } = options ?? {};
3980
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementExportableExpenses)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4376
+ const { maxItems, limit, ...rest } = options ?? {};
4377
+ return (0, pagination_js_1.paginate)(
4378
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4379
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4380
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementExportableExpenses)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
3981
4381
  }
3982
4382
  /**
3983
4383
  * Fetch all exportable_expenses across all pages into a single array.
@@ -4001,8 +4401,11 @@ class ProjectManagementImputableProjectsResource {
4001
4401
  * @example for await (const item of client.projectManagement.imputableProjects.paginate()) { ... }
4002
4402
  */
4003
4403
  paginate(options) {
4004
- const { maxItems, ...rest } = options ?? {};
4005
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementImputableProjects)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4404
+ const { maxItems, limit, ...rest } = options ?? {};
4405
+ return (0, pagination_js_1.paginate)(
4406
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4407
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4408
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementImputableProjects)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4006
4409
  }
4007
4410
  /**
4008
4411
  * Fetch all imputable_projects across all pages into a single array.
@@ -4028,8 +4431,11 @@ class ProjectManagementPlannedRecordsResource {
4028
4431
  * @example for await (const item of client.projectManagement.plannedRecords.paginate()) { ... }
4029
4432
  */
4030
4433
  paginate(options) {
4031
- const { maxItems, ...rest } = options ?? {};
4032
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementPlannedRecords)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4434
+ const { maxItems, limit, ...rest } = options ?? {};
4435
+ return (0, pagination_js_1.paginate)(
4436
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4437
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4438
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementPlannedRecords)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4033
4439
  }
4034
4440
  /**
4035
4441
  * Fetch all planned_records across all pages into a single array.
@@ -4061,8 +4467,11 @@ class ProjectManagementProjectTasksResource {
4061
4467
  * @example for await (const item of client.projectManagement.projectTasks.paginate()) { ... }
4062
4468
  */
4063
4469
  paginate(options) {
4064
- const { maxItems, ...rest } = options ?? {};
4065
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjectTasks)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4470
+ const { maxItems, limit, ...rest } = options ?? {};
4471
+ return (0, pagination_js_1.paginate)(
4472
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4473
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4474
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjectTasks)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4066
4475
  }
4067
4476
  /**
4068
4477
  * Fetch all project_tasks across all pages into a single array.
@@ -4096,8 +4505,11 @@ class ProjectManagementProjectWorkersResource {
4096
4505
  * @example for await (const item of client.projectManagement.projectWorkers.paginate()) { ... }
4097
4506
  */
4098
4507
  paginate(options) {
4099
- const { maxItems, ...rest } = options ?? {};
4100
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjectWorkers)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4508
+ const { maxItems, limit, ...rest } = options ?? {};
4509
+ return (0, pagination_js_1.paginate)(
4510
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4511
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4512
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjectWorkers)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4101
4513
  }
4102
4514
  /**
4103
4515
  * Fetch all project_workers across all pages into a single array.
@@ -4131,8 +4543,11 @@ class ProjectManagementProjectsResource {
4131
4543
  * @example for await (const item of client.projectManagement.projects.paginate()) { ... }
4132
4544
  */
4133
4545
  paginate(options) {
4134
- const { maxItems, ...rest } = options ?? {};
4135
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjects)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4546
+ const { maxItems, limit, ...rest } = options ?? {};
4547
+ return (0, pagination_js_1.paginate)(
4548
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4549
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4550
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementProjects)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4136
4551
  }
4137
4552
  /**
4138
4553
  * Fetch all projects across all pages into a single array.
@@ -4172,8 +4587,11 @@ class ProjectManagementRatesResource {
4172
4587
  * @example for await (const item of client.projectManagement.rates.paginate()) { ... }
4173
4588
  */
4174
4589
  paginate(options) {
4175
- const { maxItems, ...rest } = options ?? {};
4176
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementRates)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4590
+ const { maxItems, limit, ...rest } = options ?? {};
4591
+ return (0, pagination_js_1.paginate)(
4592
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4593
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4594
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementRates)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4177
4595
  }
4178
4596
  /**
4179
4597
  * Fetch all rates across all pages into a single array.
@@ -4199,8 +4617,11 @@ class ProjectManagementSubprojectsResource {
4199
4617
  * @example for await (const item of client.projectManagement.subprojects.paginate()) { ... }
4200
4618
  */
4201
4619
  paginate(options) {
4202
- const { maxItems, ...rest } = options ?? {};
4203
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementSubprojects)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4620
+ const { maxItems, limit, ...rest } = options ?? {};
4621
+ return (0, pagination_js_1.paginate)(
4622
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4623
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4624
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementSubprojects)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4204
4625
  }
4205
4626
  /**
4206
4627
  * Fetch all subprojects across all pages into a single array.
@@ -4234,8 +4655,11 @@ class ProjectManagementTimeRecordsResource {
4234
4655
  * @example for await (const item of client.projectManagement.timeRecords.paginate()) { ... }
4235
4656
  */
4236
4657
  paginate(options) {
4237
- const { maxItems, ...rest } = options ?? {};
4238
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementTimeRecords)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4658
+ const { maxItems, limit, ...rest } = options ?? {};
4659
+ return (0, pagination_js_1.paginate)(
4660
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4661
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4662
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesProjectManagementTimeRecords)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4239
4663
  }
4240
4664
  /**
4241
4665
  * Fetch all time_records across all pages into a single array.
@@ -4273,8 +4697,11 @@ class ShiftManagementShiftsResource {
4273
4697
  * @example for await (const item of client.shiftManagement.shifts.paginate()) { ... }
4274
4698
  */
4275
4699
  paginate(options) {
4276
- const { maxItems, ...rest } = options ?? {};
4277
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesShiftManagementShifts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4700
+ const { maxItems, limit, ...rest } = options ?? {};
4701
+ return (0, pagination_js_1.paginate)(
4702
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4703
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4704
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesShiftManagementShifts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4278
4705
  }
4279
4706
  /**
4280
4707
  * Fetch all shifts across all pages into a single array.
@@ -4308,8 +4735,11 @@ class TasksTaskFilesResource {
4308
4735
  * @example for await (const item of client.tasks.taskFiles.paginate()) { ... }
4309
4736
  */
4310
4737
  paginate(options) {
4311
- const { maxItems, ...rest } = options ?? {};
4312
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTasksTaskFiles)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4738
+ const { maxItems, limit, ...rest } = options ?? {};
4739
+ return (0, pagination_js_1.paginate)(
4740
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4741
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4742
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTasksTaskFiles)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4313
4743
  }
4314
4744
  /**
4315
4745
  * Fetch all task_files across all pages into a single array.
@@ -4339,8 +4769,11 @@ class TasksTasksResource {
4339
4769
  * @example for await (const item of client.tasks.tasks.paginate()) { ... }
4340
4770
  */
4341
4771
  paginate(options) {
4342
- const { maxItems, ...rest } = options ?? {};
4343
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTasksTasks)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4772
+ const { maxItems, limit, ...rest } = options ?? {};
4773
+ return (0, pagination_js_1.paginate)(
4774
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4775
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4776
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTasksTasks)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4344
4777
  }
4345
4778
  /**
4346
4779
  * Fetch all tasks across all pages into a single array.
@@ -4382,8 +4815,11 @@ class TeamsMembershipsResource {
4382
4815
  * @example for await (const item of client.teams.memberships.paginate()) { ... }
4383
4816
  */
4384
4817
  paginate(options) {
4385
- const { maxItems, ...rest } = options ?? {};
4386
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTeamsMemberships)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4818
+ const { maxItems, limit, ...rest } = options ?? {};
4819
+ return (0, pagination_js_1.paginate)(
4820
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4821
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4822
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTeamsMemberships)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4387
4823
  }
4388
4824
  /**
4389
4825
  * Fetch all memberships across all pages into a single array.
@@ -4417,8 +4853,11 @@ class TeamsTeamsResource {
4417
4853
  * @example for await (const item of client.teams.teams.paginate()) { ... }
4418
4854
  */
4419
4855
  paginate(options) {
4420
- const { maxItems, ...rest } = options ?? {};
4421
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTeamsTeams)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4856
+ const { maxItems, limit, ...rest } = options ?? {};
4857
+ return (0, pagination_js_1.paginate)(
4858
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4859
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4860
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTeamsTeams)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4422
4861
  }
4423
4862
  /**
4424
4863
  * Fetch all teams across all pages into a single array.
@@ -4452,8 +4891,11 @@ class TimePlanningPlannedBreaksResource {
4452
4891
  * @example for await (const item of client.timePlanning.plannedBreaks.paginate()) { ... }
4453
4892
  */
4454
4893
  paginate(options) {
4455
- const { maxItems, ...rest } = options ?? {};
4456
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimePlanningPlannedBreaks)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4894
+ const { maxItems, limit, ...rest } = options ?? {};
4895
+ return (0, pagination_js_1.paginate)(
4896
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4897
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4898
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimePlanningPlannedBreaks)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4457
4899
  }
4458
4900
  /**
4459
4901
  * Fetch all planned_breaks across all pages into a single array.
@@ -4481,8 +4923,11 @@ class TimePlanningPlanningVersionsResource {
4481
4923
  * @example for await (const item of client.timePlanning.planningVersions.paginate()) { ... }
4482
4924
  */
4483
4925
  paginate(options) {
4484
- const { maxItems, ...rest } = options ?? {};
4485
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimePlanningPlanningVersions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4926
+ const { maxItems, limit, ...rest } = options ?? {};
4927
+ return (0, pagination_js_1.paginate)(
4928
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4929
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4930
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimePlanningPlanningVersions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4486
4931
  }
4487
4932
  /**
4488
4933
  * Fetch all planning_versions across all pages into a single array.
@@ -4514,8 +4959,11 @@ class TimeSettingsBreakConfigurationsResource {
4514
4959
  * @example for await (const item of client.timeSettings.breakConfigurations.paginate()) { ... }
4515
4960
  */
4516
4961
  paginate(options) {
4517
- const { maxItems, ...rest } = options ?? {};
4518
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeSettingsBreakConfigurations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4962
+ const { maxItems, limit, ...rest } = options ?? {};
4963
+ return (0, pagination_js_1.paginate)(
4964
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4965
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4966
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeSettingsBreakConfigurations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4519
4967
  }
4520
4968
  /**
4521
4969
  * Fetch all break_configurations across all pages into a single array.
@@ -4545,8 +4993,11 @@ class TimeSettingsSplitCustomTimeRangeCategoriesResource {
4545
4993
  * @example for await (const item of client.timeSettings.splitCustomTimeRangeCategories.paginate()) { ... }
4546
4994
  */
4547
4995
  paginate(options) {
4548
- const { maxItems, ...rest } = options ?? {};
4549
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeSettingsSplitCustomTimeRangeCategories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
4996
+ const { maxItems, limit, ...rest } = options ?? {};
4997
+ return (0, pagination_js_1.paginate)(
4998
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
4999
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5000
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeSettingsSplitCustomTimeRangeCategories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4550
5001
  }
4551
5002
  /**
4552
5003
  * Fetch all split_custom_time_range_categories across all pages into a single array.
@@ -4572,8 +5023,11 @@ class TimeoffAllowanceIncidencesResource {
4572
5023
  * @example for await (const item of client.timeoff.allowanceIncidences.paginate()) { ... }
4573
5024
  */
4574
5025
  paginate(options) {
4575
- const { maxItems, ...rest } = options ?? {};
4576
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowanceIncidences)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5026
+ const { maxItems, limit, ...rest } = options ?? {};
5027
+ return (0, pagination_js_1.paginate)(
5028
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5029
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5030
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowanceIncidences)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4577
5031
  }
4578
5032
  /**
4579
5033
  * Fetch all allowance_incidences across all pages into a single array.
@@ -4605,8 +5059,11 @@ class TimeoffAllowanceStatsResource {
4605
5059
  * @example for await (const item of client.timeoff.allowanceStats.paginate()) { ... }
4606
5060
  */
4607
5061
  paginate(options) {
4608
- const { maxItems, ...rest } = options ?? {};
4609
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowanceStats)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5062
+ const { maxItems, limit, ...rest } = options ?? {};
5063
+ return (0, pagination_js_1.paginate)(
5064
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5065
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5066
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowanceStats)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4610
5067
  }
4611
5068
  /**
4612
5069
  * Fetch all allowance_stats across all pages into a single array.
@@ -4632,8 +5089,11 @@ class TimeoffAllowancesResource {
4632
5089
  * @example for await (const item of client.timeoff.allowances.paginate()) { ... }
4633
5090
  */
4634
5091
  paginate(options) {
4635
- const { maxItems, ...rest } = options ?? {};
4636
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowances)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5092
+ const { maxItems, limit, ...rest } = options ?? {};
5093
+ return (0, pagination_js_1.paginate)(
5094
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5095
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5096
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffAllowances)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4637
5097
  }
4638
5098
  /**
4639
5099
  * Fetch all allowances across all pages into a single array.
@@ -4667,8 +5127,11 @@ class TimeoffBlockedPeriodsResource {
4667
5127
  * @example for await (const item of client.timeoff.blockedPeriods.paginate()) { ... }
4668
5128
  */
4669
5129
  paginate(options) {
4670
- const { maxItems, ...rest } = options ?? {};
4671
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffBlockedPeriods)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5130
+ const { maxItems, limit, ...rest } = options ?? {};
5131
+ return (0, pagination_js_1.paginate)(
5132
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5133
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5134
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffBlockedPeriods)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4672
5135
  }
4673
5136
  /**
4674
5137
  * Fetch all blocked_periods across all pages into a single array.
@@ -4700,8 +5163,11 @@ class TimeoffFrenchLeaveDayCountsResource {
4700
5163
  * @example for await (const item of client.timeoff.frenchLeaveDayCounts.paginate()) { ... }
4701
5164
  */
4702
5165
  paginate(options) {
4703
- const { maxItems, ...rest } = options ?? {};
4704
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffFrenchLeaveDayCounts)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5166
+ const { maxItems, limit, ...rest } = options ?? {};
5167
+ return (0, pagination_js_1.paginate)(
5168
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5169
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5170
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffFrenchLeaveDayCounts)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4705
5171
  }
4706
5172
  /**
4707
5173
  * Fetch all french_leave_day_counts across all pages into a single array.
@@ -4725,8 +5191,11 @@ class TimeoffLeaveTypesResource {
4725
5191
  * @example for await (const item of client.timeoff.leaveTypes.paginate()) { ... }
4726
5192
  */
4727
5193
  paginate(options) {
4728
- const { maxItems, ...rest } = options ?? {};
4729
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffLeaveTypes)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5194
+ const { maxItems, limit, ...rest } = options ?? {};
5195
+ return (0, pagination_js_1.paginate)(
5196
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5197
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5198
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffLeaveTypes)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4730
5199
  }
4731
5200
  /**
4732
5201
  * Fetch all leave_types across all pages into a single array.
@@ -4756,8 +5225,11 @@ class TimeoffLeavesResource {
4756
5225
  * @example for await (const item of client.timeoff.leaves.paginate()) { ... }
4757
5226
  */
4758
5227
  paginate(options) {
4759
- const { maxItems, ...rest } = options ?? {};
4760
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffLeaves)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5228
+ const { maxItems, limit, ...rest } = options ?? {};
5229
+ return (0, pagination_js_1.paginate)(
5230
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5231
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5232
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffLeaves)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4761
5233
  }
4762
5234
  /**
4763
5235
  * Fetch all leaves across all pages into a single array.
@@ -4797,8 +5269,11 @@ class TimeoffPoliciesResource {
4797
5269
  * @example for await (const item of client.timeoff.policies.paginate()) { ... }
4798
5270
  */
4799
5271
  paginate(options) {
4800
- const { maxItems, ...rest } = options ?? {};
4801
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicies)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5272
+ const { maxItems, limit, ...rest } = options ?? {};
5273
+ return (0, pagination_js_1.paginate)(
5274
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5275
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5276
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicies)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4802
5277
  }
4803
5278
  /**
4804
5279
  * Fetch all policies across all pages into a single array.
@@ -4830,8 +5305,11 @@ class TimeoffPolicyAssignmentsResource {
4830
5305
  * @example for await (const item of client.timeoff.policyAssignments.paginate()) { ... }
4831
5306
  */
4832
5307
  paginate(options) {
4833
- const { maxItems, ...rest } = options ?? {};
4834
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicyAssignments)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5308
+ const { maxItems, limit, ...rest } = options ?? {};
5309
+ return (0, pagination_js_1.paginate)(
5310
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5311
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5312
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicyAssignments)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4835
5313
  }
4836
5314
  /**
4837
5315
  * Fetch all policy_assignments across all pages into a single array.
@@ -4863,8 +5341,11 @@ class TimeoffPolicyTimelinesResource {
4863
5341
  * @example for await (const item of client.timeoff.policyTimelines.paginate()) { ... }
4864
5342
  */
4865
5343
  paginate(options) {
4866
- const { maxItems, ...rest } = options ?? {};
4867
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicyTimelines)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5344
+ const { maxItems, limit, ...rest } = options ?? {};
5345
+ return (0, pagination_js_1.paginate)(
5346
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5347
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5348
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTimeoffPolicyTimelines)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4868
5349
  }
4869
5350
  /**
4870
5351
  * Fetch all policy_timelines across all pages into a single array.
@@ -4888,8 +5369,11 @@ class TrainingsCategoriesResource {
4888
5369
  * @example for await (const item of client.trainings.categories.paginate()) { ... }
4889
5370
  */
4890
5371
  paginate(options) {
4891
- const { maxItems, ...rest } = options ?? {};
4892
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsCategories)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5372
+ const { maxItems, limit, ...rest } = options ?? {};
5373
+ return (0, pagination_js_1.paginate)(
5374
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5375
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5376
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsCategories)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4893
5377
  }
4894
5378
  /**
4895
5379
  * Fetch all categories across all pages into a single array.
@@ -4919,8 +5403,11 @@ class TrainingsSessionAccessMembershipsResource {
4919
5403
  * @example for await (const item of client.trainings.sessionAccessMemberships.paginate()) { ... }
4920
5404
  */
4921
5405
  paginate(options) {
4922
- const { maxItems, ...rest } = options ?? {};
4923
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessionAccessMemberships)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5406
+ const { maxItems, limit, ...rest } = options ?? {};
5407
+ return (0, pagination_js_1.paginate)(
5408
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5409
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5410
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessionAccessMemberships)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4924
5411
  }
4925
5412
  /**
4926
5413
  * Fetch all session_access_memberships across all pages into a single array.
@@ -4950,8 +5437,11 @@ class TrainingsSessionAttendancesResource {
4950
5437
  * @example for await (const item of client.trainings.sessionAttendances.paginate()) { ... }
4951
5438
  */
4952
5439
  paginate(options) {
4953
- const { maxItems, ...rest } = options ?? {};
4954
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessionAttendances)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5440
+ const { maxItems, limit, ...rest } = options ?? {};
5441
+ return (0, pagination_js_1.paginate)(
5442
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5443
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5444
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessionAttendances)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4955
5445
  }
4956
5446
  /**
4957
5447
  * Fetch all session_attendances across all pages into a single array.
@@ -4979,8 +5469,11 @@ class TrainingsSessionsResource {
4979
5469
  * @example for await (const item of client.trainings.sessions.paginate()) { ... }
4980
5470
  */
4981
5471
  paginate(options) {
4982
- const { maxItems, ...rest } = options ?? {};
4983
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessions)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5472
+ const { maxItems, limit, ...rest } = options ?? {};
5473
+ return (0, pagination_js_1.paginate)(
5474
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5475
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5476
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsSessions)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
4984
5477
  }
4985
5478
  /**
4986
5479
  * Fetch all sessions across all pages into a single array.
@@ -5012,8 +5505,11 @@ class TrainingsTrainingClassesResource {
5012
5505
  * @example for await (const item of client.trainings.trainingClasses.paginate()) { ... }
5013
5506
  */
5014
5507
  paginate(options) {
5015
- const { maxItems, ...rest } = options ?? {};
5016
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainingClasses)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5508
+ const { maxItems, limit, ...rest } = options ?? {};
5509
+ return (0, pagination_js_1.paginate)(
5510
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5511
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5512
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainingClasses)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5017
5513
  }
5018
5514
  /**
5019
5515
  * Fetch all training_classes across all pages into a single array.
@@ -5045,8 +5541,11 @@ class TrainingsTrainingMembershipsResource {
5045
5541
  * @example for await (const item of client.trainings.trainingMemberships.paginate()) { ... }
5046
5542
  */
5047
5543
  paginate(options) {
5048
- const { maxItems, ...rest } = options ?? {};
5049
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainingMemberships)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5544
+ const { maxItems, limit, ...rest } = options ?? {};
5545
+ return (0, pagination_js_1.paginate)(
5546
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5547
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5548
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainingMemberships)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5050
5549
  }
5051
5550
  /**
5052
5551
  * Fetch all training_memberships across all pages into a single array.
@@ -5078,8 +5577,11 @@ class TrainingsTrainingsResource {
5078
5577
  * @example for await (const item of client.trainings.trainings.paginate()) { ... }
5079
5578
  */
5080
5579
  paginate(options) {
5081
- const { maxItems, ...rest } = options ?? {};
5082
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainings)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5580
+ const { maxItems, limit, ...rest } = options ?? {};
5581
+ return (0, pagination_js_1.paginate)(
5582
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5583
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5584
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesTrainingsTrainings)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5083
5585
  }
5084
5586
  /**
5085
5587
  * Fetch all trainings across all pages into a single array.
@@ -5117,8 +5619,11 @@ class WorkScheduleDayConfigurationsResource {
5117
5619
  * @example for await (const item of client.workSchedule.dayConfigurations.paginate()) { ... }
5118
5620
  */
5119
5621
  paginate(options) {
5120
- const { maxItems, ...rest } = options ?? {};
5121
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleDayConfigurations)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5622
+ const { maxItems, limit, ...rest } = options ?? {};
5623
+ return (0, pagination_js_1.paginate)(
5624
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5625
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5626
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleDayConfigurations)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5122
5627
  }
5123
5628
  /**
5124
5629
  * Fetch all day_configurations across all pages into a single array.
@@ -5146,8 +5651,11 @@ class WorkScheduleOverlapPeriodsResource {
5146
5651
  * @example for await (const item of client.workSchedule.overlapPeriods.paginate()) { ... }
5147
5652
  */
5148
5653
  paginate(options) {
5149
- const { maxItems, ...rest } = options ?? {};
5150
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleOverlapPeriods)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5654
+ const { maxItems, limit, ...rest } = options ?? {};
5655
+ return (0, pagination_js_1.paginate)(
5656
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5657
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5658
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleOverlapPeriods)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5151
5659
  }
5152
5660
  /**
5153
5661
  * Fetch all overlap_periods across all pages into a single array.
@@ -5179,8 +5687,11 @@ class WorkScheduleSchedulesResource {
5179
5687
  * @example for await (const item of client.workSchedule.schedules.paginate()) { ... }
5180
5688
  */
5181
5689
  paginate(options) {
5182
- const { maxItems, ...rest } = options ?? {};
5183
- return (0, pagination_js_1.paginate)((params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleSchedules)({ client: this._client, ...rest, query: { ...rest?.query, ...params } }), { maxItems });
5690
+ const { maxItems, limit, ...rest } = options ?? {};
5691
+ return (0, pagination_js_1.paginate)(
5692
+ // `limit`/`after_id` work at runtime but are absent from the spec's query type.
5693
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5694
+ (params) => (0, sdk_gen_js_1.getApi20270101ResourcesWorkScheduleSchedules)({ client: this._client, ...rest, query: { ...rest.query, ...params } }), { maxItems, limit });
5184
5695
  }
5185
5696
  /**
5186
5697
  * Fetch all schedules across all pages into a single array.
@@ -5784,14 +6295,16 @@ exports.WorkScheduleNamespace = WorkScheduleNamespace;
5784
6295
  *
5785
6296
  * @example
5786
6297
  * ```ts
5787
- * import { FactorialClient } from "@factorialco/api-client";
6298
+ * import { FactorialApiError, FactorialClient } from "@factorialco/api-client";
5788
6299
  *
5789
6300
  * const client = new FactorialClient({
5790
6301
  * apiKey: process.env.FACTORIAL_API_KEY,
5791
6302
  * });
5792
6303
  *
5793
6304
  * // List employees (single page, max 100)
5794
- * const { data } = await client.employees.employees.list();
6305
+ * const { data } = await client.employees.employees.list({
6306
+ * query: { only_active: true, only_managers: false },
6307
+ * });
5795
6308
  *
5796
6309
  * // Stream all employees across all pages (cursor pagination)
5797
6310
  * for await (const employee of client.employees.employees.paginate()) {
@@ -5800,6 +6313,14 @@ exports.WorkScheduleNamespace = WorkScheduleNamespace;
5800
6313
  *
5801
6314
  * // Collect all into an array (with optional safety cap)
5802
6315
  * const all = await client.employees.employees.all({ maxItems: 500 });
6316
+ *
6317
+ * // Any non-2xx response throws a FactorialApiError
6318
+ * try {
6319
+ * await client.employees.employees.get({ path: { id: "1" } });
6320
+ * } catch (err) {
6321
+ * if (err instanceof FactorialApiError) console.error(err.status, err.url, err.body);
6322
+ * else throw err; // transport failure
6323
+ * }
5803
6324
  * ```
5804
6325
  */
5805
6326
  class FactorialClient {
@@ -5912,10 +6433,13 @@ class FactorialClient {
5912
6433
  const client = (0, index_js_1.createClient)((0, index_js_1.createConfig)({
5913
6434
  baseUrl: resolvedBaseUrl,
5914
6435
  throwOnError: true,
5915
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5916
- auth: auth,
6436
+ auth,
5917
6437
  ...rest,
5918
6438
  }));
6439
+ // Turn every non-2xx response into a FactorialApiError carrying the status,
6440
+ // method, URL and parsed body. Transport failures (no Response) pass through
6441
+ // untouched, e.g. a fetch TypeError for a DNS or connection error.
6442
+ client.interceptors.error.use((error, response, request) => (0, errors_js_1.toFactorialApiError)(error, response, request));
5919
6443
  this.apiPublic = new ApiPublicNamespace(client);
5920
6444
  this.approvals = new ApprovalsNamespace(client);
5921
6445
  this.ats = new AtsNamespace(client);