@linear/sdk 74.0.0 → 75.0.0

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.
package/dist/index.mjs CHANGED
@@ -48989,8 +48989,8 @@ const UpdateUserSettingsDocument = new TypedDocumentString(`
48989
48989
  success
48990
48990
  }`);
48991
48991
  const SuspendUserDocument = new TypedDocumentString(`
48992
- mutation suspendUser($id: String!) {
48993
- userSuspend(id: $id) {
48992
+ mutation suspendUser($forceBypassScimRestrictions: Boolean, $id: String!) {
48993
+ userSuspend(forceBypassScimRestrictions: $forceBypassScimRestrictions, id: $id) {
48994
48994
  ...UserAdminPayload
48995
48995
  }
48996
48996
  }
@@ -49009,8 +49009,11 @@ const UserUnlinkFromIdentityProviderDocument = new TypedDocumentString(`
49009
49009
  success
49010
49010
  }`);
49011
49011
  const UnsuspendUserDocument = new TypedDocumentString(`
49012
- mutation unsuspendUser($id: String!) {
49013
- userUnsuspend(id: $id) {
49012
+ mutation unsuspendUser($forceBypassScimRestrictions: Boolean, $id: String!) {
49013
+ userUnsuspend(
49014
+ forceBypassScimRestrictions: $forceBypassScimRestrictions
49015
+ id: $id
49016
+ ) {
49014
49017
  ...UserAdminPayload
49015
49018
  }
49016
49019
  }
@@ -66036,12 +66039,12 @@ var User = class extends Request {
66036
66039
  return new User_TeamsQuery(this._request, this.id, variables).fetch(variables);
66037
66040
  }
66038
66041
  /** Suspends a user. Can only be called by an admin or owner. */
66039
- suspend() {
66040
- return new SuspendUserMutation(this._request).fetch(this.id);
66042
+ suspend(variables) {
66043
+ return new SuspendUserMutation(this._request).fetch(this.id, variables);
66041
66044
  }
66042
66045
  /** Un-suspends a user. Can only be called by an admin or owner. */
66043
- unsuspend() {
66044
- return new UnsuspendUserMutation(this._request).fetch(this.id);
66046
+ unsuspend(variables) {
66047
+ return new UnsuspendUserMutation(this._request).fetch(this.id, variables);
66045
66048
  }
66046
66049
  /** Updates a user. Only available to organization admins and the user themselves. */
66047
66050
  update(input) {
@@ -75936,10 +75939,14 @@ var SuspendUserMutation = class extends Request {
75936
75939
  * Call the SuspendUser mutation and return a UserAdminPayload
75937
75940
  *
75938
75941
  * @param id - required id to pass to suspendUser
75942
+ * @param variables - variables without 'id' to pass into the SuspendUserMutation
75939
75943
  * @returns parsed response from SuspendUserMutation
75940
75944
  */
75941
- async fetch(id) {
75942
- const data = (await this._request(SuspendUserDocument.toString(), { id })).userSuspend;
75945
+ async fetch(id, variables) {
75946
+ const data = (await this._request(SuspendUserDocument.toString(), {
75947
+ id,
75948
+ ...variables
75949
+ })).userSuspend;
75943
75950
  return new UserAdminPayload(this._request, data);
75944
75951
  }
75945
75952
  };
@@ -75976,10 +75983,14 @@ var UnsuspendUserMutation = class extends Request {
75976
75983
  * Call the UnsuspendUser mutation and return a UserAdminPayload
75977
75984
  *
75978
75985
  * @param id - required id to pass to unsuspendUser
75986
+ * @param variables - variables without 'id' to pass into the UnsuspendUserMutation
75979
75987
  * @returns parsed response from UnsuspendUserMutation
75980
75988
  */
75981
- async fetch(id) {
75982
- const data = (await this._request(UnsuspendUserDocument.toString(), { id })).userUnsuspend;
75989
+ async fetch(id, variables) {
75990
+ const data = (await this._request(UnsuspendUserDocument.toString(), {
75991
+ id,
75992
+ ...variables
75993
+ })).userUnsuspend;
75983
75994
  return new UserAdminPayload(this._request, data);
75984
75995
  }
75985
75996
  };
@@ -84809,10 +84820,11 @@ var LinearSdk = class extends Request {
84809
84820
  * Suspends a user. Can only be called by an admin or owner.
84810
84821
  *
84811
84822
  * @param id - required id to pass to suspendUser
84823
+ * @param variables - variables without 'id' to pass into the SuspendUserMutation
84812
84824
  * @returns UserAdminPayload
84813
84825
  */
84814
- suspendUser(id) {
84815
- return new SuspendUserMutation(this._request).fetch(id);
84826
+ suspendUser(id, variables) {
84827
+ return new SuspendUserMutation(this._request).fetch(id, variables);
84816
84828
  }
84817
84829
  /**
84818
84830
  * Unlinks a guest user from their identity provider. Can only be called by an admin when SCIM is enabled.
@@ -84827,10 +84839,11 @@ var LinearSdk = class extends Request {
84827
84839
  * Un-suspends a user. Can only be called by an admin or owner.
84828
84840
  *
84829
84841
  * @param id - required id to pass to unsuspendUser
84842
+ * @param variables - variables without 'id' to pass into the UnsuspendUserMutation
84830
84843
  * @returns UserAdminPayload
84831
84844
  */
84832
- unsuspendUser(id) {
84833
- return new UnsuspendUserMutation(this._request).fetch(id);
84845
+ unsuspendUser(id, variables) {
84846
+ return new UnsuspendUserMutation(this._request).fetch(id, variables);
84834
84847
  }
84835
84848
  /**
84836
84849
  * Updates a user. Only available to organization admins and the user themselves.