@factorialco/api-client 3.0.0-beta.2026100126 → 3.0.0-beta.2026100127

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.
@@ -1762,6 +1762,10 @@ export type ContractsContractVersion = {
1762
1762
  * the amount of money the employee earns in cents.
1763
1763
  */
1764
1764
  salary_amount?: number;
1765
+ /**
1766
+ * the currency of the salary amount, inherited from the governing legal entity.
1767
+ */
1768
+ salary_currency?: string;
1765
1769
  /**
1766
1770
  * the frequency of the salary payment.
1767
1771
  */
@@ -4077,7 +4081,7 @@ export type FinanceCategory = {
4077
4081
  */
4078
4082
  id: string;
4079
4083
  /**
4080
- * Custom label for the category
4084
+ * The category's display name — the one shown in the UI and the one a person will call it by. It is the company's own label when they renamed the category, otherwise the translated default name. Match on this, never on `identifier`, which is a stable internal key that need not resemble the name (`restaurants` is displayed as "Meals").
4081
4085
  */
4082
4086
  label: string;
4083
4087
  /**
@@ -4089,7 +4093,7 @@ export type FinanceCategory = {
4089
4093
  */
4090
4094
  parent_category_id?: string;
4091
4095
  /**
4092
- * System identifier for the category
4096
+ * Stable internal key for the category, for callers that hold one. NOT a display name and not derivable from one — `restaurants` is shown to everyone as "Meals" — so never present it to a user or match a user's wording against it; use `label` for both.
4093
4097
  */
4094
4098
  identifier: string;
4095
4099
  /**
@@ -4254,35 +4258,35 @@ export type FinanceCostCenterMembership = {
4254
4258
  };
4255
4259
  export type FinanceFinancialDocument = {
4256
4260
  /**
4257
- * Factorial unique identifier.
4261
+ * Factorial unique identifier for the financial document.
4258
4262
  */
4259
4263
  id: string;
4260
4264
  /**
4261
- * Net amount in cents.
4265
+ * Sum of the line items before taxes, in cents. Use `total_amount_cents` for what is actually payable.
4262
4266
  */
4263
4267
  net_amount_cents?: number;
4264
4268
  /**
4265
- * Total amount in cents.
4269
+ * Total payable on the document, taxes included, in cents. This is the amount to branch on when a rule cares about how much is being spent.
4266
4270
  */
4267
4271
  total_amount_cents?: number;
4268
4272
  /**
4269
- * Document number.
4273
+ * Number the issuer printed on the document; for a purchase, the vendor's own invoice number. Not a Factorial identifier: on a purchase it is only unique per vendor, so the same number can legitimately appear on documents from two different vendors.
4270
4274
  */
4271
4275
  document_number?: string;
4272
4276
  /**
4273
- * Document currency.
4277
+ * ISO 4217 code of the currency the document is issued in, such as EUR or USD. Every amount on the document is expressed in it, so comparing amounts across documents without checking this is unsafe.
4274
4278
  */
4275
4279
  currency?: string;
4276
4280
  /**
4277
- * Current status.
4281
+ * Where the document stands on its way to being paid: `processing` while it is still being prepared, `review` while it awaits review (the value is `review`, never `pending`), `sent_to_pay` once it has been sent for payment, and `paid`. This is not an approval state: a document generated from an employee expense is created already `paid`, because the money left before Factorial ever saw it.
4278
4282
  */
4279
4283
  status: 'processing' | 'review' | 'sent_to_pay' | 'paid';
4280
4284
  /**
4281
- * Due date.
4285
+ * Date the payment falls due, as stated on the document.
4282
4286
  */
4283
4287
  due_date?: string;
4284
4288
  /**
4285
- * Document date.
4289
+ * Date the issuer put on the document. Distinct from `created_at`, which is when it reached Factorial; a document can arrive weeks after it was issued.
4286
4290
  */
4287
4291
  document_date?: string;
4288
4292
  /**
@@ -4323,11 +4327,11 @@ export type FinanceFinancialDocument = {
4323
4327
  }>;
4324
4328
  }>;
4325
4329
  /**
4326
- * Date when was fully reconciled.
4330
+ * When the document was fully matched against bank transactions. Null while any part of it remains unreconciled.
4327
4331
  */
4328
4332
  fully_reconciled_at?: string;
4329
4333
  /**
4330
- * Date when was recorded.
4334
+ * When the document was posted to accounting. Only possible once `validated_at` is set.
4331
4335
  */
4332
4336
  recorded_at?: string;
4333
4337
  /**
@@ -4335,15 +4339,15 @@ export type FinanceFinancialDocument = {
4335
4339
  */
4336
4340
  duplicate_financial_document_id?: string;
4337
4341
  /**
4338
- * Date when was validated.
4342
+ * When a person confirmed the document data is correct. Validation is what unlocks recording and payment; it is not an approval decision, and says nothing about whether the spend was authorised.
4339
4343
  */
4340
4344
  validated_at?: string;
4341
4345
  /**
4342
- * Factorial unique identifier for the user who validated the financial document.
4346
+ * Factorial unique identifier of the employee who validated the document.
4343
4347
  */
4344
4348
  validated_by_id?: string;
4345
4349
  /**
4346
- * Type of the financial document. Using "invoice" as default.
4350
+ * One of `invoice`, `receipt` or `credit_note`. A document generated from an expense is typed automatically and can flip between `receipt` and `invoice` when the employee edits the expense.
4347
4351
  */
4348
4352
  document_type: 'invoice' | 'receipt' | 'credit_note';
4349
4353
  /**
@@ -4351,7 +4355,7 @@ export type FinanceFinancialDocument = {
4351
4355
  */
4352
4356
  parent_financial_document_id?: string;
4353
4357
  /**
4354
- * Taxes total amount in cents.
4358
+ * Sum of every tax charged on the document, in cents.
4355
4359
  */
4356
4360
  taxes_total_amount_cents?: number;
4357
4361
  /**
@@ -16956,6 +16960,28 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsResponses = {
16956
16960
  };
16957
16961
  };
16958
16962
  export type GetApi20261001ResourcesIntegrationsSyncRunsResponse = GetApi20261001ResourcesIntegrationsSyncRunsResponses[keyof GetApi20261001ResourcesIntegrationsSyncRunsResponses];
16963
+ export type PostApi20261001ResourcesIntegrationsSyncRunsData = {
16964
+ body?: {
16965
+ /**
16966
+ * Identifier of the company the sync run belongs to.
16967
+ */
16968
+ company_id: string;
16969
+ /**
16970
+ * UUID of the marketplace integration to create a sync run for.
16971
+ */
16972
+ marketplace_integration_uuid: string;
16973
+ };
16974
+ path?: never;
16975
+ query?: never;
16976
+ url: '/api/2026-10-01/resources/integrations/sync_runs';
16977
+ };
16978
+ export type PostApi20261001ResourcesIntegrationsSyncRunsResponses = {
16979
+ /**
16980
+ * CREATED
16981
+ */
16982
+ 201: IntegrationsSyncRun;
16983
+ };
16984
+ export type PostApi20261001ResourcesIntegrationsSyncRunsResponse = PostApi20261001ResourcesIntegrationsSyncRunsResponses[keyof PostApi20261001ResourcesIntegrationsSyncRunsResponses];
16959
16985
  export type GetApi20261001ResourcesIntegrationsSyncRunsByIdData = {
16960
16986
  body?: never;
16961
16987
  path: {
@@ -17169,7 +17195,7 @@ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData =
17169
17195
  /**
17170
17196
  * Outcome of processing the item
17171
17197
  */
17172
- status: 'success' | 'failed' | 'invalid';
17198
+ status: 'running' | 'success' | 'failed' | 'invalid';
17173
17199
  /**
17174
17200
  * The Factorial record this item resolved to (link). Only fills a missing link; re-linking to a different record is rejected.
17175
17201
  */