@putdotio/sdk 17.0.1 → 17.0.3

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.js CHANGED
@@ -1178,14 +1178,16 @@ const verifyTOTP = (twoFactorScopedToken, code) => decodeAndRunRedacted("auth",
1178
1178
  code,
1179
1179
  twoFactorScopedToken
1180
1180
  }, (decodedInput) => requestJson(VerifyTOTPEnvelopeSchema, {
1181
- auth: { type: "none" },
1181
+ auth: {
1182
+ token: decodedInput.twoFactorScopedToken,
1183
+ type: "token"
1184
+ },
1182
1185
  body: {
1183
1186
  type: "form",
1184
1187
  value: { code: decodedInput.code }
1185
1188
  },
1186
1189
  method: "POST",
1187
- path: "/v2/two_factor/verify/totp",
1188
- query: { oauth_token: decodedInput.twoFactorScopedToken }
1190
+ path: "/v2/two_factor/verify/totp"
1189
1191
  }).pipe(selectJsonFields("token", "user_id"))).pipe(withOperationErrors(VerifyTOTPErrorSpec));
1190
1192
  const getRecoveryCodes = () => requestJson(RecoveryCodesEnvelopeSchema, {
1191
1193
  method: "GET",
@@ -2858,7 +2860,7 @@ const setFilesWatchStatus = (selection) => decodeAndRun(FilesWatchStatusInputSch
2858
2860
  type: "form",
2859
2861
  value: {
2860
2862
  ...toCursorSelectionForm(decodedSelection),
2861
- watched: decodedSelection.watched
2863
+ watched: decodedSelection.watched ? "true" : ""
2862
2864
  }
2863
2865
  },
2864
2866
  method: "POST",