@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
  /**
@@ -5425,7 +5425,7 @@ exports.getApi20270101ResourcesProcurementPoTemplateVersionsById = getApi2027010
5425
5425
  * Fetch one or all purchase orders for the company.
5426
5426
  */
5427
5427
  const getApi20270101ResourcesProcurementPurchaseOrders = (options) => (options?.client ?? client_gen_js_1.client).get({
5428
- security: [{ name: 'x-api-key', type: 'apiKey' }],
5428
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
5429
5429
  url: '/api/2027-01-01/resources/procurement/purchase_orders',
5430
5430
  ...options
5431
5431
  });
@@ -5451,7 +5451,7 @@ exports.postApi20270101ResourcesProcurementPurchaseOrders = postApi20270101Resou
5451
5451
  * Fetch one or all purchase orders for the company.
5452
5452
  */
5453
5453
  const getApi20270101ResourcesProcurementPurchaseOrdersById = (options) => (options.client ?? client_gen_js_1.client).get({
5454
- security: [{ name: 'x-api-key', type: 'apiKey' }],
5454
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
5455
5455
  url: '/api/2027-01-01/resources/procurement/purchase_orders/{id}',
5456
5456
  ...options
5457
5457
  });
@@ -6812,7 +6812,7 @@ exports.postApi20270101ResourcesTeamsMemberships = postApi20270101ResourcesTeams
6812
6812
  /**
6813
6813
  * Deletes a Membership
6814
6814
  *
6815
- * 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.
6815
+ * 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.
6816
6816
  */
6817
6817
  const deleteApi20270101ResourcesTeamsMembershipsById = (options) => (options.client ?? client_gen_js_1.client).delete({
6818
6818
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],