@factorialco/api-client 4.0.0-beta.2027010119 → 4.0.0-beta.2027010121

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.
@@ -3426,7 +3426,7 @@ export declare const postApi20270101ResourcesTeamsMemberships: <ThrowOnError ext
3426
3426
  /**
3427
3427
  * Deletes a Membership
3428
3428
  *
3429
- * Delete the membership to remove the employee from the team. For companies with nested teams what actually gets deleted depends on the kind of row: deleting a direct membership removes it, and the inherited copies it produced in the ancestor teams are cleaned up asynchronously. Deleting an INHERITED membership instead removes the employee's direct membership in EVERY sub-team that row originates from — rows with other ids, in teams you did not name — and the request is rejected altogether if you cannot manage one of those sub-teams. The inherited row you named also disappears asynchronously rather than in the request, so an immediate re-read may still return it; repeating the DELETE is safe rather than an error. Read that employee's memberships with `with_source_attribution` before deleting to see what is at stake: `direct` indicates which kind of row it is, and `source_team_ids` where the deletion would land. Both are advisory — the read and the delete resolve their answers independently, so re-read after deleting rather than assuming which branch ran.
3429
+ * Delete the membership to remove the employee from the team. For companies with nested teams what actually gets deleted depends on the kind of row: deleting a direct membership removes it, and the inherited copies it produced in the ancestor teams are cleaned up asynchronously. Deleting an INHERITED membership instead removes the employee's direct membership in EVERY sub-team that row originates from — rows with other ids, in teams you did not name — and the request is rejected altogether if you cannot manage one of those sub-teams. The inherited row you named also disappears asynchronously rather than in the request, so an immediate re-read may still return it; repeating the DELETE is safe rather than an error. A row that no sub-team and no direct membership accounts for any more is deleted on its own, without touching any team's member list. Read that employee's memberships with `with_source_attribution` before deleting to see what is at stake: `direct` indicates which kind of row it is, and `source_team_ids` where the deletion would land. Both are advisory — the read and the delete resolve their answers independently, so re-read after deleting rather than assuming which branch ran.
3430
3430
  */
3431
3431
  export declare const deleteApi20270101ResourcesTeamsMembershipsById: <ThrowOnError extends boolean = false>(options: Options<DeleteApi20270101ResourcesTeamsMembershipsByIdData, ThrowOnError>) => RequestResult<DeleteApi20270101ResourcesTeamsMembershipsByIdResponses, DeleteApi20270101ResourcesTeamsMembershipsByIdErrors, ThrowOnError>;
3432
3432
  /**
@@ -4985,7 +4985,7 @@ export const getApi20270101ResourcesProcurementPoTemplateVersionsById = (options
4985
4985
  * Fetch one or all purchase orders for the company.
4986
4986
  */
4987
4987
  export const getApi20270101ResourcesProcurementPurchaseOrders = (options) => (options?.client ?? client).get({
4988
- security: [{ name: 'x-api-key', type: 'apiKey' }],
4988
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
4989
4989
  url: '/api/2027-01-01/resources/procurement/purchase_orders',
4990
4990
  ...options
4991
4991
  });
@@ -5009,7 +5009,7 @@ export const postApi20270101ResourcesProcurementPurchaseOrders = (options) => (o
5009
5009
  * Fetch one or all purchase orders for the company.
5010
5010
  */
5011
5011
  export const getApi20270101ResourcesProcurementPurchaseOrdersById = (options) => (options.client ?? client).get({
5012
- security: [{ name: 'x-api-key', type: 'apiKey' }],
5012
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
5013
5013
  url: '/api/2027-01-01/resources/procurement/purchase_orders/{id}',
5014
5014
  ...options
5015
5015
  });
@@ -6285,7 +6285,7 @@ export const postApi20270101ResourcesTeamsMemberships = (options) => (options?.c
6285
6285
  /**
6286
6286
  * Deletes a Membership
6287
6287
  *
6288
- * Delete the membership to remove the employee from the team. For companies with nested teams what actually gets deleted depends on the kind of row: deleting a direct membership removes it, and the inherited copies it produced in the ancestor teams are cleaned up asynchronously. Deleting an INHERITED membership instead removes the employee's direct membership in EVERY sub-team that row originates from — rows with other ids, in teams you did not name — and the request is rejected altogether if you cannot manage one of those sub-teams. The inherited row you named also disappears asynchronously rather than in the request, so an immediate re-read may still return it; repeating the DELETE is safe rather than an error. Read that employee's memberships with `with_source_attribution` before deleting to see what is at stake: `direct` indicates which kind of row it is, and `source_team_ids` where the deletion would land. Both are advisory — the read and the delete resolve their answers independently, so re-read after deleting rather than assuming which branch ran.
6288
+ * Delete the membership to remove the employee from the team. For companies with nested teams what actually gets deleted depends on the kind of row: deleting a direct membership removes it, and the inherited copies it produced in the ancestor teams are cleaned up asynchronously. Deleting an INHERITED membership instead removes the employee's direct membership in EVERY sub-team that row originates from — rows with other ids, in teams you did not name — and the request is rejected altogether if you cannot manage one of those sub-teams. The inherited row you named also disappears asynchronously rather than in the request, so an immediate re-read may still return it; repeating the DELETE is safe rather than an error. A row that no sub-team and no direct membership accounts for any more is deleted on its own, without touching any team's member list. Read that employee's memberships with `with_source_attribution` before deleting to see what is at stake: `direct` indicates which kind of row it is, and `source_team_ids` where the deletion would land. Both are advisory — the read and the delete resolve their answers independently, so re-read after deleting rather than assuming which branch ran.
6289
6289
  */
6290
6290
  export const deleteApi20270101ResourcesTeamsMembershipsById = (options) => (options.client ?? client).delete({
6291
6291
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],